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

bfd_boolean debug_start_source(void *handle,char *name)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  bfd_boolean bVar4;
  undefined4 *puVar5;
  undefined4 uVar6;
  
  if (name == (char *)0x0) {
    name = "";
  }
  if (*(int *)((int)handle + 4) == 0) {
    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);
    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);
    bVar4 = 0;
  }
  else {
    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        puVar5 = (undefined4 *)xmalloc(0xc);
        puVar1 = *(undefined4 **)((int)handle + 8);
        *puVar5 = 0;
        puVar5[2] = 0;
        puVar5[1] = name;
        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;
            puVar2 = (undefined4 *)*puVar2) {
          puVar1 = puVar2;
        }
        *puVar1 = puVar5;
        *(undefined4 **)((int)handle + 8) = puVar5;
        return 1;
      }
      iVar3 = filename_cmp(puVar1[1],name);
      if (iVar3 == 0) break;
      puVar1 = (undefined4 *)*puVar1;
    }
    *(undefined4 **)((int)handle + 8) = puVar1;
    bVar4 = 1;
  }
  return bVar4;
}



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

undefined4 FUN_0001ee20(int param_1,char *param_2)

{
  undefined4 *puVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if (param_2 == (char *)0x0) {
    param_2 = "";
  }
  if (*(int *)(param_1 + 4) == 0) {
    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);
    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
    uVar4 = 0;
  }
  else {
    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        puVar5 = (undefined4 *)xmalloc(0xc);
        puVar1 = *(undefined4 **)(param_1 + 8);
        *puVar5 = 0;
        puVar5[2] = 0;
        puVar5[1] = param_2;
        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;
            puVar2 = (undefined4 *)*puVar2) {
          puVar1 = puVar2;
        }
        *puVar1 = puVar5;
        *(undefined4 **)(param_1 + 8) = puVar5;
        return 1;
      }
      iVar3 = filename_cmp(puVar1[1],param_2);
      if (iVar3 == 0) break;
      puVar1 = (undefined4 *)*puVar1;
    }
    *(undefined4 **)(param_1 + 8) = puVar1;
    uVar4 = 1;
  }
  return uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x211d7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x24]
