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

bfd_boolean debug_set_filename(void *handle,char *name)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  
  if (name == (char *)0x0) {
    name = "";
  }
  puVar2 = (undefined4 *)xmalloc(0xc);
  *puVar2 = 0;
  puVar2[2] = 0;
  puVar2[1] = name;
  puVar3 = (undefined4 *)xmalloc(0xc);
  puVar1 = *(undefined4 **)((int)handle + 4);
  *(undefined4 **)((int)handle + 8) = puVar2;
  *puVar3 = 0;
  puVar3[2] = 0;
  puVar3[1] = puVar2;
  if (puVar1 == (undefined4 *)0x0) {
                    /* WARNING: Load size is inaccurate */
    if (*handle != 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");
    }
    *(undefined4 **)handle = puVar3;
  }
  else {
    *puVar1 = puVar3;
  }
  *(undefined4 **)((int)handle + 4) = puVar3;
  *(undefined4 *)((int)handle + 0xc) = 0;
  *(undefined4 *)((int)handle + 0x10) = 0;
  *(undefined4 *)((int)handle + 0x14) = 0;
  return 1;
}



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

undefined4 FUN_0001ed60(int *param_1,char *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  
  if (param_2 == (char *)0x0) {
    param_2 = "";
  }
  puVar2 = (undefined4 *)xmalloc(0xc);
  *puVar2 = 0;
  puVar2[2] = 0;
  puVar2[1] = param_2;
  puVar3 = (undefined4 *)xmalloc(0xc);
  puVar1 = (undefined4 *)param_1[1];
  param_1[2] = (int)puVar2;
  *puVar3 = 0;
  puVar3[2] = 0;
  puVar3[1] = puVar2;
  if (puVar1 == (undefined4 *)0x0) {
    if (*param_1 != 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");
    }
    *param_1 = (int)puVar3;
  }
  else {
    *puVar1 = puVar3;
  }
  param_1[1] = (int)puVar3;
  param_1[3] = 0;
  param_1[4] = 0;
  param_1[5] = 0;
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x21297
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x30]
MOV ESI,dword ptr [ESP + 0x2c]
PUSH 0xc
TEST EBP,EBP
LEA EAX,[EBX + 0xffff40eb]
CMOVZ EBP,EAX
CALL 0x000132e0
MOV dword ptr [EAX],0x0
MOV EDI,EAX
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0x4],EBP
MOV dword ptr [ESP],0xc
CALL 0x000132e0
MOV EDX,dword ptr [ESI + 0x4]
MOV dword ptr [ESI + 0x8],EDI
ADD ESP,0x10
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0x4],EDI
TEST EDX,EDX
JZ 0x0001edf0
MOV dword ptr [EDX],EAX
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,0x1
MOV dword ptr [ESI + 0xc],0x0
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x14],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESI]
TEST EDX,EDX
JNZ 0x0001edfa
MOV dword ptr [ESI],EAX
JMP 0x0001edc9
LEA EAX,[EBX + 0xffff3da4]
PUSH EAX
LEA EAX,[EBX + 0xffff3db7]
PUSH 0x2bb
PUSH EAX
LEA EAX,[EBX + 0xffff3dce]
PUSH EAX
CALL 0x00013920
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001ed60(int *param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_0001ed60(int *param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_0001ed60(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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = "";\n  }" { (expression_statement "param_2 = "";" (assignment_expression "param_2 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "puVar2 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "puVar1 = (undefined4 *)param_1[1];" (assignment_expression "puVar1 = (undefined4 *)param_1[1]" identifier = (cast_expression "(undefined4 *)param_1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "param_1[2] = (int)puVar2;" (assignment_expression "param_1[2] = (int)puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*param_1 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }" { (if_statement "if (*param_1 != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" { comment (expression_statement "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");" (call_expression "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" identifier (argument_list "("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" ( (string_literal ""info->units == NULL"" " string_content ") , (string_literal ""../../binutils/debug.c"" " string_content ") , number_literal , (string_literal ""debug_set_filename"" " string_content ") ))) ;) })) (expression_statement "*param_1 = (int)puVar3;" (assignment_expression "*param_1 = (int)puVar3" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    *puVar1 = puVar3;\n  }" else (compound_statement "{\n    *puVar1 = puVar3;\n  }" { (expression_statement "*puVar1 = puVar3;" (assignment_expression "*puVar1 = puVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (expression_statement "param_1[1] = (int)puVar3;" (assignment_expression "param_1[1] = (int)puVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean debug_set_filename(void *handle,char *name)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = name;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = *(undefined4 **)((int)handle + 4);\n  *(undefined4 **)((int)handle + 8) = puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*handle != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *(undefined4 **)handle = puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  *(undefined4 **)((int)handle + 4) = puVar3;\n  *(undefined4 *)((int)handle + 0xc) = 0;\n  *(undefined4 *)((int)handle + 0x10) = 0;\n  *(undefined4 *)((int)handle + 0x14) = 0;\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean debug_set_filename(void *handle,char *name)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = name;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = *(undefined4 **)((int)handle + 4);\n  *(undefined4 **)((int)handle + 8) = puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*handle != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *(undefined4 **)handle = puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  *(undefined4 **)((int)handle + 4) = puVar3;\n  *(undefined4 *)((int)handle + 0xc) = 0;\n  *(undefined4 *)((int)handle + 0x10) = 0;\n  *(undefined4 *)((int)handle + 0x14) = 0;\n  return 1;\n}" type_identifier (function_declarator "debug_set_filename(void *handle,char *name)" identifier (parameter_list "(void *handle,char *name)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = name;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = *(undefined4 **)((int)handle + 4);\n  *(undefined4 **)((int)handle + 8) = puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*handle != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *(undefined4 **)handle = puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  *(undefined4 **)((int)handle + 4) = puVar3;\n  *(undefined4 *)((int)handle + 0xc) = 0;\n  *(undefined4 *)((int)handle + 0x10) = 0;\n  *(undefined4 *)((int)handle + 0x14) = 0;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (name == (char *)0x0) {\n    name = "";\n  }" if (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    name = "";\n  }" { (expression_statement "name = "";" (assignment_expression "name = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "puVar2 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = name;" (assignment_expression "puVar2[1] = name" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "puVar1 = *(undefined4 **)((int)handle + 4);" (assignment_expression "puVar1 = *(undefined4 **)((int)handle + 4)" identifier = (pointer_expression "*(undefined4 **)((int)handle + 4)" * (cast_expression "(undefined4 **)((int)handle + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined4 **)((int)handle + 8) = puVar2;" (assignment_expression "*(undefined4 **)((int)handle + 8) = puVar2" (pointer_expression "*(undefined4 **)((int)handle + 8)" * (cast_expression "(undefined4 **)((int)handle + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n                    /* WARNING: Load size is inaccurate */\n    if (*handle != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *(undefined4 **)handle = puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    if (*handle != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *(undefined4 **)handle = puVar3;\n  }" { comment (if_statement "if (*handle != 0) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" if (parenthesized_expression "(*handle != 0)" ( (binary_expression "*handle != 0" (pointer_expression "*handle" * identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" { comment (expression_statement "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");" (call_expression "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" identifier (argument_list "("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" ( (string_literal ""info->units == NULL"" " string_content ") , (string_literal ""../../binutils/debug.c"" " string_content ") , number_literal , (string_literal ""debug_set_filename"" " string_content ") ))) ;) })) (expression_statement "*(undefined4 **)handle = puVar3;" (assignment_expression "*(undefined4 **)handle = puVar3" (pointer_expression "*(undefined4 **)handle" * (cast_expression "(undefined4 **)handle" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = identifier) ;) }) (else_clause "else {\n    *puVar1 = puVar3;\n  }" else (compound_statement "{\n    *puVar1 = puVar3;\n  }" { (expression_statement "*puVar1 = puVar3;" (assignment_expression "*puVar1 = puVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (expression_statement "*(undefined4 **)((int)handle + 4) = puVar3;" (assignment_expression "*(undefined4 **)((int)handle + 4) = puVar3" (pointer_expression "*(undefined4 **)((int)handle + 4)" * (cast_expression "(undefined4 **)((int)handle + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((int)handle + 0xc) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0xc) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0xc)" * (cast_expression "(undefined4 *)((int)handle + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0xc)" ( (binary_expression "(int)handle + 0xc" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)handle + 0x10) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x10) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x10)" * (cast_expression "(undefined4 *)((int)handle + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)handle + 0x14) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x14) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x14)" * (cast_expression "(undefined4 *)((int)handle + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x14)" ( (binary_expression "(int)handle + 0x14" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0001ed60(int *param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0001ed60(int *param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}" type_identifier (function_declarator "FUN_0001ed60(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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    param_2 = "";\n  }" { (expression_statement "param_2 = "";" (assignment_expression "param_2 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "puVar2 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0xc)" identifier = (cast_expression "(undefined4 *)xmalloc(0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "puVar1 = (undefined4 *)param_1[1];" (assignment_expression "puVar1 = (undefined4 *)param_1[1]" identifier = (cast_expression "(undefined4 *)param_1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (expression_statement "param_1[2] = (int)puVar2;" (assignment_expression "param_1[2] = (int)puVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }" { (if_statement "if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" { (expression_statement "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");" (call_expression "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" identifier (argument_list "("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" ( (string_literal ""info->units == NULL"" " string_content ") , (string_literal ""../../binutils/debug.c"" " string_content ") , number_literal , (string_literal ""debug_set_filename"" " string_content ") ))) ;) })) (expression_statement "*param_1 = (int)puVar3;" (assignment_expression "*param_1 = (int)puVar3" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    *puVar1 = puVar3;\n  }" else (compound_statement "{\n    *puVar1 = puVar3;\n  }" { (expression_statement "*puVar1 = puVar3;" (assignment_expression "*puVar1 = puVar3" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (expression_statement "param_1[1] = (int)puVar3;" (assignment_expression "param_1[1] = (int)puVar3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) })) (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) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0001ed60(int *param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001ed60(int *param_1,char *param_2)" (identifier "FUN_0001ed60") (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  undefined4 *puVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  puVar2 = (undefined4 *)xmalloc(0xc);\n  *puVar2 = 0;\n  puVar2[2] = 0;\n  puVar2[1] = param_2;\n  puVar3 = (undefined4 *)xmalloc(0xc);\n  puVar1 = (undefined4 *)param_1[1];\n  param_1[2] = (int)puVar2;\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = puVar2;\n  if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }\n  param_1[1] = (int)puVar3;\n  param_1[3] = 0;\n  param_1[4] = 0;\n  param_1[5] = 0;\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    param_2 = "";\n  }" ({ "{") (expression_statement "param_2 = "";" (assignment_expression "param_2 = """ (identifier "param_2") (= "=") (string_literal """" (" """) (" """))) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0xc)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[1] = param_2;" (assignment_expression "puVar2[1] = param_2" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar3 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0xc)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "puVar1 = (undefined4 *)param_1[1];" (assignment_expression "puVar1 = (undefined4 *)param_1[1]" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)param_1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "param_1[2] = (int)puVar2;" (assignment_expression "param_1[2] = (int)puVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = puVar2;" (assignment_expression "puVar3[1] = puVar2" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }\n  else {\n    *puVar1 = puVar3;\n  }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }\n    *param_1 = (int)puVar3;\n  }" ({ "{") (if_statement "if (*param_1 != 0) {\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");\n    }" ({ "{") (expression_statement "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");" (call_expression "__assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" (identifier "__assert_fail") (argument_list "("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename")" (( "(") (string_literal ""info->units == NULL"" (" """) (string_content "info->units == NULL") (" """)) (, ",") (string_literal ""../../binutils/debug.c"" (" """) (string_content "../../binutils/debug.c") (" """)) (, ",") (number_literal "699") (, ",") (string_literal ""debug_set_filename"" (" """) (string_content "debug_set_filename") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "*param_1 = (int)puVar3;" (assignment_expression "*param_1 = (int)puVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) (; ";")) (} "}")) (else_clause "else {\n    *puVar1 = puVar3;\n  }" (else "else") (compound_statement "{\n    *puVar1 = puVar3;\n  }" ({ "{") (expression_statement "*puVar1 = puVar3;" (assignment_expression "*puVar1 = puVar3" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "puVar3")) (; ";")) (} "}")))) (expression_statement "param_1[1] = (int)puVar3;" (assignment_expression "param_1[1] = (int)puVar3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 function_1(void *handle,char *var_1)

{
  type_2 *var_3;
  type_2 *puVar2;
  type_2 *puVar3;
  
  if (var_1 == (char *)0x0) {
    var_1 = "";
  }
  puVar2 = (type_2 *)var_2(0xc);
  *puVar2 = 0;
  puVar2[2] = 0;
  puVar2[1] = var_1;
  puVar3 = (type_2 *)var_2(0xc);
  var_3 = *(type_2 **)((int)handle + 4);
  *(type_2 **)((int)handle + 8) = puVar2;
  *puVar3 = 0;
  puVar3[2] = 0;
  puVar3[1] = puVar2;
  if (var_3 == (type_2 *)0x0) {
                    /* WARNING: Load size is inaccurate */
    if (*handle != 0) {
                    /* WARNING: Subroutine does not return */
      var_4("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");
    }
    *(type_2 **)handle = puVar3;
  }
  else {
    *var_3 = puVar3;
  }
  *(type_2 **)((int)handle + 4) = puVar3;
  *(type_2 *)((int)handle + 0xc) = 0;
  *(type_2 *)((int)handle + 0x10) = 0;
  *(type_2 *)((int)handle + 0x14) = 0;
  return 1;
}


(translation_unit (function_definition type: (type_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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (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: (identifier) right: (string_literal))))) (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: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))))

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

undefined4 MASKED(int *param_1,char *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  
  if (param_2 == (char *)0x0) {
    param_2 = "";
  }
  puVar2 = (undefined4 *)xmalloc(0xc);
  *puVar2 = 0;
  puVar2[2] = 0;
  puVar2[1] = param_2;
  puVar3 = (undefined4 *)xmalloc(0xc);
  puVar1 = (undefined4 *)param_1[1];
  param_1[2] = (int)puVar2;
  *puVar3 = 0;
  puVar3[2] = 0;
  puVar3[1] = puVar2;
  if (puVar1 == (undefined4 *)0x0) {
    if (*param_1 != 0) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("info->units == NULL","../../binutils/debug.c",699,"debug_set_filename");
    }
    *param_1 = (int)puVar3;
  }
  else {
    *puVar1 = puVar3;
  }
  param_1[1] = (int)puVar3;
  param_1[3] = 0;
  param_1[4] = 0;
  param_1[5] = 0;
  return 1;
}

