
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

intmax_t __regparm3 eval_arith_for_expr(WORD_LIST *l,int *okp)

{
  char *__src;
  WORD_LIST *list;
  int iVar1;
  size_t sVar2;
  char *__dest;
  intmax_t iVar3;
  
  list = expand_words_no_vars(l);
  if (list != (WORD_LIST *)0x0) {
    if (echo_command_at_execute != 0) {
      xtrace_print_arith_cmd(list);
    }
    this_command_name = "((";
    command_string_index = 0;
    print_arith_command(list);
    iVar1 = signal_in_progress(0x41);
    if (iVar1 == 0 && running_trap == 0) {
      if (the_printed_command_except_trap != (char *)0x0) {
        free(the_printed_command_except_trap);
      }
      __src = the_printed_command;
      sVar2 = strlen(the_printed_command);
      __dest = (char *)xmalloc(sVar2 + 1);
      the_printed_command_except_trap = strcpy(__dest,__src);
    }
    iVar1 = run_debug_trap();
    if ((debugging_mode == 0) || (iVar1 == 0)) {
      iVar3 = evalexp(list->word->word,1,okp);
    }
    else {
      *okp = 1;
      iVar3 = 0;
    }
    dispose_words(list);
    return iVar3;
  }
  *okp = 1;
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined8 __regparm3 FUN_00047100(undefined4 param_1,undefined4 *param_2)

{
  char *__src;
  int iVar1;
  int iVar2;
  size_t sVar3;
  char *__dest;
  undefined8 uVar4;
  
  iVar1 = expand_words_no_vars(param_1);
  if (iVar1 != 0) {
    if (echo_command_at_execute != 0) {
      xtrace_print_arith_cmd(iVar1);
    }
    this_command_name = &DAT_000ef491;
    command_string_index = 0;
    print_arith_command(iVar1);
    iVar2 = signal_in_progress(0x41);
    if (iVar2 == 0 && running_trap == 0) {
      if (the_printed_command_except_trap != (char *)0x0) {
        free(the_printed_command_except_trap);
      }
      __src = the_printed_command;
      sVar3 = strlen(the_printed_command);
      __dest = (char *)xmalloc(sVar3 + 1);
      the_printed_command_except_trap = strcpy(__dest,__src);
    }
    iVar2 = run_debug_trap();
    if ((debugging_mode == 0) || (iVar2 == 0)) {
      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);
    }
    else {
      *param_2 = 1;
      uVar4 = 0;
    }
    dispose_words(iVar1);
    return uVar4;
  }
  *param_2 = 1;
  return 0;
}


