
/* WARNING: Unknown calling convention */

int next_step(CMDARG *arg,int cmd)

{
  char *mesg;
  
  if (!prog_running) {
    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);
    d_error(mesg);
    return 0;
  }
  if ((arg != (CMDARG *)0x0) && (arg->type == D_int)) {
    stop.repeat_count = (arg->value).lval;
    stop.command = cmd;
    return 1;
  }
  stop.repeat_count = 1;
  stop.command = cmd;
  return 1;
}



undefined4 FUN_0043b60c(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  if (DAT_004b3cf8 == '\0') {
    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);
    d_error(uVar1);
    return 0;
  }
  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {
    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);
    DAT_004b3cec = param_2;
    return 1;
  }
  DAT_004b3cd8 = 1;
  DAT_004b3cec = param_2;
  return 1;
}


lui v0,0x4b
lbu v0,0x3cf8(v0)
beq v0,zero,0x0043b650
_lui gp,0x4c
beq a0,zero,0x0043b638
_lui v1,0x4b
lw v1,0x4(a0)
li v0,0x2b
beq v1,v0,0x0043b690
_nop
lui v1,0x4b
li v0,0x1
addiu v1,v1,0x3cc8
sw v0,0x10(v1)
li v0,0x1
jr ra
_sw a1,0x24(v1)
lui v1,0x4b
lw v0,0x8(a0)
addiu v1,v1,0x3cc8
sw v0,0x10(v1)
li v0,0x1
jr ra
_sw a1,0x24(v1)
(translation_unit "undefined4 FUN_0043b60c(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0043b60c(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}" type_identifier (function_declarator "FUN_0043b60c(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }" if (parenthesized_expression "(DAT_004b3cf8 == '\0')" ( (binary_expression "DAT_004b3cf8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);" (assignment_expression "uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"program not running.",5)" ( number_literal , (string_literal ""program not running."" " string_content ") , number_literal )))) ;) (expression_statement "d_error(uVar1);" (call_expression "d_error(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }" if (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b))" ( (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 4) == 0x2b)" ( (binary_expression "*(int *)(param_1 + 4) == 0x2b" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }" { (expression_statement "DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);" (assignment_expression "DAT_004b3cd8 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "DAT_004b3cec = param_2;" (assignment_expression "DAT_004b3cec = param_2" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "DAT_004b3cd8 = 1;" (assignment_expression "DAT_004b3cd8 = 1" identifier = number_literal) ;) (expression_statement "DAT_004b3cec = param_2;" (assignment_expression "DAT_004b3cec = param_2" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint next_step(CMDARG *arg,int cmd)\n\n{\n  char *mesg;\n  \n  if (!prog_running) {\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(mesg);\n    return 0;\n  }\n  if ((arg != (CMDARG *)0x0) && (arg->type == D_int)) {\n    stop.repeat_count = (arg->value).lval;\n    stop.command = cmd;\n    return 1;\n  }\n  stop.repeat_count = 1;\n  stop.command = cmd;\n  return 1;\n}\n\n" comment (function_definition "int next_step(CMDARG *arg,int cmd)\n\n{\n  char *mesg;\n  \n  if (!prog_running) {\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(mesg);\n    return 0;\n  }\n  if ((arg != (CMDARG *)0x0) && (arg->type == D_int)) {\n    stop.repeat_count = (arg->value).lval;\n    stop.command = cmd;\n    return 1;\n  }\n  stop.repeat_count = 1;\n  stop.command = cmd;\n  return 1;\n}" primitive_type (function_declarator "next_step(CMDARG *arg,int cmd)" identifier (parameter_list "(CMDARG *arg,int cmd)" ( (parameter_declaration "CMDARG *arg" type_identifier (pointer_declarator "*arg" * identifier)) , (parameter_declaration "int cmd" primitive_type identifier) ))) (compound_statement "{\n  char *mesg;\n  \n  if (!prog_running) {\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(mesg);\n    return 0;\n  }\n  if ((arg != (CMDARG *)0x0) && (arg->type == D_int)) {\n    stop.repeat_count = (arg->value).lval;\n    stop.command = cmd;\n    return 1;\n  }\n  stop.repeat_count = 1;\n  stop.command = cmd;\n  return 1;\n}" { (declaration "char *mesg;" primitive_type (pointer_declarator "*mesg" * identifier) ;) (if_statement "if (!prog_running) {\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(mesg);\n    return 0;\n  }" if (parenthesized_expression "(!prog_running)" ( (unary_expression "!prog_running" ! identifier) )) (compound_statement "{\n    mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(mesg);\n    return 0;\n  }" { (expression_statement "mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);" (assignment_expression "mesg = (char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"program not running.",5)" ( number_literal , (string_literal ""program not running."" " string_content ") , number_literal ))))) ;) (expression_statement "d_error(mesg);" (call_expression "d_error(mesg)" identifier (argument_list "(mesg)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((arg != (CMDARG *)0x0) && (arg->type == D_int)) {\n    stop.repeat_count = (arg->value).lval;\n    stop.command = cmd;\n    return 1;\n  }" if (parenthesized_expression "((arg != (CMDARG *)0x0) && (arg->type == D_int))" ( (binary_expression "(arg != (CMDARG *)0x0) && (arg->type == D_int)" (parenthesized_expression "(arg != (CMDARG *)0x0)" ( (binary_expression "arg != (CMDARG *)0x0" identifier != (cast_expression "(CMDARG *)0x0" ( (type_descriptor "CMDARG *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(arg->type == D_int)" ( (binary_expression "arg->type == D_int" (field_expression "arg->type" identifier -> field_identifier) == identifier) ))) )) (compound_statement "{\n    stop.repeat_count = (arg->value).lval;\n    stop.command = cmd;\n    return 1;\n  }" { (expression_statement "stop.repeat_count = (arg->value).lval;" (assignment_expression "stop.repeat_count = (arg->value).lval" (field_expression "stop.repeat_count" identifier . field_identifier) = (field_expression "(arg->value).lval" (parenthesized_expression "(arg->value)" ( (field_expression "arg->value" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "stop.command = cmd;" (assignment_expression "stop.command = cmd" (field_expression "stop.command" identifier . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "stop.repeat_count = 1;" (assignment_expression "stop.repeat_count = 1" (field_expression "stop.repeat_count" identifier . field_identifier) = number_literal) ;) (expression_statement "stop.command = cmd;" (assignment_expression "stop.command = cmd" (field_expression "stop.command" identifier . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0043b60c(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0043b60c(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}" type_identifier (function_declarator "FUN_0043b60c(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (if_statement "if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }" if (parenthesized_expression "(DAT_004b3cf8 == '\0')" ( (binary_expression "DAT_004b3cf8 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);" (assignment_expression "uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" identifier = (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" ( (pointer_expression "*(code *)PTR_dcgettext_004b235c" * (cast_expression "(code *)PTR_dcgettext_004b235c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,"program not running.",5)" ( number_literal , (string_literal ""program not running."" " string_content ") , number_literal )))) ;) (expression_statement "d_error(uVar1);" (call_expression "d_error(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }" if (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b))" ( (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 4) == 0x2b)" ( (binary_expression "*(int *)(param_1 + 4) == 0x2b" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }" { (expression_statement "DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);" (assignment_expression "DAT_004b3cd8 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "DAT_004b3cec = param_2;" (assignment_expression "DAT_004b3cec = param_2" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "DAT_004b3cd8 = 1;" (assignment_expression "DAT_004b3cd8 = 1" identifier = number_literal) ;) (expression_statement "DAT_004b3cec = param_2;" (assignment_expression "DAT_004b3cec = param_2" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0043b60c(int param_1,undefined4 param_2)\n\n{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0043b60c(int param_1,undefined4 param_2)" (identifier "FUN_0043b60c") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }\n  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }\n  DAT_004b3cd8 = 1;\n  DAT_004b3cec = param_2;\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (if_statement "if (DAT_004b3cf8 == '\0') {\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }" (if "if") (parenthesized_expression "(DAT_004b3cf8 == '\0')" (( "(") (binary_expression "DAT_004b3cf8 == '\0'" (identifier "DAT_004b3cf8") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);\n    d_error(uVar1);\n    return 0;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);" (assignment_expression "uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5)" (parenthesized_expression "(*(code *)PTR_dcgettext_004b235c)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_004b235c" (* "*") (cast_expression "(code *)PTR_dcgettext_004b235c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_004b235c"))) () ")")) (argument_list "(0,"program not running.",5)" (( "(") (number_literal "0") (, ",") (string_literal ""program not running."" (" """) (string_content "program not running.") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "d_error(uVar1);" (call_expression "d_error(uVar1)" (identifier "d_error") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b))" (( "(") (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 4) == 0x2b)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0x2b" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0x2b")) () ")"))) () ")")) (compound_statement "{\n    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);\n    DAT_004b3cec = param_2;\n    return 1;\n  }" ({ "{") (expression_statement "DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);" (assignment_expression "DAT_004b3cd8 = *(undefined4 *)(param_1 + 8)" (identifier "DAT_004b3cd8") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "DAT_004b3cec = param_2;" (assignment_expression "DAT_004b3cec = param_2" (identifier "DAT_004b3cec") (= "=") (identifier "param_2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "DAT_004b3cd8 = 1;" (assignment_expression "DAT_004b3cd8 = 1" (identifier "DAT_004b3cd8") (= "=") (number_literal "1")) (; ";")) (expression_statement "DAT_004b3cec = param_2;" (assignment_expression "DAT_004b3cec = param_2" (identifier "DAT_004b3cec") (= "=") (identifier "param_2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *var_2,int cmd)

{
  char *mesg;
  
  if (!prog_running) {
    mesg = (char *)(*(type_2 *)PTR_dcgettext_004b235c)(0,"program not running.",5);
    var_1(mesg);
    return 0;
  }
  if ((var_2 != (type_1 *)0x0) && (var_2->type == var_3)) {
    stop.repeat_count = (var_2->value).lval;
    stop.command = cmd;
    return 1;
  }
  stop.repeat_count = 1;
  stop.command = cmd;
  return 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined4 uVar1;
  
  if (DAT_004b3cf8 == '\0') {
    uVar1 = (*(code *)PTR_dcgettext_004b235c)(0,"program not running.",5);
    d_error(uVar1);
    return 0;
  }
  if ((param_1 != 0) && (*(int *)(param_1 + 4) == 0x2b)) {
    DAT_004b3cd8 = *(undefined4 *)(param_1 + 8);
    DAT_004b3cec = param_2;
    return 1;
  }
  DAT_004b3cd8 = 1;
  DAT_004b3cec = param_2;
  return 1;
}

