
/* WARNING: Unknown calling convention */

bfd_boolean debug_write(void *handle,debug_write_fns *fns,void *fhandle)

{
  int iVar1;
  bfd_boolean bVar2;
  debug_name *n;
  undefined4 *puVar3;
  int *local_2c;
  
  *(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1;
  *(undefined4 *)((int)handle + 0x2c) = 0;
  *(undefined4 *)((int)handle + 0x20) = *(undefined4 *)((int)handle + 0x1c);
                    /* WARNING: Load size is inaccurate */
  local_2c = *handle;
  if (local_2c != (int *)0x0) {
    do {
      iVar1 = local_2c[2];
      *(undefined4 *)((int)handle + 0x28) = 0;
      *(int *)((int)handle + 0x24) = iVar1;
      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));
      if (bVar2 == 0) {
        return 0;
      }
      puVar3 = (undefined4 *)local_2c[1];
      if (puVar3 != (undefined4 *)0x0) {
        while( true ) {
          if (((int *)puVar3[2] == (int *)0x0) ||
             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {
            puVar3 = (undefined4 *)*puVar3;
          }
          else {
            do {
              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);
              if (bVar2 == 0) {
                return 0;
              }
              n = n->next;
            } while (n != (debug_name *)0x0);
            puVar3 = (undefined4 *)*puVar3;
          }
          if (puVar3 == (undefined4 *)0x0) break;
          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);
          if (bVar2 == 0) {
            return 0;
          }
        }
      }
      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),
                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,
                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);
      if (bVar2 == 0) {
        return 0;
      }
      local_2c = (int *)*local_2c;
    } while (local_2c != (int *)0x0);
  }
  return 1;
}



undefined4 FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  undefined4 *puVar5;
  
  param_1[6] = param_1[6] + 1;
  param_1[0xb] = 0;
  param_1[8] = param_1[7];
  puVar1 = (undefined4 *)*param_1;
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      return 1;
    }
    uVar2 = puVar1[2];
    param_1[10] = 0;
    param_1[9] = uVar2;
    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));
    if (iVar3 == 0) {
      return 0;
    }
    puVar5 = (undefined4 *)puVar1[1];
    if (puVar5 != (undefined4 *)0x0) {
      while( true ) {
        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))
        {
          puVar5 = (undefined4 *)*puVar5;
        }
        else {
          do {
            iVar3 = FUN_0001e8a0(piVar4);
            if (iVar3 == 0) {
              return 0;
            }
            piVar4 = (int *)*piVar4;
          } while (piVar4 != (int *)0x0);
          puVar5 = (undefined4 *)*puVar5;
        }
        if (puVar5 == (undefined4 *)0x0) break;
        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);
        if (iVar3 == 0) {
          return 0;
        }
      }
    }
    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);
    if (iVar3 == 0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESI + 0x1c]
