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

bfd_boolean __regparm3 prepend_type(pr_handle *info,char *s)

{
  FILE *pFVar1;
  size_t sVar2;
  size_t sVar3;
  char *__s;
  
  pFVar1 = info->f;
  if (pFVar1 != (FILE *)0x0) {
    sVar2 = strlen(s);
    sVar3 = strlen(pFVar1->_IO_read_ptr);
    __s = (char *)xmalloc(sVar2 + 1 + sVar3);
    sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);
    free(info->f->_IO_read_ptr);
    info->f->_IO_read_ptr = __s;
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");
}



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

undefined4 __regparm3 FUN_000365a0(int *param_1,char *param_2)

{
  int iVar1;
  size_t sVar2;
  size_t sVar3;
  char *__s;
  
  iVar1 = *param_1;
  if (iVar1 != 0) {
    sVar2 = strlen(param_2);
    sVar3 = strlen(*(char **)(iVar1 + 4));
    __s = (char *)xmalloc(sVar2 + 1 + sVar3);
    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));
    free(*(void **)(*param_1 + 4));
    *(char **)(*param_1 + 4) = __s;
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153a0
ADD EBX,0x3aa57
SUB ESP,0x1c
MOV EDI,dword ptr [EAX]
TEST EDI,EDI
JZ 0x00036616
SUB ESP,0xc
MOV ESI,EAX
MOV EBP,EDX
PUSH EDX
CALL 0x00014470
POP EDX
MOV dword ptr [ESP + 0x18],EAX
PUSH dword ptr [EDI + 0x4]
CALL 0x00014470
MOV EDX,dword ptr [ESP + 0x1c]
LEA EAX,[EDX + EAX*0x1 + 0x1]
MOV dword ptr [ESP],EAX
CALL 0x000142b0
MOV EDI,EAX
MOV EAX,dword ptr [ESI]
PUSH dword ptr [EAX + 0x4]
LEA EAX,[EBX + 0xfffe0608]
PUSH EBP
PUSH EAX
PUSH EDI
CALL 0x000146c0
MOV EAX,dword ptr [ESI]
ADD ESP,0x14
PUSH dword ptr [EAX + 0x4]
CALL 0x00014120
MOV EAX,dword ptr [ESI]
MOV dword ptr [EAX + 0x4],EDI
ADD ESP,0x2c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffe4988]
PUSH EAX
LEA EAX,[EBX + 0xfffe414d]
PUSH 0x168
PUSH EAX
LEA EAX,[EBX + 0xfffe4164]
PUSH EAX
CALL 0x00014840
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_000365a0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_000365a0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000365a0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(*(char **)(iVar1 + 4));" (assignment_expression "sVar3 = strlen(*(char **)(iVar1 + 4))" identifier = (call_expression "strlen(*(char **)(iVar1 + 4))" identifier (argument_list "(*(char **)(iVar1 + 4))" ( (pointer_expression "*(char **)(iVar1 + 4)" * (cast_expression "(char **)(iVar1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "__s = (char *)xmalloc(sVar2 + 1 + sVar3);" (assignment_expression "__s = (char *)xmalloc(sVar2 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1 + sVar3)" identifier (argument_list "(sVar2 + 1 + sVar3)" ( (binary_expression "sVar2 + 1 + sVar3" (binary_expression "sVar2 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));" (call_expression "sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4))" identifier (argument_list "(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4))" ( identifier , (string_literal ""%s%s"" " string_content ") , identifier , (pointer_expression "*(undefined4 *)(*param_1 + 4)" * (cast_expression "(undefined4 *)(*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)(*param_1 + 4));" (call_expression "free(*(void **)(*param_1 + 4))" identifier (argument_list "(*(void **)(*param_1 + 4))" ( (pointer_expression "*(void **)(*param_1 + 4)" * (cast_expression "(void **)(*param_1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) (expression_statement "*(char **)(*param_1 + 4) = __s;" (assignment_expression "*(char **)(*param_1 + 4) = __s" (pointer_expression "*(char **)(*param_1 + 4)" * (cast_expression "(char **)(*param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) comment (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" identifier (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" ( (string_literal ""info->stack != NULL"" " string_content ") , (string_literal ""../../binutils/prdbg.c"" " string_content ") , number_literal , (string_literal ""prepend_type"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3 prepend_type(pr_handle *info,char *s)\n\n{\n  FILE *pFVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  pFVar1 = info->f;\n  if (pFVar1 != (FILE *)0x0) {\n    sVar2 = strlen(s);\n    sVar3 = strlen(pFVar1->_IO_read_ptr);\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);\n    free(info->f->_IO_read_ptr);\n    info->f->_IO_read_ptr = __s;\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}\n\n" comment (function_definition "bfd_boolean __regparm3 prepend_type(pr_handle *info,char *s)\n\n{\n  FILE *pFVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  pFVar1 = info->f;\n  if (pFVar1 != (FILE *)0x0) {\n    sVar2 = strlen(s);\n    sVar3 = strlen(pFVar1->_IO_read_ptr);\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);\n    free(info->f->_IO_read_ptr);\n    info->f->_IO_read_ptr = __s;\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "prepend_type(pr_handle *info,char *s)" identifier (parameter_list "(pr_handle *info,char *s)" ( (parameter_declaration "pr_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "char *s" primitive_type (pointer_declarator "*s" * identifier)) ))) (compound_statement "{\n  FILE *pFVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  pFVar1 = info->f;\n  if (pFVar1 != (FILE *)0x0) {\n    sVar2 = strlen(s);\n    sVar3 = strlen(pFVar1->_IO_read_ptr);\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);\n    free(info->f->_IO_read_ptr);\n    info->f->_IO_read_ptr = __s;\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" { (declaration "FILE *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "pFVar1 = info->f;" (assignment_expression "pFVar1 = info->f" identifier = (field_expression "info->f" identifier -> field_identifier)) ;) (if_statement "if (pFVar1 != (FILE *)0x0) {\n    sVar2 = strlen(s);\n    sVar3 = strlen(pFVar1->_IO_read_ptr);\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);\n    free(info->f->_IO_read_ptr);\n    info->f->_IO_read_ptr = __s;\n    return 1;\n  }" if (parenthesized_expression "(pFVar1 != (FILE *)0x0)" ( (binary_expression "pFVar1 != (FILE *)0x0" identifier != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar2 = strlen(s);\n    sVar3 = strlen(pFVar1->_IO_read_ptr);\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);\n    free(info->f->_IO_read_ptr);\n    info->f->_IO_read_ptr = __s;\n    return 1;\n  }" { (expression_statement "sVar2 = strlen(s);" (assignment_expression "sVar2 = strlen(s)" identifier = (call_expression "strlen(s)" identifier (argument_list "(s)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(pFVar1->_IO_read_ptr);" (assignment_expression "sVar3 = strlen(pFVar1->_IO_read_ptr)" identifier = (call_expression "strlen(pFVar1->_IO_read_ptr)" identifier (argument_list "(pFVar1->_IO_read_ptr)" ( (field_expression "pFVar1->_IO_read_ptr" identifier -> field_identifier) )))) ;) (expression_statement "__s = (char *)xmalloc(sVar2 + 1 + sVar3);" (assignment_expression "__s = (char *)xmalloc(sVar2 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1 + sVar3)" identifier (argument_list "(sVar2 + 1 + sVar3)" ( (binary_expression "sVar2 + 1 + sVar3" (binary_expression "sVar2 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s%s",s,info->f->_IO_read_ptr);" (call_expression "sprintf(__s,"%s%s",s,info->f->_IO_read_ptr)" identifier (argument_list "(__s,"%s%s",s,info->f->_IO_read_ptr)" ( identifier , (string_literal ""%s%s"" " string_content ") , identifier , (field_expression "info->f->_IO_read_ptr" (field_expression "info->f" identifier -> field_identifier) -> field_identifier) ))) ;) (expression_statement "free(info->f->_IO_read_ptr);" (call_expression "free(info->f->_IO_read_ptr)" identifier (argument_list "(info->f->_IO_read_ptr)" ( (field_expression "info->f->_IO_read_ptr" (field_expression "info->f" identifier -> field_identifier) -> field_identifier) ))) ;) (expression_statement "info->f->_IO_read_ptr = __s;" (assignment_expression "info->f->_IO_read_ptr = __s" (field_expression "info->f->_IO_read_ptr" (field_expression "info->f" identifier -> field_identifier) -> field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) comment (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" identifier (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" ( (string_literal ""info->stack != NULL"" " string_content ") , (string_literal ""../../binutils/prdbg.c"" " string_content ") , number_literal , (string_literal ""prepend_type"" " string_content ") ))) ;) })))
(translation_unit "undefined4 __regparm3 FUN_000365a0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    \n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}\n\n" (function_definition "undefined4 __regparm3 FUN_000365a0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    \n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_000365a0(int *param_1,char *param_2)" identifier (parameter_list "(int *param_1,char *param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    \n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }" { (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "sVar3 = strlen(*(char **)(iVar1 + 4));" (assignment_expression "sVar3 = strlen(*(char **)(iVar1 + 4))" identifier = (call_expression "strlen(*(char **)(iVar1 + 4))" identifier (argument_list "(*(char **)(iVar1 + 4))" ( (pointer_expression "*(char **)(iVar1 + 4)" * (cast_expression "(char **)(iVar1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "__s = (char *)xmalloc(sVar2 + 1 + sVar3);" (assignment_expression "__s = (char *)xmalloc(sVar2 + 1 + sVar3)" identifier = (cast_expression "(char *)xmalloc(sVar2 + 1 + sVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar2 + 1 + sVar3)" identifier (argument_list "(sVar2 + 1 + sVar3)" ( (binary_expression "sVar2 + 1 + sVar3" (binary_expression "sVar2 + 1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));" (call_expression "sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4))" identifier (argument_list "(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4))" ( identifier , (string_literal ""%s%s"" " string_content ") , identifier , (pointer_expression "*(undefined4 *)(*param_1 + 4)" * (cast_expression "(undefined4 *)(*param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) (expression_statement "free(*(void **)(*param_1 + 4));" (call_expression "free(*(void **)(*param_1 + 4))" identifier (argument_list "(*(void **)(*param_1 + 4))" ( (pointer_expression "*(void **)(*param_1 + 4)" * (cast_expression "(void **)(*param_1 + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) ))) ;) (expression_statement "*(char **)(*param_1 + 4) = __s;" (assignment_expression "*(char **)(*param_1 + 4) = __s" (pointer_expression "*(char **)(*param_1 + 4)" * (cast_expression "(char **)(*param_1 + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" identifier (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" ( (string_literal ""info->stack != NULL"" " string_content ") , (string_literal ""../../binutils/prdbg.c"" " string_content ") , number_literal , (string_literal ""prepend_type"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 __regparm3 FUN_000365a0(int *param_1,char *param_2)\n\n{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    \n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000365a0(int *param_1,char *param_2)" (identifier "FUN_000365a0") (parameter_list "(int *param_1,char *param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  size_t sVar2;\n  size_t sVar3;\n  char *__s;\n  \n  iVar1 = *param_1;\n  if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }\n                    \n  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    sVar2 = strlen(param_2);\n    sVar3 = strlen(*(char **)(iVar1 + 4));\n    __s = (char *)xmalloc(sVar2 + 1 + sVar3);\n    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));\n    free(*(void **)(*param_1 + 4));\n    *(char **)(*param_1 + 4) = __s;\n    return 1;\n  }" ({ "{") (expression_statement "sVar2 = strlen(param_2);" (assignment_expression "sVar2 = strlen(param_2)" (identifier "sVar2") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "sVar3 = strlen(*(char **)(iVar1 + 4));" (assignment_expression "sVar3 = strlen(*(char **)(iVar1 + 4))" (identifier "sVar3") (= "=") (call_expression "strlen(*(char **)(iVar1 + 4))" (identifier "strlen") (argument_list "(*(char **)(iVar1 + 4))" (( "(") (pointer_expression "*(char **)(iVar1 + 4)" (* "*") (cast_expression "(char **)(iVar1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "__s = (char *)xmalloc(sVar2 + 1 + sVar3);" (assignment_expression "__s = (char *)xmalloc(sVar2 + 1 + sVar3)" (identifier "__s") (= "=") (cast_expression "(char *)xmalloc(sVar2 + 1 + sVar3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar2 + 1 + sVar3)" (identifier "xmalloc") (argument_list "(sVar2 + 1 + sVar3)" (( "(") (binary_expression "sVar2 + 1 + sVar3" (binary_expression "sVar2 + 1" (identifier "sVar2") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar3")) () ")"))))) (; ";")) (expression_statement "sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));" (call_expression "sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4))" (identifier "sprintf") (argument_list "(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4))" (( "(") (identifier "__s") (, ",") (string_literal ""%s%s"" (" """) (string_content "%s%s") (" """)) (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(*param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "free(*(void **)(*param_1 + 4));" (call_expression "free(*(void **)(*param_1 + 4))" (identifier "free") (argument_list "(*(void **)(*param_1 + 4))" (( "(") (pointer_expression "*(void **)(*param_1 + 4)" (* "*") (cast_expression "(void **)(*param_1 + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "*(char **)(*param_1 + 4) = __s;" (assignment_expression "*(char **)(*param_1 + 4) = __s" (pointer_expression "*(char **)(*param_1 + 4)" (* "*") (cast_expression "(char **)(*param_1 + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "__s")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");" (call_expression "__assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" (identifier "__assert_fail") (argument_list "("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type")" (( "(") (string_literal ""info->stack != NULL"" (" """) (string_content "info->stack != NULL") (" """)) (, ",") (string_literal ""../../binutils/prdbg.c"" (" """) (string_content "../../binutils/prdbg.c") (" """)) (, ",") (number_literal "0x168") (, ",") (string_literal ""prepend_type"" (" """) (string_content "prepend_type") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(type_2 *info,char *s)

{
  type_3 *var_1;
  size_t var_4;
  size_t var_5;
  char *__s;
  
  var_1 = info->f;
  if (var_1 != (type_3 *)0x0) {
    var_4 = var_2(s);
    var_5 = var_2(var_1->_IO_read_ptr);
    __s = (char *)var_3(var_4 + 1 + var_5);
    var_6(__s,"%s%s",s,info->f->_IO_read_ptr);
    var_7(info->f->_IO_read_ptr);
    info->f->_IO_read_ptr = __s;
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  var_8("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_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: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

undefined4 __regparm3 MASKED(int *param_1,char *param_2)

{
  int iVar1;
  size_t sVar2;
  size_t sVar3;
  char *__s;
  
  iVar1 = *param_1;
  if (iVar1 != 0) {
    sVar2 = strlen(param_2);
    sVar3 = strlen(*(char **)(iVar1 + 4));
    __s = (char *)xmalloc(sVar2 + 1 + sVar3);
    sprintf(__s,"%s%s",param_2,*(undefined4 *)(*param_1 + 4));
    free(*(void **)(*param_1 + 4));
    *(char **)(*param_1 + 4) = __s;
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("info->stack != NULL","../../binutils/prdbg.c",0x168,"prepend_type");
}

