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

void app_pop(char *arg)

{
  state = *(int *)arg;
  old_state = *(int *)(arg + 4);
  out_string = *(char **)(arg + 8);
  out_buf._0_4_ = *(undefined4 *)(arg + 0xc);
  out_buf._4_4_ = *(undefined4 *)(arg + 0x10);
  out_buf._8_4_ = *(undefined4 *)(arg + 0x14);
  out_buf._12_4_ = *(undefined4 *)(arg + 0x18);
  out_buf._16_4_ = *(undefined4 *)(arg + 0x1c);
  add_newlines = *(int *)(arg + 0x20);
  if (*(void **)(arg + 0x24) == (void *)0x0) {
    saved_input = (char *)0x0;
  }
  else {
    if (0x8000 < *(uint *)(arg + 0x28)) {
                    /* WARNING: Subroutine does not return */
      as_abort("../../gas/app.c",0x133,"app_pop");
    }
    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));
    saved_input_len = *(size_t *)(arg + 0x28);
    saved_input = input_buffer;
    free(*(void **)(arg + 0x24));
  }
  mri_state = *(char **)(arg + 0x2c);
  mri_last_ch = arg[0x30];
  free(arg);
  return;
}



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

void FUN_00019340(undefined4 *param_1)

{
  uint __n;
  
  DAT_00088588 = *param_1;
  DAT_00088584 = param_1[1];
  DAT_00088580 = param_1[2];
  DAT_0008856c = param_1[3];
  DAT_00088570 = param_1[4];
  DAT_00088574 = param_1[5];
  DAT_00088578 = param_1[6];
  DAT_0008857c = param_1[7];
  DAT_00088568 = param_1[8];
  if ((void *)param_1[9] == (void *)0x0) {
    DAT_00088564 = (undefined *)0x0;
  }
  else {
    __n = param_1[10];
    if (0x8000 < __n) {
                    /* WARNING: Subroutine does not return */
      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);
    }
    memcpy(&DAT_00080560,(void *)param_1[9],__n);
    DAT_00088560 = param_1[10];
    DAT_00088564 = &DAT_00080560;
    free((void *)param_1[9]);
  }
  DAT_00080544 = param_1[0xb];
  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);
  free(param_1);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00018ff0
