
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void _Unwind_Find_FDE(void)

{
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_002e0d80(uint param_1,uint *param_2)

{
  uint uVar1;
  undefined *puVar2;
  int iVar3;
  uint *puVar4;
  uint *puVar5;
  uint *puVar6;
  uint local_34;
  uint local_30;
  uint local_2c;
  uint local_28;
  int local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  puVar2 = PTR___pthread_key_create_00413ff8;
  uStack_14 = 0x2e0d89;
  if (DAT_0041d3d8 == 0) {
LAB_002e0da0:
    local_34 = param_1;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    local_24 = 0;
    local_20 = 1;
    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);
    if (iVar3 < 0) {
      iVar3 = 0;
    }
    else {
      iVar3 = local_24;
      if (local_24 != 0) {
        *param_2 = local_30;
        param_2[1] = local_2c;
        param_2[2] = local_28;
      }
    }
  }
  else {
    puVar5 = DAT_0041d3dc;
    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {
      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);
      puVar5 = DAT_0041d3dc;
    }
    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {
      if (*puVar5 <= param_1) {
        iVar3 = FUN_002e0310();
        if (iVar3 != 0) goto LAB_002e0e6e;
        break;
      }
    }
    do {
      puVar5 = DAT_0041d3e0;
      if (DAT_0041d3e0 == (uint *)0x0) {
        if (puVar2 != (undefined *)0x0) {
          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);
        }
        goto LAB_002e0da0;
      }
      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];
      iVar3 = FUN_002e0310();
      puVar4 = DAT_0041d3dc;
      puVar6 = (uint *)&DAT_0041d3dc;
      if (DAT_0041d3dc != (uint *)0x0) {
        uVar1 = *DAT_0041d3dc;
        while (*puVar5 <= uVar1) {
          puVar6 = puVar4 + 5;
          puVar4 = (uint *)puVar4[5];
          if (puVar4 == (uint *)0x0) break;
          uVar1 = *puVar4;
        }
      }
      puVar5[5] = (uint)puVar4;
      *puVar6 = (uint)puVar5;
    } while (iVar3 == 0);
LAB_002e0e6e:
    if (puVar2 != (undefined *)0x0) {
      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);
    }
    *param_2 = puVar5[1];
    param_2[1] = puVar5[2];
    if ((puVar5[4] & 4) != 0) {
      FUN_002df880();
    }
    FUN_002df5f0();
    FUN_002df6b0(&local_34);
    param_2[2] = local_34;
  }
  return iVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x133277