ADD dword ptr [ESI + 0x18],0x1
MOV dword ptr [ESI + 0x2c],0x0
MOV dword ptr [ESI + 0x20],EAX
MOV EAX,dword ptr [ESI]
MOV dword ptr [ESP],EAX
TEST EAX,EAX
JZ 0x000207fd
LEA EAX,[EDI + 0xac]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[ESI + 0x28]
MOV dword ptr [ESP + 0xc],EAX
MOV EDX,dword ptr [ESP]
SUB ESP,0x8
MOV EAX,dword ptr [EDX + 0x8]
MOV dword ptr [ESI + 0x28],0x0
MOV dword ptr [ESI + 0x24],EAX
MOV EAX,dword ptr [EDX + 0x4]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [ESP + 0x44]
CALL dword ptr [EDI]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00020780
MOV EAX,dword ptr [ESP]
MOV EBP,dword ptr [EAX + 0x4]
TEST EBP,EBP
JZ 0x000207cb
MOV EAX,dword ptr [EBP + 0x8]
TEST EAX,EAX
JNZ 0x00020790
MOV EBP,dword ptr [EBP]
TEST EBP,EBP
JZ 0x000207cb
SUB ESP,0x8
PUSH dword ptr [EBP + 0x4]
PUSH dword ptr [ESP + 0x44]
CALL dword ptr [EDI + 0x4]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002075e
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBX,dword ptr [EAX]
TEST EBX,EBX
JZ 0x00020765
MOV dword ptr [ESP + 0x4],EBP
MOV EBP,dword ptr [ESP + 0x38]
JMP 0x000207a6
MOV EBX,dword ptr [EBX]
TEST EBX,EBX
JZ 0x000207c0
SUB ESP,0xc
MOV ECX,EBP
MOV EDX,EDI
MOV EAX,ESI
PUSH EBX
CALL 0x0001e8a0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000207a0
JMP 0x00020780
MOV EBP,dword ptr [ESP + 0x4]
MOV EBP,dword ptr [EBP]
TEST EBP,EBP
JNZ 0x0002076c
SUB ESP,0x4
LEA EAX,[ESI + 0x24]
PUSH -0x1
PUSH -0x1
PUSH dword ptr [ESP + 0x44]
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x0001d2b0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00020780
MOV EAX,dword ptr [ESP]
MOV EAX,dword ptr [EAX]
MOV dword ptr [ESP],EAX
TEST EAX,EAX
JNZ 0x0002072e
MOV EAX,0x1
JMP 0x00020782
(translation_unit "undefined4 FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "param_1[6] = param_1[6] + 1;" (assignment_expression "param_1[6] = param_1[6] + 1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "param_1[6] + 1" (subscript_expression "param_1[6]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[8] = param_1[7];" (assignment_expression "param_1[8] = param_1[7]" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = puVar1[2];" (assignment_expression "uVar2 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));" (assignment_expression "iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4))" identifier = (call_expression "(*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4))" (parenthesized_expression "(*(code *)*param_2)" ( (pointer_expression "*(code *)*param_2" * (cast_expression "(code *)*param_2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) )) (argument_list "(param_3,*(undefined4 *)(puVar1[1] + 4))" ( identifier , (pointer_expression "*(undefined4 *)(puVar1[1] + 4)" * (cast_expression "(undefined4 *)(puVar1[1] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[1] + 4)" ( (binary_expression "puVar1[1] + 4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar5 = (undefined4 *)puVar1[1];" (assignment_expression "puVar5 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }" { (while_statement "while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" { (if_statement "if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" if (parenthesized_expression "(((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))" ( (binary_expression "((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0)" (parenthesized_expression "((int *)puVar5[2] == (int *)0x0)" ( (binary_expression "(int *)puVar5[2] == (int *)0x0" (cast_expression "(int *)puVar5[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[2]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0)" ( (comma_expression "piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0" (assignment_expression "piVar4 = *(int **)puVar5[2]" identifier = (pointer_expression "*(int **)puVar5[2]" * (cast_expression "(int **)puVar5[2]" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar5[2]" identifier [ number_literal ])))) , (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          puVar5 = (undefined4 *)*puVar5;\n        }" { (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) (else_clause "else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" else (compound_statement "{\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" { (do_statement "do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);" do (compound_statement "{\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          }" { (expression_statement "iVar3 = FUN_0001e8a0(piVar4);" (assignment_expression "iVar3 = FUN_0001e8a0(piVar4)" identifier = (call_expression "FUN_0001e8a0(piVar4)" identifier (argument_list "(piVar4)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n              return 0;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              return 0;\n            }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }))) (if_statement "if (puVar5 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);" (assignment_expression "iVar3 = (*(code *)param_2[1])(param_3,puVar5[1])" identifier = (call_expression "(*(code *)param_2[1])(param_3,puVar5[1])" (parenthesized_expression "(*(code *)param_2[1])" ( (pointer_expression "*(code *)param_2[1]" * (cast_expression "(code *)param_2[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (argument_list "(param_3,puVar5[1])" ( identifier , (subscript_expression "puVar5[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) })) (expression_statement "iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);" (assignment_expression "iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff)" identifier = (call_expression "FUN_0001d2b0(param_3,0xffffffff,0xffffffff)" identifier (argument_list "(param_3,0xffffffff,0xffffffff)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nbfd_boolean debug_write(void *handle,debug_write_fns *fns,void *fhandle)\n\n{\n  int iVar1;\n  bfd_boolean bVar2;\n  debug_name *n;\n  undefined4 *puVar3;\n  int *local_2c;\n  \n  *(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1;\n  *(undefined4 *)((int)handle + 0x2c) = 0;\n  *(undefined4 *)((int)handle + 0x20) = *(undefined4 *)((int)handle + 0x1c);\n                    /* WARNING: Load size is inaccurate */\n  local_2c = *handle;\n  if (local_2c != (int *)0x0) {\n    do {\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    } while (local_2c != (int *)0x0);\n  }\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean debug_write(void *handle,debug_write_fns *fns,void *fhandle)\n\n{\n  int iVar1;\n  bfd_boolean bVar2;\n  debug_name *n;\n  undefined4 *puVar3;\n  int *local_2c;\n  \n  *(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1;\n  *(undefined4 *)((int)handle + 0x2c) = 0;\n  *(undefined4 *)((int)handle + 0x20) = *(undefined4 *)((int)handle + 0x1c);\n                    /* WARNING: Load size is inaccurate */\n  local_2c = *handle;\n  if (local_2c != (int *)0x0) {\n    do {\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    } while (local_2c != (int *)0x0);\n  }\n  return 1;\n}" type_identifier (function_declarator "debug_write(void *handle,debug_write_fns *fns,void *fhandle)" identifier (parameter_list "(void *handle,debug_write_fns *fns,void *fhandle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_write_fns *fns" type_identifier (pointer_declarator "*fns" * identifier)) , (parameter_declaration "void *fhandle" primitive_type (pointer_declarator "*fhandle" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  bfd_boolean bVar2;\n  debug_name *n;\n  undefined4 *puVar3;\n  int *local_2c;\n  \n  *(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1;\n  *(undefined4 *)((int)handle + 0x2c) = 0;\n  *(undefined4 *)((int)handle + 0x20) = *(undefined4 *)((int)handle + 0x1c);\n                    /* WARNING: Load size is inaccurate */\n  local_2c = *handle;\n  if (local_2c != (int *)0x0) {\n    do {\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    } while (local_2c != (int *)0x0);\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "debug_name *n;" type_identifier (pointer_declarator "*n" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *local_2c;" primitive_type (pointer_declarator "*local_2c" * identifier) ;) (expression_statement "*(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1;" (assignment_expression "*(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1" (pointer_expression "*(int *)((int)handle + 0x18)" * (cast_expression "(int *)((int)handle + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x18)" ( (binary_expression "(int)handle + 0x18" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)handle + 0x18) + 1" (pointer_expression "*(int *)((int)handle + 0x18)" * (cast_expression "(int *)((int)handle + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x18)" ( (binary_expression "(int)handle + 0x18" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(undefined4 *)((int)handle + 0x2c) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x2c) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x2c)" * (cast_expression "(undefined4 *)((int)handle + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x2c)" ( (binary_expression "(int)handle + 0x2c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)handle + 0x20) = *(undefined4 *)((int)handle + 0x1c);" (assignment_expression "*(undefined4 *)((int)handle + 0x20) = *(undefined4 *)((int)handle + 0x1c)" (pointer_expression "*(undefined4 *)((int)handle + 0x20)" * (cast_expression "(undefined4 *)((int)handle + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x20)" ( (binary_expression "(int)handle + 0x20" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)((int)handle + 0x1c)" * (cast_expression "(undefined4 *)((int)handle + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x1c)" ( (binary_expression "(int)handle + 0x1c" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) comment (expression_statement "local_2c = *handle;" (assignment_expression "local_2c = *handle" identifier = (pointer_expression "*handle" * identifier)) ;) (if_statement "if (local_2c != (int *)0x0) {\n    do {\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    } while (local_2c != (int *)0x0);\n  }" if (parenthesized_expression "(local_2c != (int *)0x0)" ( (binary_expression "local_2c != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    } while (local_2c != (int *)0x0);\n  }" { (do_statement "do {\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    } while (local_2c != (int *)0x0);" do (compound_statement "{\n      iVar1 = local_2c[2];\n      *(undefined4 *)((int)handle + 0x28) = 0;\n      *(int *)((int)handle + 0x24) = iVar1;\n      bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));\n      if (bVar2 == 0) {\n        return 0;\n      }\n      puVar3 = (undefined4 *)local_2c[1];\n      if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }\n      bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);\n      if (bVar2 == 0) {\n        return 0;\n      }\n      local_2c = (int *)*local_2c;\n    }" { (expression_statement "iVar1 = local_2c[2];" (assignment_expression "iVar1 = local_2c[2]" identifier = (subscript_expression "local_2c[2]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)((int)handle + 0x28) = 0;" (assignment_expression "*(undefined4 *)((int)handle + 0x28) = 0" (pointer_expression "*(undefined4 *)((int)handle + 0x28)" * (cast_expression "(undefined4 *)((int)handle + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x28)" ( (binary_expression "(int)handle + 0x28" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)((int)handle + 0x24) = iVar1;" (assignment_expression "*(int *)((int)handle + 0x24) = iVar1" (pointer_expression "*(int *)((int)handle + 0x24)" * (cast_expression "(int *)((int)handle + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x24)" ( (binary_expression "(int)handle + 0x24" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4));" (assignment_expression "bVar2 = (*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4))" identifier = (call_expression "(*fns->start_compilation_unit)(fhandle,*(char **)(local_2c[1] + 4))" (parenthesized_expression "(*fns->start_compilation_unit)" ( (pointer_expression "*fns->start_compilation_unit" * (field_expression "fns->start_compilation_unit" identifier -> field_identifier)) )) (argument_list "(fhandle,*(char **)(local_2c[1] + 4))" ( identifier , (pointer_expression "*(char **)(local_2c[1] + 4)" * (cast_expression "(char **)(local_2c[1] + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_2c[1] + 4)" ( (binary_expression "local_2c[1] + 4" (subscript_expression "local_2c[1]" identifier [ number_literal ]) + number_literal) )))) )))) ;) (if_statement "if (bVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar3 = (undefined4 *)local_2c[1];" (assignment_expression "puVar3 = (undefined4 *)local_2c[1]" identifier = (cast_expression "(undefined4 *)local_2c[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_2c[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar3 != (undefined4 *)0x0) {\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }" if (parenthesized_expression "(puVar3 != (undefined4 *)0x0)" ( (binary_expression "puVar3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }\n      }" { (while_statement "while( true ) {\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          if (puVar3 == (undefined4 *)0x0) break;\n          bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);\n          if (bVar2 == 0) {\n            return 0;\n          }\n        }" { (if_statement "if (((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)) {\n            puVar3 = (undefined4 *)*puVar3;\n          }\n          else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }" if (parenthesized_expression "(((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0))" ( (binary_expression "((int *)puVar3[2] == (int *)0x0) ||\n             (n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)" (parenthesized_expression "((int *)puVar3[2] == (int *)0x0)" ( (binary_expression "(int *)puVar3[2] == (int *)0x0" (cast_expression "(int *)puVar3[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[2]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(n = *(debug_name **)puVar3[2], n == (debug_name *)0x0)" ( (comma_expression "n = *(debug_name **)puVar3[2], n == (debug_name *)0x0" (assignment_expression "n = *(debug_name **)puVar3[2]" identifier = (pointer_expression "*(debug_name **)puVar3[2]" * (cast_expression "(debug_name **)puVar3[2]" ( (type_descriptor "debug_name **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar3[2]" identifier [ number_literal ])))) , (binary_expression "n == (debug_name *)0x0" identifier == (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n            puVar3 = (undefined4 *)*puVar3;\n          }" { (expression_statement "puVar3 = (undefined4 *)*puVar3;" (assignment_expression "puVar3 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }) (else_clause "else {\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }" else (compound_statement "{\n            do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);\n            puVar3 = (undefined4 *)*puVar3;\n          }" { (do_statement "do {\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            } while (n != (debug_name *)0x0);" do (compound_statement "{\n              bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);\n              if (bVar2 == 0) {\n                return 0;\n              }\n              n = n->next;\n            }" { (expression_statement "bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n);" (assignment_expression "bVar2 = debug_write_name((debug_handle *)handle,fns,fhandle,n)" identifier = (call_expression "debug_write_name((debug_handle *)handle,fns,fhandle,n)" identifier (argument_list "((debug_handle *)handle,fns,fhandle,n)" ( (cast_expression "(debug_handle *)handle" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (bVar2 == 0) {\n                return 0;\n              }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                return 0;\n              }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "n = n->next;" (assignment_expression "n = n->next" identifier = (field_expression "n->next" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(n != (debug_name *)0x0)" ( (binary_expression "n != (debug_name *)0x0" identifier != (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar3 = (undefined4 *)*puVar3;" (assignment_expression "puVar3 = (undefined4 *)*puVar3" identifier = (cast_expression "(undefined4 *)*puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) }))) (if_statement "if (puVar3 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1]);" (assignment_expression "bVar2 = (*fns->start_source)(fhandle,(char *)puVar3[1])" identifier = (call_expression "(*fns->start_source)(fhandle,(char *)puVar3[1])" (parenthesized_expression "(*fns->start_source)" ( (pointer_expression "*fns->start_source" * (field_expression "fns->start_source" identifier -> field_identifier)) )) (argument_list "(fhandle,(char *)puVar3[1])" ( identifier , (cast_expression "(char *)puVar3[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[1]" identifier [ number_literal ])) )))) ;) (if_statement "if (bVar2 == 0) {\n            return 0;\n          }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            return 0;\n          }" { (return_statement "return 0;" return number_literal ;) })) })) })) (expression_statement "bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff);" (assignment_expression "bVar2 = debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff)" identifier = (call_expression "debug_write_linenos((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff)" identifier (argument_list "((debug_handle *)((int)handle + 0x24),\n                                  (debug_write_fns *)((int)handle + 0x28),&fns->lineno,\n                                  CONCAT44(0xffffffff,fhandle),(debug_handle *)0xffffffff)" ( (cast_expression "(debug_handle *)((int)handle + 0x24)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x24)" ( (binary_expression "(int)handle + 0x24" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (cast_expression "(debug_write_fns *)((int)handle + 0x28)" ( (type_descriptor "debug_write_fns *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x28)" ( (binary_expression "(int)handle + 0x28" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (pointer_expression "&fns->lineno" & (field_expression "fns->lineno" identifier -> field_identifier)) , (call_expression "CONCAT44(0xffffffff,fhandle)" identifier (argument_list "(0xffffffff,fhandle)" ( number_literal , identifier ))) , (cast_expression "(debug_handle *)0xffffffff" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (if_statement "if (bVar2 == 0) {\n        return 0;\n      }" if (parenthesized_expression "(bVar2 == 0)" ( (binary_expression "bVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_2c = (int *)*local_2c;" (assignment_expression "local_2c = (int *)*local_2c" identifier = (cast_expression "(int *)*local_2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*local_2c" * identifier))) ;) }) while (parenthesized_expression "(local_2c != (int *)0x0)" ( (binary_expression "local_2c != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (expression_statement "param_1[6] = param_1[6] + 1;" (assignment_expression "param_1[6] = param_1[6] + 1" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "param_1[6] + 1" (subscript_expression "param_1[6]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[8] = param_1[7];" (assignment_expression "param_1[8] = param_1[7]" (subscript_expression "param_1[8]" identifier [ number_literal ]) = (subscript_expression "param_1[7]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" identifier = (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" { (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = puVar1[2];" (assignment_expression "uVar2 = puVar1[2]" identifier = (subscript_expression "puVar1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));" (assignment_expression "iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4))" identifier = (call_expression "(*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4))" (parenthesized_expression "(*(code *)*param_2)" ( (pointer_expression "*(code *)*param_2" * (cast_expression "(code *)*param_2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) )) (argument_list "(param_3,*(undefined4 *)(puVar1[1] + 4))" ( identifier , (pointer_expression "*(undefined4 *)(puVar1[1] + 4)" * (cast_expression "(undefined4 *)(puVar1[1] + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1[1] + 4)" ( (binary_expression "puVar1[1] + 4" (subscript_expression "puVar1[1]" identifier [ number_literal ]) + number_literal) )))) )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "puVar5 = (undefined4 *)puVar1[1];" (assignment_expression "puVar5 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }" { (while_statement "while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" { (if_statement "if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" if (parenthesized_expression "(((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))" ( (binary_expression "((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0)" (parenthesized_expression "((int *)puVar5[2] == (int *)0x0)" ( (binary_expression "(int *)puVar5[2] == (int *)0x0" (cast_expression "(int *)puVar5[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[2]" identifier [ number_literal ])) == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0)" ( (comma_expression "piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0" (assignment_expression "piVar4 = *(int **)puVar5[2]" identifier = (pointer_expression "*(int **)puVar5[2]" * (cast_expression "(int **)puVar5[2]" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar5[2]" identifier [ number_literal ])))) , (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n          puVar5 = (undefined4 *)*puVar5;\n        }" { (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) (else_clause "else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" else (compound_statement "{\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" { (do_statement "do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);" do (compound_statement "{\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          }" { (expression_statement "iVar3 = FUN_0001e8a0(piVar4);" (assignment_expression "iVar3 = FUN_0001e8a0(piVar4)" identifier = (call_expression "FUN_0001e8a0(piVar4)" identifier (argument_list "(piVar4)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n              return 0;\n            }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n              return 0;\n            }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" identifier = (cast_expression "(int *)*piVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar4" * identifier))) ;) }) while (parenthesized_expression "(piVar4 != (int *)0x0)" ( (binary_expression "piVar4 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }))) (if_statement "if (puVar5 == (undefined4 *)0x0) break;" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);" (assignment_expression "iVar3 = (*(code *)param_2[1])(param_3,puVar5[1])" identifier = (call_expression "(*(code *)param_2[1])(param_3,puVar5[1])" (parenthesized_expression "(*(code *)param_2[1])" ( (pointer_expression "*(code *)param_2[1]" * (cast_expression "(code *)param_2[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_2[1]" identifier [ number_literal ]))) )) (argument_list "(param_3,puVar5[1])" ( identifier , (subscript_expression "puVar5[1]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n          return 0;\n        }" { (return_statement "return 0;" return number_literal ;) })) })) })) (expression_statement "iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);" (assignment_expression "iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff)" identifier = (call_expression "FUN_0001d2b0(param_3,0xffffffff,0xffffffff)" identifier (argument_list "(param_3,0xffffffff,0xffffffff)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (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 { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (subscript_expression IDENT [ LIT ])))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) (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))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000206f0(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" (identifier "FUN_000206f0") (parameter_list "(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  \n  param_1[6] = param_1[6] + 1;\n  param_1[0xb] = 0;\n  param_1[8] = param_1[7];\n  puVar1 = (undefined4 *)*param_1;\n  while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (expression_statement "param_1[6] = param_1[6] + 1;" (assignment_expression "param_1[6] = param_1[6] + 1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "param_1[6] + 1" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[0xb] = 0;" (assignment_expression "param_1[0xb] = 0" (subscript_expression "param_1[0xb]" (identifier "param_1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[8] = param_1[7];" (assignment_expression "param_1[8] = param_1[7]" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (subscript_expression "param_1[7]" (identifier "param_1") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)*param_1;" (assignment_expression "puVar1 = (undefined4 *)*param_1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (while_statement "while( true ) {\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }\n    uVar2 = puVar1[2];\n    param_1[10] = 0;\n    param_1[9] = uVar2;\n    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));\n    if (iVar3 == 0) {\n      return 0;\n    }\n    puVar5 = (undefined4 *)puVar1[1];\n    if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }\n    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);\n    if (iVar3 == 0) break;\n    puVar1 = (undefined4 *)*puVar1;\n  }" ({ "{") (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = puVar1[2];" (assignment_expression "uVar2 = puVar1[2]" (identifier "uVar2") (= "=") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[10] = 0;" (assignment_expression "param_1[10] = 0" (subscript_expression "param_1[10]" (identifier "param_1") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));" (assignment_expression "iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4))" (identifier "iVar3") (= "=") (call_expression "(*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4))" (parenthesized_expression "(*(code *)*param_2)" (( "(") (pointer_expression "*(code *)*param_2" (* "*") (cast_expression "(code *)*param_2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) () ")")) (argument_list "(param_3,*(undefined4 *)(puVar1[1] + 4))" (( "(") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(puVar1[1] + 4)" (* "*") (cast_expression "(undefined4 *)(puVar1[1] + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1[1] + 4)" (( "(") (binary_expression "puVar1[1] + 4" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)puVar1[1];" (assignment_expression "puVar5 = (undefined4 *)puVar1[1]" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)puVar1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 != (undefined4 *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }\n    }" ({ "{") (while_statement "while( true ) {\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        if (puVar5 == (undefined4 *)0x0) break;\n        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);\n        if (iVar3 == 0) {\n          return 0;\n        }\n      }" ({ "{") (if_statement "if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))\n        {\n          puVar5 = (undefined4 *)*puVar5;\n        }\n        else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" (if "if") (parenthesized_expression "(((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))" (( "(") (binary_expression "((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0)" (parenthesized_expression "((int *)puVar5[2] == (int *)0x0)" (( "(") (binary_expression "(int *)puVar5[2] == (int *)0x0" (cast_expression "(int *)puVar5[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]"))) (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0)" (( "(") (comma_expression "piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0" (assignment_expression "piVar4 = *(int **)puVar5[2]" (identifier "piVar4") (= "=") (pointer_expression "*(int **)puVar5[2]" (* "*") (cast_expression "(int **)puVar5[2]" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]"))))) (, ",") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n          puVar5 = (undefined4 *)*puVar5;\n        }" ({ "{") (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (} "}")) (else_clause "else {\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" (else "else") (compound_statement "{\n          do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);\n          puVar5 = (undefined4 *)*puVar5;\n        }" ({ "{") (do_statement "do {\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          } while (piVar4 != (int *)0x0);" (do "do") (compound_statement "{\n            iVar3 = FUN_0001e8a0(piVar4);\n            if (iVar3 == 0) {\n              return 0;\n            }\n            piVar4 = (int *)*piVar4;\n          }" ({ "{") (expression_statement "iVar3 = FUN_0001e8a0(piVar4);" (assignment_expression "iVar3 = FUN_0001e8a0(piVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_0001e8a0(piVar4)" (identifier "FUN_0001e8a0") (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n              return 0;\n            }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              return 0;\n            }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)*piVar4;" (assignment_expression "piVar4 = (int *)*piVar4" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != (int *)0x0)" (( "(") (binary_expression "piVar4 != (int *)0x0" (identifier "piVar4") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "puVar5 = (undefined4 *)*puVar5;" (assignment_expression "puVar5 = (undefined4 *)*puVar5" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (} "}")))) (if_statement "if (puVar5 == (undefined4 *)0x0) break;" (if "if") (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 == (undefined4 *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);" (assignment_expression "iVar3 = (*(code *)param_2[1])(param_3,puVar5[1])" (identifier "iVar3") (= "=") (call_expression "(*(code *)param_2[1])(param_3,puVar5[1])" (parenthesized_expression "(*(code *)param_2[1])" (( "(") (pointer_expression "*(code *)param_2[1]" (* "*") (cast_expression "(code *)param_2[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(param_3,puVar5[1])" (( "(") (identifier "param_3") (, ",") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n          return 0;\n        }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          return 0;\n        }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);" (assignment_expression "iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff)" (identifier "iVar3") (= "=") (call_expression "FUN_0001d2b0(param_3,0xffffffff,0xffffffff)" (identifier "FUN_0001d2b0") (argument_list "(param_3,0xffffffff,0xffffffff)" (( "(") (identifier "param_3") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0xffffffff") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar1 = (undefined4 *)*puVar1;" (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(void *handle,type_2 *fns,void *fhandle)

{
  int iVar1;
  type_1 var_2;
  type_3 *var_4;
  type_4 *var_3;
  int *var_1;
  
  *(int *)((int)handle + 0x18) = *(int *)((int)handle + 0x18) + 1;
  *(type_4 *)((int)handle + 0x2c) = 0;
  *(type_4 *)((int)handle + 0x20) = *(type_4 *)((int)handle + 0x1c);
                    /* WARNING: Load size is inaccurate */
  var_1 = *handle;
  if (var_1 != (int *)0x0) {
    do {
      iVar1 = var_1[2];
      *(type_4 *)((int)handle + 0x28) = 0;
      *(int *)((int)handle + 0x24) = iVar1;
      var_2 = (*fns->start_compilation_unit)(fhandle,*(char **)(var_1[1] + 4));
      if (var_2 == 0) {
        return 0;
      }
      var_3 = (type_4 *)var_1[1];
      if (var_3 != (type_4 *)0x0) {
        while( true ) {
          if (((int *)var_3[2] == (int *)0x0) ||
             (var_4 = *(type_3 **)var_3[2], var_4 == (type_3 *)0x0)) {
            var_3 = (type_4 *)*var_3;
          }
          else {
            do {
              var_2 = var_5((type_5 *)handle,fns,fhandle,var_4);
              if (var_2 == 0) {
                return 0;
              }
              var_4 = var_4->next;
            } while (var_4 != (type_3 *)0x0);
            var_3 = (type_4 *)*var_3;
          }
          if (var_3 == (type_4 *)0x0) break;
          var_2 = (*fns->start_source)(fhandle,(char *)var_3[1]);
          if (var_2 == 0) {
            return 0;
          }
        }
      }
      var_2 = var_6((type_5 *)((int)handle + 0x24),
                                  (type_2 *)((int)handle + 0x28),&fns->lineno,
                                  var_7(0xffffffff,fhandle),(type_5 *)0xffffffff);
      if (var_2 == 0) {
        return 0;
      }
      var_1 = (int *)*var_1;
    } while (var_1 != (int *)0x0);
  }
  return 1;
}


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

undefined4 MASKED(undefined4 *param_1,undefined4 *param_2,undefined4 param_3)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  undefined4 *puVar5;
  
  param_1[6] = param_1[6] + 1;
  param_1[0xb] = 0;
  param_1[8] = param_1[7];
  puVar1 = (undefined4 *)*param_1;
  while( true ) {
    if (puVar1 == (undefined4 *)0x0) {
      return 1;
    }
    uVar2 = puVar1[2];
    param_1[10] = 0;
    param_1[9] = uVar2;
    iVar3 = (*(code *)*param_2)(param_3,*(undefined4 *)(puVar1[1] + 4));
    if (iVar3 == 0) {
      return 0;
    }
    puVar5 = (undefined4 *)puVar1[1];
    if (puVar5 != (undefined4 *)0x0) {
      while( true ) {
        if (((int *)puVar5[2] == (int *)0x0) || (piVar4 = *(int **)puVar5[2], piVar4 == (int *)0x0))
        {
          puVar5 = (undefined4 *)*puVar5;
        }
        else {
          do {
            iVar3 = FUN_0001e8a0(piVar4);
            if (iVar3 == 0) {
              return 0;
            }
            piVar4 = (int *)*piVar4;
          } while (piVar4 != (int *)0x0);
          puVar5 = (undefined4 *)*puVar5;
        }
        if (puVar5 == (undefined4 *)0x0) break;
        iVar3 = (*(code *)param_2[1])(param_3,puVar5[1]);
        if (iVar3 == 0) {
          return 0;
        }
      }
    }
    iVar3 = FUN_0001d2b0(param_3,0xffffffff,0xffffffff);
    if (iVar3 == 0) break;
    puVar1 = (undefined4 *)*puVar1;
  }
  return 0;
}

