
bfd_boolean tg_fix_visibility(pr_handle *info,debug_visibility visibility)

{
  char *pcVar1;
  bfd_boolean bVar2;
  char *pcVar3;
  undefined4 *puVar4;
  char *pcVar5;
  int iVar6;
  undefined *puVar7;
  debug_visibility dStack_8;
  
  if (info != (pr_handle *)0x0) {
    if (info->stack != (pr_stack *)visibility) {
      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;
      info->stack = (pr_stack *)visibility;
    }
    return 1;
  }
  (*(code *)PTR___assert_fail_0008222c)
            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,
             PTR_UINT_00082018 + -0x55d8);
LAB_00042ddc:
  pcVar5 = PTR_UINT_00082018 + -0x5d74;
  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);
  puVar7 = PTR___assert_fail_0008222c;
  (*(code *)PTR___assert_fail_0008222c)();
  pcVar1 = pop_type((pr_handle *)(puVar4 + 2));
  if ((pcVar1 != (char *)0x0) &&
     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)) {
    if (*pcVar5 != '\0') {
      iVar6 = puVar4[2];
      pcVar3 = visibility_name(dStack_8);
      (**(code **)(puVar7 + 0x3f548))
                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,
                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);
      return 1;
    }
    return 1;
  }
  return 0;
}



undefined4 FUN_00042d74(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  char *pcVar5;
  undefined *puVar6;
  undefined4 local_8;
  
  if (param_1 != 0) {
    if (*(int *)(param_1 + 8) != param_2) {
      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;
      *(int *)(param_1 + 8) = param_2;
    }
    return 1;
  }
  (*(code *)PTR___assert_fail_0008222c)
            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,
             PTR_UINT_00082018 + -0x55d8);
LAB_00042ddc:
  pcVar5 = PTR_UINT_00082018 + -0x5d74;
  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);
  puVar6 = PTR___assert_fail_0008222c;
  (*(code *)PTR___assert_fail_0008222c)();
  iVar1 = FUN_00042740(puVar4 + 2);
  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {
    if (*pcVar5 != '\0') {
      iVar2 = puVar4[2];
      uVar3 = FUN_0004252c(local_8);
      (**(code **)(puVar6 + 0x3f548))
                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,
                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);
      return 1;
    }
    return 1;
  }
  return 0;
}


