
bfd_boolean process_corefile_note_segments(Filedata *filedata)

{
  bfd_boolean bVar1;
  int iVar2;
  uint uVar3;
  Elf_Internal_Phdr *pEVar4;
  uint uVar5;
  bfd_boolean bVar6;
  undefined1 *puVar7;
  undefined4 in_stack_ffffffdc;
  
  puVar7 = &_gp;
  pEVar4 = filedata->program_headers;
  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {
    iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();
    if (iVar2 == 0) {
      return 1;
    }
    pEVar4 = filedata->program_headers;
  }
  uVar3 = (filedata->file_header).e_phnum;
  if (uVar3 == 0) {
    return 1;
  }
  bVar6 = 1;
  uVar5 = 0;
  do {
    while (pEVar4->p_type != 4) {
LAB_0004bdfc:
      uVar5 = uVar5 + 1;
      pEVar4 = pEVar4 + 1;
      if (uVar3 <= uVar5) {
        return bVar6;
      }
    }
    if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {
      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,
                               CONCAT44(puVar7,in_stack_ffffffdc));
      uVar3 = (filedata->file_header).e_phnum;
      if (bVar1 != 0) goto LAB_0004bdfc;
    }
    uVar5 = uVar5 + 1;
    bVar6 = 0;
    pEVar4 = pEVar4 + 1;
    if (uVar3 <= uVar5) {
      return 0;
    }
  } while( true );
}



undefined4 FUN_0004bda0(int param_1)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  undefined4 uVar5;
  
  piVar3 = *(int **)(param_1 + 100);
  if (piVar3 == (int *)0x0) {
    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();
    if (iVar1 == 0) {
      return 1;
    }
    piVar3 = *(int **)(param_1 + 100);
  }
  uVar2 = *(uint *)(param_1 + 0x4c);
  if (uVar2 == 0) {
    return 1;
  }
  uVar5 = 1;
  uVar4 = 0;
  do {
    while (*piVar3 != 4) {
LAB_0004bdfc:
      uVar4 = uVar4 + 1;
      piVar3 = piVar3 + 0xe;
      if (uVar2 <= uVar4) {
        return uVar5;
      }
    }
    if (piVar3[8] != 0 || piVar3[9] != 0) {
      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]
                          );
      uVar2 = *(uint *)(param_1 + 0x4c);
      if (iVar1 != 0) goto LAB_0004bdfc;
    }
    uVar4 = uVar4 + 1;
    uVar5 = 0;
    piVar3 = piVar3 + 0xe;
    if (uVar2 <= uVar4) {
      return 0;
    }
  } while( true );
}


