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

char * app_push(void)

{
  size_t __n;
  int *piVar1;
  void *__dest;
  
  piVar1 = (int *)xmalloc(0x38);
  *piVar1 = state;
  piVar1[1] = old_state;
  piVar1[2] = (int)out_string;
  piVar1[3] = out_buf._0_4_;
  piVar1[4] = out_buf._4_4_;
  piVar1[5] = out_buf._8_4_;
  piVar1[6] = out_buf._12_4_;
  piVar1[7] = out_buf._16_4_;
  piVar1[8] = add_newlines;
  if (saved_input == (char *)0x0) {
    piVar1[9] = 0;
  }
  else {
    __dest = (void *)xmalloc(saved_input_len);
    __n = saved_input_len;
    piVar1[9] = (int)__dest;
    memcpy(__dest,saved_input,__n);
    piVar1[10] = __n;
  }
  state = 0;
  saved_input = (char *)0x0;
  piVar1[0xb] = scrub_m68k_mri;
  add_newlines = 0;
  piVar1[0xc] = (int)mri_state;
  *(char *)(piVar1 + 0xd) = mri_last_ch;
  return (char *)piVar1;
}



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

undefined4 * FUN_00017290(void)

{
  size_t __n;
  undefined4 *puVar1;
  void *__dest;
  
  puVar1 = (undefined4 *)xmalloc(0x38);
  *puVar1 = DAT_000808e8;
  puVar1[1] = DAT_000808e4;
  puVar1[2] = DAT_000808e0;
  puVar1[3] = DAT_000808cc;
  puVar1[4] = DAT_000808d0;
  puVar1[5] = DAT_000808d4;
  puVar1[6] = DAT_000808d8;
  puVar1[7] = DAT_000808dc;
  puVar1[8] = DAT_000808c8;
  if (DAT_000808c4 == (void *)0x0) {
    puVar1[9] = 0;
  }
  else {
    __dest = (void *)xmalloc(DAT_000808c0);
    __n = DAT_000808c0;
    puVar1[9] = __dest;
    memcpy(__dest,DAT_000808c4,__n);
    puVar1[10] = __n;
  }
  DAT_000808e8 = 0;
  DAT_000808c4 = (void *)0x0;
  puVar1[0xb] = DAT_00080a00;
  DAT_000808c8 = 0;
  puVar1[0xc] = DAT_000788a4;
  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;
  return puVar1;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00017010
ADD EBX,0x60d68
SUB ESP,0xc
PUSH 0x38
CALL 0x00015770
ADD ESP,0x10
MOV ESI,EAX
MOV EAX,dword ptr [EBX + 0x88e8]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EBX + 0x88e4]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EBX + 0x88e0]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBX + 0x88cc]
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EBX + 0x88d0]
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,dword ptr [EBX + 0x88d4]
MOV dword ptr [ESI + 0x14],EAX
MOV EAX,dword ptr [EBX + 0x88d8]
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,dword ptr [EBX + 0x88dc]
MOV dword ptr [ESI + 0x1c],EAX
MOV EAX,dword ptr [EBX + 0x88c8]
MOV dword ptr [ESI + 0x20],EAX
MOV EAX,dword ptr [EBX + 0x88c4]
TEST EAX,EAX
JZ 0x00017378
SUB ESP,0xc
PUSH dword ptr [EBX + 0x88c0]
CALL 0x00015770
MOV EDI,dword ptr [EBX + 0x88c0]
ADD ESP,0xc
MOV dword ptr [ESI + 0x24],EAX
PUSH EDI
PUSH dword ptr [EBX + 0x88c4]
PUSH EAX
CALL 0x000150f0
MOV dword ptr [ESI + 0x28],EDI
ADD ESP,0x10
MOV dword ptr [EBX + 0x88e8],0x0
MOV EAX,dword ptr [EBX + 0x8a00]
MOV dword ptr [EBX + 0x88c4],0x0
MOV dword ptr [ESI + 0x2c],EAX
MOV EAX,dword ptr [EBX + 0x8a4]
MOV dword ptr [EBX + 0x88c8],0x0
MOV dword ptr [ESI + 0x30],EAX
MOVZX EAX,byte ptr [EBX + 0x8a2]
POP EBX
MOV byte ptr [ESI + 0x34],AL
MOV EAX,ESI
POP ESI
POP EDI
RET
MOV dword ptr [ESI + 0x24],0x0
JMP 0x00017334
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00017290(void)\n\n{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}\n\n" comment (function_definition "undefined4 * FUN_00017290(void)\n\n{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_00017290(void)" * (function_declarator "FUN_00017290(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x38);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x38)" identifier = (cast_expression "(undefined4 *)xmalloc(0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x38)" identifier (argument_list "(0x38)" ( number_literal ))))) ;) (expression_statement "*puVar1 = DAT_000808e8;" (assignment_expression "*puVar1 = DAT_000808e8" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = DAT_000808e4;" (assignment_expression "puVar1[1] = DAT_000808e4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = DAT_000808e0;" (assignment_expression "puVar1[2] = DAT_000808e0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = DAT_000808cc;" (assignment_expression "puVar1[3] = DAT_000808cc" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = DAT_000808d0;" (assignment_expression "puVar1[4] = DAT_000808d0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = DAT_000808d4;" (assignment_expression "puVar1[5] = DAT_000808d4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = DAT_000808d8;" (assignment_expression "puVar1[6] = DAT_000808d8" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[7] = DAT_000808dc;" (assignment_expression "puVar1[7] = DAT_000808dc" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[8] = DAT_000808c8;" (assignment_expression "puVar1[8] = DAT_000808c8" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" if (parenthesized_expression "(DAT_000808c4 == (void *)0x0)" ( (binary_expression "DAT_000808c4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[9] = 0;\n  }" { (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" else (compound_statement "{\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" { (expression_statement "__dest = (void *)xmalloc(DAT_000808c0);" (assignment_expression "__dest = (void *)xmalloc(DAT_000808c0)" identifier = (cast_expression "(void *)xmalloc(DAT_000808c0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_000808c0)" identifier (argument_list "(DAT_000808c0)" ( identifier ))))) ;) (expression_statement "__n = DAT_000808c0;" (assignment_expression "__n = DAT_000808c0" identifier = identifier) ;) (expression_statement "puVar1[9] = __dest;" (assignment_expression "puVar1[9] = __dest" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(__dest,DAT_000808c4,__n);" (call_expression "memcpy(__dest,DAT_000808c4,__n)" identifier (argument_list "(__dest,DAT_000808c4,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar1[10] = __n;" (assignment_expression "puVar1[10] = __n" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "DAT_000808e8 = 0;" (assignment_expression "DAT_000808e8 = 0" identifier = number_literal) ;) (expression_statement "DAT_000808c4 = (void *)0x0;" (assignment_expression "DAT_000808c4 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1[0xb] = DAT_00080a00;" (assignment_expression "puVar1[0xb] = DAT_00080a00" (subscript_expression "puVar1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_000808c8 = 0;" (assignment_expression "DAT_000808c8 = 0" identifier = number_literal) ;) (expression_statement "puVar1[0xc] = DAT_000788a4;" (assignment_expression "puVar1[0xc] = DAT_000788a4" (subscript_expression "puVar1[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;" (assignment_expression "*(undefined1 *)(puVar1 + 0xd) = DAT_000788a2" (pointer_expression "*(undefined1 *)(puVar1 + 0xd)" * (cast_expression "(undefined1 *)(puVar1 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xd)" ( (binary_expression "puVar1 + 0xd" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * app_push(void)\n\n{\n  size_t __n;\n  int *piVar1;\n  void *__dest;\n  \n  piVar1 = (int *)xmalloc(0x38);\n  *piVar1 = state;\n  piVar1[1] = old_state;\n  piVar1[2] = (int)out_string;\n  piVar1[3] = out_buf._0_4_;\n  piVar1[4] = out_buf._4_4_;\n  piVar1[5] = out_buf._8_4_;\n  piVar1[6] = out_buf._12_4_;\n  piVar1[7] = out_buf._16_4_;\n  piVar1[8] = add_newlines;\n  if (saved_input == (char *)0x0) {\n    piVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(saved_input_len);\n    __n = saved_input_len;\n    piVar1[9] = (int)__dest;\n    memcpy(__dest,saved_input,__n);\n    piVar1[10] = __n;\n  }\n  state = 0;\n  saved_input = (char *)0x0;\n  piVar1[0xb] = scrub_m68k_mri;\n  add_newlines = 0;\n  piVar1[0xc] = (int)mri_state;\n  *(char *)(piVar1 + 0xd) = mri_last_ch;\n  return (char *)piVar1;\n}\n\n" comment comment (function_definition "char * app_push(void)\n\n{\n  size_t __n;\n  int *piVar1;\n  void *__dest;\n  \n  piVar1 = (int *)xmalloc(0x38);\n  *piVar1 = state;\n  piVar1[1] = old_state;\n  piVar1[2] = (int)out_string;\n  piVar1[3] = out_buf._0_4_;\n  piVar1[4] = out_buf._4_4_;\n  piVar1[5] = out_buf._8_4_;\n  piVar1[6] = out_buf._12_4_;\n  piVar1[7] = out_buf._16_4_;\n  piVar1[8] = add_newlines;\n  if (saved_input == (char *)0x0) {\n    piVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(saved_input_len);\n    __n = saved_input_len;\n    piVar1[9] = (int)__dest;\n    memcpy(__dest,saved_input,__n);\n    piVar1[10] = __n;\n  }\n  state = 0;\n  saved_input = (char *)0x0;\n  piVar1[0xb] = scrub_m68k_mri;\n  add_newlines = 0;\n  piVar1[0xc] = (int)mri_state;\n  *(char *)(piVar1 + 0xd) = mri_last_ch;\n  return (char *)piVar1;\n}" primitive_type (pointer_declarator "* app_push(void)" * (function_declarator "app_push(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  size_t __n;\n  int *piVar1;\n  void *__dest;\n  \n  piVar1 = (int *)xmalloc(0x38);\n  *piVar1 = state;\n  piVar1[1] = old_state;\n  piVar1[2] = (int)out_string;\n  piVar1[3] = out_buf._0_4_;\n  piVar1[4] = out_buf._4_4_;\n  piVar1[5] = out_buf._8_4_;\n  piVar1[6] = out_buf._12_4_;\n  piVar1[7] = out_buf._16_4_;\n  piVar1[8] = add_newlines;\n  if (saved_input == (char *)0x0) {\n    piVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(saved_input_len);\n    __n = saved_input_len;\n    piVar1[9] = (int)__dest;\n    memcpy(__dest,saved_input,__n);\n    piVar1[10] = __n;\n  }\n  state = 0;\n  saved_input = (char *)0x0;\n  piVar1[0xb] = scrub_m68k_mri;\n  add_newlines = 0;\n  piVar1[0xc] = (int)mri_state;\n  *(char *)(piVar1 + 0xd) = mri_last_ch;\n  return (char *)piVar1;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "piVar1 = (int *)xmalloc(0x38);" (assignment_expression "piVar1 = (int *)xmalloc(0x38)" identifier = (cast_expression "(int *)xmalloc(0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x38)" identifier (argument_list "(0x38)" ( number_literal ))))) ;) (expression_statement "*piVar1 = state;" (assignment_expression "*piVar1 = state" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = old_state;" (assignment_expression "piVar1[1] = old_state" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = (int)out_string;" (assignment_expression "piVar1[2] = (int)out_string" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)out_string" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar1[3] = out_buf._0_4_;" (assignment_expression "piVar1[3] = out_buf._0_4_" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = (field_expression "out_buf._0_4_" identifier . field_identifier)) ;) (expression_statement "piVar1[4] = out_buf._4_4_;" (assignment_expression "piVar1[4] = out_buf._4_4_" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = (field_expression "out_buf._4_4_" identifier . field_identifier)) ;) (expression_statement "piVar1[5] = out_buf._8_4_;" (assignment_expression "piVar1[5] = out_buf._8_4_" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (field_expression "out_buf._8_4_" identifier . field_identifier)) ;) (expression_statement "piVar1[6] = out_buf._12_4_;" (assignment_expression "piVar1[6] = out_buf._12_4_" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = (field_expression "out_buf._12_4_" identifier . field_identifier)) ;) (expression_statement "piVar1[7] = out_buf._16_4_;" (assignment_expression "piVar1[7] = out_buf._16_4_" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = (field_expression "out_buf._16_4_" identifier . field_identifier)) ;) (expression_statement "piVar1[8] = add_newlines;" (assignment_expression "piVar1[8] = add_newlines" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (saved_input == (char *)0x0) {\n    piVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(saved_input_len);\n    __n = saved_input_len;\n    piVar1[9] = (int)__dest;\n    memcpy(__dest,saved_input,__n);\n    piVar1[10] = __n;\n  }" if (parenthesized_expression "(saved_input == (char *)0x0)" ( (binary_expression "saved_input == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar1[9] = 0;\n  }" { (expression_statement "piVar1[9] = 0;" (assignment_expression "piVar1[9] = 0" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    __dest = (void *)xmalloc(saved_input_len);\n    __n = saved_input_len;\n    piVar1[9] = (int)__dest;\n    memcpy(__dest,saved_input,__n);\n    piVar1[10] = __n;\n  }" else (compound_statement "{\n    __dest = (void *)xmalloc(saved_input_len);\n    __n = saved_input_len;\n    piVar1[9] = (int)__dest;\n    memcpy(__dest,saved_input,__n);\n    piVar1[10] = __n;\n  }" { (expression_statement "__dest = (void *)xmalloc(saved_input_len);" (assignment_expression "__dest = (void *)xmalloc(saved_input_len)" identifier = (cast_expression "(void *)xmalloc(saved_input_len)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(saved_input_len)" identifier (argument_list "(saved_input_len)" ( identifier ))))) ;) (expression_statement "__n = saved_input_len;" (assignment_expression "__n = saved_input_len" identifier = identifier) ;) (expression_statement "piVar1[9] = (int)__dest;" (assignment_expression "piVar1[9] = (int)__dest" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = (cast_expression "(int)__dest" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "memcpy(__dest,saved_input,__n);" (call_expression "memcpy(__dest,saved_input,__n)" identifier (argument_list "(__dest,saved_input,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "piVar1[10] = __n;" (assignment_expression "piVar1[10] = __n" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "state = 0;" (assignment_expression "state = 0" identifier = number_literal) ;) (expression_statement "saved_input = (char *)0x0;" (assignment_expression "saved_input = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar1[0xb] = scrub_m68k_mri;" (assignment_expression "piVar1[0xb] = scrub_m68k_mri" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "add_newlines = 0;" (assignment_expression "add_newlines = 0" identifier = number_literal) ;) (expression_statement "piVar1[0xc] = (int)mri_state;" (assignment_expression "piVar1[0xc] = (int)mri_state" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = (cast_expression "(int)mri_state" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(piVar1 + 0xd) = mri_last_ch;" (assignment_expression "*(char *)(piVar1 + 0xd) = mri_last_ch" (pointer_expression "*(char *)(piVar1 + 0xd)" * (cast_expression "(char *)(piVar1 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 0xd)" ( (binary_expression "piVar1 + 0xd" identifier + number_literal) )))) = identifier) ;) (return_statement "return (char *)piVar1;" return (cast_expression "(char *)piVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) })))
(translation_unit "undefined4 * FUN_00017290(void)\n\n{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}\n\n" (function_definition "undefined4 * FUN_00017290(void)\n\n{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_00017290(void)" * (function_declarator "FUN_00017290(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}" { (declaration "size_t __n;" primitive_type identifier ;) (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "void *__dest;" primitive_type (pointer_declarator "*__dest" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x38);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x38)" identifier = (cast_expression "(undefined4 *)xmalloc(0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x38)" identifier (argument_list "(0x38)" ( number_literal ))))) ;) (expression_statement "*puVar1 = DAT_000808e8;" (assignment_expression "*puVar1 = DAT_000808e8" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = DAT_000808e4;" (assignment_expression "puVar1[1] = DAT_000808e4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[2] = DAT_000808e0;" (assignment_expression "puVar1[2] = DAT_000808e0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[3] = DAT_000808cc;" (assignment_expression "puVar1[3] = DAT_000808cc" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = DAT_000808d0;" (assignment_expression "puVar1[4] = DAT_000808d0" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[5] = DAT_000808d4;" (assignment_expression "puVar1[5] = DAT_000808d4" (subscript_expression "puVar1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[6] = DAT_000808d8;" (assignment_expression "puVar1[6] = DAT_000808d8" (subscript_expression "puVar1[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[7] = DAT_000808dc;" (assignment_expression "puVar1[7] = DAT_000808dc" (subscript_expression "puVar1[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[8] = DAT_000808c8;" (assignment_expression "puVar1[8] = DAT_000808c8" (subscript_expression "puVar1[8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" if (parenthesized_expression "(DAT_000808c4 == (void *)0x0)" ( (binary_expression "DAT_000808c4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar1[9] = 0;\n  }" { (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" else (compound_statement "{\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" { (expression_statement "__dest = (void *)xmalloc(DAT_000808c0);" (assignment_expression "__dest = (void *)xmalloc(DAT_000808c0)" identifier = (cast_expression "(void *)xmalloc(DAT_000808c0)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(DAT_000808c0)" identifier (argument_list "(DAT_000808c0)" ( identifier ))))) ;) (expression_statement "__n = DAT_000808c0;" (assignment_expression "__n = DAT_000808c0" identifier = identifier) ;) (expression_statement "puVar1[9] = __dest;" (assignment_expression "puVar1[9] = __dest" (subscript_expression "puVar1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "memcpy(__dest,DAT_000808c4,__n);" (call_expression "memcpy(__dest,DAT_000808c4,__n)" identifier (argument_list "(__dest,DAT_000808c4,__n)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar1[10] = __n;" (assignment_expression "puVar1[10] = __n" (subscript_expression "puVar1[10]" identifier [ number_literal ]) = identifier) ;) }))) (expression_statement "DAT_000808e8 = 0;" (assignment_expression "DAT_000808e8 = 0" identifier = number_literal) ;) (expression_statement "DAT_000808c4 = (void *)0x0;" (assignment_expression "DAT_000808c4 = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1[0xb] = DAT_00080a00;" (assignment_expression "puVar1[0xb] = DAT_00080a00" (subscript_expression "puVar1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_000808c8 = 0;" (assignment_expression "DAT_000808c8 = 0" identifier = number_literal) ;) (expression_statement "puVar1[0xc] = DAT_000788a4;" (assignment_expression "puVar1[0xc] = DAT_000788a4" (subscript_expression "puVar1[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;" (assignment_expression "*(undefined1 *)(puVar1 + 0xd) = DAT_000788a2" (pointer_expression "*(undefined1 *)(puVar1 + 0xd)" * (cast_expression "(undefined1 *)(puVar1 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0xd)" ( (binary_expression "puVar1 + 0xd" identifier + number_literal) )))) = identifier) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * FUN_00017290(void)\n\n{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00017290(void)" (* "*") (function_declarator "FUN_00017290(void)" (identifier "FUN_00017290") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  size_t __n;\n  undefined4 *puVar1;\n  void *__dest;\n  \n  puVar1 = (undefined4 *)xmalloc(0x38);\n  *puVar1 = DAT_000808e8;\n  puVar1[1] = DAT_000808e4;\n  puVar1[2] = DAT_000808e0;\n  puVar1[3] = DAT_000808cc;\n  puVar1[4] = DAT_000808d0;\n  puVar1[5] = DAT_000808d4;\n  puVar1[6] = DAT_000808d8;\n  puVar1[7] = DAT_000808dc;\n  puVar1[8] = DAT_000808c8;\n  if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }\n  DAT_000808e8 = 0;\n  DAT_000808c4 = (void *)0x0;\n  puVar1[0xb] = DAT_00080a00;\n  DAT_000808c8 = 0;\n  puVar1[0xc] = DAT_000788a4;\n  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;\n  return puVar1;\n}" ({ "{") (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "void *__dest;" (primitive_type "void") (pointer_declarator "*__dest" (* "*") (identifier "__dest")) (; ";")) (expression_statement "puVar1 = (undefined4 *)xmalloc(0x38);" (assignment_expression "puVar1 = (undefined4 *)xmalloc(0x38)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)xmalloc(0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x38)" (identifier "xmalloc") (argument_list "(0x38)" (( "(") (number_literal "0x38") () ")"))))) (; ";")) (expression_statement "*puVar1 = DAT_000808e8;" (assignment_expression "*puVar1 = DAT_000808e8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "DAT_000808e8")) (; ";")) (expression_statement "puVar1[1] = DAT_000808e4;" (assignment_expression "puVar1[1] = DAT_000808e4" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "DAT_000808e4")) (; ";")) (expression_statement "puVar1[2] = DAT_000808e0;" (assignment_expression "puVar1[2] = DAT_000808e0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "DAT_000808e0")) (; ";")) (expression_statement "puVar1[3] = DAT_000808cc;" (assignment_expression "puVar1[3] = DAT_000808cc" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "DAT_000808cc")) (; ";")) (expression_statement "puVar1[4] = DAT_000808d0;" (assignment_expression "puVar1[4] = DAT_000808d0" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "DAT_000808d0")) (; ";")) (expression_statement "puVar1[5] = DAT_000808d4;" (assignment_expression "puVar1[5] = DAT_000808d4" (subscript_expression "puVar1[5]" (identifier "puVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "DAT_000808d4")) (; ";")) (expression_statement "puVar1[6] = DAT_000808d8;" (assignment_expression "puVar1[6] = DAT_000808d8" (subscript_expression "puVar1[6]" (identifier "puVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "DAT_000808d8")) (; ";")) (expression_statement "puVar1[7] = DAT_000808dc;" (assignment_expression "puVar1[7] = DAT_000808dc" (subscript_expression "puVar1[7]" (identifier "puVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "DAT_000808dc")) (; ";")) (expression_statement "puVar1[8] = DAT_000808c8;" (assignment_expression "puVar1[8] = DAT_000808c8" (subscript_expression "puVar1[8]" (identifier "puVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "DAT_000808c8")) (; ";")) (if_statement "if (DAT_000808c4 == (void *)0x0) {\n    puVar1[9] = 0;\n  }\n  else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" (if "if") (parenthesized_expression "(DAT_000808c4 == (void *)0x0)" (( "(") (binary_expression "DAT_000808c4 == (void *)0x0" (identifier "DAT_000808c4") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar1[9] = 0;\n  }" ({ "{") (expression_statement "puVar1[9] = 0;" (assignment_expression "puVar1[9] = 0" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" (else "else") (compound_statement "{\n    __dest = (void *)xmalloc(DAT_000808c0);\n    __n = DAT_000808c0;\n    puVar1[9] = __dest;\n    memcpy(__dest,DAT_000808c4,__n);\n    puVar1[10] = __n;\n  }" ({ "{") (expression_statement "__dest = (void *)xmalloc(DAT_000808c0);" (assignment_expression "__dest = (void *)xmalloc(DAT_000808c0)" (identifier "__dest") (= "=") (cast_expression "(void *)xmalloc(DAT_000808c0)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(DAT_000808c0)" (identifier "xmalloc") (argument_list "(DAT_000808c0)" (( "(") (identifier "DAT_000808c0") () ")"))))) (; ";")) (expression_statement "__n = DAT_000808c0;" (assignment_expression "__n = DAT_000808c0" (identifier "__n") (= "=") (identifier "DAT_000808c0")) (; ";")) (expression_statement "puVar1[9] = __dest;" (assignment_expression "puVar1[9] = __dest" (subscript_expression "puVar1[9]" (identifier "puVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "__dest")) (; ";")) (expression_statement "memcpy(__dest,DAT_000808c4,__n);" (call_expression "memcpy(__dest,DAT_000808c4,__n)" (identifier "memcpy") (argument_list "(__dest,DAT_000808c4,__n)" (( "(") (identifier "__dest") (, ",") (identifier "DAT_000808c4") (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "puVar1[10] = __n;" (assignment_expression "puVar1[10] = __n" (subscript_expression "puVar1[10]" (identifier "puVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "__n")) (; ";")) (} "}")))) (expression_statement "DAT_000808e8 = 0;" (assignment_expression "DAT_000808e8 = 0" (identifier "DAT_000808e8") (= "=") (number_literal "0")) (; ";")) (expression_statement "DAT_000808c4 = (void *)0x0;" (assignment_expression "DAT_000808c4 = (void *)0x0" (identifier "DAT_000808c4") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "puVar1[0xb] = DAT_00080a00;" (assignment_expression "puVar1[0xb] = DAT_00080a00" (subscript_expression "puVar1[0xb]" (identifier "puVar1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "DAT_00080a00")) (; ";")) (expression_statement "DAT_000808c8 = 0;" (assignment_expression "DAT_000808c8 = 0" (identifier "DAT_000808c8") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[0xc] = DAT_000788a4;" (assignment_expression "puVar1[0xc] = DAT_000788a4" (subscript_expression "puVar1[0xc]" (identifier "puVar1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (identifier "DAT_000788a4")) (; ";")) (expression_statement "*(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;" (assignment_expression "*(undefined1 *)(puVar1 + 0xd) = DAT_000788a2" (pointer_expression "*(undefined1 *)(puVar1 + 0xd)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0xd)" (( "(") (binary_expression "puVar1 + 0xd" (identifier "puVar1") (+ "+") (number_literal "0xd")) () ")")))) (= "=") (identifier "DAT_000788a2")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

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

char * function_1(void)

{
  size_t __n;
  int *var_4;
  void *__dest;
  
  var_4 = (int *)var_1(0x38);
  *var_4 = state;
  var_4[1] = old_state;
  var_4[2] = (int)out_string;
  var_4[3] = out_buf._0_4_;
  var_4[4] = out_buf._4_4_;
  var_4[5] = out_buf._8_4_;
  var_4[6] = out_buf._12_4_;
  var_4[7] = out_buf._16_4_;
  var_4[8] = add_newlines;
  if (var_2 == (char *)0x0) {
    var_4[9] = 0;
  }
  else {
    __dest = (void *)var_1(saved_input_len);
    __n = saved_input_len;
    var_4[9] = (int)__dest;
    var_3(__dest,var_2,__n);
    var_4[10] = __n;
  }
  state = 0;
  var_2 = (char *)0x0;
  var_4[0xb] = scrub_m68k_mri;
  add_newlines = 0;
  var_4[0xc] = (int)mri_state;
  *(char *)(var_4 + 0xd) = mri_last_ch;
  return (char *)var_4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) alternative: (else_clause (compound_statement (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 (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (identifier))) (return_statement (identifier)))))

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

undefined4 * MASKED(void)

{
  size_t __n;
  undefined4 *puVar1;
  void *__dest;
  
  puVar1 = (undefined4 *)xmalloc(0x38);
  *puVar1 = DAT_000808e8;
  puVar1[1] = DAT_000808e4;
  puVar1[2] = DAT_000808e0;
  puVar1[3] = DAT_000808cc;
  puVar1[4] = DAT_000808d0;
  puVar1[5] = DAT_000808d4;
  puVar1[6] = DAT_000808d8;
  puVar1[7] = DAT_000808dc;
  puVar1[8] = DAT_000808c8;
  if (DAT_000808c4 == (void *)0x0) {
    puVar1[9] = 0;
  }
  else {
    __dest = (void *)xmalloc(DAT_000808c0);
    __n = DAT_000808c0;
    puVar1[9] = __dest;
    memcpy(__dest,DAT_000808c4,__n);
    puVar1[10] = __n;
  }
  DAT_000808e8 = 0;
  DAT_000808c4 = (void *)0x0;
  puVar1[0xb] = DAT_00080a00;
  DAT_000808c8 = 0;
  puVar1[0xc] = DAT_000788a4;
  *(undefined1 *)(puVar1 + 0xd) = DAT_000788a2;
  return puVar1;
}

