
int __deregister_frame_info_bases(int *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = PTR___pthread_key_create_004c5aa0;
  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {
    return 0;
  }
  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {
    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);
  }
  puVar2 = PTR_free_004c5c18;
  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);
  if (iVar3 != 0) {
    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);
    piVar5 = *(int **)(iVar3 + 0xc);
    while (param_1 != piVar5) {
      iVar6 = *(int *)(iVar3 + 0x14);
      if (iVar6 == 0) goto LAB_003ee4b0;
      puVar4 = (undefined4 *)(iVar3 + 0x14);
      iVar3 = iVar6;
      piVar5 = *(int **)(iVar6 + 0xc);
    }
LAB_003ee50c:
    *puVar4 = *(undefined4 *)(iVar3 + 0x14);
LAB_003ee514:
    if (puVar1 != (undefined *)0x0) {
      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);
    }
    return iVar3;
  }
LAB_003ee4b0:
  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);
  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);
  if (iVar3 != 0) {
    iVar6 = *(int *)(iVar3 + 0x10);
    while( true ) {
      if (iVar6 < 0) {
        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {
          *puVar4 = *(undefined4 *)(iVar3 + 0x14);
          (*(code *)puVar2)();
          goto LAB_003ee514;
        }
      }
      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;
      puVar4 = (undefined4 *)(iVar3 + 0x14);
      iVar3 = *(int *)(iVar3 + 0x14);
      if (iVar3 == 0) break;
      iVar6 = *(int *)(iVar3 + 0x10);
    }
  }
  if (puVar1 != (undefined *)0x0) {
    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);
  }
  iVar3 = (*(code *)PTR_abort_004c5d24)();
  return iVar3;
}



int FUN_003ee420(int *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = PTR___pthread_key_create_004c5aa0;
  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {
    return 0;
  }
  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {
    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);
  }
  puVar2 = PTR_free_004c5c18;
  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);
  if (iVar3 != 0) {
    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);
    piVar5 = *(int **)(iVar3 + 0xc);
    while (param_1 != piVar5) {
      iVar6 = *(int *)(iVar3 + 0x14);
      if (iVar6 == 0) goto LAB_003ee4b0;
      puVar4 = (undefined4 *)(iVar3 + 0x14);
      iVar3 = iVar6;
      piVar5 = *(int **)(iVar6 + 0xc);
    }
LAB_003ee50c:
    *puVar4 = *(undefined4 *)(iVar3 + 0x14);
LAB_003ee514:
    if (puVar1 != (undefined *)0x0) {
      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);
    }
    return iVar3;
  }
LAB_003ee4b0:
  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);
  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);
  if (iVar3 != 0) {
    iVar6 = *(int *)(iVar3 + 0x10);
    while( true ) {
      if (iVar6 < 0) {
        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {
          *puVar4 = *(undefined4 *)(iVar3 + 0x14);
          (*(code *)puVar2)();
          goto LAB_003ee514;
        }
      }
      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;
      puVar4 = (undefined4 *)(iVar3 + 0x14);
      iVar3 = *(int *)(iVar3 + 0x14);
      if (iVar3 == 0) break;
      iVar6 = *(int *)(iVar3 + 0x10);
    }
  }
  if (puVar1 != (undefined *)0x0) {
    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);
  }
  iVar3 = (*(code *)PTR_abort_004c5d24)();
  return iVar3;
}