PUSH EBP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00031ed0
ADD EBX,0x102ef5
SUB ESP,0x28
PUSH EAX
CALL 0x00079520
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00047238
MOV ESI,EAX
LEA EAX,[EBX + 0x5e90]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JNZ 0x00047220
LEA EAX,[EBX + 0x8dec]
LEA EDX,[EBX + 0xfffa5491]
SUB ESP,0xc
MOV dword ptr [EAX],EDX
LEA EAX,[EBX + 0x5c40]
MOV dword ptr [EAX],0x0
PUSH ESI
CALL 0x00045730
MOV dword ptr [ESP],0x41
CALL 0x0007c900
LEA EDX,[EBX + 0xcfe0]
ADD ESP,0x10
OR EAX,dword ptr [EDX]
JNZ 0x000471bf
LEA EBP,[EBX + 0x8ca0]
MOV EAX,dword ptr [EBP]
TEST EAX,EAX
JZ 0x0004718c
SUB ESP,0xc
PUSH EAX
CALL 0x0002f200
ADD ESP,0x10
LEA EAX,[EBX + 0x5c48]
SUB ESP,0xc
MOV EDX,dword ptr [EAX]
PUSH EDX
MOV dword ptr [ESP + 0x18],EDX
CALL 0x0002f760
ADD EAX,0x1
MOV dword ptr [ESP],EAX
CALL 0x00099200
POP ECX
POP EDX
MOV EDX,dword ptr [ESP + 0x10]
PUSH EDX
PUSH EAX
CALL 0x0002f580
ADD ESP,0x10
MOV dword ptr [EBP],EAX
CALL 0x0007c580
LEA EDX,[EBX + 0x4820]
MOV EDX,dword ptr [EDX]
TEST EDX,EDX
JZ 0x000471e0
TEST EAX,EAX
JZ 0x000471e0
MOV dword ptr [EDI],0x1
XOR EAX,EAX
XOR EDX,EDX
JMP 0x000471f3
MOV EAX,dword ptr [ESI + 0x4]
SUB ESP,0x4
PUSH EDI
PUSH 0x1
PUSH dword ptr [EAX]
CALL 0x0005c270
ADD ESP,0x10
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
MOV dword ptr [ESP + 0x18],EDX
PUSH ESI
CALL 0x00046900
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH ESI
CALL 0x00045980
ADD ESP,0x10
JMP 0x00047137
MOV dword ptr [EDI],0x1
ADD ESP,0x1c
XOR EAX,EAX
XOR EDX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 __regparm3 FUN_00047100(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}\n\n" comment (function_definition "undefined8 __regparm3 FUN_00047100(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00047100(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}" { (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = expand_words_no_vars(param_1);" (assignment_expression "iVar1 = expand_words_no_vars(param_1)" identifier = (call_expression "expand_words_no_vars(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }" { (if_statement "if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }" if (parenthesized_expression "(echo_command_at_execute != 0)" ( (binary_expression "echo_command_at_execute != 0" identifier != number_literal) )) (compound_statement "{\n      xtrace_print_arith_cmd(iVar1);\n    }" { (expression_statement "xtrace_print_arith_cmd(iVar1);" (call_expression "xtrace_print_arith_cmd(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "this_command_name = &DAT_000ef491;" (assignment_expression "this_command_name = &DAT_000ef491" identifier = (pointer_expression "&DAT_000ef491" & identifier)) ;) (expression_statement "command_string_index = 0;" (assignment_expression "command_string_index = 0" identifier = number_literal) ;) (expression_statement "print_arith_command(iVar1);" (call_expression "print_arith_command(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar2 = signal_in_progress(0x41);" (assignment_expression "iVar2 = signal_in_progress(0x41)" identifier = (call_expression "signal_in_progress(0x41)" identifier (argument_list "(0x41)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" if (parenthesized_expression "(iVar2 == 0 && running_trap == 0)" ( (binary_expression "iVar2 == 0 && running_trap == 0" (binary_expression "iVar2 == 0" identifier == number_literal) && (binary_expression "running_trap == 0" identifier == number_literal)) )) (compound_statement "{\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" { (if_statement "if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }" if (parenthesized_expression "(the_printed_command_except_trap != (char *)0x0)" ( (binary_expression "the_printed_command_except_trap != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(the_printed_command_except_trap);\n      }" { (expression_statement "free(the_printed_command_except_trap);" (call_expression "free(the_printed_command_except_trap)" identifier (argument_list "(the_printed_command_except_trap)" ( identifier ))) ;) })) (expression_statement "__src = the_printed_command;" (assignment_expression "__src = the_printed_command" identifier = identifier) ;) (expression_statement "sVar3 = strlen(the_printed_command);" (assignment_expression "sVar3 = strlen(the_printed_command)" identifier = (call_expression "strlen(the_printed_command)" identifier (argument_list "(the_printed_command)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "the_printed_command_except_trap = strcpy(__dest,__src);" (assignment_expression "the_printed_command_except_trap = strcpy(__dest,__src)" identifier = (call_expression "strcpy(__dest,__src)" identifier (argument_list "(__dest,__src)" ( identifier , identifier )))) ;) })) (expression_statement "iVar2 = run_debug_trap();" (assignment_expression "iVar2 = run_debug_trap()" identifier = (call_expression "run_debug_trap()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }" if (parenthesized_expression "((debugging_mode == 0) || (iVar2 == 0))" ( (binary_expression "(debugging_mode == 0) || (iVar2 == 0)" (parenthesized_expression "(debugging_mode == 0)" ( (binary_expression "debugging_mode == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }" { (expression_statement "uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);" (assignment_expression "uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2)" identifier = (call_expression "evalexp(**(undefined4 **)(iVar1 + 4),1,param_2)" identifier (argument_list "(**(undefined4 **)(iVar1 + 4),1,param_2)" ( (pointer_expression "**(undefined4 **)(iVar1 + 4)" * (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) , number_literal , identifier )))) ;) }) (else_clause "else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }" else (compound_statement "{\n      *param_2 = 1;\n      uVar4 = 0;\n    }" { (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "dispose_words(iVar1);" (call_expression "dispose_words(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nintmax_t __regparm3 eval_arith_for_expr(WORD_LIST *l,int *okp)\n\n{\n  char *__src;\n  WORD_LIST *list;\n  int iVar1;\n  size_t sVar2;\n  char *__dest;\n  intmax_t iVar3;\n  \n  list = expand_words_no_vars(l);\n  if (list != (WORD_LIST *)0x0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(list);\n    }\n    this_command_name = "((";\n    command_string_index = 0;\n    print_arith_command(list);\n    iVar1 = signal_in_progress(0x41);\n    if (iVar1 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar1 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar1 == 0)) {\n      iVar3 = evalexp(list->word->word,1,okp);\n    }\n    else {\n      *okp = 1;\n      iVar3 = 0;\n    }\n    dispose_words(list);\n    return iVar3;\n  }\n  *okp = 1;\n  return 0;\n}\n\n" comment (function_definition "intmax_t __regparm3 eval_arith_for_expr(WORD_LIST *l,int *okp)\n\n{\n  char *__src;\n  WORD_LIST *list;\n  int iVar1;\n  size_t sVar2;\n  char *__dest;\n  intmax_t iVar3;\n  \n  list = expand_words_no_vars(l);\n  if (list != (WORD_LIST *)0x0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(list);\n    }\n    this_command_name = "((";\n    command_string_index = 0;\n    print_arith_command(list);\n    iVar1 = signal_in_progress(0x41);\n    if (iVar1 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar1 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar1 == 0)) {\n      iVar3 = evalexp(list->word->word,1,okp);\n    }\n    else {\n      *okp = 1;\n      iVar3 = 0;\n    }\n    dispose_words(list);\n    return iVar3;\n  }\n  *okp = 1;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "eval_arith_for_expr(WORD_LIST *l,int *okp)" identifier (parameter_list "(WORD_LIST *l,int *okp)" ( (parameter_declaration "WORD_LIST *l" type_identifier (pointer_declarator "*l" * identifier)) , (parameter_declaration "int *okp" primitive_type (pointer_declarator "*okp" * identifier)) ))) (compound_statement "{\n  char *__src;\n  WORD_LIST *list;\n  int iVar1;\n  size_t sVar2;\n  char *__dest;\n  intmax_t iVar3;\n  \n  list = expand_words_no_vars(l);\n  if (list != (WORD_LIST *)0x0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(list);\n    }\n    this_command_name = "((";\n    command_string_index = 0;\n    print_arith_command(list);\n    iVar1 = signal_in_progress(0x41);\n    if (iVar1 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar1 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar1 == 0)) {\n      iVar3 = evalexp(list->word->word,1,okp);\n    }\n    else {\n      *okp = 1;\n      iVar3 = 0;\n    }\n    dispose_words(list);\n    return iVar3;\n  }\n  *okp = 1;\n  return 0;\n}" { (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "WORD_LIST *list;" type_identifier (pointer_declarator "*list" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "intmax_t iVar3;" type_identifier identifier ;) (expression_statement "list = expand_words_no_vars(l);" (assignment_expression "list = expand_words_no_vars(l)" identifier = (call_expression "expand_words_no_vars(l)" identifier (argument_list "(l)" ( identifier )))) ;) (if_statement "if (list != (WORD_LIST *)0x0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(list);\n    }\n    this_command_name = "((";\n    command_string_index = 0;\n    print_arith_command(list);\n    iVar1 = signal_in_progress(0x41);\n    if (iVar1 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar1 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar1 == 0)) {\n      iVar3 = evalexp(list->word->word,1,okp);\n    }\n    else {\n      *okp = 1;\n      iVar3 = 0;\n    }\n    dispose_words(list);\n    return iVar3;\n  }" if (parenthesized_expression "(list != (WORD_LIST *)0x0)" ( (binary_expression "list != (WORD_LIST *)0x0" identifier != (cast_expression "(WORD_LIST *)0x0" ( (type_descriptor "WORD_LIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(list);\n    }\n    this_command_name = "((";\n    command_string_index = 0;\n    print_arith_command(list);\n    iVar1 = signal_in_progress(0x41);\n    if (iVar1 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar1 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar1 == 0)) {\n      iVar3 = evalexp(list->word->word,1,okp);\n    }\n    else {\n      *okp = 1;\n      iVar3 = 0;\n    }\n    dispose_words(list);\n    return iVar3;\n  }" { (if_statement "if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(list);\n    }" if (parenthesized_expression "(echo_command_at_execute != 0)" ( (binary_expression "echo_command_at_execute != 0" identifier != number_literal) )) (compound_statement "{\n      xtrace_print_arith_cmd(list);\n    }" { (expression_statement "xtrace_print_arith_cmd(list);" (call_expression "xtrace_print_arith_cmd(list)" identifier (argument_list "(list)" ( identifier ))) ;) })) (expression_statement "this_command_name = "((";" (assignment_expression "this_command_name = "(("" identifier = (string_literal ""(("" " string_content ")) ;) (expression_statement "command_string_index = 0;" (assignment_expression "command_string_index = 0" identifier = number_literal) ;) (expression_statement "print_arith_command(list);" (call_expression "print_arith_command(list)" identifier (argument_list "(list)" ( identifier ))) ;) (expression_statement "iVar1 = signal_in_progress(0x41);" (assignment_expression "iVar1 = signal_in_progress(0x41)" identifier = (call_expression "signal_in_progress(0x41)" identifier (argument_list "(0x41)" ( number_literal )))) ;) (if_statement "if (iVar1 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" if (parenthesized_expression "(iVar1 == 0 && running_trap == 0)" ( (binary_expression "iVar1 == 0 && running_trap == 0" (binary_expression "iVar1 == 0" identifier == number_literal) && (binary_expression "running_trap == 0" identifier == number_literal)) )) (compound_statement "{\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar2 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar2 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" { (if_statement "if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }" if (parenthesized_expression "(the_printed_command_except_trap != (char *)0x0)" ( (binary_expression "the_printed_command_except_trap != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(the_printed_command_except_trap);\n      }" { (expression_statement "free(the_printed_command_except_trap);" (call_expression "free(the_printed_command_except_trap)" identifier (argument_list "(the_printed_command_except_trap)" ( identifier ))) ;) })) (expression_statement "__src = the_printed_command;" (assignment_expression "__src = the_printed_command" identifier = identifier) ;) (expression_statement "sVar2 = strlen(the_printed_command);" (assignment_expression "sVar2 = strlen(the_printed_command)" identifier = (call_expression "strlen(the_printed_command)" identifier (argument_list "(the_printed_command)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar2 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar2 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1)" identifier (argument_list "(sVar2 + 1)" ( (binary_expression "sVar2 + 1" identifier + number_literal) ))))) ;) (expression_statement "the_printed_command_except_trap = strcpy(__dest,__src);" (assignment_expression "the_printed_command_except_trap = strcpy(__dest,__src)" identifier = (call_expression "strcpy(__dest,__src)" identifier (argument_list "(__dest,__src)" ( identifier , identifier )))) ;) })) (expression_statement "iVar1 = run_debug_trap();" (assignment_expression "iVar1 = run_debug_trap()" identifier = (call_expression "run_debug_trap()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((debugging_mode == 0) || (iVar1 == 0)) {\n      iVar3 = evalexp(list->word->word,1,okp);\n    }\n    else {\n      *okp = 1;\n      iVar3 = 0;\n    }" if (parenthesized_expression "((debugging_mode == 0) || (iVar1 == 0))" ( (binary_expression "(debugging_mode == 0) || (iVar1 == 0)" (parenthesized_expression "(debugging_mode == 0)" ( (binary_expression "debugging_mode == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      iVar3 = evalexp(list->word->word,1,okp);\n    }" { (expression_statement "iVar3 = evalexp(list->word->word,1,okp);" (assignment_expression "iVar3 = evalexp(list->word->word,1,okp)" identifier = (call_expression "evalexp(list->word->word,1,okp)" identifier (argument_list "(list->word->word,1,okp)" ( (field_expression "list->word->word" (field_expression "list->word" identifier -> field_identifier) -> field_identifier) , number_literal , identifier )))) ;) }) (else_clause "else {\n      *okp = 1;\n      iVar3 = 0;\n    }" else (compound_statement "{\n      *okp = 1;\n      iVar3 = 0;\n    }" { (expression_statement "*okp = 1;" (assignment_expression "*okp = 1" (pointer_expression "*okp" * identifier) = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) (expression_statement "dispose_words(list);" (call_expression "dispose_words(list)" identifier (argument_list "(list)" ( identifier ))) ;) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "*okp = 1;" (assignment_expression "*okp = 1" (pointer_expression "*okp" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 __regparm3 FUN_00047100(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}\n\n" (function_definition "undefined8 __regparm3 FUN_00047100(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00047100(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}" { (declaration "char *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = expand_words_no_vars(param_1);" (assignment_expression "iVar1 = expand_words_no_vars(param_1)" identifier = (call_expression "expand_words_no_vars(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }" { (if_statement "if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }" if (parenthesized_expression "(echo_command_at_execute != 0)" ( (binary_expression "echo_command_at_execute != 0" identifier != number_literal) )) (compound_statement "{\n      xtrace_print_arith_cmd(iVar1);\n    }" { (expression_statement "xtrace_print_arith_cmd(iVar1);" (call_expression "xtrace_print_arith_cmd(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) (expression_statement "this_command_name = &DAT_000ef491;" (assignment_expression "this_command_name = &DAT_000ef491" identifier = (pointer_expression "&DAT_000ef491" & identifier)) ;) (expression_statement "command_string_index = 0;" (assignment_expression "command_string_index = 0" identifier = number_literal) ;) (expression_statement "print_arith_command(iVar1);" (call_expression "print_arith_command(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar2 = signal_in_progress(0x41);" (assignment_expression "iVar2 = signal_in_progress(0x41)" identifier = (call_expression "signal_in_progress(0x41)" identifier (argument_list "(0x41)" ( number_literal )))) ;) (if_statement "if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" if (parenthesized_expression "(iVar2 == 0 && running_trap == 0)" ( (binary_expression "iVar2 == 0 && running_trap == 0" (binary_expression "iVar2 == 0" identifier == number_literal) && (binary_expression "running_trap == 0" identifier == number_literal)) )) (compound_statement "{\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" { (if_statement "if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }" if (parenthesized_expression "(the_printed_command_except_trap != (char *)0x0)" ( (binary_expression "the_printed_command_except_trap != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        free(the_printed_command_except_trap);\n      }" { (expression_statement "free(the_printed_command_except_trap);" (call_expression "free(the_printed_command_except_trap)" identifier (argument_list "(the_printed_command_except_trap)" ( identifier ))) ;) })) (expression_statement "__src = the_printed_command;" (assignment_expression "__src = the_printed_command" identifier = identifier) ;) (expression_statement "sVar3 = strlen(the_printed_command);" (assignment_expression "sVar3 = strlen(the_printed_command)" identifier = (call_expression "strlen(the_printed_command)" identifier (argument_list "(the_printed_command)" ( identifier )))) ;) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 1)" identifier (argument_list "(sVar3 + 1)" ( (binary_expression "sVar3 + 1" identifier + number_literal) ))))) ;) (expression_statement "the_printed_command_except_trap = strcpy(__dest,__src);" (assignment_expression "the_printed_command_except_trap = strcpy(__dest,__src)" identifier = (call_expression "strcpy(__dest,__src)" identifier (argument_list "(__dest,__src)" ( identifier , identifier )))) ;) })) (expression_statement "iVar2 = run_debug_trap();" (assignment_expression "iVar2 = run_debug_trap()" identifier = (call_expression "run_debug_trap()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }" if (parenthesized_expression "((debugging_mode == 0) || (iVar2 == 0))" ( (binary_expression "(debugging_mode == 0) || (iVar2 == 0)" (parenthesized_expression "(debugging_mode == 0)" ( (binary_expression "debugging_mode == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }" { (expression_statement "uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);" (assignment_expression "uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2)" identifier = (call_expression "evalexp(**(undefined4 **)(iVar1 + 4),1,param_2)" identifier (argument_list "(**(undefined4 **)(iVar1 + 4),1,param_2)" ( (pointer_expression "**(undefined4 **)(iVar1 + 4)" * (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) , number_literal , identifier )))) ;) }) (else_clause "else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }" else (compound_statement "{\n      *param_2 = 1;\n      uVar4 = 0;\n    }" { (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "dispose_words(iVar1);" (call_expression "dispose_words(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return uVar4;" return identifier ;) })) (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" * identifier) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , LIT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined8 __regparm3 FUN_00047100(undefined4 param_1,undefined4 *param_2)\n\n{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}" (type_identifier "undefined8") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00047100(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_00047100") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  char *__src;\n  int iVar1;\n  int iVar2;\n  size_t sVar3;\n  char *__dest;\n  undefined8 uVar4;\n  \n  iVar1 = expand_words_no_vars(param_1);\n  if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }\n  *param_2 = 1;\n  return 0;\n}" ({ "{") (declaration "char *__src;" (primitive_type "char") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *__dest;" (primitive_type "char") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = expand_words_no_vars(param_1);" (assignment_expression "iVar1 = expand_words_no_vars(param_1)" (identifier "iVar1") (= "=") (call_expression "expand_words_no_vars(param_1)" (identifier "expand_words_no_vars") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }\n    this_command_name = &DAT_000ef491;\n    command_string_index = 0;\n    print_arith_command(iVar1);\n    iVar2 = signal_in_progress(0x41);\n    if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }\n    iVar2 = run_debug_trap();\n    if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }\n    dispose_words(iVar1);\n    return uVar4;\n  }" ({ "{") (if_statement "if (echo_command_at_execute != 0) {\n      xtrace_print_arith_cmd(iVar1);\n    }" (if "if") (parenthesized_expression "(echo_command_at_execute != 0)" (( "(") (binary_expression "echo_command_at_execute != 0" (identifier "echo_command_at_execute") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      xtrace_print_arith_cmd(iVar1);\n    }" ({ "{") (expression_statement "xtrace_print_arith_cmd(iVar1);" (call_expression "xtrace_print_arith_cmd(iVar1)" (identifier "xtrace_print_arith_cmd") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (expression_statement "this_command_name = &DAT_000ef491;" (assignment_expression "this_command_name = &DAT_000ef491" (identifier "this_command_name") (= "=") (pointer_expression "&DAT_000ef491" (& "&") (identifier "DAT_000ef491"))) (; ";")) (expression_statement "command_string_index = 0;" (assignment_expression "command_string_index = 0" (identifier "command_string_index") (= "=") (number_literal "0")) (; ";")) (expression_statement "print_arith_command(iVar1);" (call_expression "print_arith_command(iVar1)" (identifier "print_arith_command") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar2 = signal_in_progress(0x41);" (assignment_expression "iVar2 = signal_in_progress(0x41)" (identifier "iVar2") (= "=") (call_expression "signal_in_progress(0x41)" (identifier "signal_in_progress") (argument_list "(0x41)" (( "(") (number_literal "0x41") () ")")))) (; ";")) (if_statement "if (iVar2 == 0 && running_trap == 0) {\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0 && running_trap == 0)" (( "(") (binary_expression "iVar2 == 0 && running_trap == 0" (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) (&& "&&") (binary_expression "running_trap == 0" (identifier "running_trap") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }\n      __src = the_printed_command;\n      sVar3 = strlen(the_printed_command);\n      __dest = (char *)xmalloc(sVar3 + 1);\n      the_printed_command_except_trap = strcpy(__dest,__src);\n    }" ({ "{") (if_statement "if (the_printed_command_except_trap != (char *)0x0) {\n        free(the_printed_command_except_trap);\n      }" (if "if") (parenthesized_expression "(the_printed_command_except_trap != (char *)0x0)" (( "(") (binary_expression "the_printed_command_except_trap != (char *)0x0" (identifier "the_printed_command_except_trap") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        free(the_printed_command_except_trap);\n      }" ({ "{") (expression_statement "free(the_printed_command_except_trap);" (call_expression "free(the_printed_command_except_trap)" (identifier "free") (argument_list "(the_printed_command_except_trap)" (( "(") (identifier "the_printed_command_except_trap") () ")"))) (; ";")) (} "}"))) (expression_statement "__src = the_printed_command;" (assignment_expression "__src = the_printed_command" (identifier "__src") (= "=") (identifier "the_printed_command")) (; ";")) (expression_statement "sVar3 = strlen(the_printed_command);" (assignment_expression "sVar3 = strlen(the_printed_command)" (identifier "sVar3") (= "=") (call_expression "strlen(the_printed_command)" (identifier "strlen") (argument_list "(the_printed_command)" (( "(") (identifier "the_printed_command") () ")")))) (; ";")) (expression_statement "__dest = (char *)xmalloc(sVar3 + 1);" (assignment_expression "__dest = (char *)xmalloc(sVar3 + 1)" (identifier "__dest") (= "=") (cast_expression "(char *)xmalloc(sVar3 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 1)" (identifier "xmalloc") (argument_list "(sVar3 + 1)" (( "(") (binary_expression "sVar3 + 1" (identifier "sVar3") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "the_printed_command_except_trap = strcpy(__dest,__src);" (assignment_expression "the_printed_command_except_trap = strcpy(__dest,__src)" (identifier "the_printed_command_except_trap") (= "=") (call_expression "strcpy(__dest,__src)" (identifier "strcpy") (argument_list "(__dest,__src)" (( "(") (identifier "__dest") (, ",") (identifier "__src") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar2 = run_debug_trap();" (assignment_expression "iVar2 = run_debug_trap()" (identifier "iVar2") (= "=") (call_expression "run_debug_trap()" (identifier "run_debug_trap") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((debugging_mode == 0) || (iVar2 == 0)) {\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }\n    else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }" (if "if") (parenthesized_expression "((debugging_mode == 0) || (iVar2 == 0))" (( "(") (binary_expression "(debugging_mode == 0) || (iVar2 == 0)" (parenthesized_expression "(debugging_mode == 0)" (( "(") (binary_expression "debugging_mode == 0" (identifier "debugging_mode") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);\n    }" ({ "{") (expression_statement "uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);" (assignment_expression "uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2)" (identifier "uVar4") (= "=") (call_expression "evalexp(**(undefined4 **)(iVar1 + 4),1,param_2)" (identifier "evalexp") (argument_list "(**(undefined4 **)(iVar1 + 4),1,param_2)" (( "(") (pointer_expression "**(undefined4 **)(iVar1 + 4)" (* "*") (pointer_expression "*(undefined4 **)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (, ",") (number_literal "1") (, ",") (identifier "param_2") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      *param_2 = 1;\n      uVar4 = 0;\n    }" (else "else") (compound_statement "{\n      *param_2 = 1;\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "dispose_words(iVar1);" (call_expression "dispose_words(iVar1)" (identifier "dispose_words") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (expression_statement "*param_2 = 1;" (assignment_expression "*param_2 = 1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(type_2 *l,int *okp)

{
  char *__src;
  type_2 *var_2;
  int var_7;
  size_t var_13;
  char *__dest;
  type_1 iVar3;
  
  var_2 = var_1(l);
  if (var_2 != (type_2 *)0x0) {
    if (var_3 != 0) {
      var_4(var_2);
    }
    this_command_name = "((";
    command_string_index = 0;
    var_5(var_2);
    var_7 = var_6(0x41);
    if (var_7 == 0 && var_8 == 0) {
      if (var_9 != (char *)0x0) {
        var_10(var_9);
      }
      __src = the_printed_command;
      var_13 = var_11(the_printed_command);
      __dest = (char *)var_12(var_13 + 1);
      var_9 = var_14(__dest,__src);
    }
    var_7 = var_15();
    if ((var_16 == 0) || (var_7 == 0)) {
      iVar3 = var_17(var_2->word->word,1,okp);
    }
    else {
      *okp = 1;
      iVar3 = 0;
    }
    var_18(var_2);
    return iVar3;
  }
  *okp = 1;
  return 0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined8 __regparm3 MASKED(undefined4 param_1,undefined4 *param_2)

{
  char *__src;
  int iVar1;
  int iVar2;
  size_t sVar3;
  char *__dest;
  undefined8 uVar4;
  
  iVar1 = expand_words_no_vars(param_1);
  if (iVar1 != 0) {
    if (echo_command_at_execute != 0) {
      xtrace_print_arith_cmd(iVar1);
    }
    this_command_name = &DAT_000ef491;
    command_string_index = 0;
    print_arith_command(iVar1);
    iVar2 = signal_in_progress(0x41);
    if (iVar2 == 0 && running_trap == 0) {
      if (the_printed_command_except_trap != (char *)0x0) {
        free(the_printed_command_except_trap);
      }
      __src = the_printed_command;
      sVar3 = strlen(the_printed_command);
      __dest = (char *)xmalloc(sVar3 + 1);
      the_printed_command_except_trap = strcpy(__dest,__src);
    }
    iVar2 = run_debug_trap();
    if ((debugging_mode == 0) || (iVar2 == 0)) {
      uVar4 = evalexp(**(undefined4 **)(iVar1 + 4),1,param_2);
    }
    else {
      *param_2 = 1;
      uVar4 = 0;
    }
    dispose_words(iVar1);
    return uVar4;
  }
  *param_2 = 1;
  return 0;
}