SUB ESP,0x3c
MOV EBP,dword ptr [ESP + 0x50]
MOV EAX,dword ptr [EBX + 0x93d8]
TEST EAX,EAX
JNZ 0x002e0e18
MOV dword ptr [ESP + 0x18],EBP
SUB ESP,0x8
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x2c],0x0
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x34],0x1
LEA EAX,[ESP + 0x20]
PUSH EAX
LEA EAX,[EBX + 0xffecbae0]
PUSH EAX
CALL 0x0002c2c0
ADD ESP,0x10
TEST EAX,EAX
JS 0x002e0f50
MOV EDI,dword ptr [ESP + 0x28]
TEST EDI,EDI
JZ 0x002e0e0b
MOV ECX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [ECX + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [ECX + 0x8],EAX
ADD ESP,0x3c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [EBX + 0xfffffff8]
MOV dword ptr [ESP + 0x8],EAX
TEST EAX,EAX
JZ 0x002e0e38
SUB ESP,0xc
LEA EAX,[EBX + 0x93c0]
PUSH EAX
CALL 0x0002c6b0
ADD ESP,0x10
MOV ESI,dword ptr [EBX + 0x93dc]
TEST ESI,ESI
JNZ 0x002e0e5b
JMP 0x002e0ee0
MOV ESI,dword ptr [ESI + 0x14]
TEST ESI,ESI
JZ 0x002e0ee0
CMP EBP,dword ptr [ESI]
JC 0x002e0e50
MOV EDX,EBP
MOV EAX,ESI
CALL 0x002e0310
MOV EDI,EAX
TEST EAX,EAX
JZ 0x002e0ee0
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x002e0e88
SUB ESP,0xc
LEA EAX,[EBX + 0x93c0]
PUSH EAX
CALL 0x0002c5e0
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESP + 0x54]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESI + 0x8]
MOV dword ptr [ECX + 0x4],EAX
TEST byte ptr [ESI + 0x10],0x4
JNZ 0x002e0f88
MOVZX EBX,word ptr [ESI + 0x10]
SHR BX,0x3
MOVZX EBX,BL
MOV EDX,ESI
MOV EAX,EBX
CALL 0x002df5f0
SUB ESP,0xc
LEA ECX,[EDI + 0x8]
LEA EDX,[ESP + 0x24]
PUSH EDX
MOV EDX,EAX
MOV EAX,EBX
CALL 0x002df6b0
MOV EAX,dword ptr [ESP + 0x28]
MOV ECX,dword ptr [ESP + 0x64]
ADD ESP,0x10
MOV dword ptr [ECX + 0x8],EAX
JMP 0x002e0e0b
LEA EAX,[EBX + 0x93dc]
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
MOV ESI,dword ptr [EBX + 0x93e0]
TEST ESI,ESI
JZ 0x002e0f60
MOV EAX,dword ptr [ESI + 0x14]
MOV EDX,EBP
MOV dword ptr [EBX + 0x93e0],EAX
MOV EAX,ESI
CALL 0x002e0310
MOV EDX,dword ptr [EBX + 0x93dc]
TEST EDX,EDX
JZ 0x002e0f40
MOV ECX,dword ptr [ESI]
CMP dword ptr [EDX],ECX
JNC 0x002e0f24
JMP 0x002e0f40
CMP dword ptr [EDX],ECX
JC 0x002e0f2e
LEA EDI,[EDX + 0x14]
MOV EDX,dword ptr [EDX + 0x14]
TEST EDX,EDX
JNZ 0x002e0f20
MOV dword ptr [ESI + 0x14],EDX
MOV dword ptr [EDI],ESI
TEST EAX,EAX
JZ 0x002e0ef0
MOV EDI,EAX
JMP 0x002e0e6e
MOV EDI,dword ptr [ESP + 0xc]
JMP 0x002e0f2e
XOR EDI,EDI
JMP 0x002e0e0b
MOV EDX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x002e0da0
SUB ESP,0xc
LEA EAX,[EBX + 0x93c0]
PUSH EAX
CALL 0x0002c5e0
ADD ESP,0x10
JMP 0x002e0da0
LEA EAX,[EDI + 0x4]
SUB EAX,dword ptr [EDI + 0x4]
CALL 0x002df880
MOVZX EBX,AL
JMP 0x002e0eac
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_002e0d80(uint param_1,uint *param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}\n\n" comment (function_definition "int FUN_002e0d80(uint param_1,uint *param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_002e0d80(uint param_1,uint *param_2)" identifier (parameter_list "(uint param_1,uint *param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___pthread_key_create_00413ff8;" (assignment_expression "puVar2 = PTR___pthread_key_create_00413ff8" identifier = identifier) ;) (expression_statement "uStack_14 = 0x2e0d89;" (assignment_expression "uStack_14 = 0x2e0d89" identifier = number_literal) ;) (if_statement "if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" if (parenthesized_expression "(DAT_0041d3d8 == 0)" ( (binary_expression "DAT_0041d3d8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }" { (labeled_statement "LAB_002e0da0:\n    local_34 = param_1;" statement_identifier : (expression_statement "local_34 = param_1;" (assignment_expression "local_34 = param_1" identifier = identifier) ;)) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);" (assignment_expression "iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34)" identifier = (call_expression "dl_iterate_phdr(FUN_002dfae0,&local_34)" identifier (argument_list "(FUN_002dfae0,&local_34)" ( identifier , (pointer_expression "&local_34" & identifier) )))) ;) (if_statement "if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" else (compound_statement "{\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" { (expression_statement "iVar3 = local_24;" (assignment_expression "iVar3 = local_24" identifier = identifier) ;) (if_statement "if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }" { (expression_statement "*param_2 = local_30;" (assignment_expression "*param_2 = local_30" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_2c;" (assignment_expression "param_2[1] = local_2c" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = local_28;" (assignment_expression "param_2[2] = local_28" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) })) }))) }) (else_clause "else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" else (compound_statement "{\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" { (expression_statement "puVar5 = DAT_0041d3dc;" (assignment_expression "puVar5 = DAT_0041d3dc" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }" if (parenthesized_expression "(PTR___pthread_key_create_00413ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0)" identifier (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" ( (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3c0" & identifier)) ))) ;) (expression_statement "puVar5 = DAT_0041d3dc;" (assignment_expression "puVar5 = DAT_0041d3dc" identifier = identifier) ;) })) (for_statement "for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }" for ( ; (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar5 = (uint *)puVar5[5]" identifier = (cast_expression "(uint *)puVar5[5]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[5]" identifier [ number_literal ]))) ) (compound_statement "{\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }" { (if_statement "if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }" if (parenthesized_expression "(*puVar5 <= param_1)" ( (binary_expression "*puVar5 <= param_1" (pointer_expression "*puVar5" * identifier) <= identifier) )) (compound_statement "{\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }" { (expression_statement "iVar3 = FUN_002e0310();" (assignment_expression "iVar3 = FUN_002e0310()" identifier = (call_expression "FUN_002e0310()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_002e0e6e;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e0e6e;" goto statement_identifier ;)) (break_statement "break;" break ;) })) })) (do_statement "do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);" do (compound_statement "{\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    }" { (expression_statement "puVar5 = DAT_0041d3e0;" (assignment_expression "puVar5 = DAT_0041d3e0" identifier = identifier) ;) (if_statement "if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }" if (parenthesized_expression "(DAT_0041d3e0 == (uint *)0x0)" ( (binary_expression "DAT_0041d3e0 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }" { (if_statement "if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }" if (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0)" identifier (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" ( (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3c0" & identifier)) ))) ;) })) (goto_statement "goto LAB_002e0da0;" goto statement_identifier ;) })) (expression_statement "DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];" (assignment_expression "DAT_0041d3e0 = (uint *)DAT_0041d3e0[5]" identifier = (cast_expression "(uint *)DAT_0041d3e0[5]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_0041d3e0[5]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = FUN_002e0310();" (assignment_expression "iVar3 = FUN_002e0310()" identifier = (call_expression "FUN_002e0310()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = DAT_0041d3dc;" (assignment_expression "puVar4 = DAT_0041d3dc" identifier = identifier) ;) (expression_statement "puVar6 = (uint *)&DAT_0041d3dc;" (assignment_expression "puVar6 = (uint *)&DAT_0041d3dc" identifier = (cast_expression "(uint *)&DAT_0041d3dc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3dc" & identifier))) ;) (if_statement "if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }" if (parenthesized_expression "(DAT_0041d3dc != (uint *)0x0)" ( (binary_expression "DAT_0041d3dc != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }" { (expression_statement "uVar1 = *DAT_0041d3dc;" (assignment_expression "uVar1 = *DAT_0041d3dc" identifier = (pointer_expression "*DAT_0041d3dc" * identifier)) ;) (while_statement "while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }" while (parenthesized_expression "(*puVar5 <= uVar1)" ( (binary_expression "*puVar5 <= uVar1" (pointer_expression "*puVar5" * identifier) <= identifier) )) (compound_statement "{\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }" { (expression_statement "puVar6 = puVar4 + 5;" (assignment_expression "puVar6 = puVar4 + 5" identifier = (binary_expression "puVar4 + 5" identifier + number_literal)) ;) (expression_statement "puVar4 = (uint *)puVar4[5];" (assignment_expression "puVar4 = (uint *)puVar4[5]" identifier = (cast_expression "(uint *)puVar4[5]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[5]" identifier [ number_literal ]))) ;) (if_statement "if (puVar4 == (uint *)0x0) break;" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = *puVar4;" (assignment_expression "uVar1 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) })) })) (expression_statement "puVar5[5] = (uint)puVar4;" (assignment_expression "puVar5[5] = (uint)puVar4" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = (cast_expression "(uint)puVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*puVar6 = (uint)puVar5;" (assignment_expression "*puVar6 = (uint)puVar5" (pointer_expression "*puVar6" * identifier) = (cast_expression "(uint)puVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) ;) (labeled_statement "LAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" statement_identifier : (if_statement "if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" if (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0)" identifier (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" ( (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3c0" & identifier)) ))) ;) }))) (expression_statement "*param_2 = puVar5[1];" (assignment_expression "*param_2 = puVar5[1]" (pointer_expression "*param_2" * identifier) = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "param_2[1] = puVar5[2];" (assignment_expression "param_2[1] = puVar5[2]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (if_statement "if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }" if (parenthesized_expression "((puVar5[4] & 4) != 0)" ( (binary_expression "(puVar5[4] & 4) != 0" (parenthesized_expression "(puVar5[4] & 4)" ( (binary_expression "puVar5[4] & 4" (subscript_expression "puVar5[4]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_002df880();\n    }" { (expression_statement "FUN_002df880();" (call_expression "FUN_002df880()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_002df6b0(&local_34);" (call_expression "FUN_002df6b0(&local_34)" identifier (argument_list "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))) ;) (expression_statement "param_2[2] = local_34;" (assignment_expression "param_2[2] = local_34" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid _Unwind_Find_FDE(void)\n\n{\n}\n\n" comment (function_definition "void _Unwind_Find_FDE(void)\n\n{\n}" primitive_type (function_declarator "_Unwind_Find_FDE(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n}" { })))
(translation_unit "int FUN_002e0d80(uint param_1,uint *param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}\n\n" (function_definition "int FUN_002e0d80(uint param_1,uint *param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}" primitive_type (function_declarator "FUN_002e0d80(uint param_1,uint *param_2)" identifier (parameter_list "(uint param_1,uint *param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "puVar2 = PTR___pthread_key_create_00413ff8;" (assignment_expression "puVar2 = PTR___pthread_key_create_00413ff8" identifier = identifier) ;) (expression_statement "uStack_14 = 0x2e0d89;" (assignment_expression "uStack_14 = 0x2e0d89" identifier = number_literal) ;) (if_statement "if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" if (parenthesized_expression "(DAT_0041d3d8 == 0)" ( (binary_expression "DAT_0041d3d8 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }" { (labeled_statement "LAB_002e0da0:\n    local_34 = param_1;" statement_identifier : (expression_statement "local_34 = param_1;" (assignment_expression "local_34 = param_1" identifier = identifier) ;)) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);" (assignment_expression "iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34)" identifier = (call_expression "dl_iterate_phdr(FUN_002dfae0,&local_34)" identifier (argument_list "(FUN_002dfae0,&local_34)" ( identifier , (pointer_expression "&local_34" & identifier) )))) ;) (if_statement "if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" else (compound_statement "{\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" { (expression_statement "iVar3 = local_24;" (assignment_expression "iVar3 = local_24" identifier = identifier) ;) (if_statement "if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }" if (parenthesized_expression "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )) (compound_statement "{\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }" { (expression_statement "*param_2 = local_30;" (assignment_expression "*param_2 = local_30" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = local_2c;" (assignment_expression "param_2[1] = local_2c" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = local_28;" (assignment_expression "param_2[2] = local_28" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) })) }))) }) (else_clause "else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" else (compound_statement "{\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" { (expression_statement "puVar5 = DAT_0041d3dc;" (assignment_expression "puVar5 = DAT_0041d3dc" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }" if (parenthesized_expression "(PTR___pthread_key_create_00413ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_00413ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0)" identifier (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" ( (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3c0" & identifier)) ))) ;) (expression_statement "puVar5 = DAT_0041d3dc;" (assignment_expression "puVar5 = DAT_0041d3dc" identifier = identifier) ;) })) (for_statement "for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }" for ( ; (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar5 = (uint *)puVar5[5]" identifier = (cast_expression "(uint *)puVar5[5]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar5[5]" identifier [ number_literal ]))) ) (compound_statement "{\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }" { (if_statement "if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }" if (parenthesized_expression "(*puVar5 <= param_1)" ( (binary_expression "*puVar5 <= param_1" (pointer_expression "*puVar5" * identifier) <= identifier) )) (compound_statement "{\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }" { (expression_statement "iVar3 = FUN_002e0310();" (assignment_expression "iVar3 = FUN_002e0310()" identifier = (call_expression "FUN_002e0310()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_002e0e6e;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_002e0e6e;" goto statement_identifier ;)) (break_statement "break;" break ;) })) })) (do_statement "do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);" do (compound_statement "{\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    }" { (expression_statement "puVar5 = DAT_0041d3e0;" (assignment_expression "puVar5 = DAT_0041d3e0" identifier = identifier) ;) (if_statement "if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }" if (parenthesized_expression "(DAT_0041d3e0 == (uint *)0x0)" ( (binary_expression "DAT_0041d3e0 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }" { (if_statement "if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }" if (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0)" identifier (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" ( (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3c0" & identifier)) ))) ;) })) (goto_statement "goto LAB_002e0da0;" goto statement_identifier ;) })) (expression_statement "DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];" (assignment_expression "DAT_0041d3e0 = (uint *)DAT_0041d3e0[5]" identifier = (cast_expression "(uint *)DAT_0041d3e0[5]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "DAT_0041d3e0[5]" identifier [ number_literal ]))) ;) (expression_statement "iVar3 = FUN_002e0310();" (assignment_expression "iVar3 = FUN_002e0310()" identifier = (call_expression "FUN_002e0310()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = DAT_0041d3dc;" (assignment_expression "puVar4 = DAT_0041d3dc" identifier = identifier) ;) (expression_statement "puVar6 = (uint *)&DAT_0041d3dc;" (assignment_expression "puVar6 = (uint *)&DAT_0041d3dc" identifier = (cast_expression "(uint *)&DAT_0041d3dc" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3dc" & identifier))) ;) (if_statement "if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }" if (parenthesized_expression "(DAT_0041d3dc != (uint *)0x0)" ( (binary_expression "DAT_0041d3dc != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }" { (expression_statement "uVar1 = *DAT_0041d3dc;" (assignment_expression "uVar1 = *DAT_0041d3dc" identifier = (pointer_expression "*DAT_0041d3dc" * identifier)) ;) (while_statement "while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }" while (parenthesized_expression "(*puVar5 <= uVar1)" ( (binary_expression "*puVar5 <= uVar1" (pointer_expression "*puVar5" * identifier) <= identifier) )) (compound_statement "{\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }" { (expression_statement "puVar6 = puVar4 + 5;" (assignment_expression "puVar6 = puVar4 + 5" identifier = (binary_expression "puVar4 + 5" identifier + number_literal)) ;) (expression_statement "puVar4 = (uint *)puVar4[5];" (assignment_expression "puVar4 = (uint *)puVar4[5]" identifier = (cast_expression "(uint *)puVar4[5]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar4[5]" identifier [ number_literal ]))) ;) (if_statement "if (puVar4 == (uint *)0x0) break;" if (parenthesized_expression "(puVar4 == (uint *)0x0)" ( (binary_expression "puVar4 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = *puVar4;" (assignment_expression "uVar1 = *puVar4" identifier = (pointer_expression "*puVar4" * identifier)) ;) })) })) (expression_statement "puVar5[5] = (uint)puVar4;" (assignment_expression "puVar5[5] = (uint)puVar4" (subscript_expression "puVar5[5]" identifier [ number_literal ]) = (cast_expression "(uint)puVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*puVar6 = (uint)puVar5;" (assignment_expression "*puVar6 = (uint)puVar5" (pointer_expression "*puVar6" * identifier) = (cast_expression "(uint)puVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) ;) (labeled_statement "LAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" statement_identifier : (if_statement "if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" if (parenthesized_expression "(puVar2 != (undefined *)0x0)" ( (binary_expression "puVar2 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0)" identifier (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" ( (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0041d3c0" & identifier)) ))) ;) }))) (expression_statement "*param_2 = puVar5[1];" (assignment_expression "*param_2 = puVar5[1]" (pointer_expression "*param_2" * identifier) = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "param_2[1] = puVar5[2];" (assignment_expression "param_2[1] = puVar5[2]" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (if_statement "if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }" if (parenthesized_expression "((puVar5[4] & 4) != 0)" ( (binary_expression "(puVar5[4] & 4) != 0" (parenthesized_expression "(puVar5[4] & 4)" ( (binary_expression "puVar5[4] & 4" (subscript_expression "puVar5[4]" identifier [ number_literal ]) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_002df880();\n    }" { (expression_statement "FUN_002df880();" (call_expression "FUN_002df880()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_002df6b0(&local_34);" (call_expression "FUN_002df6b0(&local_34)" identifier (argument_list "(&local_34)" ( (pointer_expression "&local_34" & identifier) ))) ;) (expression_statement "param_2[2] = local_34;" (assignment_expression "param_2[2] = local_34" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (for_statement for ( ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (break_statement break ;) })) })) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) while (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 IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_002e0d80(uint param_1,uint *param_2)\n\n{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "FUN_002e0d80(uint param_1,uint *param_2)" (identifier "FUN_002e0d80") (parameter_list "(uint param_1,uint *param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint *puVar4;\n  uint *puVar5;\n  uint *puVar6;\n  uint local_34;\n  uint local_30;\n  uint local_2c;\n  uint local_28;\n  int local_24;\n  undefined4 local_20;\n  undefined4 uStack_14;\n  \n  puVar2 = PTR___pthread_key_create_00413ff8;\n  uStack_14 = 0x2e0d89;\n  if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }\n  return iVar3;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint *puVar4;" (type_identifier "uint") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "puVar2 = PTR___pthread_key_create_00413ff8;" (assignment_expression "puVar2 = PTR___pthread_key_create_00413ff8" (identifier "puVar2") (= "=") (identifier "PTR___pthread_key_create_00413ff8")) (; ";")) (expression_statement "uStack_14 = 0x2e0d89;" (assignment_expression "uStack_14 = 0x2e0d89" (identifier "uStack_14") (= "=") (number_literal "0x2e0d89")) (; ";")) (if_statement "if (DAT_0041d3d8 == 0) {\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }\n  else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" (if "if") (parenthesized_expression "(DAT_0041d3d8 == 0)" (( "(") (binary_expression "DAT_0041d3d8 == 0" (identifier "DAT_0041d3d8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_002e0da0:\n    local_34 = param_1;\n    local_30 = 0;\n    local_2c = 0;\n    local_28 = 0;\n    local_24 = 0;\n    local_20 = 1;\n    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);\n    if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }\n  }" ({ "{") (labeled_statement "LAB_002e0da0:\n    local_34 = param_1;" (statement_identifier "LAB_002e0da0") (: ":") (expression_statement "local_34 = param_1;" (assignment_expression "local_34 = param_1" (identifier "local_34") (= "=") (identifier "param_1")) (; ";"))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_20 = 1;" (assignment_expression "local_20 = 1" (identifier "local_20") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);" (assignment_expression "iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34)" (identifier "iVar3") (= "=") (call_expression "dl_iterate_phdr(FUN_002dfae0,&local_34)" (identifier "dl_iterate_phdr") (argument_list "(FUN_002dfae0,&local_34)" (( "(") (identifier "FUN_002dfae0") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")")))) (; ";")) (if_statement "if (iVar3 < 0) {\n      iVar3 = 0;\n    }\n    else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = 0;\n    }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" (else "else") (compound_statement "{\n      iVar3 = local_24;\n      if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }\n    }" ({ "{") (expression_statement "iVar3 = local_24;" (assignment_expression "iVar3 = local_24" (identifier "iVar3") (= "=") (identifier "local_24")) (; ";")) (if_statement "if (local_24 != 0) {\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }" (if "if") (parenthesized_expression "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *param_2 = local_30;\n        param_2[1] = local_2c;\n        param_2[2] = local_28;\n      }" ({ "{") (expression_statement "*param_2 = local_30;" (assignment_expression "*param_2 = local_30" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "param_2[1] = local_2c;" (assignment_expression "param_2[1] = local_2c" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (expression_statement "param_2[2] = local_28;" (assignment_expression "param_2[2] = local_28" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_28")) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" (else "else") (compound_statement "{\n    puVar5 = DAT_0041d3dc;\n    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }\n    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }\n    do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);\nLAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }\n    *param_2 = puVar5[1];\n    param_2[1] = puVar5[2];\n    if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }\n    FUN_002df5f0();\n    FUN_002df6b0(&local_34);\n    param_2[2] = local_34;\n  }" ({ "{") (expression_statement "puVar5 = DAT_0041d3dc;" (assignment_expression "puVar5 = DAT_0041d3dc" (identifier "puVar5") (= "=") (identifier "DAT_0041d3dc")) (; ";")) (if_statement "if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_00413ff8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_00413ff8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_00413ff8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);\n      puVar5 = DAT_0041d3dc;\n    }" ({ "{") (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0)" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0041d3c0" (& "&") (identifier "DAT_0041d3c0"))) () ")"))) (; ";")) (expression_statement "puVar5 = DAT_0041d3dc;" (assignment_expression "puVar5 = DAT_0041d3dc" (identifier "puVar5") (= "=") (identifier "DAT_0041d3dc")) (; ";")) (} "}"))) (for_statement "for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }" (for "for") (( "(") (; ";") (binary_expression "puVar5 != (uint *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar5 = (uint *)puVar5[5]" (identifier "puVar5") (= "=") (cast_expression "(uint *)puVar5[5]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")))) () ")") (compound_statement "{\n      if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }\n    }" ({ "{") (if_statement "if (*puVar5 <= param_1) {\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }" (if "if") (parenthesized_expression "(*puVar5 <= param_1)" (( "(") (binary_expression "*puVar5 <= param_1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n        iVar3 = FUN_002e0310();\n        if (iVar3 != 0) goto LAB_002e0e6e;\n        break;\n      }" ({ "{") (expression_statement "iVar3 = FUN_002e0310();" (assignment_expression "iVar3 = FUN_002e0310()" (identifier "iVar3") (= "=") (call_expression "FUN_002e0310()" (identifier "FUN_002e0310") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_002e0e6e;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_002e0e6e;" (goto "goto") (statement_identifier "LAB_002e0e6e") (; ";"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (} "}"))) (do_statement "do {\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    } while (iVar3 == 0);" (do "do") (compound_statement "{\n      puVar5 = DAT_0041d3e0;\n      if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }\n      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];\n      iVar3 = FUN_002e0310();\n      puVar4 = DAT_0041d3dc;\n      puVar6 = (uint *)&DAT_0041d3dc;\n      if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }\n      puVar5[5] = (uint)puVar4;\n      *puVar6 = (uint)puVar5;\n    }" ({ "{") (expression_statement "puVar5 = DAT_0041d3e0;" (assignment_expression "puVar5 = DAT_0041d3e0" (identifier "puVar5") (= "=") (identifier "DAT_0041d3e0")) (; ";")) (if_statement "if (DAT_0041d3e0 == (uint *)0x0) {\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }" (if "if") (parenthesized_expression "(DAT_0041d3e0 == (uint *)0x0)" (( "(") (binary_expression "DAT_0041d3e0 == (uint *)0x0" (identifier "DAT_0041d3e0") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }\n        goto LAB_002e0da0;\n      }" ({ "{") (if_statement "if (puVar2 != (undefined *)0x0) {\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }" (if "if") (parenthesized_expression "(puVar2 != (undefined *)0x0)" (( "(") (binary_expression "puVar2 != (undefined *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n        }" ({ "{") (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0041d3c0" (& "&") (identifier "DAT_0041d3c0"))) () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_002e0da0;" (goto "goto") (statement_identifier "LAB_002e0da0") (; ";")) (} "}"))) (expression_statement "DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];" (assignment_expression "DAT_0041d3e0 = (uint *)DAT_0041d3e0[5]" (identifier "DAT_0041d3e0") (= "=") (cast_expression "(uint *)DAT_0041d3e0[5]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "DAT_0041d3e0[5]" (identifier "DAT_0041d3e0") ([ "[") (number_literal "5") (] "]")))) (; ";")) (expression_statement "iVar3 = FUN_002e0310();" (assignment_expression "iVar3 = FUN_002e0310()" (identifier "iVar3") (= "=") (call_expression "FUN_002e0310()" (identifier "FUN_002e0310") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar4 = DAT_0041d3dc;" (assignment_expression "puVar4 = DAT_0041d3dc" (identifier "puVar4") (= "=") (identifier "DAT_0041d3dc")) (; ";")) (expression_statement "puVar6 = (uint *)&DAT_0041d3dc;" (assignment_expression "puVar6 = (uint *)&DAT_0041d3dc" (identifier "puVar6") (= "=") (cast_expression "(uint *)&DAT_0041d3dc" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0041d3dc" (& "&") (identifier "DAT_0041d3dc")))) (; ";")) (if_statement "if (DAT_0041d3dc != (uint *)0x0) {\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }" (if "if") (parenthesized_expression "(DAT_0041d3dc != (uint *)0x0)" (( "(") (binary_expression "DAT_0041d3dc != (uint *)0x0" (identifier "DAT_0041d3dc") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar1 = *DAT_0041d3dc;\n        while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }\n      }" ({ "{") (expression_statement "uVar1 = *DAT_0041d3dc;" (assignment_expression "uVar1 = *DAT_0041d3dc" (identifier "uVar1") (= "=") (pointer_expression "*DAT_0041d3dc" (* "*") (identifier "DAT_0041d3dc"))) (; ";")) (while_statement "while (*puVar5 <= uVar1) {\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }" (while "while") (parenthesized_expression "(*puVar5 <= uVar1)" (( "(") (binary_expression "*puVar5 <= uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n          puVar6 = puVar4 + 5;\n          puVar4 = (uint *)puVar4[5];\n          if (puVar4 == (uint *)0x0) break;\n          uVar1 = *puVar4;\n        }" ({ "{") (expression_statement "puVar6 = puVar4 + 5;" (assignment_expression "puVar6 = puVar4 + 5" (identifier "puVar6") (= "=") (binary_expression "puVar4 + 5" (identifier "puVar4") (+ "+") (number_literal "5"))) (; ";")) (expression_statement "puVar4 = (uint *)puVar4[5];" (assignment_expression "puVar4 = (uint *)puVar4[5]" (identifier "puVar4") (= "=") (cast_expression "(uint *)puVar4[5]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar4[5]" (identifier "puVar4") ([ "[") (number_literal "5") (] "]")))) (; ";")) (if_statement "if (puVar4 == (uint *)0x0) break;" (if "if") (parenthesized_expression "(puVar4 == (uint *)0x0)" (( "(") (binary_expression "puVar4 == (uint *)0x0" (identifier "puVar4") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar1 = *puVar4;" (assignment_expression "uVar1 = *puVar4" (identifier "uVar1") (= "=") (pointer_expression "*puVar4" (* "*") (identifier "puVar4"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar5[5] = (uint)puVar4;" (assignment_expression "puVar5[5] = (uint)puVar4" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (cast_expression "(uint)puVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar4"))) (; ";")) (expression_statement "*puVar6 = (uint)puVar5;" (assignment_expression "*puVar6 = (uint)puVar5" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (cast_expression "(uint)puVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "puVar5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (; ";")) (labeled_statement "LAB_002e0e6e:\n    if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" (statement_identifier "LAB_002e0e6e") (: ":") (if_statement "if (puVar2 != (undefined *)0x0) {\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" (if "if") (parenthesized_expression "(puVar2 != (undefined *)0x0)" (( "(") (binary_expression "puVar2 != (undefined *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);\n    }" ({ "{") (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)&DAT_0041d3c0)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_0041d3c0" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0041d3c0" (& "&") (identifier "DAT_0041d3c0"))) () ")"))) (; ";")) (} "}")))) (expression_statement "*param_2 = puVar5[1];" (assignment_expression "*param_2 = puVar5[1]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "param_2[1] = puVar5[2];" (assignment_expression "param_2[1] = puVar5[2]" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if ((puVar5[4] & 4) != 0) {\n      FUN_002df880();\n    }" (if "if") (parenthesized_expression "((puVar5[4] & 4) != 0)" (( "(") (binary_expression "(puVar5[4] & 4) != 0" (parenthesized_expression "(puVar5[4] & 4)" (( "(") (binary_expression "puVar5[4] & 4" (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]")) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_002df880();\n    }" ({ "{") (expression_statement "FUN_002df880();" (call_expression "FUN_002df880()" (identifier "FUN_002df880") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_002df5f0();" (call_expression "FUN_002df5f0()" (identifier "FUN_002df5f0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_002df6b0(&local_34);" (call_expression "FUN_002df6b0(&local_34)" (identifier "FUN_002df6b0") (argument_list "(&local_34)" (( "(") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")"))) (; ";")) (expression_statement "param_2[2] = local_34;" (assignment_expression "param_2[2] = local_34" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_34")) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void function_1(void)

{
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(uint param_1,uint *param_2)

{
  uint uVar1;
  undefined *puVar2;
  int iVar3;
  uint *puVar4;
  uint *puVar5;
  uint *puVar6;
  uint local_34;
  uint local_30;
  uint local_2c;
  uint local_28;
  int local_24;
  undefined4 local_20;
  undefined4 uStack_14;
  
  puVar2 = PTR___pthread_key_create_00413ff8;
  uStack_14 = 0x2e0d89;
  if (DAT_0041d3d8 == 0) {
LAB_002e0da0:
    local_34 = param_1;
    local_30 = 0;
    local_2c = 0;
    local_28 = 0;
    local_24 = 0;
    local_20 = 1;
    iVar3 = dl_iterate_phdr(FUN_002dfae0,&local_34);
    if (iVar3 < 0) {
      iVar3 = 0;
    }
    else {
      iVar3 = local_24;
      if (local_24 != 0) {
        *param_2 = local_30;
        param_2[1] = local_2c;
        param_2[2] = local_28;
      }
    }
  }
  else {
    puVar5 = DAT_0041d3dc;
    if (PTR___pthread_key_create_00413ff8 != (undefined *)0x0) {
      pthread_mutex_lock((pthread_mutex_t *)&DAT_0041d3c0);
      puVar5 = DAT_0041d3dc;
    }
    for (; puVar5 != (uint *)0x0; puVar5 = (uint *)puVar5[5]) {
      if (*puVar5 <= param_1) {
        iVar3 = FUN_002e0310();
        if (iVar3 != 0) goto LAB_002e0e6e;
        break;
      }
    }
    do {
      puVar5 = DAT_0041d3e0;
      if (DAT_0041d3e0 == (uint *)0x0) {
        if (puVar2 != (undefined *)0x0) {
          pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);
        }
        goto LAB_002e0da0;
      }
      DAT_0041d3e0 = (uint *)DAT_0041d3e0[5];
      iVar3 = FUN_002e0310();
      puVar4 = DAT_0041d3dc;
      puVar6 = (uint *)&DAT_0041d3dc;
      if (DAT_0041d3dc != (uint *)0x0) {
        uVar1 = *DAT_0041d3dc;
        while (*puVar5 <= uVar1) {
          puVar6 = puVar4 + 5;
          puVar4 = (uint *)puVar4[5];
          if (puVar4 == (uint *)0x0) break;
          uVar1 = *puVar4;
        }
      }
      puVar5[5] = (uint)puVar4;
      *puVar6 = (uint)puVar5;
    } while (iVar3 == 0);
LAB_002e0e6e:
    if (puVar2 != (undefined *)0x0) {
      pthread_mutex_unlock((pthread_mutex_t *)&DAT_0041d3c0);
    }
    *param_2 = puVar5[1];
    param_2[1] = puVar5[2];
    if ((puVar5[4] & 4) != 0) {
      FUN_002df880();
    }
    FUN_002df5f0();
    FUN_002df6b0(&local_34);
    param_2[2] = local_34;
  }
  return iVar3;
}