lui gp,0xe
addiu gp,gp,-0x51e0
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
beq a0,zero,0x003ee548
_sw s0,0x18(sp)
lw v0,0x0(a0)
beq v0,zero,0x003ee548
_lw s2,-0x37a0(gp)
beq s2,zero,0x003ee470
_or s1,a0,zero
lw a0,-0x6cd4(gp)
lw t9,-0x3710(gp)
jalr t9
_addiu a0,a0,-0x14fc
lw gp,0x10(sp)
lw v1,-0x6cd4(gp)
lw v0,-0x14dc(v1)
beq v0,zero,0x003ee4b0
_nop
lw a0,0xc(v0)
bne s1,a0,0x003ee4a4
_addiu v1,v1,-0x14dc
b 0x003ee50c
_or s0,v0,zero
lw v1,0xc(s0)
beq s1,v1,0x003ee50c
_addiu v1,v0,0x14
or v0,s0,zero
lw s0,0x14(v0)
bne s0,zero,0x003ee494
_nop
lw v1,-0x6cd4(gp)
lw s0,-0x14e0(v1)
beq s0,zero,0x003ee568
_addiu v1,v1,-0x14e0
b 0x003ee4e4
_lw v0,0x10(s0)
beq s1,a0,0x003ee50c
_nop
addiu v1,s0,0x14
lw s0,0x14(s0)
beq s0,zero,0x003ee568
_nop
lw v0,0x10(s0)
bgez v0,0x003ee4c8
_lw a0,0xc(s0)
lw v0,0x0(a0)
bne s1,v0,0x003ee4d0
_lw t9,-0x3628(gp)
lw v0,0x14(s0)
jalr t9
_sw v0,0x0(v1)
b 0x003ee514
_lw gp,0x10(sp)
lw v0,0x14(s0)
sw v0,0x0(v1)
beq s2,zero,0x003ee530
_lw ra,0x24(sp)
lw a0,-0x6cd4(gp)
lw t9,-0x3664(gp)
jalr t9
_addiu a0,a0,-0x14fc
lw ra,0x24(sp)
or v0,s0,zero
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
lw ra,0x24(sp)
or s0,zero,zero
lw s2,0x20(sp)
or v0,s0,zero
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
beq s2,zero,0x003ee580
_lw a0,-0x6cd4(gp)
lw t9,-0x3664(gp)
jalr t9
_addiu a0,a0,-0x14fc
lw gp,0x10(sp)
lw t9,-0x351c(gp)
jalr t9
_nop
(translation_unit "int FUN_003ee420(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}\n\n" (function_definition "int FUN_003ee420(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" primitive_type (function_declarator "FUN_003ee420(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___pthread_key_create_004c5aa0;" (assignment_expression "puVar1 = PTR___pthread_key_create_004c5aa0" identifier = identifier) ;) (if_statement "if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_1 == (int *)0x0) || (*param_1 == 0))" ( (binary_expression "(param_1 == (int *)0x0) || (*param_1 == 0)" (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_004c5aa0 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" { (expression_statement "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)" ( (pointer_expression "*(code *)PTR_pthread_mutex_lock_004c5b30" * (cast_expression "(code *)PTR_pthread_mutex_lock_004c5b30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) })) (expression_statement "puVar2 = PTR_free_004c5c18;" (assignment_expression "puVar2 = PTR_free_004c5c18" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc)" identifier = (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14dc)" * (cast_expression "(int *)(PTR_DAT_004c256c + -0x14dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" ( (binary_expression "PTR_DAT_004c256c + -0x14dc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" { (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" ( (binary_expression "PTR_DAT_004c256c + -0x14dc" identifier + number_literal) )))) ;) (expression_statement "piVar5 = *(int **)(iVar3 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar3 + 0xc)" identifier = (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" while (parenthesized_expression "(param_1 != piVar5)" ( (binary_expression "param_1 != piVar5" identifier != identifier) )) (compound_statement "{\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 == 0) goto LAB_003ee4b0;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003ee4b0;" goto statement_identifier ;)) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" identifier = (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(iVar6 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar6 + 0xc)" identifier = (pointer_expression "*(int **)(iVar6 + 0xc)" * (cast_expression "(int **)(iVar6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);" statement_identifier : (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;)) (labeled_statement "LAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" statement_identifier : (if_statement "if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" { (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (labeled_statement "LAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" statement_identifier : (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0)" identifier = (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14e0)" * (cast_expression "(int *)(PTR_DAT_004c256c + -0x14e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" ( (binary_expression "PTR_DAT_004c256c + -0x14e0" identifier + number_literal) ))))) ;)) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" ( (binary_expression "PTR_DAT_004c256c + -0x14e0" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" { (if_statement "if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }" { (if_statement "if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" if (parenthesized_expression "(param_1 == (int *)**(int **)(iVar3 + 0xc))" ( (binary_expression "param_1 == (int *)**(int **)(iVar3 + 0xc)" identifier == (cast_expression "(int *)**(int **)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(iVar3 + 0xc)" * (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))))) )) (compound_statement "{\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" { (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)puVar2)();" (call_expression "(*(code *)puVar2)()" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (goto_statement "goto LAB_003ee514;" goto statement_identifier ;) })) }) (else_clause "else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" else (if_statement "if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" if (parenthesized_expression "(param_1 == *(int **)(iVar3 + 0xc))" ( (binary_expression "param_1 == *(int **)(iVar3 + 0xc)" identifier == (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) )) (goto_statement "goto LAB_003ee50c;" goto statement_identifier ;)))) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" identifier = (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) })) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" { (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) })) (expression_statement "iVar3 = (*(code *)PTR_abort_004c5d24)();" (assignment_expression "iVar3 = (*(code *)PTR_abort_004c5d24)()" identifier = (call_expression "(*(code *)PTR_abort_004c5d24)()" (parenthesized_expression "(*(code *)PTR_abort_004c5d24)" ( (pointer_expression "*(code *)PTR_abort_004c5d24" * (cast_expression "(code *)PTR_abort_004c5d24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int __deregister_frame_info_bases(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}\n\n" (function_definition "int __deregister_frame_info_bases(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" primitive_type (function_declarator "__deregister_frame_info_bases(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___pthread_key_create_004c5aa0;" (assignment_expression "puVar1 = PTR___pthread_key_create_004c5aa0" identifier = identifier) ;) (if_statement "if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_1 == (int *)0x0) || (*param_1 == 0))" ( (binary_expression "(param_1 == (int *)0x0) || (*param_1 == 0)" (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_004c5aa0 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" { (expression_statement "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)" ( (pointer_expression "*(code *)PTR_pthread_mutex_lock_004c5b30" * (cast_expression "(code *)PTR_pthread_mutex_lock_004c5b30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) })) (expression_statement "puVar2 = PTR_free_004c5c18;" (assignment_expression "puVar2 = PTR_free_004c5c18" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc)" identifier = (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14dc)" * (cast_expression "(int *)(PTR_DAT_004c256c + -0x14dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" ( (binary_expression "PTR_DAT_004c256c + -0x14dc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" { (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" ( (binary_expression "PTR_DAT_004c256c + -0x14dc" identifier + number_literal) )))) ;) (expression_statement "piVar5 = *(int **)(iVar3 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar3 + 0xc)" identifier = (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" while (parenthesized_expression "(param_1 != piVar5)" ( (binary_expression "param_1 != piVar5" identifier != identifier) )) (compound_statement "{\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 == 0) goto LAB_003ee4b0;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003ee4b0;" goto statement_identifier ;)) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" identifier = (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(iVar6 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar6 + 0xc)" identifier = (pointer_expression "*(int **)(iVar6 + 0xc)" * (cast_expression "(int **)(iVar6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);" statement_identifier : (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;)) (labeled_statement "LAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" statement_identifier : (if_statement "if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" { (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (labeled_statement "LAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" statement_identifier : (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0)" identifier = (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14e0)" * (cast_expression "(int *)(PTR_DAT_004c256c + -0x14e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" ( (binary_expression "PTR_DAT_004c256c + -0x14e0" identifier + number_literal) ))))) ;)) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" ( (binary_expression "PTR_DAT_004c256c + -0x14e0" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" { (if_statement "if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }" { (if_statement "if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" if (parenthesized_expression "(param_1 == (int *)**(int **)(iVar3 + 0xc))" ( (binary_expression "param_1 == (int *)**(int **)(iVar3 + 0xc)" identifier == (cast_expression "(int *)**(int **)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(iVar3 + 0xc)" * (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))))) )) (compound_statement "{\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" { (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)puVar2)();" (call_expression "(*(code *)puVar2)()" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (goto_statement "goto LAB_003ee514;" goto statement_identifier ;) })) }) (else_clause "else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" else (if_statement "if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" if (parenthesized_expression "(param_1 == *(int **)(iVar3 + 0xc))" ( (binary_expression "param_1 == *(int **)(iVar3 + 0xc)" identifier == (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) )) (goto_statement "goto LAB_003ee50c;" goto statement_identifier ;)))) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" identifier = (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) })) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" { (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) })) (expression_statement "iVar3 = (*(code *)PTR_abort_004c5d24)();" (assignment_expression "iVar3 = (*(code *)PTR_abort_004c5d24)()" identifier = (call_expression "(*(code *)PTR_abort_004c5d24)()" (parenthesized_expression "(*(code *)PTR_abort_004c5d24)" ( (pointer_expression "*(code *)PTR_abort_004c5d24" * (cast_expression "(code *)PTR_abort_004c5d24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "int FUN_003ee420(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}\n\n" (function_definition "int FUN_003ee420(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" primitive_type (function_declarator "FUN_003ee420(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___pthread_key_create_004c5aa0;" (assignment_expression "puVar1 = PTR___pthread_key_create_004c5aa0" identifier = identifier) ;) (if_statement "if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_1 == (int *)0x0) || (*param_1 == 0))" ( (binary_expression "(param_1 == (int *)0x0) || (*param_1 == 0)" (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" if (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_004c5aa0 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" { (expression_statement "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)" ( (pointer_expression "*(code *)PTR_pthread_mutex_lock_004c5b30" * (cast_expression "(code *)PTR_pthread_mutex_lock_004c5b30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) })) (expression_statement "puVar2 = PTR_free_004c5c18;" (assignment_expression "puVar2 = PTR_free_004c5c18" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc)" identifier = (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14dc)" * (cast_expression "(int *)(PTR_DAT_004c256c + -0x14dc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" ( (binary_expression "PTR_DAT_004c256c + -0x14dc" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" { (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14dc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" ( (binary_expression "PTR_DAT_004c256c + -0x14dc" identifier + number_literal) )))) ;) (expression_statement "piVar5 = *(int **)(iVar3 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar3 + 0xc)" identifier = (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (while_statement "while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" while (parenthesized_expression "(param_1 != piVar5)" ( (binary_expression "param_1 != piVar5" identifier != identifier) )) (compound_statement "{\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar6 == 0) goto LAB_003ee4b0;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003ee4b0;" goto statement_identifier ;)) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" identifier = (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" identifier = identifier) ;) (expression_statement "piVar5 = *(int **)(iVar6 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar6 + 0xc)" identifier = (pointer_expression "*(int **)(iVar6 + 0xc)" * (cast_expression "(int **)(iVar6 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0xc)" ( (binary_expression "iVar6 + 0xc" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);" statement_identifier : (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;)) (labeled_statement "LAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" statement_identifier : (if_statement "if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" { (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (labeled_statement "LAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" statement_identifier : (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0)" identifier = (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14e0)" * (cast_expression "(int *)(PTR_DAT_004c256c + -0x14e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" ( (binary_expression "PTR_DAT_004c256c + -0x14e0" identifier + number_literal) ))))) ;)) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0)" identifier = (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" ( (binary_expression "PTR_DAT_004c256c + -0x14e0" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" { (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (while_statement "while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" { (if_statement "if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (compound_statement "{\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }" { (if_statement "if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" if (parenthesized_expression "(param_1 == (int *)**(int **)(iVar3 + 0xc))" ( (binary_expression "param_1 == (int *)**(int **)(iVar3 + 0xc)" identifier == (cast_expression "(int *)**(int **)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "**(int **)(iVar3 + 0xc)" * (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))))) )) (compound_statement "{\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" { (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" * (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)puVar2)();" (call_expression "(*(code *)puVar2)()" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (goto_statement "goto LAB_003ee514;" goto statement_identifier ;) })) }) (else_clause "else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" else (if_statement "if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" if (parenthesized_expression "(param_1 == *(int **)(iVar3 + 0xc))" ( (binary_expression "param_1 == *(int **)(iVar3 + 0xc)" identifier == (pointer_expression "*(int **)(iVar3 + 0xc)" * (cast_expression "(int **)(iVar3 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) )) (goto_statement "goto LAB_003ee50c;" goto statement_identifier ;)))) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" identifier = (cast_expression "(undefined4 *)(iVar3 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" identifier = (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) break;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" identifier = (pointer_expression "*(int *)(iVar3 + 0x10)" * (cast_expression "(int *)(iVar3 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) })) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" { (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_004c256c + -0x14fc)" ( (binary_expression "PTR_DAT_004c256c + -0x14fc" identifier + number_literal) ))) ;) })) (expression_statement "iVar3 = (*(code *)PTR_abort_004c5d24)();" (assignment_expression "iVar3 = (*(code *)PTR_abort_004c5d24)()" identifier = (call_expression "(*(code *)PTR_abort_004c5d24)()" (parenthesized_expression "(*(code *)PTR_abort_004c5d24)" ( (pointer_expression "*(code *)PTR_abort_004c5d24" * (cast_expression "(code *)PTR_abort_004c5d24" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = 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) ))))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) }))) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (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 { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (goto_statement goto statement_identifier ;)))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (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) )) (break_statement break ;)) (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 != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_003ee420(int *param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_003ee420(int *param_1)" (identifier "FUN_003ee420") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  \n  puVar1 = PTR___pthread_key_create_004c5aa0;\n  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }\n  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }\n  puVar2 = PTR_free_004c5c18;\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);\n  if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }\nLAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);\n  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);\n  if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }\n  iVar3 = (*(code *)PTR_abort_004c5d24)();\n  return iVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_004c5aa0;" (assignment_expression "puVar1 = PTR___pthread_key_create_004c5aa0" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_004c5aa0")) (; ";")) (if_statement "if ((param_1 == (int *)0x0) || (*param_1 == 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_1 == (int *)0x0) || (*param_1 == 0))" (( "(") (binary_expression "(param_1 == (int *)0x0) || (*param_1 == 0)" (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_004c5aa0 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_004c5aa0 != (undefined *)0x0" (identifier "PTR___pthread_key_create_004c5aa0") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);\n  }" ({ "{") (expression_statement "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_004c5b30)" (( "(") (pointer_expression "*(code *)PTR_pthread_mutex_lock_004c5b30" (* "*") (cast_expression "(code *)PTR_pthread_mutex_lock_004c5b30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pthread_mutex_lock_004c5b30"))) () ")")) (argument_list "(PTR_DAT_004c256c + -0x14fc)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14fc" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14fc")) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = PTR_free_004c5c18;" (assignment_expression "puVar2 = PTR_free_004c5c18" (identifier "puVar2") (= "=") (identifier "PTR_free_004c5c18")) (; ";")) (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14dc)" (* "*") (cast_expression "(int *)(PTR_DAT_004c256c + -0x14dc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14dc" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14dc")) () ")"))))) (; ";")) (if_statement "if (iVar3 != 0) {\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);\n    piVar5 = *(int **)(iVar3 + 0xc);\n    while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }\nLAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);\nLAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }\n    return iVar3;\n  }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14dc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_004c256c + -0x14dc)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14dc" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14dc")) () ")")))) (; ";")) (expression_statement "piVar5 = *(int **)(iVar3 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar3 + 0xc)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(iVar3 + 0xc)" (* "*") (cast_expression "(int **)(iVar3 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (while_statement "while (param_1 != piVar5) {\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" (while "while") (parenthesized_expression "(param_1 != piVar5)" (( "(") (binary_expression "param_1 != piVar5" (identifier "param_1") (!= "!=") (identifier "piVar5")) () ")")) (compound_statement "{\n      iVar6 = *(int *)(iVar3 + 0x14);\n      if (iVar6 == 0) goto LAB_003ee4b0;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = iVar6;\n      piVar5 = *(int **)(iVar6 + 0xc);\n    }" ({ "{") (expression_statement "iVar6 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x14)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar6 == 0) goto LAB_003ee4b0;" (if "if") (parenthesized_expression "(iVar6 == 0)" (( "(") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_003ee4b0;" (goto "goto") (statement_identifier "LAB_003ee4b0") (; ";"))) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "iVar3 = iVar6;" (assignment_expression "iVar3 = iVar6" (identifier "iVar3") (= "=") (identifier "iVar6")) (; ";")) (expression_statement "piVar5 = *(int **)(iVar6 + 0xc);" (assignment_expression "piVar5 = *(int **)(iVar6 + 0xc)" (identifier "piVar5") (= "=") (pointer_expression "*(int **)(iVar6 + 0xc)" (* "*") (cast_expression "(int **)(iVar6 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0xc)" (( "(") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_003ee50c:\n    *puVar4 = *(undefined4 *)(iVar3 + 0x14);" (statement_identifier "LAB_003ee50c") (: ":") (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";"))) (labeled_statement "LAB_003ee514:\n    if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" (statement_identifier "LAB_003ee514") (: ":") (if_statement "if (puVar1 != (undefined *)0x0) {\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" (if "if") (parenthesized_expression "(puVar1 != (undefined *)0x0)" (( "(") (binary_expression "puVar1 != (undefined *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n    }" ({ "{") (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" (( "(") (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" (* "*") (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pthread_mutex_unlock_004c5bdc"))) () ")")) (argument_list "(PTR_DAT_004c256c + -0x14fc)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14fc" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14fc")) () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (labeled_statement "LAB_003ee4b0:\n  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" (statement_identifier "LAB_003ee4b0") (: ":") (expression_statement "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(PTR_DAT_004c256c + -0x14e0)" (* "*") (cast_expression "(int *)(PTR_DAT_004c256c + -0x14e0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14e0" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14e0")) () ")"))))) (; ";"))) (expression_statement "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);" (assignment_expression "puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(PTR_DAT_004c256c + -0x14e0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_004c256c + -0x14e0)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14e0" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14e0")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar6 = *(int *)(iVar3 + 0x10);\n    while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }\n  }" ({ "{") (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (while_statement "while( true ) {\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;\n      puVar4 = (undefined4 *)(iVar3 + 0x14);\n      iVar3 = *(int *)(iVar3 + 0x14);\n      if (iVar3 == 0) break;\n      iVar6 = *(int *)(iVar3 + 0x10);\n    }" ({ "{") (if_statement "if (iVar6 < 0) {\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }\n      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" (if "if") (parenthesized_expression "(iVar6 < 0)" (( "(") (binary_expression "iVar6 < 0" (identifier "iVar6") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }\n      }" ({ "{") (if_statement "if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" (if "if") (parenthesized_expression "(param_1 == (int *)**(int **)(iVar3 + 0xc))" (( "(") (binary_expression "param_1 == (int *)**(int **)(iVar3 + 0xc)" (identifier "param_1") (== "==") (cast_expression "(int *)**(int **)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "**(int **)(iVar3 + 0xc)" (* "*") (pointer_expression "*(int **)(iVar3 + 0xc)" (* "*") (cast_expression "(int **)(iVar3 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))))) () ")")) (compound_statement "{\n          *puVar4 = *(undefined4 *)(iVar3 + 0x14);\n          (*(code *)puVar2)();\n          goto LAB_003ee514;\n        }" ({ "{") (expression_statement "*puVar4 = *(undefined4 *)(iVar3 + 0x14);" (assignment_expression "*puVar4 = *(undefined4 *)(iVar3 + 0x14)" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "(*(code *)puVar2)();" (call_expression "(*(code *)puVar2)()" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_003ee514;" (goto "goto") (statement_identifier "LAB_003ee514") (; ";")) (} "}"))) (} "}")) (else_clause "else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" (else "else") (if_statement "if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;" (if "if") (parenthesized_expression "(param_1 == *(int **)(iVar3 + 0xc))" (( "(") (binary_expression "param_1 == *(int **)(iVar3 + 0xc)" (identifier "param_1") (== "==") (pointer_expression "*(int **)(iVar3 + 0xc)" (* "*") (cast_expression "(int **)(iVar3 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (goto_statement "goto LAB_003ee50c;" (goto "goto") (statement_identifier "LAB_003ee50c") (; ";"))))) (expression_statement "puVar4 = (undefined4 *)(iVar3 + 0x14);" (assignment_expression "puVar4 = (undefined4 *)(iVar3 + 0x14)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(iVar3 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar3 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0x14)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0) break;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar6 = *(int *)(iVar3 + 0x10);" (assignment_expression "iVar6 = *(int *)(iVar3 + 0x10)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(iVar3 + 0x10)" (* "*") (cast_expression "(int *)(iVar3 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined *)0x0)" (( "(") (binary_expression "puVar1 != (undefined *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);\n  }" ({ "{") (expression_statement "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);" (call_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc)" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004c5bdc)" (( "(") (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004c5bdc" (* "*") (cast_expression "(code *)PTR_pthread_mutex_unlock_004c5bdc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pthread_mutex_unlock_004c5bdc"))) () ")")) (argument_list "(PTR_DAT_004c256c + -0x14fc)" (( "(") (binary_expression "PTR_DAT_004c256c + -0x14fc" (identifier "PTR_DAT_004c256c") (+ "+") (number_literal "-0x14fc")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_abort_004c5d24)();" (assignment_expression "iVar3 = (*(code *)PTR_abort_004c5d24)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_abort_004c5d24)()" (parenthesized_expression "(*(code *)PTR_abort_004c5d24)" (( "(") (pointer_expression "*(code *)PTR_abort_004c5d24" (* "*") (cast_expression "(code *)PTR_abort_004c5d24" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_abort_004c5d24"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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: (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 (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))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (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)))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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)))))))) (return_statement (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (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)))))))) (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (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))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (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))))))) (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))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (goto_statement label: (statement_identifier))))) (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (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))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (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))))))) (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: (identifier)))) arguments: (argument_list)))) (return_statement (identifier)))))

