
bfd_boolean debug_start_source(void *handle,char *name)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  int iVar3;
  bfd_boolean bVar4;
  undefined1 (*pauVar5) [16];
  undefined8 uVar6;
  debug_handle *info;
  
  if (name == (char *)0x0) {
    name = "";
  }
  if (*(long *)((long)handle + 8) == 0) {
    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);
    fprintf(stderr,"%s\n",uVar6);
    bVar4 = 0;
  }
  else {
    puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);
    while( true ) {
      if (puVar1 == (undefined8 *)0x0) {
        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);
        puVar1 = *(undefined8 **)((long)handle + 0x10);
        *pauVar5 = (undefined1  [16])0x0;
        *(undefined8 *)pauVar5[1] = 0;
        *(char **)(*pauVar5 + 8) = name;
        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;
            puVar2 = (undefined8 *)*puVar2) {
          puVar1 = puVar2;
        }
        *puVar1 = pauVar5;
        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;
        return 1;
      }
      iVar3 = filename_cmp(puVar1[1],name);
      if (iVar3 == 0) break;
      puVar1 = (undefined8 *)*puVar1;
    }
    *(undefined8 **)((long)handle + 0x10) = puVar1;
    bVar4 = 1;
  }
  return bVar4;
}



undefined8 FUN_0010ebb0(long param_1,char *param_2)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  int iVar3;
  undefined8 uVar4;
  undefined1 (*pauVar5) [16];
  
  if (param_2 == (char *)0x0) {
    param_2 = "";
  }
  if (*(long *)(param_1 + 8) == 0) {
    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);
    fprintf(stderr,"%s\n",uVar4);
    uVar4 = 0;
  }
  else {
    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);
    while( true ) {
      if (puVar1 == (undefined8 *)0x0) {
        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);
        puVar1 = *(undefined8 **)(param_1 + 0x10);
        *pauVar5 = (undefined1  [16])0x0;
        *(undefined8 *)pauVar5[1] = 0;
        *(char **)(*pauVar5 + 8) = param_2;
        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;
            puVar2 = (undefined8 *)*puVar2) {
          puVar1 = puVar2;
        }
        *puVar1 = pauVar5;
        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;
        return 1;
      }
      iVar3 = filename_cmp(puVar1[1],param_2);
      if (iVar3 == 0) break;
      puVar1 = (undefined8 *)*puVar1;
    }
    *(undefined8 **)(param_1 + 0x10) = puVar1;
    uVar4 = 1;
  }
  return uVar4;
}