ADD EBX,0x66cb4
MOV EAX,dword ptr [ESI]
MOV dword ptr [EBX + 0x8588],EAX
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [EBX + 0x8584],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [EBX + 0x8580],EAX
MOV EAX,dword ptr [ESI + 0xc]
MOV dword ptr [EBX + 0x856c],EAX
MOV EAX,dword ptr [ESI + 0x10]
MOV dword ptr [EBX + 0x8570],EAX
MOV EAX,dword ptr [ESI + 0x14]
MOV dword ptr [EBX + 0x8574],EAX
MOV EAX,dword ptr [ESI + 0x18]
MOV dword ptr [EBX + 0x8578],EAX
MOV EAX,dword ptr [ESI + 0x1c]
MOV dword ptr [EBX + 0x857c],EAX
MOV EAX,dword ptr [ESI + 0x20]
MOV dword ptr [EBX + 0x8568],EAX
MOV EAX,dword ptr [ESI + 0x24]
TEST EAX,EAX
JZ 0x00019408
MOV EDX,dword ptr [ESI + 0x28]
CMP EDX,0x8000
JA 0x00019414
SUB ESP,0x4
LEA EDI,[EBX + 0x560]
PUSH EDX
PUSH EAX
PUSH EDI
CALL 0x000170f0
MOV EAX,dword ptr [ESI + 0x28]
MOV dword ptr [EBX + 0x8564],EDI
MOV dword ptr [EBX + 0x8560],EAX
POP EAX
PUSH dword ptr [ESI + 0x24]
CALL 0x00017770
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x2c]
SUB ESP,0xc
MOV dword ptr [EBX + 0x544],EAX
MOVZX EAX,byte ptr [ESI + 0x30]
PUSH ESI
MOV byte ptr [EBX + 0x542],AL
CALL 0x00017770
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV dword ptr [EBX + 0x8564],0x0
JMP 0x000193e0
LEA EAX,[EBX + 0xfffd9210]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfffd9008]
PUSH 0x133
PUSH EAX
CALL 0x0002edb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00019340(undefined4 *param_1)\n\n{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_00019340(undefined4 *param_1)\n\n{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00019340(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (expression_statement "DAT_00088588 = *param_1;" (assignment_expression "DAT_00088588 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "DAT_00088584 = param_1[1];" (assignment_expression "DAT_00088584 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088580 = param_1[2];" (assignment_expression "DAT_00088580 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "DAT_0008856c = param_1[3];" (assignment_expression "DAT_0008856c = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088570 = param_1[4];" (assignment_expression "DAT_00088570 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088574 = param_1[5];" (assignment_expression "DAT_00088574 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088578 = param_1[6];" (assignment_expression "DAT_00088578 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "DAT_0008857c = param_1[7];" (assignment_expression "DAT_0008857c = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088568 = param_1[8];" (assignment_expression "DAT_00088568 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (if_statement "if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" if (parenthesized_expression "((void *)param_1[9] == (void *)0x0)" ( (binary_expression "(void *)param_1[9] == (void *)0x0" (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00088564 = (undefined *)0x0;\n  }" { (expression_statement "DAT_00088564 = (undefined *)0x0;" (assignment_expression "DAT_00088564 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" else (compound_statement "{\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" { (expression_statement "__n = param_1[10];" (assignment_expression "__n = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (0x8000 < __n) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }" if (parenthesized_expression "(0x8000 < __n)" ( (binary_expression "0x8000 < __n" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }" { comment (expression_statement "FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);" (call_expression "FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n)" identifier (argument_list "("../../gas/app.c",0x133,"app_pop",__n)" ( (string_literal ""../../gas/app.c"" " string_content ") , number_literal , (string_literal ""app_pop"" " string_content ") , identifier ))) ;) })) (expression_statement "memcpy(&DAT_00080560,(void *)param_1[9],__n);" (call_expression "memcpy(&DAT_00080560,(void *)param_1[9],__n)" identifier (argument_list "(&DAT_00080560,(void *)param_1[9],__n)" ( (pointer_expression "&DAT_00080560" & identifier) , (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "DAT_00088560 = param_1[10];" (assignment_expression "DAT_00088560 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088564 = &DAT_00080560;" (assignment_expression "DAT_00088564 = &DAT_00080560" identifier = (pointer_expression "&DAT_00080560" & identifier)) ;) (expression_statement "free((void *)param_1[9]);" (call_expression "free((void *)param_1[9])" identifier (argument_list "((void *)param_1[9])" ( (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) ))) ;) }))) (expression_statement "DAT_00080544 = param_1[0xb];" (assignment_expression "DAT_00080544 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "DAT_00080542 = *(undefined1 *)(param_1 + 0xc);" (assignment_expression "DAT_00080542 = *(undefined1 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid app_pop(char *arg)\n\n{\n  state = *(int *)arg;\n  old_state = *(int *)(arg + 4);\n  out_string = *(char **)(arg + 8);\n  out_buf._0_4_ = *(undefined4 *)(arg + 0xc);\n  out_buf._4_4_ = *(undefined4 *)(arg + 0x10);\n  out_buf._8_4_ = *(undefined4 *)(arg + 0x14);\n  out_buf._12_4_ = *(undefined4 *)(arg + 0x18);\n  out_buf._16_4_ = *(undefined4 *)(arg + 0x1c);\n  add_newlines = *(int *)(arg + 0x20);\n  if (*(void **)(arg + 0x24) == (void *)0x0) {\n    saved_input = (char *)0x0;\n  }\n  else {\n    if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }\n    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));\n    saved_input_len = *(size_t *)(arg + 0x28);\n    saved_input = input_buffer;\n    free(*(void **)(arg + 0x24));\n  }\n  mri_state = *(char **)(arg + 0x2c);\n  mri_last_ch = arg[0x30];\n  free(arg);\n  return;\n}\n\n" comment (function_definition "void app_pop(char *arg)\n\n{\n  state = *(int *)arg;\n  old_state = *(int *)(arg + 4);\n  out_string = *(char **)(arg + 8);\n  out_buf._0_4_ = *(undefined4 *)(arg + 0xc);\n  out_buf._4_4_ = *(undefined4 *)(arg + 0x10);\n  out_buf._8_4_ = *(undefined4 *)(arg + 0x14);\n  out_buf._12_4_ = *(undefined4 *)(arg + 0x18);\n  out_buf._16_4_ = *(undefined4 *)(arg + 0x1c);\n  add_newlines = *(int *)(arg + 0x20);\n  if (*(void **)(arg + 0x24) == (void *)0x0) {\n    saved_input = (char *)0x0;\n  }\n  else {\n    if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }\n    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));\n    saved_input_len = *(size_t *)(arg + 0x28);\n    saved_input = input_buffer;\n    free(*(void **)(arg + 0x24));\n  }\n  mri_state = *(char **)(arg + 0x2c);\n  mri_last_ch = arg[0x30];\n  free(arg);\n  return;\n}" primitive_type (function_declarator "app_pop(char *arg)" identifier (parameter_list "(char *arg)" ( (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  state = *(int *)arg;\n  old_state = *(int *)(arg + 4);\n  out_string = *(char **)(arg + 8);\n  out_buf._0_4_ = *(undefined4 *)(arg + 0xc);\n  out_buf._4_4_ = *(undefined4 *)(arg + 0x10);\n  out_buf._8_4_ = *(undefined4 *)(arg + 0x14);\n  out_buf._12_4_ = *(undefined4 *)(arg + 0x18);\n  out_buf._16_4_ = *(undefined4 *)(arg + 0x1c);\n  add_newlines = *(int *)(arg + 0x20);\n  if (*(void **)(arg + 0x24) == (void *)0x0) {\n    saved_input = (char *)0x0;\n  }\n  else {\n    if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }\n    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));\n    saved_input_len = *(size_t *)(arg + 0x28);\n    saved_input = input_buffer;\n    free(*(void **)(arg + 0x24));\n  }\n  mri_state = *(char **)(arg + 0x2c);\n  mri_last_ch = arg[0x30];\n  free(arg);\n  return;\n}" { (expression_statement "state = *(int *)arg;" (assignment_expression "state = *(int *)arg" identifier = (pointer_expression "*(int *)arg" * (cast_expression "(int *)arg" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "old_state = *(int *)(arg + 4);" (assignment_expression "old_state = *(int *)(arg + 4)" identifier = (pointer_expression "*(int *)(arg + 4)" * (cast_expression "(int *)(arg + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 4)" ( (binary_expression "arg + 4" identifier + number_literal) ))))) ;) (expression_statement "out_string = *(char **)(arg + 8);" (assignment_expression "out_string = *(char **)(arg + 8)" identifier = (pointer_expression "*(char **)(arg + 8)" * (cast_expression "(char **)(arg + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 8)" ( (binary_expression "arg + 8" identifier + number_literal) ))))) ;) (expression_statement "out_buf._0_4_ = *(undefined4 *)(arg + 0xc);" (assignment_expression "out_buf._0_4_ = *(undefined4 *)(arg + 0xc)" (field_expression "out_buf._0_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(arg + 0xc)" * (cast_expression "(undefined4 *)(arg + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0xc)" ( (binary_expression "arg + 0xc" identifier + number_literal) ))))) ;) (expression_statement "out_buf._4_4_ = *(undefined4 *)(arg + 0x10);" (assignment_expression "out_buf._4_4_ = *(undefined4 *)(arg + 0x10)" (field_expression "out_buf._4_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(arg + 0x10)" * (cast_expression "(undefined4 *)(arg + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x10)" ( (binary_expression "arg + 0x10" identifier + number_literal) ))))) ;) (expression_statement "out_buf._8_4_ = *(undefined4 *)(arg + 0x14);" (assignment_expression "out_buf._8_4_ = *(undefined4 *)(arg + 0x14)" (field_expression "out_buf._8_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(arg + 0x14)" * (cast_expression "(undefined4 *)(arg + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x14)" ( (binary_expression "arg + 0x14" identifier + number_literal) ))))) ;) (expression_statement "out_buf._12_4_ = *(undefined4 *)(arg + 0x18);" (assignment_expression "out_buf._12_4_ = *(undefined4 *)(arg + 0x18)" (field_expression "out_buf._12_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(arg + 0x18)" * (cast_expression "(undefined4 *)(arg + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x18)" ( (binary_expression "arg + 0x18" identifier + number_literal) ))))) ;) (expression_statement "out_buf._16_4_ = *(undefined4 *)(arg + 0x1c);" (assignment_expression "out_buf._16_4_ = *(undefined4 *)(arg + 0x1c)" (field_expression "out_buf._16_4_" identifier . field_identifier) = (pointer_expression "*(undefined4 *)(arg + 0x1c)" * (cast_expression "(undefined4 *)(arg + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x1c)" ( (binary_expression "arg + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "add_newlines = *(int *)(arg + 0x20);" (assignment_expression "add_newlines = *(int *)(arg + 0x20)" identifier = (pointer_expression "*(int *)(arg + 0x20)" * (cast_expression "(int *)(arg + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x20)" ( (binary_expression "arg + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (*(void **)(arg + 0x24) == (void *)0x0) {\n    saved_input = (char *)0x0;\n  }\n  else {\n    if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }\n    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));\n    saved_input_len = *(size_t *)(arg + 0x28);\n    saved_input = input_buffer;\n    free(*(void **)(arg + 0x24));\n  }" if (parenthesized_expression "(*(void **)(arg + 0x24) == (void *)0x0)" ( (binary_expression "*(void **)(arg + 0x24) == (void *)0x0" (pointer_expression "*(void **)(arg + 0x24)" * (cast_expression "(void **)(arg + 0x24)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 0x24)" ( (binary_expression "arg + 0x24" identifier + number_literal) )))) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    saved_input = (char *)0x0;\n  }" { (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)) ;) }) (else_clause "else {\n    if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }\n    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));\n    saved_input_len = *(size_t *)(arg + 0x28);\n    saved_input = input_buffer;\n    free(*(void **)(arg + 0x24));\n  }" else (compound_statement "{\n    if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }\n    memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));\n    saved_input_len = *(size_t *)(arg + 0x28);\n    saved_input = input_buffer;\n    free(*(void **)(arg + 0x24));\n  }" { (if_statement "if (0x8000 < *(uint *)(arg + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }" if (parenthesized_expression "(0x8000 < *(uint *)(arg + 0x28))" ( (binary_expression "0x8000 < *(uint *)(arg + 0x28)" number_literal < (pointer_expression "*(uint *)(arg + 0x28)" * (cast_expression "(uint *)(arg + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x28)" ( (binary_expression "arg + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/app.c",0x133,"app_pop");\n    }" { comment (expression_statement "as_abort("../../gas/app.c",0x133,"app_pop");" (call_expression "as_abort("../../gas/app.c",0x133,"app_pop")" identifier (argument_list "("../../gas/app.c",0x133,"app_pop")" ( (string_literal ""../../gas/app.c"" " string_content ") , number_literal , (string_literal ""app_pop"" " string_content ") ))) ;) })) (expression_statement "memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28));" (call_expression "memcpy(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28))" identifier (argument_list "(input_buffer,*(void **)(arg + 0x24),*(uint *)(arg + 0x28))" ( identifier , (pointer_expression "*(void **)(arg + 0x24)" * (cast_expression "(void **)(arg + 0x24)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 0x24)" ( (binary_expression "arg + 0x24" identifier + number_literal) )))) , (pointer_expression "*(uint *)(arg + 0x28)" * (cast_expression "(uint *)(arg + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x28)" ( (binary_expression "arg + 0x28" identifier + number_literal) )))) ))) ;) (expression_statement "saved_input_len = *(size_t *)(arg + 0x28);" (assignment_expression "saved_input_len = *(size_t *)(arg + 0x28)" identifier = (pointer_expression "*(size_t *)(arg + 0x28)" * (cast_expression "(size_t *)(arg + 0x28)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(arg + 0x28)" ( (binary_expression "arg + 0x28" identifier + number_literal) ))))) ;) (expression_statement "saved_input = input_buffer;" (assignment_expression "saved_input = input_buffer" identifier = identifier) ;) (expression_statement "free(*(void **)(arg + 0x24));" (call_expression "free(*(void **)(arg + 0x24))" identifier (argument_list "(*(void **)(arg + 0x24))" ( (pointer_expression "*(void **)(arg + 0x24)" * (cast_expression "(void **)(arg + 0x24)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 0x24)" ( (binary_expression "arg + 0x24" identifier + number_literal) )))) ))) ;) }))) (expression_statement "mri_state = *(char **)(arg + 0x2c);" (assignment_expression "mri_state = *(char **)(arg + 0x2c)" identifier = (pointer_expression "*(char **)(arg + 0x2c)" * (cast_expression "(char **)(arg + 0x2c)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(arg + 0x2c)" ( (binary_expression "arg + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "mri_last_ch = arg[0x30];" (assignment_expression "mri_last_ch = arg[0x30]" identifier = (subscript_expression "arg[0x30]" identifier [ number_literal ])) ;) (expression_statement "free(arg);" (call_expression "free(arg)" identifier (argument_list "(arg)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00019340(undefined4 *param_1)\n\n{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}\n\n" (function_definition "void FUN_00019340(undefined4 *param_1)\n\n{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_00019340(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}" { (declaration "uint __n;" type_identifier identifier ;) (expression_statement "DAT_00088588 = *param_1;" (assignment_expression "DAT_00088588 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "DAT_00088584 = param_1[1];" (assignment_expression "DAT_00088584 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088580 = param_1[2];" (assignment_expression "DAT_00088580 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "DAT_0008856c = param_1[3];" (assignment_expression "DAT_0008856c = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088570 = param_1[4];" (assignment_expression "DAT_00088570 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088574 = param_1[5];" (assignment_expression "DAT_00088574 = param_1[5]" identifier = (subscript_expression "param_1[5]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088578 = param_1[6];" (assignment_expression "DAT_00088578 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "DAT_0008857c = param_1[7];" (assignment_expression "DAT_0008857c = param_1[7]" identifier = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088568 = param_1[8];" (assignment_expression "DAT_00088568 = param_1[8]" identifier = (subscript_expression "param_1[8]" identifier [ number_literal ])) ;) (if_statement "if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" if (parenthesized_expression "((void *)param_1[9] == (void *)0x0)" ( (binary_expression "(void *)param_1[9] == (void *)0x0" (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DAT_00088564 = (undefined *)0x0;\n  }" { (expression_statement "DAT_00088564 = (undefined *)0x0;" (assignment_expression "DAT_00088564 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" else (compound_statement "{\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" { (expression_statement "__n = param_1[10];" (assignment_expression "__n = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (if_statement "if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }" if (parenthesized_expression "(0x8000 < __n)" ( (binary_expression "0x8000 < __n" number_literal < identifier) )) (compound_statement "{\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }" { (expression_statement "FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);" (call_expression "FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n)" identifier (argument_list "("../../gas/app.c",0x133,"app_pop",__n)" ( (string_literal ""../../gas/app.c"" " string_content ") , number_literal , (string_literal ""app_pop"" " string_content ") , identifier ))) ;) })) (expression_statement "memcpy(&DAT_00080560,(void *)param_1[9],__n);" (call_expression "memcpy(&DAT_00080560,(void *)param_1[9],__n)" identifier (argument_list "(&DAT_00080560,(void *)param_1[9],__n)" ( (pointer_expression "&DAT_00080560" & identifier) , (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) , identifier ))) ;) (expression_statement "DAT_00088560 = param_1[10];" (assignment_expression "DAT_00088560 = param_1[10]" identifier = (subscript_expression "param_1[10]" identifier [ number_literal ])) ;) (expression_statement "DAT_00088564 = &DAT_00080560;" (assignment_expression "DAT_00088564 = &DAT_00080560" identifier = (pointer_expression "&DAT_00080560" & identifier)) ;) (expression_statement "free((void *)param_1[9]);" (call_expression "free((void *)param_1[9])" identifier (argument_list "((void *)param_1[9])" ( (cast_expression "(void *)param_1[9]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ])) ))) ;) }))) (expression_statement "DAT_00080544 = param_1[0xb];" (assignment_expression "DAT_00080544 = param_1[0xb]" identifier = (subscript_expression "param_1[0xb]" identifier [ number_literal ])) ;) (expression_statement "DAT_00080542 = *(undefined1 *)(param_1 + 0xc);" (assignment_expression "DAT_00080542 = *(undefined1 *)(param_1 + 0xc)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 0xc)" * (cast_expression "(undefined1 *)(param_1 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "free(param_1);" (call_expression "free(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) }))) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00019340(undefined4 *param_1)\n\n{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00019340(undefined4 *param_1)" (identifier "FUN_00019340") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint __n;\n  \n  DAT_00088588 = *param_1;\n  DAT_00088584 = param_1[1];\n  DAT_00088580 = param_1[2];\n  DAT_0008856c = param_1[3];\n  DAT_00088570 = param_1[4];\n  DAT_00088574 = param_1[5];\n  DAT_00088578 = param_1[6];\n  DAT_0008857c = param_1[7];\n  DAT_00088568 = param_1[8];\n  if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }\n  DAT_00080544 = param_1[0xb];\n  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);\n  free(param_1);\n  return;\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (expression_statement "DAT_00088588 = *param_1;" (assignment_expression "DAT_00088588 = *param_1" (identifier "DAT_00088588") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "DAT_00088584 = param_1[1];" (assignment_expression "DAT_00088584 = param_1[1]" (identifier "DAT_00088584") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "DAT_00088580 = param_1[2];" (assignment_expression "DAT_00088580 = param_1[2]" (identifier "DAT_00088580") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "DAT_0008856c = param_1[3];" (assignment_expression "DAT_0008856c = param_1[3]" (identifier "DAT_0008856c") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "DAT_00088570 = param_1[4];" (assignment_expression "DAT_00088570 = param_1[4]" (identifier "DAT_00088570") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "DAT_00088574 = param_1[5];" (assignment_expression "DAT_00088574 = param_1[5]" (identifier "DAT_00088574") (= "=") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "DAT_00088578 = param_1[6];" (assignment_expression "DAT_00088578 = param_1[6]" (identifier "DAT_00088578") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "DAT_0008857c = param_1[7];" (assignment_expression "DAT_0008857c = param_1[7]" (identifier "DAT_0008857c") (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "DAT_00088568 = param_1[8];" (assignment_expression "DAT_00088568 = param_1[8]" (identifier "DAT_00088568") (= "=") (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]"))) (; ";")) (if_statement "if ((void *)param_1[9] == (void *)0x0) {\n    DAT_00088564 = (undefined *)0x0;\n  }\n  else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" (if "if") (parenthesized_expression "((void *)param_1[9] == (void *)0x0)" (( "(") (binary_expression "(void *)param_1[9] == (void *)0x0" (cast_expression "(void *)param_1[9]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    DAT_00088564 = (undefined *)0x0;\n  }" ({ "{") (expression_statement "DAT_00088564 = (undefined *)0x0;" (assignment_expression "DAT_00088564 = (undefined *)0x0" (identifier "DAT_00088564") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" (else "else") (compound_statement "{\n    __n = param_1[10];\n    if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }\n    memcpy(&DAT_00080560,(void *)param_1[9],__n);\n    DAT_00088560 = param_1[10];\n    DAT_00088564 = &DAT_00080560;\n    free((void *)param_1[9]);\n  }" ({ "{") (expression_statement "__n = param_1[10];" (assignment_expression "__n = param_1[10]" (identifier "__n") (= "=") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]"))) (; ";")) (if_statement "if (0x8000 < __n) {\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }" (if "if") (parenthesized_expression "(0x8000 < __n)" (( "(") (binary_expression "0x8000 < __n" (number_literal "0x8000") (< "<") (identifier "__n")) () ")")) (compound_statement "{\n                    \n      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);\n    }" ({ "{") (expression_statement "FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);" (call_expression "FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n)" (identifier "FUN_0002edb0") (argument_list "("../../gas/app.c",0x133,"app_pop",__n)" (( "(") (string_literal ""../../gas/app.c"" (" """) (string_content "../../gas/app.c") (" """)) (, ",") (number_literal "0x133") (, ",") (string_literal ""app_pop"" (" """) (string_content "app_pop") (" """)) (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (expression_statement "memcpy(&DAT_00080560,(void *)param_1[9],__n);" (call_expression "memcpy(&DAT_00080560,(void *)param_1[9],__n)" (identifier "memcpy") (argument_list "(&DAT_00080560,(void *)param_1[9],__n)" (( "(") (pointer_expression "&DAT_00080560" (& "&") (identifier "DAT_00080560")) (, ",") (cast_expression "(void *)param_1[9]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "DAT_00088560 = param_1[10];" (assignment_expression "DAT_00088560 = param_1[10]" (identifier "DAT_00088560") (= "=") (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]"))) (; ";")) (expression_statement "DAT_00088564 = &DAT_00080560;" (assignment_expression "DAT_00088564 = &DAT_00080560" (identifier "DAT_00088564") (= "=") (pointer_expression "&DAT_00080560" (& "&") (identifier "DAT_00080560"))) (; ";")) (expression_statement "free((void *)param_1[9]);" (call_expression "free((void *)param_1[9])" (identifier "free") (argument_list "((void *)param_1[9])" (( "(") (cast_expression "(void *)param_1[9]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) () ")"))) (; ";")) (} "}")))) (expression_statement "DAT_00080544 = param_1[0xb];" (assignment_expression "DAT_00080544 = param_1[0xb]" (identifier "DAT_00080544") (= "=") (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]"))) (; ";")) (expression_statement "DAT_00080542 = *(undefined1 *)(param_1 + 0xc);" (assignment_expression "DAT_00080542 = *(undefined1 *)(param_1 + 0xc)" (identifier "DAT_00080542") (= "=") (pointer_expression "*(undefined1 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "free(param_1);" (call_expression "free(param_1)" (identifier "free") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(char *var_1)

{
  state = *(int *)var_1;
  old_state = *(int *)(var_1 + 4);
  out_string = *(char **)(var_1 + 8);
  out_buf._0_4_ = *(type_1 *)(var_1 + 0xc);
  out_buf._4_4_ = *(type_1 *)(var_1 + 0x10);
  out_buf._8_4_ = *(type_1 *)(var_1 + 0x14);
  out_buf._12_4_ = *(type_1 *)(var_1 + 0x18);
  out_buf._16_4_ = *(type_1 *)(var_1 + 0x1c);
  add_newlines = *(int *)(var_1 + 0x20);
  if (*(void **)(var_1 + 0x24) == (void *)0x0) {
    saved_input = (char *)0x0;
  }
  else {
    if (0x8000 < *(type_2 *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
      var_2("../../gas/app.c",0x133,"app_pop");
    }
    var_3(input_buffer,*(void **)(var_1 + 0x24),*(type_2 *)(var_1 + 0x28));
    saved_input_len = *(size_t *)(var_1 + 0x28);
    saved_input = input_buffer;
    var_4(*(void **)(var_1 + 0x24));
  }
  mri_state = *(char **)(var_1 + 0x2c);
  mri_last_ch = var_1[0x30];
  var_4(var_1);
  return;
}


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

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

void MASKED(undefined4 *param_1)

{
  uint __n;
  
  DAT_00088588 = *param_1;
  DAT_00088584 = param_1[1];
  DAT_00088580 = param_1[2];
  DAT_0008856c = param_1[3];
  DAT_00088570 = param_1[4];
  DAT_00088574 = param_1[5];
  DAT_00088578 = param_1[6];
  DAT_0008857c = param_1[7];
  DAT_00088568 = param_1[8];
  if ((void *)param_1[9] == (void *)0x0) {
    DAT_00088564 = (undefined *)0x0;
  }
  else {
    __n = param_1[10];
    if (0x8000 < __n) {
                    /* WARNING: Subroutine does not return */
      FUN_0002edb0("../../gas/app.c",0x133,"app_pop",__n);
    }
    memcpy(&DAT_00080560,(void *)param_1[9],__n);
    DAT_00088560 = param_1[10];
    DAT_00088564 = &DAT_00080560;
    free((void *)param_1[9]);
  }
  DAT_00080544 = param_1[0xb];
  DAT_00080542 = *(undefined1 *)(param_1 + 0xc);
  free(param_1);
  return;
}