int MASKED(int *param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int *piVar5;
  int iVar6;
  
  puVar1 = PTR___pthread_key_create_004c5aa0;
  if ((param_1 == (int *)0x0) || (*param_1 == 0)) {
    return 0;
  }
  if (PTR___pthread_key_create_004c5aa0 != (undefined *)0x0) {
    (*(code *)PTR_pthread_mutex_lock_004c5b30)(PTR_DAT_004c256c + -0x14fc);
  }
  puVar2 = PTR_free_004c5c18;
  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14dc);
  if (iVar3 != 0) {
    puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14dc);
    piVar5 = *(int **)(iVar3 + 0xc);
    while (param_1 != piVar5) {
      iVar6 = *(int *)(iVar3 + 0x14);
      if (iVar6 == 0) goto LAB_003ee4b0;
      puVar4 = (undefined4 *)(iVar3 + 0x14);
      iVar3 = iVar6;
      piVar5 = *(int **)(iVar6 + 0xc);
    }
LAB_003ee50c:
    *puVar4 = *(undefined4 *)(iVar3 + 0x14);
LAB_003ee514:
    if (puVar1 != (undefined *)0x0) {
      (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);
    }
    return iVar3;
  }
LAB_003ee4b0:
  iVar3 = *(int *)(PTR_DAT_004c256c + -0x14e0);
  puVar4 = (undefined4 *)(PTR_DAT_004c256c + -0x14e0);
  if (iVar3 != 0) {
    iVar6 = *(int *)(iVar3 + 0x10);
    while( true ) {
      if (iVar6 < 0) {
        if (param_1 == (int *)**(int **)(iVar3 + 0xc)) {
          *puVar4 = *(undefined4 *)(iVar3 + 0x14);
          (*(code *)puVar2)();
          goto LAB_003ee514;
        }
      }
      else if (param_1 == *(int **)(iVar3 + 0xc)) goto LAB_003ee50c;
      puVar4 = (undefined4 *)(iVar3 + 0x14);
      iVar3 = *(int *)(iVar3 + 0x14);
      if (iVar3 == 0) break;
      iVar6 = *(int *)(iVar3 + 0x10);
    }
  }
  if (puVar1 != (undefined *)0x0) {
    (*(code *)PTR_pthread_mutex_unlock_004c5bdc)(PTR_DAT_004c256c + -0x14fc);
  }
  iVar3 = (*(code *)PTR_abort_004c5d24)();
  return iVar3;
}