PUSH R12
LEA RAX,[0x123227]
TEST RSI,RSI
PUSH RBP
MOV RBP,RSI
PUSH RBX
CMOVZ RBP,RAX
MOV RAX,qword ptr [RDI + 0x8]
TEST RAX,RAX
JZ 0x0010ec60
MOV RBX,qword ptr [RAX + 0x8]
MOV R12,RDI
TEST RBX,RBX
JNZ 0x0010ebe8
JMP 0x0010ec10
MOV RBX,qword ptr [RBX]
TEST RBX,RBX
JZ 0x0010ec10
MOV RDI,qword ptr [RBX + 0x8]
MOV RSI,RBP
CALL 0x00104190
TEST EAX,EAX
JNZ 0x0010ebe0
MOV qword ptr [R12 + 0x10],RBX
MOV EAX,0x1
POP RBX
POP RBP
POP R12
RET
MOV EDI,0x18
CALL 0x00104370
MOV RDX,qword ptr [R12 + 0x10]
PXOR XMM0,XMM0
MOVUPS xmmword ptr [RAX],XMM0
MOV qword ptr [RAX + 0x10],0x0
MOV RCX,qword ptr [RDX]
MOV qword ptr [RAX + 0x8],RBP
TEST RCX,RCX
JNZ 0x0010ec43
JMP 0x0010ec92
MOV RCX,RDX
MOV RDX,qword ptr [RCX]
TEST RDX,RDX
JNZ 0x0010ec40
MOV qword ptr [RCX],RAX
MOV qword ptr [R12 + 0x10],RAX
MOV EAX,0x1
POP RBX
POP RBP
POP R12
RET
MOV EDX,0x5
LEA RSI,[0x122a70]
XOR EDI,EDI
CALL 0x00104240
MOV RDI,qword ptr [0x0012c9e0]
LEA RSI,[0x12456f]
MOV RDX,RAX
XOR EAX,EAX
CALL 0x001044a0
XOR EAX,EAX
JMP 0x0010ec02
MOV RCX,RDX
JMP 0x0010ec4b
(translation_unit "undefined8 FUN_0010ebb0(long param_1,char *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined8 FUN_0010ebb0(long param_1,char *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0010ebb0(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "undefined1 (*pauVar5) [16];" (subscript_expression "undefined1 (*pauVar5) [16]" (call_expression "undefined1 (*pauVar5)" identifier (argument_list "(*pauVar5)" ( (pointer_expression "*pauVar5" * identifier) ))) [ number_literal ]) ;) (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 (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 8) == 0)" ( (binary_expression "*(long *)(param_1 + 8) == 0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%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(stderr,"%s\n",uVar4);" (call_expression "fprintf(stderr,"%s\n",uVar4)" identifier (argument_list "(stderr,"%s\n",uVar4)" ( 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 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" else (compound_statement "{\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" { (expression_statement "puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);" (assignment_expression "puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8)" identifier = (pointer_expression "*(undefined8 **)(*(long *)(param_1 + 8) + 8)" * (cast_expression "(undefined8 **)(*(long *)(param_1 + 8) + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 8) + 8)" ( (binary_expression "*(long *)(param_1 + 8) + 8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }" { (expression_statement "pauVar5 = (undefined1 (*) [16])xmalloc(0x18);" (assignment_expression "pauVar5 = (undefined1 (*) [16])xmalloc(0x18)" identifier = (cast_expression "(undefined1 (*) [16])xmalloc(0x18)" ( (type_descriptor "undefined1 (*) [16]" type_identifier (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*pauVar5 = (undefined1  [16])0x0;" (assignment_expression "*pauVar5 = (undefined1  [16])0x0" (pointer_expression "*pauVar5" * identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*(undefined8 *)pauVar5[1] = 0;" (assignment_expression "*(undefined8 *)pauVar5[1] = 0" (pointer_expression "*(undefined8 *)pauVar5[1]" * (cast_expression "(undefined8 *)pauVar5[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pauVar5[1]" identifier [ number_literal ]))) = number_literal) ;) (expression_statement "*(char **)(*pauVar5 + 8) = param_2;" (assignment_expression "*(char **)(*pauVar5 + 8) = param_2" (pointer_expression "*(char **)(*pauVar5 + 8)" * (cast_expression "(char **)(*pauVar5 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*pauVar5 + 8)" ( (binary_expression "*pauVar5 + 8" (pointer_expression "*pauVar5" * identifier) + number_literal) )))) = identifier) ;) (for_statement "for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }" for ( (assignment_expression "puVar2 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ; (binary_expression "puVar2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar2 = (undefined8 *)*puVar2" identifier = (cast_expression "(undefined8 *)*puVar2" ( (type_descriptor "undefined8 *" 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 = pauVar5;" (assignment_expression "*puVar1 = pauVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;" (assignment_expression "*(undefined1 (**) [16])(param_1 + 0x10) = pauVar5" (pointer_expression "*(undefined1 (**) [16])(param_1 + 0x10)" * (cast_expression "(undefined1 (**) [16])(param_1 + 0x10)" ( (type_descriptor "undefined1 (**) [16]" type_identifier (abstract_array_declarator "(**) [16]" (abstract_parenthesized_declarator "(**)" ( (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)) )) [ number_literal ])) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" 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 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "*(undefined8 **)(param_1 + 0x10) = puVar1;" (assignment_expression "*(undefined8 **)(param_1 + 0x10) = puVar1" (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "bfd_boolean debug_start_source(void *handle,char *name)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  bfd_boolean bVar4;\n  undefined1 (*pauVar5) [16];\n  undefined8 uVar6;\n  debug_handle *info;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  if (*(long *)((long)handle + 8) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)((long)handle + 0x10) = puVar1;\n    bVar4 = 1;\n  }\n  return bVar4;\n}\n\n" (function_definition "bfd_boolean debug_start_source(void *handle,char *name)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  bfd_boolean bVar4;\n  undefined1 (*pauVar5) [16];\n  undefined8 uVar6;\n  debug_handle *info;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  if (*(long *)((long)handle + 8) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)((long)handle + 0x10) = 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  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  bfd_boolean bVar4;\n  undefined1 (*pauVar5) [16];\n  undefined8 uVar6;\n  debug_handle *info;\n  \n  if (name == (char *)0x0) {\n    name = "";\n  }\n  if (*(long *)((long)handle + 8) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)((long)handle + 0x10) = puVar1;\n    bVar4 = 1;\n  }\n  return bVar4;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bfd_boolean bVar4;" type_identifier identifier ;) (expression_statement "undefined1 (*pauVar5) [16];" (subscript_expression "undefined1 (*pauVar5) [16]" (call_expression "undefined1 (*pauVar5)" identifier (argument_list "(*pauVar5)" ( (pointer_expression "*pauVar5" * identifier) ))) [ number_literal ]) ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * 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 (*(long *)((long)handle + 8) == 0) {\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar6);\n    bVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)((long)handle + 0x10) = puVar1;\n    bVar4 = 1;\n  }" if (parenthesized_expression "(*(long *)((long)handle + 8) == 0)" ( (binary_expression "*(long *)((long)handle + 8) == 0" (pointer_expression "*(long *)((long)handle + 8)" * (cast_expression "(long *)((long)handle + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar6 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%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(stderr,"%s\n",uVar6);" (call_expression "fprintf(stderr,"%s\n",uVar6)" identifier (argument_list "(stderr,"%s\n",uVar6)" ( 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 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)((long)handle + 0x10) = puVar1;\n    bVar4 = 1;\n  }" else (compound_statement "{\n    puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)((long)handle + 0x10) = puVar1;\n    bVar4 = 1;\n  }" { (expression_statement "puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8);" (assignment_expression "puVar1 = *(undefined8 **)(*(long *)((long)handle + 8) + 8)" identifier = (pointer_expression "*(undefined8 **)(*(long *)((long)handle + 8) + 8)" * (cast_expression "(undefined8 **)(*(long *)((long)handle + 8) + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)((long)handle + 8) + 8)" ( (binary_expression "*(long *)((long)handle + 8) + 8" (pointer_expression "*(long *)((long)handle + 8)" * (cast_expression "(long *)((long)handle + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],name);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)((long)handle + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = name;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;\n        return 1;\n      }" { (expression_statement "pauVar5 = (undefined1 (*) [16])xmalloc(0x18);" (assignment_expression "pauVar5 = (undefined1 (*) [16])xmalloc(0x18)" identifier = (cast_expression "(undefined1 (*) [16])xmalloc(0x18)" ( (type_descriptor "undefined1 (*) [16]" type_identifier (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar1 = *(undefined8 **)((long)handle + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)((long)handle + 0x10)" identifier = (pointer_expression "*(undefined8 **)((long)handle + 0x10)" * (cast_expression "(undefined8 **)((long)handle + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x10)" ( (binary_expression "(long)handle + 0x10" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "*pauVar5 = (undefined1  [16])0x0;" (assignment_expression "*pauVar5 = (undefined1  [16])0x0" (pointer_expression "*pauVar5" * identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*(undefined8 *)pauVar5[1] = 0;" (assignment_expression "*(undefined8 *)pauVar5[1] = 0" (pointer_expression "*(undefined8 *)pauVar5[1]" * (cast_expression "(undefined8 *)pauVar5[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pauVar5[1]" identifier [ number_literal ]))) = number_literal) ;) (expression_statement "*(char **)(*pauVar5 + 8) = name;" (assignment_expression "*(char **)(*pauVar5 + 8) = name" (pointer_expression "*(char **)(*pauVar5 + 8)" * (cast_expression "(char **)(*pauVar5 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*pauVar5 + 8)" ( (binary_expression "*pauVar5 + 8" (pointer_expression "*pauVar5" * identifier) + number_literal) )))) = identifier) ;) (for_statement "for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }" for ( (assignment_expression "puVar2 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ; (binary_expression "puVar2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar2 = (undefined8 *)*puVar2" identifier = (cast_expression "(undefined8 *)*puVar2" ( (type_descriptor "undefined8 *" 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 = pauVar5;" (assignment_expression "*puVar1 = pauVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 (**) [16])((long)handle + 0x10) = pauVar5;" (assignment_expression "*(undefined1 (**) [16])((long)handle + 0x10) = pauVar5" (pointer_expression "*(undefined1 (**) [16])((long)handle + 0x10)" * (cast_expression "(undefined1 (**) [16])((long)handle + 0x10)" ( (type_descriptor "undefined1 (**) [16]" type_identifier (abstract_array_declarator "(**) [16]" (abstract_parenthesized_declarator "(**)" ( (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)) )) [ number_literal ])) ) (parenthesized_expression "((long)handle + 0x10)" ( (binary_expression "(long)handle + 0x10" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "*(undefined8 **)((long)handle + 0x10) = puVar1;" (assignment_expression "*(undefined8 **)((long)handle + 0x10) = puVar1" (pointer_expression "*(undefined8 **)((long)handle + 0x10)" * (cast_expression "(undefined8 **)((long)handle + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x10)" ( (binary_expression "(long)handle + 0x10" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "bVar4 = 1;" (assignment_expression "bVar4 = 1" identifier = number_literal) ;) }))) (return_statement "return bVar4;" return identifier ;) })))
(translation_unit "undefined8 FUN_0010ebb0(long param_1,char *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined8 FUN_0010ebb0(long param_1,char *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_0010ebb0(long param_1,char *param_2)" identifier (parameter_list "(long param_1,char *param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "undefined1 (*pauVar5) [16];" (subscript_expression "undefined1 (*pauVar5) [16]" (call_expression "undefined1 (*pauVar5)" identifier (argument_list "(*pauVar5)" ( (pointer_expression "*pauVar5" * identifier) ))) [ number_literal ]) ;) (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 (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" if (parenthesized_expression "(*(long *)(param_1 + 8) == 0)" ( (binary_expression "*(long *)(param_1 + 8) == 0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%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(stderr,"%s\n",uVar4);" (call_expression "fprintf(stderr,"%s\n",uVar4)" identifier (argument_list "(stderr,"%s\n",uVar4)" ( 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 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" else (compound_statement "{\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" { (expression_statement "puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);" (assignment_expression "puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8)" identifier = (pointer_expression "*(undefined8 **)(*(long *)(param_1 + 8) + 8)" * (cast_expression "(undefined8 **)(*(long *)(param_1 + 8) + 8)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)(param_1 + 8) + 8)" ( (binary_expression "*(long *)(param_1 + 8) + 8" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" { (if_statement "if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }" if (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" ( (binary_expression "puVar1 == (undefined8 *)0x0" identifier == (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }" { (expression_statement "pauVar5 = (undefined1 (*) [16])xmalloc(0x18);" (assignment_expression "pauVar5 = (undefined1 (*) [16])xmalloc(0x18)" identifier = (cast_expression "(undefined1 (*) [16])xmalloc(0x18)" ( (type_descriptor "undefined1 (*) [16]" type_identifier (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" ( (abstract_pointer_declarator "*" *) )) [ number_literal ])) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x10)" identifier = (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*pauVar5 = (undefined1  [16])0x0;" (assignment_expression "*pauVar5 = (undefined1  [16])0x0" (pointer_expression "*pauVar5" * identifier) = (cast_expression "(undefined1  [16])0x0" ( (type_descriptor "undefined1  [16]" type_identifier (abstract_array_declarator "[16]" [ number_literal ])) ) number_literal)) ;) (expression_statement "*(undefined8 *)pauVar5[1] = 0;" (assignment_expression "*(undefined8 *)pauVar5[1] = 0" (pointer_expression "*(undefined8 *)pauVar5[1]" * (cast_expression "(undefined8 *)pauVar5[1]" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "pauVar5[1]" identifier [ number_literal ]))) = number_literal) ;) (expression_statement "*(char **)(*pauVar5 + 8) = param_2;" (assignment_expression "*(char **)(*pauVar5 + 8) = param_2" (pointer_expression "*(char **)(*pauVar5 + 8)" * (cast_expression "(char **)(*pauVar5 + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*pauVar5 + 8)" ( (binary_expression "*pauVar5 + 8" (pointer_expression "*pauVar5" * identifier) + number_literal) )))) = identifier) ;) (for_statement "for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }" for ( (assignment_expression "puVar2 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ; (binary_expression "puVar2 != (undefined8 *)0x0" identifier != (cast_expression "(undefined8 *)0x0" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar2 = (undefined8 *)*puVar2" identifier = (cast_expression "(undefined8 *)*puVar2" ( (type_descriptor "undefined8 *" 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 = pauVar5;" (assignment_expression "*puVar1 = pauVar5" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "*(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;" (assignment_expression "*(undefined1 (**) [16])(param_1 + 0x10) = pauVar5" (pointer_expression "*(undefined1 (**) [16])(param_1 + 0x10)" * (cast_expression "(undefined1 (**) [16])(param_1 + 0x10)" ( (type_descriptor "undefined1 (**) [16]" type_identifier (abstract_array_declarator "(**) [16]" (abstract_parenthesized_declarator "(**)" ( (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)) )) [ number_literal ])) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" 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 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" identifier = (cast_expression "(undefined8 *)*puVar1" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (expression_statement "*(undefined8 **)(param_1 + 0x10) = puVar1;" (assignment_expression "*(undefined8 **)(param_1 + 0x10) = puVar1" (pointer_expression "*(undefined8 **)(param_1 + 0x10)" * (cast_expression "(undefined8 **)(param_1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" 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 (sized_type_specifier long) 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 ;) (expression_statement (subscript_expression (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))) [ LIT ]) ;) (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 (sized_type_specifier long) (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 ( 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 (sized_type_specifier long) (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_array_declarator (abstract_parenthesized_declarator ( (abstract_pointer_declarator *) )) [ LIT ])) ) (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) = (cast_expression ( (type_descriptor TYPE (abstract_array_declarator [ LIT ])) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) = IDENT) ;) (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_array_declarator (abstract_parenthesized_declarator ( (abstract_pointer_declarator * (abstract_pointer_declarator *)) )) [ LIT ])) ) (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 "undefined8 FUN_0010ebb0(long param_1,char *param_2)\n\n{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" (type_identifier "undefined8") (function_declarator "FUN_0010ebb0(long param_1,char *param_2)" (identifier "FUN_0010ebb0") (parameter_list "(long param_1,char *param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  undefined8 *puVar2;\n  int iVar3;\n  undefined8 uVar4;\n  undefined1 (*pauVar5) [16];\n  \n  if (param_2 == (char *)0x0) {\n    param_2 = "";\n  }\n  if (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }\n  return uVar4;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "undefined1 (*pauVar5) [16];" (subscript_expression "undefined1 (*pauVar5) [16]" (call_expression "undefined1 (*pauVar5)" (identifier "undefined1") (argument_list "(*pauVar5)" (( "(") (pointer_expression "*pauVar5" (* "*") (identifier "pauVar5")) () ")"))) ([ "[") (number_literal "16") (] "]")) (; ";")) (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 (*(long *)(param_1 + 8) == 0) {\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%s\n",uVar4);\n    uVar4 = 0;\n  }\n  else {\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 8) == 0" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);\n    fprintf(stderr,"%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(stderr,"%s\n",uVar4);" (call_expression "fprintf(stderr,"%s\n",uVar4)" (identifier "fprintf") (argument_list "(stderr,"%s\n",uVar4)" (( "(") (identifier "stderr") (, ",") (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 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" (else "else") (compound_statement "{\n    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);\n    while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }\n    *(undefined8 **)(param_1 + 0x10) = puVar1;\n    uVar4 = 1;\n  }" ({ "{") (expression_statement "puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);" (assignment_expression "puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(*(long *)(param_1 + 8) + 8)" (* "*") (cast_expression "(undefined8 **)(*(long *)(param_1 + 8) + 8)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)(param_1 + 8) + 8)" (( "(") (binary_expression "*(long *)(param_1 + 8) + 8" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }\n      iVar3 = filename_cmp(puVar1[1],param_2);\n      if (iVar3 == 0) break;\n      puVar1 = (undefined8 *)*puVar1;\n    }" ({ "{") (if_statement "if (puVar1 == (undefined8 *)0x0) {\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }" (if "if") (parenthesized_expression "(puVar1 == (undefined8 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined8 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);\n        puVar1 = *(undefined8 **)(param_1 + 0x10);\n        *pauVar5 = (undefined1  [16])0x0;\n        *(undefined8 *)pauVar5[1] = 0;\n        *(char **)(*pauVar5 + 8) = param_2;\n        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }\n        *puVar1 = pauVar5;\n        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;\n        return 1;\n      }" ({ "{") (expression_statement "pauVar5 = (undefined1 (*) [16])xmalloc(0x18);" (assignment_expression "pauVar5 = (undefined1 (*) [16])xmalloc(0x18)" (identifier "pauVar5") (= "=") (cast_expression "(undefined1 (*) [16])xmalloc(0x18)" (( "(") (type_descriptor "undefined1 (*) [16]" (type_identifier "undefined1") (abstract_array_declarator "(*) [16]" (abstract_parenthesized_declarator "(*)" (( "(") (abstract_pointer_declarator "*" (* "*")) () ")")) ([ "[") (number_literal "16") (] "]"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "puVar1 = *(undefined8 **)(param_1 + 0x10);" (assignment_expression "puVar1 = *(undefined8 **)(param_1 + 0x10)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined8 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*pauVar5 = (undefined1  [16])0x0;" (assignment_expression "*pauVar5 = (undefined1  [16])0x0" (pointer_expression "*pauVar5" (* "*") (identifier "pauVar5")) (= "=") (cast_expression "(undefined1  [16])0x0" (( "(") (type_descriptor "undefined1  [16]" (type_identifier "undefined1") (abstract_array_declarator "[16]" ([ "[") (number_literal "16") (] "]"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*(undefined8 *)pauVar5[1] = 0;" (assignment_expression "*(undefined8 *)pauVar5[1] = 0" (pointer_expression "*(undefined8 *)pauVar5[1]" (* "*") (cast_expression "(undefined8 *)pauVar5[1]" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "pauVar5[1]" (identifier "pauVar5") ([ "[") (number_literal "1") (] "]")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(char **)(*pauVar5 + 8) = param_2;" (assignment_expression "*(char **)(*pauVar5 + 8) = param_2" (pointer_expression "*(char **)(*pauVar5 + 8)" (* "*") (cast_expression "(char **)(*pauVar5 + 8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*pauVar5 + 8)" (( "(") (binary_expression "*pauVar5 + 8" (pointer_expression "*pauVar5" (* "*") (identifier "pauVar5")) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (for_statement "for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;\n            puVar2 = (undefined8 *)*puVar2) {\n          puVar1 = puVar2;\n        }" (for "for") (( "(") (assignment_expression "puVar2 = (undefined8 *)*puVar1" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*puVar1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";") (binary_expression "puVar2 != (undefined8 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined8 *)0x0" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar2 = (undefined8 *)*puVar2" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)*puVar2" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (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 = pauVar5;" (assignment_expression "*puVar1 = pauVar5" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "pauVar5")) (; ";")) (expression_statement "*(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;" (assignment_expression "*(undefined1 (**) [16])(param_1 + 0x10) = pauVar5" (pointer_expression "*(undefined1 (**) [16])(param_1 + 0x10)" (* "*") (cast_expression "(undefined1 (**) [16])(param_1 + 0x10)" (( "(") (type_descriptor "undefined1 (**) [16]" (type_identifier "undefined1") (abstract_array_declarator "(**) [16]" (abstract_parenthesized_declarator "(**)" (( "(") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*"))) () ")")) ([ "[") (number_literal "16") (] "]"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "pauVar5")) (; ";")) (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 = (undefined8 *)*puVar1;" (assignment_expression "puVar1 = (undefined8 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)*puVar1" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (expression_statement "*(undefined8 **)(param_1 + 0x10) = puVar1;" (assignment_expression "*(undefined8 **)(param_1 + 0x10) = puVar1" (pointer_expression "*(undefined8 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar1")) (; ";")) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (} "}")))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))

type_1 function_1(void *handle,char *var_2)

{
  type_2 *var_5;
  type_2 *var_7;
  int var_9;
  type_1 bVar4;
  var_1 (*pauVar5) [16];
  type_2 uVar6;
  type_3 *info;
  
  if (var_2 == (char *)0x0) {
    var_2 = "";
  }
  if (*(long *)((long)handle + 8) == 0) {
    uVar6 = var_3(0,"debug_start_source: no debug_set_filename call",5);
    var_4(stderr,"%s\n",uVar6);
    bVar4 = 0;
  }
  else {
    var_5 = *(type_2 **)(*(long *)((long)handle + 8) + 8);
    while( true ) {
      if (var_5 == (type_2 *)0x0) {
        pauVar5 = (var_1 (*) [16])var_6(0x18);
        var_5 = *(type_2 **)((long)handle + 0x10);
        *pauVar5 = (var_1  [16])0x0;
        *(type_2 *)pauVar5[1] = 0;
        *(char **)(*pauVar5 + 8) = var_2;
        for (var_7 = (type_2 *)*var_5; var_7 != (type_2 *)0x0;
            var_7 = (type_2 *)*var_7) {
          var_5 = var_7;
        }
        *var_5 = pauVar5;
        *(var_1 (**) [16])((long)handle + 0x10) = pauVar5;
        return 1;
      }
      var_9 = var_8(var_5[1],var_2);
      if (var_9 == 0) break;
      var_5 = (type_2 *)*var_5;
    }
    *(type_2 **)((long)handle + 0x10) = var_5;
    bVar4 = 1;
  }
  return bVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) 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)) (expression_statement (subscript_expression argument: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))) index: (number_literal))) (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: (sized_type_specifier) 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 (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: (sized_type_specifier) 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_array_declarator declarator: (abstract_parenthesized_declarator (abstract_pointer_declarator)) size: (number_literal))) 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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_array_declarator size: (number_literal))) value: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (identifier))) (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_array_declarator declarator: (abstract_parenthesized_declarator (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) size: (number_literal))) 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)))))

undefined8 MASKED(long param_1,char *param_2)

{
  undefined8 *puVar1;
  undefined8 *puVar2;
  int iVar3;
  undefined8 uVar4;
  undefined1 (*pauVar5) [16];
  
  if (param_2 == (char *)0x0) {
    param_2 = "";
  }
  if (*(long *)(param_1 + 8) == 0) {
    uVar4 = dcgettext(0,"debug_start_source: no debug_set_filename call",5);
    fprintf(stderr,"%s\n",uVar4);
    uVar4 = 0;
  }
  else {
    puVar1 = *(undefined8 **)(*(long *)(param_1 + 8) + 8);
    while( true ) {
      if (puVar1 == (undefined8 *)0x0) {
        pauVar5 = (undefined1 (*) [16])xmalloc(0x18);
        puVar1 = *(undefined8 **)(param_1 + 0x10);
        *pauVar5 = (undefined1  [16])0x0;
        *(undefined8 *)pauVar5[1] = 0;
        *(char **)(*pauVar5 + 8) = param_2;
        for (puVar2 = (undefined8 *)*puVar1; puVar2 != (undefined8 *)0x0;
            puVar2 = (undefined8 *)*puVar2) {
          puVar1 = puVar2;
        }
        *puVar1 = pauVar5;
        *(undefined1 (**) [16])(param_1 + 0x10) = pauVar5;
        return 1;
      }
      iVar3 = filename_cmp(puVar1[1],param_2);
      if (iVar3 == 0) break;
      puVar1 = (undefined8 *)*puVar1;
    }
    *(undefined8 **)(param_1 + 0x10) = puVar1;
    uVar4 = 1;
  }
  return uVar4;
}