lui gp,0x8
addiu gp,gp,-0xa50
addu gp,gp,t9
addiu sp,sp,-0x48
sw s0,0x2c(sp)
sw gp,0x20(sp)
sw s4,0x3c(sp)
sw ra,0x44(sp)
sw s5,0x40(sp)
sw s3,0x38(sp)
sw s2,0x34(sp)
sw s1,0x30(sp)
lw s0,0x64(a0)
beq s0,zero,0x0004bea0
_or s4,a0,zero
lw v1,0x4c(s4)
beq v1,zero,0x0004bec0
_lw s3,-0x7f08(gp)
li s5,0x1
or s1,zero,zero
li s2,0x4
b 0x0004be0c
_addiu s3,s3,-0x7964
addiu s1,s1,0x1
sltu v0,s1,v1
beq v0,zero,0x0004be78
_addiu s0,s0,0x38
lw v0,0x0(s0)
bne v0,s2,0x0004bdfc
_or a1,zero,zero
lw a3,0x20(s0)
lw t0,0x24(s0)
or v0,a3,t0
beq v0,zero,0x0004be64
_or a0,s4,zero
lw t3,0xc(s0)
or t9,s3,zero
lw t2,0x8(s0)
lw v1,0x34(s0)
lw v0,0x30(s0)
or a2,t2,zero
sw a3,0x10(sp)
sw v1,0x1c(sp)
or a3,t3,zero
sw v0,0x18(sp)
bal 0x0004869c
_sw t0,0x14(sp)
bne v0,zero,0x0004bdfc
_lw v1,0x4c(s4)
addiu s1,s1,0x1
or s5,zero,zero
sltu v0,s1,v1
bne v0,zero,0x0004be0c
_addiu s0,s0,0x38
lw ra,0x44(sp)
or v0,s5,zero
lw s5,0x40(sp)
lw s4,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x48
lw t9,-0x7f8c(gp)
addiu t9,t9,-0x66a8
jalr t9
_nop
beq v0,zero,0x0004bec0
_lw gp,0x20(sp)
b 0x0004bddc
_lw s0,0x64(s4)
lw ra,0x44(sp)
li s5,0x1
lw s4,0x3c(sp)
or v0,s5,zero
lw s3,0x38(sp)
lw s5,0x40(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x48
(translation_unit "undefined4 FUN_0004bda0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0004bda0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0004bda0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "piVar3 = *(int **)(param_1 + 100);" (assignment_expression "piVar3 = *(int **)(param_1 + 100)" identifier = (pointer_expression "*(int **)(param_1 + 100)" * (cast_expression "(int **)(param_1 + 100)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" identifier = (call_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" (parenthesized_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))" ( (pointer_expression "*(code *)(PTR_LAB_000c33c4 + -0x66a8)" * (cast_expression "(code *)(PTR_LAB_000c33c4 + -0x66a8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000c33c4 + -0x66a8)" ( (binary_expression "PTR_LAB_000c33c4 + -0x66a8" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar3 = *(int **)(param_1 + 100);" (assignment_expression "piVar3 = *(int **)(param_1 + 100)" identifier = (pointer_expression "*(int **)(param_1 + 100)" * (cast_expression "(int **)(param_1 + 100)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) })) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  }" { (while_statement "while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }" while (parenthesized_expression "(*piVar3 != 4)" ( (binary_expression "*piVar3 != 4" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }" { (labeled_statement "LAB_0004bdfc:\n      uVar4 = uVar4 + 1;" statement_identifier : (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;)) (expression_statement "piVar3 = piVar3 + 0xe;" (assignment_expression "piVar3 = piVar3 + 0xe" identifier = (binary_expression "piVar3 + 0xe" identifier + number_literal)) ;) (if_statement "if (uVar2 <= uVar4) {\n        return uVar5;\n      }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        return uVar5;\n      }" { (return_statement "return uVar5;" return identifier ;) })) })) (if_statement "if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }" if (parenthesized_expression "(piVar3[8] != 0 || piVar3[9] != 0)" ( (binary_expression "piVar3[8] != 0 || piVar3[9] != 0" (binary_expression "piVar3[8] != 0" (subscript_expression "piVar3[8]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar3[9] != 0" (subscript_expression "piVar3[9]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }" { (expression_statement "iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );" (assignment_expression "iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" identifier = (call_expression "FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" identifier (argument_list "(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" ( identifier , number_literal , (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (subscript_expression "piVar3[3]" identifier [ number_literal ]) , (subscript_expression "piVar3[8]" identifier [ number_literal ]) , (subscript_expression "piVar3[9]" identifier [ number_literal ]) , (subscript_expression "piVar3[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar3[0xd]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) goto LAB_0004bdfc;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004bdfc;" goto statement_identifier ;)) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "piVar3 = piVar3 + 0xe;" (assignment_expression "piVar3 = piVar3 + 0xe" identifier = (binary_expression "piVar3 + 0xe" identifier + number_literal)) ;) (if_statement "if (uVar2 <= uVar4) {\n      return 0;\n    }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "bfd_boolean process_corefile_note_segments(Filedata *filedata)\n\n{\n  bfd_boolean bVar1;\n  int iVar2;\n  uint uVar3;\n  Elf_Internal_Phdr *pEVar4;\n  uint uVar5;\n  bfd_boolean bVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffdc;\n  \n  puVar7 = &_gp;\n  pEVar4 = filedata->program_headers;\n  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar2 == 0) {\n      return 1;\n    }\n    pEVar4 = filedata->program_headers;\n  }\n  uVar3 = (filedata->file_header).e_phnum;\n  if (uVar3 == 0) {\n    return 1;\n  }\n  bVar6 = 1;\n  uVar5 = 0;\n  do {\n    while (pEVar4->p_type != 4) {\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }\n    if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar5 = uVar5 + 1;\n    bVar6 = 0;\n    pEVar4 = pEVar4 + 1;\n    if (uVar3 <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "bfd_boolean process_corefile_note_segments(Filedata *filedata)\n\n{\n  bfd_boolean bVar1;\n  int iVar2;\n  uint uVar3;\n  Elf_Internal_Phdr *pEVar4;\n  uint uVar5;\n  bfd_boolean bVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffdc;\n  \n  puVar7 = &_gp;\n  pEVar4 = filedata->program_headers;\n  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar2 == 0) {\n      return 1;\n    }\n    pEVar4 = filedata->program_headers;\n  }\n  uVar3 = (filedata->file_header).e_phnum;\n  if (uVar3 == 0) {\n    return 1;\n  }\n  bVar6 = 1;\n  uVar5 = 0;\n  do {\n    while (pEVar4->p_type != 4) {\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }\n    if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar5 = uVar5 + 1;\n    bVar6 = 0;\n    pEVar4 = pEVar4 + 1;\n    if (uVar3 <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (function_declarator "process_corefile_note_segments(Filedata *filedata)" identifier (parameter_list "(Filedata *filedata)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) ))) (compound_statement "{\n  bfd_boolean bVar1;\n  int iVar2;\n  uint uVar3;\n  Elf_Internal_Phdr *pEVar4;\n  uint uVar5;\n  bfd_boolean bVar6;\n  undefined1 *puVar7;\n  undefined4 in_stack_ffffffdc;\n  \n  puVar7 = &_gp;\n  pEVar4 = filedata->program_headers;\n  if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar2 == 0) {\n      return 1;\n    }\n    pEVar4 = filedata->program_headers;\n  }\n  uVar3 = (filedata->file_header).e_phnum;\n  if (uVar3 == 0) {\n    return 1;\n  }\n  bVar6 = 1;\n  uVar5 = 0;\n  do {\n    while (pEVar4->p_type != 4) {\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }\n    if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar5 = uVar5 + 1;\n    bVar6 = 0;\n    pEVar4 = pEVar4 + 1;\n    if (uVar3 <= uVar5) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "bfd_boolean bVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "Elf_Internal_Phdr *pEVar4;" type_identifier (pointer_declarator "*pEVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "bfd_boolean bVar6;" type_identifier identifier ;) (declaration "undefined1 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 in_stack_ffffffdc;" type_identifier identifier ;) (expression_statement "puVar7 = &_gp;" (assignment_expression "puVar7 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "pEVar4 = filedata->program_headers;" (assignment_expression "pEVar4 = filedata->program_headers" identifier = (field_expression "filedata->program_headers" identifier -> field_identifier)) ;) (if_statement "if (pEVar4 == (Elf_Internal_Phdr *)0x0) {\n    iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar2 == 0) {\n      return 1;\n    }\n    pEVar4 = filedata->program_headers;\n  }" if (parenthesized_expression "(pEVar4 == (Elf_Internal_Phdr *)0x0)" ( (binary_expression "pEVar4 == (Elf_Internal_Phdr *)0x0" identifier == (cast_expression "(Elf_Internal_Phdr *)0x0" ( (type_descriptor "Elf_Internal_Phdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar2 == 0) {\n      return 1;\n    }\n    pEVar4 = filedata->program_headers;\n  }" { (expression_statement "iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();" (assignment_expression "iVar2 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" identifier = (call_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" (parenthesized_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))" ( (pointer_expression "*(code *)(PTR_LAB_000c33c4 + -0x66a8)" * (cast_expression "(code *)(PTR_LAB_000c33c4 + -0x66a8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000c33c4 + -0x66a8)" ( (binary_expression "PTR_LAB_000c33c4 + -0x66a8" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "pEVar4 = filedata->program_headers;" (assignment_expression "pEVar4 = filedata->program_headers" identifier = (field_expression "filedata->program_headers" identifier -> field_identifier)) ;) })) (expression_statement "uVar3 = (filedata->file_header).e_phnum;" (assignment_expression "uVar3 = (filedata->file_header).e_phnum" identifier = (field_expression "(filedata->file_header).e_phnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (uVar3 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "bVar6 = 1;" (assignment_expression "bVar6 = 1" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (pEVar4->p_type != 4) {\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }\n    if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar5 = uVar5 + 1;\n    bVar6 = 0;\n    pEVar4 = pEVar4 + 1;\n    if (uVar3 <= uVar5) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while (pEVar4->p_type != 4) {\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }\n    if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar5 = uVar5 + 1;\n    bVar6 = 0;\n    pEVar4 = pEVar4 + 1;\n    if (uVar3 <= uVar5) {\n      return 0;\n    }\n  }" { (while_statement "while (pEVar4->p_type != 4) {\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }" while (parenthesized_expression "(pEVar4->p_type != 4)" ( (binary_expression "pEVar4->p_type != 4" (field_expression "pEVar4->p_type" identifier -> field_identifier) != number_literal) )) (compound_statement "{\nLAB_0004bdfc:\n      uVar5 = uVar5 + 1;\n      pEVar4 = pEVar4 + 1;\n      if (uVar3 <= uVar5) {\n        return bVar6;\n      }\n    }" { (labeled_statement "LAB_0004bdfc:\n      uVar5 = uVar5 + 1;" statement_identifier : (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;)) (expression_statement "pEVar4 = pEVar4 + 1;" (assignment_expression "pEVar4 = pEVar4 + 1" identifier = (binary_expression "pEVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar5) {\n        return bVar6;\n      }" if (parenthesized_expression "(uVar3 <= uVar5)" ( (binary_expression "uVar3 <= uVar5" identifier <= identifier) )) (compound_statement "{\n        return bVar6;\n      }" { (return_statement "return bVar6;" return identifier ;) })) })) (if_statement "if (*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0) {\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }" if (parenthesized_expression "(*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0)" ( (binary_expression "*(int *)&pEVar4->p_filesz != 0 || (int)pEVar4->p_filesz != 0" (binary_expression "*(int *)&pEVar4->p_filesz != 0" (pointer_expression "*(int *)&pEVar4->p_filesz" * (cast_expression "(int *)&pEVar4->p_filesz" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pEVar4->p_filesz" & (field_expression "pEVar4->p_filesz" identifier -> field_identifier)))) != number_literal) || (binary_expression "(int)pEVar4->p_filesz != 0" (cast_expression "(int)pEVar4->p_filesz" ( (type_descriptor "int" primitive_type) ) (field_expression "pEVar4->p_filesz" identifier -> field_identifier)) != number_literal)) )) (compound_statement "{\n      bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));\n      uVar3 = (filedata->file_header).e_phnum;\n      if (bVar1 != 0) goto LAB_0004bdfc;\n    }" { (expression_statement "bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc));" (assignment_expression "bVar1 = process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc))" identifier = (call_expression "process_notes_at(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc))" identifier (argument_list "(filedata,(Elf_Internal_Shdr *)0x0,pEVar4->p_filesz,pEVar4->p_align,\n                               CONCAT44(puVar7,in_stack_ffffffdc))" ( identifier , (cast_expression "(Elf_Internal_Shdr *)0x0" ( (type_descriptor "Elf_Internal_Shdr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (field_expression "pEVar4->p_filesz" identifier -> field_identifier) , (field_expression "pEVar4->p_align" identifier -> field_identifier) , (call_expression "CONCAT44(puVar7,in_stack_ffffffdc)" identifier (argument_list "(puVar7,in_stack_ffffffdc)" ( identifier , identifier ))) )))) ;) (expression_statement "uVar3 = (filedata->file_header).e_phnum;" (assignment_expression "uVar3 = (filedata->file_header).e_phnum" identifier = (field_expression "(filedata->file_header).e_phnum" (parenthesized_expression "(filedata->file_header)" ( (field_expression "filedata->file_header" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (bVar1 != 0) goto LAB_0004bdfc;" if (parenthesized_expression "(bVar1 != 0)" ( (binary_expression "bVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004bdfc;" goto statement_identifier ;)) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "pEVar4 = pEVar4 + 1;" (assignment_expression "pEVar4 = pEVar4 + 1" identifier = (binary_expression "pEVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar5) {\n      return 0;\n    }" if (parenthesized_expression "(uVar3 <= uVar5)" ( (binary_expression "uVar3 <= uVar5" identifier <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "undefined4 FUN_0004bda0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}\n\n" (function_definition "undefined4 FUN_0004bda0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0004bda0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "piVar3 = *(int **)(param_1 + 100);" (assignment_expression "piVar3 = *(int **)(param_1 + 100)" identifier = (pointer_expression "*(int **)(param_1 + 100)" * (cast_expression "(int **)(param_1 + 100)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }" { (expression_statement "iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" identifier = (call_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" (parenthesized_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))" ( (pointer_expression "*(code *)(PTR_LAB_000c33c4 + -0x66a8)" * (cast_expression "(code *)(PTR_LAB_000c33c4 + -0x66a8)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_000c33c4 + -0x66a8)" ( (binary_expression "PTR_LAB_000c33c4 + -0x66a8" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "piVar3 = *(int **)(param_1 + 100);" (assignment_expression "piVar3 = *(int **)(param_1 + 100)" identifier = (pointer_expression "*(int **)(param_1 + 100)" * (cast_expression "(int **)(param_1 + 100)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) })) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 == 0) {\n    return 1;\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );" do (compound_statement "{\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  }" { (while_statement "while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }" while (parenthesized_expression "(*piVar3 != 4)" ( (binary_expression "*piVar3 != 4" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }" { (labeled_statement "LAB_0004bdfc:\n      uVar4 = uVar4 + 1;" statement_identifier : (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;)) (expression_statement "piVar3 = piVar3 + 0xe;" (assignment_expression "piVar3 = piVar3 + 0xe" identifier = (binary_expression "piVar3 + 0xe" identifier + number_literal)) ;) (if_statement "if (uVar2 <= uVar4) {\n        return uVar5;\n      }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        return uVar5;\n      }" { (return_statement "return uVar5;" return identifier ;) })) })) (if_statement "if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }" if (parenthesized_expression "(piVar3[8] != 0 || piVar3[9] != 0)" ( (binary_expression "piVar3[8] != 0 || piVar3[9] != 0" (binary_expression "piVar3[8] != 0" (subscript_expression "piVar3[8]" identifier [ number_literal ]) != number_literal) || (binary_expression "piVar3[9] != 0" (subscript_expression "piVar3[9]" identifier [ number_literal ]) != number_literal)) )) (compound_statement "{\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }" { (expression_statement "iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );" (assignment_expression "iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" identifier = (call_expression "FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" identifier (argument_list "(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" ( identifier , number_literal , (subscript_expression "piVar3[2]" identifier [ number_literal ]) , (subscript_expression "piVar3[3]" identifier [ number_literal ]) , (subscript_expression "piVar3[8]" identifier [ number_literal ]) , (subscript_expression "piVar3[9]" identifier [ number_literal ]) , (subscript_expression "piVar3[0xc]" identifier [ number_literal ]) , (subscript_expression "piVar3[0xd]" identifier [ number_literal ]) )))) ;) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" identifier = (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) goto LAB_0004bdfc;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0004bdfc;" goto statement_identifier ;)) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "piVar3 = piVar3 + 0xe;" (assignment_expression "piVar3 = piVar3 + 0xe" identifier = (binary_expression "piVar3 + 0xe" identifier + number_literal)) ;) (if_statement "if (uVar2 <= uVar4) {\n      return 0;\n    }" if (parenthesized_expression "(uVar2 <= uVar4)" ( (binary_expression "uVar2 <= uVar4" identifier <= identifier) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return IDENT ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) || (binary_expression (subscript_expression IDENT [ LIT ]) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "undefined4 FUN_0004bda0(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}" (type_identifier "undefined4") (function_declarator "FUN_0004bda0(int param_1)" (identifier "FUN_0004bda0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int *piVar3;\n  uint uVar4;\n  undefined4 uVar5;\n  \n  piVar3 = *(int **)(param_1 + 100);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }\n  uVar2 = *(uint *)(param_1 + 0x4c);\n  if (uVar2 == 0) {\n    return 1;\n  }\n  uVar5 = 1;\n  uVar4 = 0;\n  do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "piVar3 = *(int **)(param_1 + 100);" (assignment_expression "piVar3 = *(int **)(param_1 + 100)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 100)" (* "*") (cast_expression "(int **)(param_1 + 100)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();\n    if (iVar1 == 0) {\n      return 1;\n    }\n    piVar3 = *(int **)(param_1 + 100);\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();" (assignment_expression "iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" (identifier "iVar1") (= "=") (call_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))()" (parenthesized_expression "(*(code *)(PTR_LAB_000c33c4 + -0x66a8))" (( "(") (pointer_expression "*(code *)(PTR_LAB_000c33c4 + -0x66a8)" (* "*") (cast_expression "(code *)(PTR_LAB_000c33c4 + -0x66a8)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_000c33c4 + -0x66a8)" (( "(") (binary_expression "PTR_LAB_000c33c4 + -0x66a8" (identifier "PTR_LAB_000c33c4") (+ "+") (number_literal "-0x66a8")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "piVar3 = *(int **)(param_1 + 100);" (assignment_expression "piVar3 = *(int **)(param_1 + 100)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 100)" (* "*") (cast_expression "(int **)(param_1 + 100)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x4c)" (* "*") (cast_expression "(uint *)(param_1 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (uVar2 == 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(uVar2 == 0)" (( "(") (binary_expression "uVar2 == 0" (identifier "uVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }\n    if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }\n    uVar4 = uVar4 + 1;\n    uVar5 = 0;\n    piVar3 = piVar3 + 0xe;\n    if (uVar2 <= uVar4) {\n      return 0;\n    }\n  }" ({ "{") (while_statement "while (*piVar3 != 4) {\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }" (while "while") (parenthesized_expression "(*piVar3 != 4)" (( "(") (binary_expression "*piVar3 != 4" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\nLAB_0004bdfc:\n      uVar4 = uVar4 + 1;\n      piVar3 = piVar3 + 0xe;\n      if (uVar2 <= uVar4) {\n        return uVar5;\n      }\n    }" ({ "{") (labeled_statement "LAB_0004bdfc:\n      uVar4 = uVar4 + 1;" (statement_identifier "LAB_0004bdfc") (: ":") (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "piVar3 = piVar3 + 0xe;" (assignment_expression "piVar3 = piVar3 + 0xe" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 0xe" (identifier "piVar3") (+ "+") (number_literal "0xe"))) (; ";")) (if_statement "if (uVar2 <= uVar4) {\n        return uVar5;\n      }" (if "if") (parenthesized_expression "(uVar2 <= uVar4)" (( "(") (binary_expression "uVar2 <= uVar4" (identifier "uVar2") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n        return uVar5;\n      }" ({ "{") (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}"))) (} "}"))) (if_statement "if (piVar3[8] != 0 || piVar3[9] != 0) {\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }" (if "if") (parenthesized_expression "(piVar3[8] != 0 || piVar3[9] != 0)" (( "(") (binary_expression "piVar3[8] != 0 || piVar3[9] != 0" (binary_expression "piVar3[8] != 0" (subscript_expression "piVar3[8]" (identifier "piVar3") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "piVar3[9] != 0" (subscript_expression "piVar3[9]" (identifier "piVar3") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );\n      uVar2 = *(uint *)(param_1 + 0x4c);\n      if (iVar1 != 0) goto LAB_0004bdfc;\n    }" ({ "{") (expression_statement "iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          );" (assignment_expression "iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" (identifier "iVar1") (= "=") (call_expression "FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" (identifier "FUN_0004869c") (argument_list "(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]\n                          )" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "piVar3[8]" (identifier "piVar3") ([ "[") (number_literal "8") (] "]")) (, ",") (subscript_expression "piVar3[9]" (identifier "piVar3") ([ "[") (number_literal "9") (] "]")) (, ",") (subscript_expression "piVar3[0xc]" (identifier "piVar3") ([ "[") (number_literal "0xc") (] "]")) (, ",") (subscript_expression "piVar3[0xd]" (identifier "piVar3") ([ "[") (number_literal "0xd") (] "]")) () ")")))) (; ";")) (expression_statement "uVar2 = *(uint *)(param_1 + 0x4c);" (assignment_expression "uVar2 = *(uint *)(param_1 + 0x4c)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_1 + 0x4c)" (* "*") (cast_expression "(uint *)(param_1 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_0004bdfc;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0004bdfc;" (goto "goto") (statement_identifier "LAB_0004bdfc") (; ";"))) (} "}"))) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3 = piVar3 + 0xe;" (assignment_expression "piVar3 = piVar3 + 0xe" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 0xe" (identifier "piVar3") (+ "+") (number_literal "0xe"))) (; ";")) (if_statement "if (uVar2 <= uVar4) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(uVar2 <= uVar4)" (( "(") (binary_expression "uVar2 <= uVar4" (identifier "uVar2") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list)))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) 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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) body: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (number_literal))))) condition: (parenthesized_expression (true))))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  int *piVar3;
  uint uVar4;
  undefined4 uVar5;
  
  piVar3 = *(int **)(param_1 + 100);
  if (piVar3 == (int *)0x0) {
    iVar1 = (*(code *)(PTR_LAB_000c33c4 + -0x66a8))();
    if (iVar1 == 0) {
      return 1;
    }
    piVar3 = *(int **)(param_1 + 100);
  }
  uVar2 = *(uint *)(param_1 + 0x4c);
  if (uVar2 == 0) {
    return 1;
  }
  uVar5 = 1;
  uVar4 = 0;
  do {
    while (*piVar3 != 4) {
LAB_0004bdfc:
      uVar4 = uVar4 + 1;
      piVar3 = piVar3 + 0xe;
      if (uVar2 <= uVar4) {
        return uVar5;
      }
    }
    if (piVar3[8] != 0 || piVar3[9] != 0) {
      iVar1 = FUN_0004869c(param_1,0,piVar3[2],piVar3[3],piVar3[8],piVar3[9],piVar3[0xc],piVar3[0xd]
                          );
      uVar2 = *(uint *)(param_1 + 0x4c);
      if (iVar1 != 0) goto LAB_0004bdfc;
    }
    uVar4 = uVar4 + 1;
    uVar5 = 0;
    piVar3 = piVar3 + 0xe;
    if (uVar2 <= uVar4) {
      return 0;
    }
  } while( true );
}