lui gp,0x4
addiu gp,gp,0x71fc
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
beq a0,zero,0x00042dbc
_lw a3,-0x7f58(gp)
lw v0,0x8(a0)
beq v0,a1,0x00042dac
_li v1,0x3
beq v0,v1,0x00042ddc
_li a2,0x80f
sw a1,0x8(a0)
lw ra,0x1c(sp)
li v0,0x1
jr ra
_addiu sp,sp,0x20
li a2,0x80a
lw a1,-0x7f58(gp)
lw a0,-0x7f58(gp)
lw t9,-0x7d44(gp)
addiu a3,a3,-0x55d8
addiu a1,a1,-0x5d74
jalr t9
_addiu a0,a0,-0x5d5c
lw a1,-0x7f58(gp)
lw a0,-0x7f58(gp)
lw t9,-0x7d44(gp)
addiu a3,a3,-0x55d8
addiu a1,a1,-0x5d74
jalr t9
_addiu a0,a0,-0x5cd4
lui gp,0x4
addiu gp,gp,0x7178
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x7ec4(gp)
addiu t9,t9,0x2740
sw s0,0x2c(sp)
or s0,a0,zero
sw gp,0x20(sp)
addiu a0,a0,0x8
sw s2,0x34(sp)
sw ra,0x3c(sp)
or s2,a1,zero
sw s3,0x38(sp)
bal 0x00042740
_sw s1,0x30(sp)
beq v0,zero,0x00042ed8
_lw gp,0x20(sp)
lw t9,-0x7ec4(gp)
or s1,v0,zero
lw a1,0x58(sp)
addiu t9,t9,0x2d74
bal 0x00042d74
_lw a0,0x8(s0)
beq v0,zero,0x00042ed8
_lw gp,0x20(sp)
lb v0,0x0(s2)
beq v0,zero,0x00042ef8
_lw ra,0x3c(sp)
lw t9,-0x7ec4(gp)
lw a0,0x58(sp)
addiu t9,t9,0x252c
bal 0x0004252c
_lw s3,0x8(s0)
or a2,s2,zero
lw gp,0x20(sp)
sw v0,0x1c(sp)
lw v0,0x4(s3)
lw a3,0x10(s0)
lw a0,0x0(s0)
lw a1,-0x7f58(gp)
lw t9,-0x7c30(gp)
sw v0,0x18(sp)
lw v0,0x10(s3)
addiu a1,a1,-0x5ca0
sw s1,0x10(sp)
jalr t9
_sw v0,0x14(sp)
li v0,0x1
lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw ra,0x3c(sp)
or v0,zero,zero
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
li v0,0x1
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
(translation_unit "undefined4 FUN_00042d74(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00042d74(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00042d74(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_8;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }" { (if_statement "if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) != param_2)" ( (binary_expression "*(int *)(param_1 + 8) != param_2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }" { (if_statement "if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;" if (parenthesized_expression "(*(int *)(param_1 + 8) == 3)" ( (binary_expression "*(int *)(param_1 + 8) == 3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00042ddc;" goto statement_identifier ;)) (expression_statement "*(int *)(param_1 + 8) = param_2;" (assignment_expression "*(int *)(param_1 + 8) = param_2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);" (call_expression "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" ( (pointer_expression "*(code *)PTR___assert_fail_0008222c" * (cast_expression "(code *)PTR___assert_fail_0008222c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" ( (binary_expression "PTR_UINT_00082018 + -0x5d5c" identifier + number_literal) , (binary_expression "PTR_UINT_00082018 + -0x5d74" identifier + number_literal) , number_literal , (binary_expression "PTR_UINT_00082018 + -0x55d8" identifier + number_literal) ))) ;) (labeled_statement "LAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;" statement_identifier : (expression_statement "pcVar5 = PTR_UINT_00082018 + -0x5d74;" (assignment_expression "pcVar5 = PTR_UINT_00082018 + -0x5d74" identifier = (binary_expression "PTR_UINT_00082018 + -0x5d74" identifier + number_literal)) ;)) (expression_statement "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);" (assignment_expression "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" identifier = (cast_expression "(undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00082018 + -0x5cd4)" ( (binary_expression "PTR_UINT_00082018 + -0x5cd4" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR___assert_fail_0008222c;" (assignment_expression "puVar6 = PTR___assert_fail_0008222c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0008222c)();" (call_expression "(*(code *)PTR___assert_fail_0008222c)()" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" ( (pointer_expression "*(code *)PTR___assert_fail_0008222c" * (cast_expression "(code *)PTR___assert_fail_0008222c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = FUN_00042740(puVar4 + 2);" (assignment_expression "iVar1 = FUN_00042740(puVar4 + 2)" identifier = (call_expression "FUN_00042740(puVar4 + 2)" identifier (argument_list "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) ;) (if_statement "if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0" (assignment_expression "iVar2 = FUN_00042d74(puVar4[2],local_8)" identifier = (call_expression "FUN_00042d74(puVar4[2],local_8)" identifier (argument_list "(puVar4[2],local_8)" ( (subscript_expression "puVar4[2]" identifier [ number_literal ]) , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }" { (if_statement "if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }" if (parenthesized_expression "(*pcVar5 != '\0')" ( (binary_expression "*pcVar5 != '\0'" (pointer_expression "*pcVar5" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }" { (expression_statement "iVar2 = puVar4[2];" (assignment_expression "iVar2 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = FUN_0004252c(local_8);" (assignment_expression "uVar3 = FUN_0004252c(local_8)" identifier = (call_expression "FUN_0004252c(local_8)" identifier (argument_list "(local_8)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);" (call_expression "(**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x3f548))" ( (pointer_expression "**(code **)(puVar6 + 0x3f548)" * (pointer_expression "*(code **)(puVar6 + 0x3f548)" * (cast_expression "(code **)(puVar6 + 0x3f548)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x3f548)" ( (binary_expression "puVar6 + 0x3f548" identifier + number_literal) ))))) )) (argument_list "(*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3)" ( (pointer_expression "*puVar4" * identifier) , (binary_expression "*(int *)(puVar6 + 0x3f220) + -0x5ca0" (pointer_expression "*(int *)(puVar6 + 0x3f220)" * (cast_expression "(int *)(puVar6 + 0x3f220)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x3f220)" ( (binary_expression "puVar6 + 0x3f220" identifier + number_literal) )))) + number_literal) , identifier , (subscript_expression "puVar4[4]" identifier [ number_literal ]) , identifier , (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean tg_fix_visibility(pr_handle *info,debug_visibility visibility)\n\n{\n  char *pcVar1;\n  bfd_boolean bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  debug_visibility dStack_8;\n  \n  if (info != (pr_handle *)0x0) {\n    if (info->stack != (pr_stack *)visibility) {\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar7 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  pcVar1 = pop_type((pr_handle *)(puVar4 + 2));\n  if ((pcVar1 != (char *)0x0) &&\n     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean tg_fix_visibility(pr_handle *info,debug_visibility visibility)\n\n{\n  char *pcVar1;\n  bfd_boolean bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  debug_visibility dStack_8;\n  \n  if (info != (pr_handle *)0x0) {\n    if (info->stack != (pr_stack *)visibility) {\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar7 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  pcVar1 = pop_type((pr_handle *)(puVar4 + 2));\n  if ((pcVar1 != (char *)0x0) &&\n     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "tg_fix_visibility(pr_handle *info,debug_visibility visibility)" identifier (parameter_list "(pr_handle *info,debug_visibility visibility)" ( (parameter_declaration "pr_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "debug_visibility visibility" type_identifier identifier) ))) (compound_statement "{\n  char *pcVar1;\n  bfd_boolean bVar2;\n  char *pcVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  debug_visibility dStack_8;\n  \n  if (info != (pr_handle *)0x0) {\n    if (info->stack != (pr_stack *)visibility) {\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar7 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  pcVar1 = pop_type((pr_handle *)(puVar4 + 2));\n  if ((pcVar1 != (char *)0x0) &&\n     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "bfd_boolean bVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "debug_visibility dStack_8;" type_identifier identifier ;) (if_statement "if (info != (pr_handle *)0x0) {\n    if (info->stack != (pr_stack *)visibility) {\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }\n    return 1;\n  }" if (parenthesized_expression "(info != (pr_handle *)0x0)" ( (binary_expression "info != (pr_handle *)0x0" identifier != (cast_expression "(pr_handle *)0x0" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (info->stack != (pr_stack *)visibility) {\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }\n    return 1;\n  }" { (if_statement "if (info->stack != (pr_stack *)visibility) {\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }" if (parenthesized_expression "(info->stack != (pr_stack *)visibility)" ( (binary_expression "info->stack != (pr_stack *)visibility" (field_expression "info->stack" identifier -> field_identifier) != (cast_expression "(pr_stack *)visibility" ( (type_descriptor "pr_stack *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;\n      info->stack = (pr_stack *)visibility;\n    }" { (if_statement "if (info->stack == (pr_stack *)0x3) goto LAB_00042ddc;" if (parenthesized_expression "(info->stack == (pr_stack *)0x3)" ( (binary_expression "info->stack == (pr_stack *)0x3" (field_expression "info->stack" identifier -> field_identifier) == (cast_expression "(pr_stack *)0x3" ( (type_descriptor "pr_stack *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00042ddc;" goto statement_identifier ;)) (expression_statement "info->stack = (pr_stack *)visibility;" (assignment_expression "info->stack = (pr_stack *)visibility" (field_expression "info->stack" identifier -> field_identifier) = (cast_expression "(pr_stack *)visibility" ( (type_descriptor "pr_stack *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);" (call_expression "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" ( (pointer_expression "*(code *)PTR___assert_fail_0008222c" * (cast_expression "(code *)PTR___assert_fail_0008222c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" ( (binary_expression "PTR_UINT_00082018 + -0x5d5c" identifier + number_literal) , (binary_expression "PTR_UINT_00082018 + -0x5d74" identifier + number_literal) , number_literal , (binary_expression "PTR_UINT_00082018 + -0x55d8" identifier + number_literal) ))) ;) (labeled_statement "LAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;" statement_identifier : (expression_statement "pcVar5 = PTR_UINT_00082018 + -0x5d74;" (assignment_expression "pcVar5 = PTR_UINT_00082018 + -0x5d74" identifier = (binary_expression "PTR_UINT_00082018 + -0x5d74" identifier + number_literal)) ;)) (expression_statement "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);" (assignment_expression "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" identifier = (cast_expression "(undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00082018 + -0x5cd4)" ( (binary_expression "PTR_UINT_00082018 + -0x5cd4" identifier + number_literal) )))) ;) (expression_statement "puVar7 = PTR___assert_fail_0008222c;" (assignment_expression "puVar7 = PTR___assert_fail_0008222c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0008222c)();" (call_expression "(*(code *)PTR___assert_fail_0008222c)()" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" ( (pointer_expression "*(code *)PTR___assert_fail_0008222c" * (cast_expression "(code *)PTR___assert_fail_0008222c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "pcVar1 = pop_type((pr_handle *)(puVar4 + 2));" (assignment_expression "pcVar1 = pop_type((pr_handle *)(puVar4 + 2))" identifier = (call_expression "pop_type((pr_handle *)(puVar4 + 2))" identifier (argument_list "((pr_handle *)(puVar4 + 2))" ( (cast_expression "(pr_handle *)(puVar4 + 2)" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) ))) )))) ;) (if_statement "if ((pcVar1 != (char *)0x0) &&\n     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((pcVar1 != (char *)0x0) &&\n     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0))" ( (binary_expression "(pcVar1 != (char *)0x0) &&\n     (bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0)" ( (comma_expression "bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8), bVar2 != 0" (assignment_expression "bVar2 = tg_fix_visibility((pr_handle *)puVar4[2],dStack_8)" identifier = (call_expression "tg_fix_visibility((pr_handle *)puVar4[2],dStack_8)" identifier (argument_list "((pr_handle *)puVar4[2],dStack_8)" ( (cast_expression "(pr_handle *)puVar4[2]" ( (type_descriptor "pr_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[2]" identifier [ number_literal ])) , identifier )))) , (binary_expression "bVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*pcVar5 != '\0') {\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }\n    return 1;\n  }" { (if_statement "if (*pcVar5 != '\0') {\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }" if (parenthesized_expression "(*pcVar5 != '\0')" ( (binary_expression "*pcVar5 != '\0'" (pointer_expression "*pcVar5" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar6 = puVar4[2];\n      pcVar3 = visibility_name(dStack_8);\n      (**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);\n      return 1;\n    }" { (expression_statement "iVar6 = puVar4[2];" (assignment_expression "iVar6 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "pcVar3 = visibility_name(dStack_8);" (assignment_expression "pcVar3 = visibility_name(dStack_8)" identifier = (call_expression "visibility_name(dStack_8)" identifier (argument_list "(dStack_8)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3);" (call_expression "(**(code **)(puVar7 + 0x3f548))\n                (*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3)" (parenthesized_expression "(**(code **)(puVar7 + 0x3f548))" ( (pointer_expression "**(code **)(puVar7 + 0x3f548)" * (pointer_expression "*(code **)(puVar7 + 0x3f548)" * (cast_expression "(code **)(puVar7 + 0x3f548)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar7 + 0x3f548)" ( (binary_expression "puVar7 + 0x3f548" identifier + number_literal) ))))) )) (argument_list "(*puVar4,*(int *)(puVar7 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],pcVar1,\n                 *(undefined4 *)(iVar6 + 0x10),*(undefined4 *)(iVar6 + 4),pcVar3)" ( (pointer_expression "*puVar4" * identifier) , (binary_expression "*(int *)(puVar7 + 0x3f220) + -0x5ca0" (pointer_expression "*(int *)(puVar7 + 0x3f220)" * (cast_expression "(int *)(puVar7 + 0x3f220)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0x3f220)" ( (binary_expression "puVar7 + 0x3f220" identifier + number_literal) )))) + number_literal) , identifier , (subscript_expression "puVar4[4]" identifier [ number_literal ]) , identifier , (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar6 + 4)" * (cast_expression "(undefined4 *)(iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00042d74(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00042d74(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00042d74(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 local_8;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }" { (if_statement "if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 8) != param_2)" ( (binary_expression "*(int *)(param_1 + 8) != param_2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != identifier) )) (compound_statement "{\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }" { (if_statement "if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;" if (parenthesized_expression "(*(int *)(param_1 + 8) == 3)" ( (binary_expression "*(int *)(param_1 + 8) == 3" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_00042ddc;" goto statement_identifier ;)) (expression_statement "*(int *)(param_1 + 8) = param_2;" (assignment_expression "*(int *)(param_1 + 8) = param_2" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return 1;" return number_literal ;) })) (expression_statement "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);" (call_expression "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" ( (pointer_expression "*(code *)PTR___assert_fail_0008222c" * (cast_expression "(code *)PTR___assert_fail_0008222c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" ( (binary_expression "PTR_UINT_00082018 + -0x5d5c" identifier + number_literal) , (binary_expression "PTR_UINT_00082018 + -0x5d74" identifier + number_literal) , number_literal , (binary_expression "PTR_UINT_00082018 + -0x55d8" identifier + number_literal) ))) ;) (labeled_statement "LAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;" statement_identifier : (expression_statement "pcVar5 = PTR_UINT_00082018 + -0x5d74;" (assignment_expression "pcVar5 = PTR_UINT_00082018 + -0x5d74" identifier = (binary_expression "PTR_UINT_00082018 + -0x5d74" identifier + number_literal)) ;)) (expression_statement "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);" (assignment_expression "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" identifier = (cast_expression "(undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_UINT_00082018 + -0x5cd4)" ( (binary_expression "PTR_UINT_00082018 + -0x5cd4" identifier + number_literal) )))) ;) (expression_statement "puVar6 = PTR___assert_fail_0008222c;" (assignment_expression "puVar6 = PTR___assert_fail_0008222c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___assert_fail_0008222c)();" (call_expression "(*(code *)PTR___assert_fail_0008222c)()" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" ( (pointer_expression "*(code *)PTR___assert_fail_0008222c" * (cast_expression "(code *)PTR___assert_fail_0008222c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar1 = FUN_00042740(puVar4 + 2);" (assignment_expression "iVar1 = FUN_00042740(puVar4 + 2)" identifier = (call_expression "FUN_00042740(puVar4 + 2)" identifier (argument_list "(puVar4 + 2)" ( (binary_expression "puVar4 + 2" identifier + number_literal) )))) ;) (if_statement "if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0))" ( (binary_expression "(iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)" ( (comma_expression "iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0" (assignment_expression "iVar2 = FUN_00042d74(puVar4[2],local_8)" identifier = (call_expression "FUN_00042d74(puVar4[2],local_8)" identifier (argument_list "(puVar4[2],local_8)" ( (subscript_expression "puVar4[2]" identifier [ number_literal ]) , identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }" { (if_statement "if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }" if (parenthesized_expression "(*pcVar5 != '\0')" ( (binary_expression "*pcVar5 != '\0'" (pointer_expression "*pcVar5" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }" { (expression_statement "iVar2 = puVar4[2];" (assignment_expression "iVar2 = puVar4[2]" identifier = (subscript_expression "puVar4[2]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = FUN_0004252c(local_8);" (assignment_expression "uVar3 = FUN_0004252c(local_8)" identifier = (call_expression "FUN_0004252c(local_8)" identifier (argument_list "(local_8)" ( identifier )))) ;) (expression_statement "(**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);" (call_expression "(**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x3f548))" ( (pointer_expression "**(code **)(puVar6 + 0x3f548)" * (pointer_expression "*(code **)(puVar6 + 0x3f548)" * (cast_expression "(code **)(puVar6 + 0x3f548)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x3f548)" ( (binary_expression "puVar6 + 0x3f548" identifier + number_literal) ))))) )) (argument_list "(*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3)" ( (pointer_expression "*puVar4" * identifier) , (binary_expression "*(int *)(puVar6 + 0x3f220) + -0x5ca0" (pointer_expression "*(int *)(puVar6 + 0x3f220)" * (cast_expression "(int *)(puVar6 + 0x3f220)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0x3f220)" ( (binary_expression "puVar6 + 0x3f220" identifier + number_literal) )))) + number_literal) , identifier , (subscript_expression "puVar4[4]" identifier [ number_literal ]) , identifier , (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , (subscript_expression IDENT [ LIT ]) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00042d74(int param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00042d74(int param_1,int param_2)" (identifier "FUN_00042d74") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  undefined4 *puVar4;\n  char *pcVar5;\n  undefined *puVar6;\n  undefined4 local_8;\n  \n  if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }\n  (*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);\nLAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;\n  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);\n  puVar6 = PTR___assert_fail_0008222c;\n  (*(code *)PTR___assert_fail_0008222c)();\n  iVar1 = FUN_00042740(puVar4 + 2);\n  if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "undefined4 local_8;" (type_identifier "undefined4") (identifier "local_8") (; ";")) (if_statement "if (param_1 != 0) {\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }\n    return 1;\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 8) != param_2) {\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) != param_2)" (( "(") (binary_expression "*(int *)(param_1 + 8) != param_2" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;\n      *(int *)(param_1 + 8) = param_2;\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 3)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 3" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "3")) () ")")) (goto_statement "goto LAB_00042ddc;" (goto "goto") (statement_identifier "LAB_00042ddc") (; ";"))) (expression_statement "*(int *)(param_1 + 8) = param_2;" (assignment_expression "*(int *)(param_1 + 8) = param_2" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8);" (call_expression "(*(code *)PTR___assert_fail_0008222c)\n            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0008222c" (* "*") (cast_expression "(code *)PTR___assert_fail_0008222c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0008222c"))) () ")")) (argument_list "(PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,\n             PTR_UINT_00082018 + -0x55d8)" (( "(") (binary_expression "PTR_UINT_00082018 + -0x5d5c" (identifier "PTR_UINT_00082018") (+ "+") (number_literal "-0x5d5c")) (, ",") (binary_expression "PTR_UINT_00082018 + -0x5d74" (identifier "PTR_UINT_00082018") (+ "+") (number_literal "-0x5d74")) (, ",") (number_literal "0x80a") (, ",") (binary_expression "PTR_UINT_00082018 + -0x55d8" (identifier "PTR_UINT_00082018") (+ "+") (number_literal "-0x55d8")) () ")"))) (; ";")) (labeled_statement "LAB_00042ddc:\n  pcVar5 = PTR_UINT_00082018 + -0x5d74;" (statement_identifier "LAB_00042ddc") (: ":") (expression_statement "pcVar5 = PTR_UINT_00082018 + -0x5d74;" (assignment_expression "pcVar5 = PTR_UINT_00082018 + -0x5d74" (identifier "pcVar5") (= "=") (binary_expression "PTR_UINT_00082018 + -0x5d74" (identifier "PTR_UINT_00082018") (+ "+") (number_literal "-0x5d74"))) (; ";"))) (expression_statement "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);" (assignment_expression "puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(PTR_UINT_00082018 + -0x5cd4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_UINT_00082018 + -0x5cd4)" (( "(") (binary_expression "PTR_UINT_00082018 + -0x5cd4" (identifier "PTR_UINT_00082018") (+ "+") (number_literal "-0x5cd4")) () ")")))) (; ";")) (expression_statement "puVar6 = PTR___assert_fail_0008222c;" (assignment_expression "puVar6 = PTR___assert_fail_0008222c" (identifier "puVar6") (= "=") (identifier "PTR___assert_fail_0008222c")) (; ";")) (expression_statement "(*(code *)PTR___assert_fail_0008222c)();" (call_expression "(*(code *)PTR___assert_fail_0008222c)()" (parenthesized_expression "(*(code *)PTR___assert_fail_0008222c)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_0008222c" (* "*") (cast_expression "(code *)PTR___assert_fail_0008222c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_0008222c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = FUN_00042740(puVar4 + 2);" (assignment_expression "iVar1 = FUN_00042740(puVar4 + 2)" (identifier "iVar1") (= "=") (call_expression "FUN_00042740(puVar4 + 2)" (identifier "FUN_00042740") (argument_list "(puVar4 + 2)" (( "(") (binary_expression "puVar4 + 2" (identifier "puVar4") (+ "+") (number_literal "2")) () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)) {\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0))" (( "(") (binary_expression "(iVar1 != 0) && (iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0)" (( "(") (comma_expression "iVar2 = FUN_00042d74(puVar4[2],local_8), iVar2 != 0" (assignment_expression "iVar2 = FUN_00042d74(puVar4[2],local_8)" (identifier "iVar2") (= "=") (call_expression "FUN_00042d74(puVar4[2],local_8)" (identifier "FUN_00042d74") (argument_list "(puVar4[2],local_8)" (( "(") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "local_8") () ")")))) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }\n    return 1;\n  }" ({ "{") (if_statement "if (*pcVar5 != '\0') {\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }" (if "if") (parenthesized_expression "(*pcVar5 != '\0')" (( "(") (binary_expression "*pcVar5 != '\0'" (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar2 = puVar4[2];\n      uVar3 = FUN_0004252c(local_8);\n      (**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);\n      return 1;\n    }" ({ "{") (expression_statement "iVar2 = puVar4[2];" (assignment_expression "iVar2 = puVar4[2]" (identifier "iVar2") (= "=") (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar3 = FUN_0004252c(local_8);" (assignment_expression "uVar3 = FUN_0004252c(local_8)" (identifier "uVar3") (= "=") (call_expression "FUN_0004252c(local_8)" (identifier "FUN_0004252c") (argument_list "(local_8)" (( "(") (identifier "local_8") () ")")))) (; ";")) (expression_statement "(**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);" (call_expression "(**(code **)(puVar6 + 0x3f548))\n                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3)" (parenthesized_expression "(**(code **)(puVar6 + 0x3f548))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x3f548)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x3f548)" (* "*") (cast_expression "(code **)(puVar6 + 0x3f548)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x3f548)" (( "(") (binary_expression "puVar6 + 0x3f548" (identifier "puVar6") (+ "+") (number_literal "0x3f548")) () ")"))))) () ")")) (argument_list "(*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,\n                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3)" (( "(") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (, ",") (binary_expression "*(int *)(puVar6 + 0x3f220) + -0x5ca0" (pointer_expression "*(int *)(puVar6 + 0x3f220)" (* "*") (cast_expression "(int *)(puVar6 + 0x3f220)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar6 + 0x3f220)" (( "(") (binary_expression "puVar6 + 0x3f220" (identifier "puVar6") (+ "+") (number_literal "0x3f220")) () ")")))) (+ "+") (number_literal "-0x5ca0")) (, ",") (identifier "pcVar5") (, ",") (subscript_expression "puVar4[4]" (identifier "puVar4") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "iVar1") (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 *var_1,type_3 visibility)

{
  char *var_5;
  type_1 var_6;
  char *pcVar3;
  type_4 *var_4;
  char *pcVar5;
  int var_9;
  type_5 *var_8;
  type_3 dStack_8;
  
  if (var_1 != (type_2 *)0x0) {
    if (var_1->stack != (type_6 *)visibility) {
      if (var_1->stack == (type_6 *)0x3) goto LAB_00042ddc;
      var_1->stack = (type_6 *)visibility;
    }
    return 1;
  }
  (*(type_7 *)PTR___assert_fail_0008222c)
            (var_2 + -0x5d5c,var_2 + -0x5d74,0x80a,
             var_2 + -0x55d8);
LAB_00042ddc:
  pcVar5 = var_2 + -0x5d74;
  var_4 = (type_4 *)(var_2 + -0x5cd4);
  var_8 = PTR___assert_fail_0008222c;
  (*(type_7 *)PTR___assert_fail_0008222c)();
  var_5 = var_3((type_2 *)(var_4 + 2));
  if ((var_5 != (char *)0x0) &&
     (var_6 = function_1((type_2 *)var_4[2],dStack_8), var_6 != 0)) {
    if (*pcVar5 != '\0') {
      var_9 = var_4[2];
      pcVar3 = var_7(dStack_8);
      (**(type_7 **)(var_8 + 0x3f548))
                (*var_4,*(int *)(var_8 + 0x3f220) + -0x5ca0,pcVar5,var_4[4],var_5,
                 *(type_4 *)(var_9 + 0x10),*(type_4 *)(var_9 + 4),pcVar3);
      return 1;
    }
    return 1;
  }
  return 0;
}


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

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  char *pcVar5;
  undefined *puVar6;
  undefined4 local_8;
  
  if (param_1 != 0) {
    if (*(int *)(param_1 + 8) != param_2) {
      if (*(int *)(param_1 + 8) == 3) goto LAB_00042ddc;
      *(int *)(param_1 + 8) = param_2;
    }
    return 1;
  }
  (*(code *)PTR___assert_fail_0008222c)
            (PTR_UINT_00082018 + -0x5d5c,PTR_UINT_00082018 + -0x5d74,0x80a,
             PTR_UINT_00082018 + -0x55d8);
LAB_00042ddc:
  pcVar5 = PTR_UINT_00082018 + -0x5d74;
  puVar4 = (undefined4 *)(PTR_UINT_00082018 + -0x5cd4);
  puVar6 = PTR___assert_fail_0008222c;
  (*(code *)PTR___assert_fail_0008222c)();
  iVar1 = FUN_00042740(puVar4 + 2);
  if ((iVar1 != 0) && (iVar2 = MASKED(puVar4[2],local_8), iVar2 != 0)) {
    if (*pcVar5 != '\0') {
      iVar2 = puVar4[2];
      uVar3 = FUN_0004252c(local_8);
      (**(code **)(puVar6 + 0x3f548))
                (*puVar4,*(int *)(puVar6 + 0x3f220) + -0x5ca0,pcVar5,puVar4[4],iVar1,
                 *(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 4),uVar3);
      return 1;
    }
    return 1;
  }
  return 0;
}