MOV EBP,dword ptr [ESP + 0x20]
TEST EDI,EDI
LEA EAX,[EBX + 0xffff40eb]
CMOVZ EDI,EAX
MOV EAX,dword ptr [EBP + 0x4]
TEST EAX,EAX
JZ 0x0001eee0
MOV ESI,dword ptr [EAX + 0x4]
TEST ESI,ESI
JNZ 0x0001ee66
JMP 0x0001ee90
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JZ 0x0001ee90
SUB ESP,0x8
PUSH EDI
PUSH dword ptr [ESI + 0x4]
CALL 0x00013160
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001ee60
MOV dword ptr [EBP + 0x8],ESI
MOV EAX,0x1
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH 0xc
CALL 0x000132e0
MOV EDX,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV ECX,dword ptr [EDX]
MOV dword ptr [EAX + 0x4],EDI
TEST ECX,ECX
JNZ 0x0001eec2
JMP 0x0001ef15
MOV ECX,EDX
MOV EDX,dword ptr [ECX]
TEST EDX,EDX
JNZ 0x0001eec0
MOV dword ptr [ECX],EAX
MOV dword ptr [EBP + 0x8],EAX
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff3988]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffff532f]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffa8]
PUSH dword ptr [EAX]
CALL 0x00013520
ADD ESP,0x10
XOR EAX,EAX
JMP 0x0001ee81
MOV ECX,EDX
JMP 0x0001eec8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001ee20(int param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}\n\n" comment (function_definition "undefined4 FUN_0001ee20(int param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0001ee20(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * 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 """" " ")) ;) })) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5)" identifier = (call_expression "dcgettext(0,"debug_start_source: no debug_set_filename call",5)" identifier (argument_list "(0,"debug_start_source: no debug_set_filename call",5)" ( number_literal , (string_literal ""debug_start_source: no debug_set_filename call"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" else (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(undefined4 **)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\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        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }" { (expression_statement "puVar5 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar5 = (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 + 8);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[1] = param_2;" (assignment_expression "puVar5[1] = param_2" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (for_statement "for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }" for ( (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ; (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar2 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ) (compound_statement "{\n          puVar1 = puVar2;\n        }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) })) (expression_statement "*puVar1 = puVar5;" (assignment_expression "*puVar1 = puVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 8) = puVar5;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar5" (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar3 = filename_cmp(puVar1[1],param_2);" (assignment_expression "iVar3 = filename_cmp(puVar1[1],param_2)" identifier = (call_expression "filename_cmp(puVar1[1],param_2)" identifier (argument_list "(puVar1[1],param_2)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "*(undefined4 **)(param_1 + 8) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean debug_start_source(void *handle,char *name)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  bfd_boolean bVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  if (*(int *)((int)handle + 4) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)((int)handle + 8) = puVar1;\n    bVar4 = 1;\n  }\n  return bVar4;\n}\n\n" comment (function_definition "bfd_boolean debug_start_source(void *handle,char *name)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  bfd_boolean bVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  if (*(int *)((int)handle + 4) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)((int)handle + 8) = puVar1;\n    bVar4 = 1;\n  }\n  return bVar4;\n}" type_identifier (function_declarator "debug_start_source(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  int iVar3;\n  bfd_boolean bVar4;\n  undefined4 *puVar5;\n  undefined4 uVar6;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  if (*(int *)((int)handle + 4) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)((int)handle + 8) = puVar1;\n    bVar4 = 1;\n  }\n  return bVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bfd_boolean bVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier 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 """" " ")) ;) })) (if_statement "if (*(int *)((int)handle + 4) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)((int)handle + 8) = puVar1;\n    bVar4 = 1;\n  }" if (parenthesized_expression "(*(int *)((int)handle + 4) == 0)" ( (binary_expression "*(int *)((int)handle + 4) == 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (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) )))) == number_literal) )) (compound_statement "{\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);\n    bVar4 = 0;\n  }" { (expression_statement "uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);" (assignment_expression "uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5)" identifier = (call_expression "dcgettext(0,"debug_start_source: no debug_set_filename call",5)" identifier (argument_list "(0,"debug_start_source: no debug_set_filename call",5)" ( number_literal , (string_literal ""debug_start_source: no debug_set_filename call"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar6)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "bVar4 = 0;" (assignment_expression "bVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)((int)handle + 8) = puVar1;\n    bVar4 = 1;\n  }" else (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)((int)handle + 8) = puVar1;\n    bVar4 = 1;\n  }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)((int)handle + 4) + 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)((int)handle + 4) + 4)" * (cast_expression "(undefined4 **)(*(int *)((int)handle + 4) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)handle + 4) + 4)" ( (binary_expression "*(int *)((int)handle + 4) + 4" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (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) )))) + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\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        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)((int)handle + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = name;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)((int)handle + 8) = puVar5;\n        return 1;\n      }" { (expression_statement "puVar5 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar5 = (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 + 8);" (assignment_expression "puVar1 = *(undefined4 **)((int)handle + 8)" identifier = (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) ))))) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[1] = name;" (assignment_expression "puVar5[1] = name" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (for_statement "for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }" for ( (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ; (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar2 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ) (compound_statement "{\n          puVar1 = puVar2;\n        }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) })) (expression_statement "*puVar1 = puVar5;" (assignment_expression "*puVar1 = puVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)((int)handle + 8) = puVar5;" (assignment_expression "*(undefined4 **)((int)handle + 8) = puVar5" (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) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar3 = filename_cmp(puVar1[1],name);" (assignment_expression "iVar3 = filename_cmp(puVar1[1],name)" identifier = (call_expression "filename_cmp(puVar1[1],name)" identifier (argument_list "(puVar1[1],name)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "*(undefined4 **)((int)handle + 8) = puVar1;" (assignment_expression "*(undefined4 **)((int)handle + 8) = puVar1" (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 "bVar4 = 1;" (assignment_expression "bVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return bVar4;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001ee20(int param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_0001ee20(int param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0001ee20(int param_1,char *param_2)" identifier (parameter_list "(int param_1,char *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * 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 """" " ")) ;) })) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }" { (expression_statement "uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5)" identifier = (call_expression "dcgettext(0,"debug_start_source: no debug_set_filename call",5)" identifier (argument_list "(0,"debug_start_source: no debug_set_filename call",5)" ( number_literal , (string_literal ""debug_start_source: no debug_set_filename call"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" else (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" { (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4)" identifier = (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(undefined4 **)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\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        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }" { (expression_statement "puVar5 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar5 = (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 + 8);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5[1] = param_2;" (assignment_expression "puVar5[1] = param_2" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (for_statement "for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }" for ( (assignment_expression "puVar2 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ; (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar2 = (undefined4 *)*puVar2" identifier = (cast_expression "(undefined4 *)*puVar2" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar2" * identifier))) ) (compound_statement "{\n          puVar1 = puVar2;\n        }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) })) (expression_statement "*puVar1 = puVar5;" (assignment_expression "*puVar1 = puVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 8) = puVar5;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar5" (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "iVar3 = filename_cmp(puVar1[1],param_2);" (assignment_expression "iVar3 = filename_cmp(puVar1[1],param_2)" identifier = (call_expression "filename_cmp(puVar1[1],param_2)" identifier (argument_list "(puVar1[1],param_2)" ( (subscript_expression "puVar1[1]" identifier [ number_literal ]) , identifier )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "*(undefined4 **)(param_1 + 8) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 8)" * (cast_expression "(undefined4 **)(param_1 + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 " ")) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + 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) ;) (for_statement for ( (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001ee20(int param_1,char *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001ee20(int param_1,char *param_2)" (identifier "FUN_0001ee20") (parameter_list "(int param_1,char *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (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  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (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 """" (" """) (" """))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 4) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n    uVar4 = 0;\n  }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"debug_start_source: no debug_set_filename call",5)" (identifier "dcgettext") (argument_list "(0,"debug_start_source: no debug_set_filename call",5)" (( "(") (number_literal "0") (, ",") (string_literal ""debug_start_source: no debug_set_filename call"" (" """) (string_content "debug_start_source: no debug_set_filename call") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" (* "*") (cast_expression "(FILE **)PTR_stderr_0003ffa8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0003ffa8"))) (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" (else "else") (compound_statement "{\n    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);\n    while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }\n    *(undefined4 **)(param_1 + 8) = puVar1;\n    uVar4 = 1;\n  }" ({ "{") (expression_statement "puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);" (assignment_expression "puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(*(int *)(param_1 + 4) + 4)" (* "*") (cast_expression "(undefined4 **)(*(int *)(param_1 + 4) + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined4 *)*puVar1;\n    }" ({ "{") (if_statement "if (puVar1 == (undefined4 *)0x0) {\n        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\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        puVar5 = (undefined4 *)xmalloc(0xc);\n        puVar1 = *(undefined4 **)(param_1 + 8);\n        *puVar5 = 0;\n        puVar5[2] = 0;\n        puVar5[1] = param_2;\n        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = puVar5;\n        *(undefined4 **)(param_1 + 8) = puVar5;\n        return 1;\n      }" ({ "{") (expression_statement "puVar5 = (undefined4 *)xmalloc(0xc);" (assignment_expression "puVar5 = (undefined4 *)xmalloc(0xc)" (identifier "puVar5") (= "=") (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 + 8);" (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 8)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[2] = 0;" (assignment_expression "puVar5[2] = 0" (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5[1] = param_2;" (assignment_expression "puVar5[1] = param_2" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (for_statement "for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;\n            puVar2 = (undefined4 *)*puVar2) {\n          puVar1 = puVar2;\n        }" (for "for") (( "(") (assignment_expression "puVar2 = (undefined4 *)*puVar1" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar2 = (undefined4 *)*puVar2" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar2" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")))) () ")") (compound_statement "{\n          puVar1 = puVar2;\n        }" ({ "{") (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (expression_statement "*puVar1 = puVar5;" (assignment_expression "*puVar1 = puVar5" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "puVar5")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 8) = puVar5;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar5" (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar5")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "iVar3 = filename_cmp(puVar1[1],param_2);" (assignment_expression "iVar3 = filename_cmp(puVar1[1],param_2)" (identifier "iVar3") (= "=") (call_expression "filename_cmp(puVar1[1],param_2)" (identifier "filename_cmp") (argument_list "(puVar1[1],param_2)" (( "(") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (expression_statement "*(undefined4 **)(param_1 + 8) = puVar1;" (assignment_expression "*(undefined4 **)(param_1 + 8) = puVar1" (pointer_expression "*(undefined4 **)(param_1 + 8)" (* "*") (cast_expression "(undefined4 **)(param_1 + 8)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

/* 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_4;
  type_2 *var_6;
  int var_8;
  type_1 bVar4;
  type_2 *puVar5;
  type_2 uVar6;
  
  if (var_1 == (char *)0x0) {
    var_1 = "";
  }
  if (*(int *)((int)handle + 4) == 0) {
    uVar6 = var_2(0,"debug_start_source: no debug_set_filename call",5);
    var_3(*(type_3 **)PTR_stderr_0003ffa8,"%s\n",uVar6);
    bVar4 = 0;
  }
  else {
    var_4 = *(type_2 **)(*(int *)((int)handle + 4) + 4);
    while( true ) {
      if (var_4 == (type_2 *)0x0) {
        puVar5 = (type_2 *)var_5(0xc);
        var_4 = *(type_2 **)((int)handle + 8);
        *puVar5 = 0;
        puVar5[2] = 0;
        puVar5[1] = var_1;
        for (var_6 = (type_2 *)*var_4; var_6 != (type_2 *)0x0;
            var_6 = (type_2 *)*var_6) {
          var_4 = var_6;
        }
        *var_4 = puVar5;
        *(type_2 **)((int)handle + 8) = puVar5;
        return 1;
      }
      var_8 = var_7(var_4[1],var_1);
      if (var_8 == 0) break;
      var_4 = (type_2 *)*var_4;
    }
    *(type_2 **)((int)handle + 8) = var_4;
    bVar4 = 1;
  }
  return bVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) 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: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) (string_literal (string_content) (escape_sequence)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (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 (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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))) (for_statement initializer: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

/* 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;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if (param_2 == (char *)0x0) {
    param_2 = "";
  }
  if (*(int *)(param_1 + 4) == 0) {
    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);
    fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
    uVar4 = 0;
  }
  else {
    puVar1 = *(undefined4 **)(*(int *)(param_1 + 4) + 4);
    while( true ) {
      if (puVar1 == (undefined4 *)0x0) {
        puVar5 = (undefined4 *)xmalloc(0xc);
        puVar1 = *(undefined4 **)(param_1 + 8);
        *puVar5 = 0;
        puVar5[2] = 0;
        puVar5[1] = param_2;
        for (puVar2 = (undefined4 *)*puVar1; puVar2 != (undefined4 *)0x0;
            puVar2 = (undefined4 *)*puVar2) {
          puVar1 = puVar2;
        }
        *puVar1 = puVar5;
        *(undefined4 **)(param_1 + 8) = puVar5;
        return 1;
      }
      iVar3 = filename_cmp(puVar1[1],param_2);
      if (iVar3 == 0) break;
      puVar1 = (undefined4 *)*puVar1;
    }
    *(undefined4 **)(param_1 + 8) = puVar1;
    uVar4 = 1;
  }
  return uVar4;
}

