
wchar_t next_step(CMDARG *arg,wchar_t cmd)

{
  char *mesg;
  
  if (prog_running) {
    if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {
      stop.repeat_count = L'\x01';
    }
    else {
      stop.repeat_count = (wchar_t)(arg->value).lval;
    }
    stop.command = cmd;
    return L'\x01';
  }
  mesg = (char *)dcgettext(0,"program not running.",5);
  d_error(mesg);
  return L'\0';
}



undefined8 FUN_00133187(long param_1,undefined4 param_2)

{
  undefined8 uVar1;
  
  if (DAT_00399c28 != '\0') {
    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {
      DAT_00399c00 = 1;
    }
    else {
      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);
    }
    DAT_00399c18 = param_2;
    return 1;
  }
  uVar1 = dcgettext(0,"program not running.",5);
  FUN_0013079c(uVar1);
  return 0;
}


CMP byte ptr [0x00399c28],0x0
JZ 0x001331b1
TEST RDI,RDI
JZ 0x0013319b
CMP dword ptr [RDI + 0x8],0x2b
JZ 0x001331e2
MOV dword ptr [0x00399c00],0x1
MOV dword ptr [0x00399c18],ESI
MOV EAX,0x1
RET
SUB RSP,0x8
MOV EDX,0x5
LEA RSI,[0x17e752]
MOV EDI,0x0
CALL 0x00108bf0
MOV RDI,RAX
MOV EAX,0x0
CALL 0x0013079c
MOV EAX,0x0
ADD RSP,0x8
RET
MOV RAX,qword ptr [RDI + 0x10]
MOV dword ptr [0x00399c00],EAX
JMP 0x001331a5
(translation_unit "undefined8 FUN_00133187(long param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00133187(long param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_00133187(long param_1,undefined4 param_2)" identifier (parameter_list "(long param_1,undefined4 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }" if (parenthesized_expression "(DAT_00399c28 != '\0')" ( (binary_expression "DAT_00399c28 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }" { (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" if (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 8) != 0x2b)" ( (binary_expression "*(int *)(param_1 + 8) != 0x2b" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      DAT_00399c00 = 1;\n    }" { (expression_statement "DAT_00399c00 = 1;" (assignment_expression "DAT_00399c00 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" else (compound_statement "{\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" { (expression_statement "DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);" (assignment_expression "DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10)" identifier = (binary_expression "(undefined4)*(undefined8 *)(param_1 + 0x10)" (parenthesized_expression "(undefined4)" ( identifier )) * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) }))) (expression_statement "DAT_00399c18 = param_2;" (assignment_expression "DAT_00399c18 = param_2" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = dcgettext(0,"program not running.",5);" (assignment_expression "uVar1 = dcgettext(0,"program not running.",5)" identifier = (call_expression "dcgettext(0,"program not running.",5)" identifier (argument_list "(0,"program not running.",5)" ( number_literal , (string_literal ""program not running."" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0013079c(uVar1);" (call_expression "FUN_0013079c(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "wchar_t next_step(CMDARG *arg,wchar_t cmd)\n\n{\n  char *mesg;\n  \n  if (prog_running) {\n    if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {\n      stop.repeat_count = L'\x01';\n    }\n    else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }\n    stop.command = cmd;\n    return L'\x01';\n  }\n  mesg = (char *)dcgettext(0,"program not running.",5);\n  d_error(mesg);\n  return L'\0';\n}\n\n" (function_definition "wchar_t next_step(CMDARG *arg,wchar_t cmd)\n\n{\n  char *mesg;\n  \n  if (prog_running) {\n    if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {\n      stop.repeat_count = L'\x01';\n    }\n    else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }\n    stop.command = cmd;\n    return L'\x01';\n  }\n  mesg = (char *)dcgettext(0,"program not running.",5);\n  d_error(mesg);\n  return L'\0';\n}" type_identifier (function_declarator "next_step(CMDARG *arg,wchar_t cmd)" identifier (parameter_list "(CMDARG *arg,wchar_t cmd)" ( (parameter_declaration "CMDARG *arg" type_identifier (pointer_declarator "*arg" * identifier)) , (parameter_declaration "wchar_t cmd" type_identifier identifier) ))) (compound_statement "{\n  char *mesg;\n  \n  if (prog_running) {\n    if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {\n      stop.repeat_count = L'\x01';\n    }\n    else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }\n    stop.command = cmd;\n    return L'\x01';\n  }\n  mesg = (char *)dcgettext(0,"program not running.",5);\n  d_error(mesg);\n  return L'\0';\n}" { (declaration "char *mesg;" primitive_type (pointer_declarator "*mesg" * identifier) ;) (if_statement "if (prog_running) {\n    if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {\n      stop.repeat_count = L'\x01';\n    }\n    else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }\n    stop.command = cmd;\n    return L'\x01';\n  }" if (parenthesized_expression "(prog_running)" ( identifier )) (compound_statement "{\n    if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {\n      stop.repeat_count = L'\x01';\n    }\n    else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }\n    stop.command = cmd;\n    return L'\x01';\n  }" { (if_statement "if ((arg == (CMDARG *)0x0) || (arg->type != D_int)) {\n      stop.repeat_count = L'\x01';\n    }\n    else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\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 = L'\x01';\n    }" { (expression_statement "stop.repeat_count = L'\x01';" (assignment_expression "stop.repeat_count = L'\x01'" (field_expression "stop.repeat_count" identifier . field_identifier) = (char_literal "L'\x01'" L' escape_sequence ')) ;) }) (else_clause "else {\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }" else (compound_statement "{\n      stop.repeat_count = (wchar_t)(arg->value).lval;\n    }" { (expression_statement "stop.repeat_count = (wchar_t)(arg->value).lval;" (assignment_expression "stop.repeat_count = (wchar_t)(arg->value).lval" (field_expression "stop.repeat_count" identifier . field_identifier) = (field_expression "(wchar_t)(arg->value).lval" (call_expression "(wchar_t)(arg->value)" (parenthesized_expression "(wchar_t)" ( identifier )) (argument_list "(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 L'\x01';" return (char_literal "L'\x01'" L' escape_sequence ') ;) })) (expression_statement "mesg = (char *)dcgettext(0,"program not running.",5);" (assignment_expression "mesg = (char *)dcgettext(0,"program not running.",5)" identifier = (cast_expression "(char *)dcgettext(0,"program not running.",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"program not running.",5)" 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 L'\0';" return (char_literal "L'\0'" L' escape_sequence ') ;) })))
(translation_unit "undefined8 FUN_00133187(long param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_00133187(long param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}" type_identifier (function_declarator "FUN_00133187(long param_1,undefined4 param_2)" identifier (parameter_list "(long param_1,undefined4 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }" if (parenthesized_expression "(DAT_00399c28 != '\0')" ( (binary_expression "DAT_00399c28 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }" { (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" if (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 8) != 0x2b)" ( (binary_expression "*(int *)(param_1 + 8) != 0x2b" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n      DAT_00399c00 = 1;\n    }" { (expression_statement "DAT_00399c00 = 1;" (assignment_expression "DAT_00399c00 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" else (compound_statement "{\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" { (expression_statement "DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);" (assignment_expression "DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10)" identifier = (binary_expression "(undefined4)*(undefined8 *)(param_1 + 0x10)" (parenthesized_expression "(undefined4)" ( identifier )) * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) }))) (expression_statement "DAT_00399c18 = param_2;" (assignment_expression "DAT_00399c18 = param_2" identifier = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar1 = dcgettext(0,"program not running.",5);" (assignment_expression "uVar1 = dcgettext(0,"program not running.",5)" identifier = (call_expression "dcgettext(0,"program not running.",5)" identifier (argument_list "(0,"program not running.",5)" ( number_literal , (string_literal ""program not running."" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0013079c(uVar1);" (call_expression "FUN_0013079c(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (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 = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (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 = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_00133187(long param_1,undefined4 param_2)\n\n{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_00133187(long param_1,undefined4 param_2)" (identifier "FUN_00133187") (parameter_list "(long param_1,undefined4 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }\n  uVar1 = dcgettext(0,"program not running.",5);\n  FUN_0013079c(uVar1);\n  return 0;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if (DAT_00399c28 != '\0') {\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }" (if "if") (parenthesized_expression "(DAT_00399c28 != '\0')" (( "(") (binary_expression "DAT_00399c28 != '\0'" (identifier "DAT_00399c28") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }\n    DAT_00399c18 = param_2;\n    return 1;\n  }" ({ "{") (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {\n      DAT_00399c00 = 1;\n    }\n    else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" (if "if") (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b))" (( "(") (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 8) != 0x2b)" (( "(") (binary_expression "*(int *)(param_1 + 8) != 0x2b" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0x2b")) () ")"))) () ")")) (compound_statement "{\n      DAT_00399c00 = 1;\n    }" ({ "{") (expression_statement "DAT_00399c00 = 1;" (assignment_expression "DAT_00399c00 = 1" (identifier "DAT_00399c00") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" (else "else") (compound_statement "{\n      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);\n    }" ({ "{") (expression_statement "DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);" (assignment_expression "DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10)" (identifier "DAT_00399c00") (= "=") (binary_expression "(undefined4)*(undefined8 *)(param_1 + 0x10)" (parenthesized_expression "(undefined4)" (( "(") (identifier "undefined4") () ")")) (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")))) (expression_statement "DAT_00399c18 = param_2;" (assignment_expression "DAT_00399c18 = param_2" (identifier "DAT_00399c18") (= "=") (identifier "param_2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar1 = dcgettext(0,"program not running.",5);" (assignment_expression "uVar1 = dcgettext(0,"program not running.",5)" (identifier "uVar1") (= "=") (call_expression "dcgettext(0,"program not running.",5)" (identifier "dcgettext") (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 "FUN_0013079c(uVar1);" (call_expression "FUN_0013079c(uVar1)" (identifier "FUN_0013079c") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 *var_1,type_1 cmd)

{
  char *mesg;
  
  if (prog_running) {
    if ((var_1 == (type_2 *)0x0) || (var_1->type != var_2)) {
      stop.repeat_count = L'\x01';
    }
    else {
      stop.repeat_count = (type_1)(var_1->value).lval;
    }
    stop.command = cmd;
    return L'\x01';
  }
  mesg = (char *)var_3(0,"program not running.",5);
  var_4(mesg);
  return L'\0';
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) 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 (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: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (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: (call_expression function: (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)))))

undefined8 MASKED(long param_1,undefined4 param_2)

{
  undefined8 uVar1;
  
  if (DAT_00399c28 != '\0') {
    if ((param_1 == 0) || (*(int *)(param_1 + 8) != 0x2b)) {
      DAT_00399c00 = 1;
    }
    else {
      DAT_00399c00 = (undefined4)*(undefined8 *)(param_1 + 0x10);
    }
    DAT_00399c18 = param_2;
    return 1;
  }
  uVar1 = dcgettext(0,"program not running.",5);
  FUN_0013079c(uVar1);
  return 0;
}

