
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

_Bool hash_rehash(Hash_table *table,size_t candidate)

{
  int iVar1;
  hash_entry *phVar2;
  float fVar3;
  _Bool _Var4;
  _Bool _Var5;
  size_t sVar6;
  hash_entry *__ptr;
  int in_GS_OFFSET;
  Hash_table *in_stack_ffffff94;
  Hash_table *in_stack_ffffff98;
  undefined1 safe;
  size_t in_stack_ffffff9c;
  size_t local_5c;
  Hash_table storage;
  
  sVar6 = candidate;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (table->tuning->is_n_buckets == false) {
    fVar3 = (float)candidate / table->tuning->growth_threshold;
    if (fVar3 < _DAT_0001978c) {
      local_5c = (size_t)(longlong)ROUND(fVar3);
      candidate = local_5c;
      in_stack_ffffff9c = sVar6;
      goto LAB_000131f7;
    }
  }
  else {
LAB_000131f7:
    safe = (undefined1)in_stack_ffffff9c;
    sVar6 = next_prime(candidate);
    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {
      if (table->n_buckets == sVar6) {
        _Var4 = true;
        goto LAB_000132e4;
      }
      __ptr = (hash_entry *)calloc(sVar6,8);
      if (__ptr != (hash_entry *)0x0) {
        phVar2 = table->free_entry_list;
        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);
        if (_Var4) {
          free(table->bucket);
          table->bucket = __ptr;
          table->bucket_limit = __ptr + sVar6;
          table->n_buckets = sVar6;
          table->n_buckets_used = 0;
          table->free_entry_list = phVar2;
        }
        else {
          table->free_entry_list = phVar2;
          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);
          if ((!_Var5) ||
             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {
                    /* WARNING: Subroutine does not return */
            abort();
          }
          free(__ptr);
        }
        goto LAB_000132e4;
      }
    }
  }
  _Var4 = false;
LAB_000132e4:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return _Var4;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4 FUN_00013180(undefined4 *param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  char cVar3;
  uint __nmemb;
  void *__ptr;
  undefined4 uVar4;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*(char *)(param_1[5] + 0x10) != '\0') ||
     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {
    __nmemb = FUN_00012680();
    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {
      if (param_1[2] == __nmemb) {
        uVar4 = 1;
        goto LAB_000132e4;
      }
      __ptr = calloc(__nmemb,8);
      if (__ptr != (void *)0x0) {
        uVar2 = param_1[9];
        uVar4 = FUN_00012920();
        if ((char)uVar4 == '\0') {
          param_1[9] = uVar2;
          cVar3 = FUN_00012920();
          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {
                    /* WARNING: Subroutine does not return */
            abort();
          }
          free(__ptr);
        }
        else {
          free((void *)*param_1);
          *param_1 = __ptr;
          param_1[1] = (void *)((int)__ptr + __nmemb * 8);
          param_1[2] = __nmemb;
          param_1[3] = 0;
          param_1[9] = uVar2;
        }
        goto LAB_000132e4;
      }
    }
  }
  uVar4 = 0;
LAB_000132e4:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017fb0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000117d0
ADD EBX,0xbe77
SUB ESP,0x5c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x4c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x70]
MOV EDI,dword ptr [ESI + 0x14]
CMP byte ptr [EDI + 0x10],0x0
JNZ 0x000131f7
MOV EAX,dword ptr [ESP + 0x74]
XOR EDX,EDX
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EAX
FILD qword ptr [ESP + 0x8]
FDIV dword ptr [EDI + 0x8]
FLD dword ptr [EBX + 0xffffa78c]
FXCH
FCOMI ST0,ST1
FSTP ST1
JNC 0x000132e0
FNSTCW word ptr [ESP + 0x1a]
MOVZX EAX,word ptr [ESP + 0x1a]
OR AH,0xc
MOV word ptr [ESP + 0x18],AX
FLDCW word ptr [ESP + 0x18]
FISTP qword ptr [ESP + 0x10]
FLDCW word ptr [ESP + 0x1a]
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x74],EAX
MOV EAX,dword ptr [ESP + 0x74]
CALL 0x00012680
MOV EDX,0x1
MOV EBP,EAX
SHR EAX,0x1e
SETNZ AL
TEST EBP,0x20000000
MOVZX EAX,AL
CMOVNZ EAX,EDX
TEST EBP,EBP
JZ 0x000132e2
TEST EAX,EAX
JNZ 0x000132e2
CMP dword ptr [ESI + 0x8],EBP
JZ 0x00013300
SUB ESP,0x8
PUSH 0x8
PUSH EBP
CALL 0x000113d0
MOV dword ptr [ESP + 0x34],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000132e2
LEA EAX,[EAX + EBP*0x8]
MOV dword ptr [ESP + 0x2c],EBP
LEA EBP,[ESP + 0x24]
XOR ECX,ECX
MOV dword ptr [ESP + 0x28],EAX
MOV EAX,dword ptr [ESI + 0x18]
MOV EDX,ESI
MOV dword ptr [ESP + 0x38],EDI
MOV dword ptr [ESP + 0x3c],EAX
MOV EAX,dword ptr [ESI + 0x1c]
MOV dword ptr [ESP + 0x30],0x0
MOV dword ptr [ESP + 0x40],EAX
MOV EAX,dword ptr [ESI + 0x20]
MOV dword ptr [ESP + 0x34],0x0
MOV dword ptr [ESP + 0x44],EAX
MOV EAX,dword ptr [ESI + 0x24]
MOV dword ptr [ESP + 0x48],EAX
MOV EAX,EBP
CALL 0x00012920
MOV EDI,EAX
TEST AL,AL
JNZ 0x00013310
MOV EAX,dword ptr [ESP + 0x48]
MOV ECX,0x1
MOV EDX,EBP
MOV dword ptr [ESI + 0x24],EAX
MOV EAX,ESI
CALL 0x00012920
TEST AL,AL
JZ 0x0001140a
XOR ECX,ECX
MOV EDX,EBP
MOV EAX,ESI
CALL 0x00012920
TEST AL,AL
JZ 0x0001140a
SUB ESP,0xc
PUSH dword ptr [ESP + 0x30]
CALL 0x00011080
ADD ESP,0x10
JMP 0x000132e4
FSTP ST0
XOR EDI,EDI
MOV ECX,dword ptr [ESP + 0x4c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDI
JNZ 0x00013341
ADD ESP,0x5c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,0x1
JMP 0x000132e4
SUB ESP,0xc
PUSH dword ptr [ESI]
CALL 0x00011080
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x38]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x58]
ADD ESP,0x10
MOV dword ptr [ESI + 0x24],EAX
JMP 0x000132e4
CALL 0x00017fb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\nundefined4 FUN_00013180(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017fb0();\n}\n\n" comment comment (function_definition "undefined4 FUN_00013180(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017fb0();\n}" type_identifier (function_declarator "FUN_00013180(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00017fb0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint __nmemb;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c))" ( (binary_expression "(*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)" (parenthesized_expression "(*(char *)(param_1[5] + 0x10) != '\0')" ( (binary_expression "*(char *)(param_1[5] + 0x10) != '\0'" (pointer_expression "*(char *)(param_1[5] + 0x10)" * (cast_expression "(char *)(param_1[5] + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x10)" ( (binary_expression "param_1[5] + 0x10" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)" ( (binary_expression "(float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c" (binary_expression "(float)param_2 / *(float *)(param_1[5] + 8)" (cast_expression "(float)param_2" ( (type_descriptor "float" primitive_type) ) identifier) / (pointer_expression "*(float *)(param_1[5] + 8)" * (cast_expression "(float *)(param_1[5] + 8)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 8)" ( (binary_expression "param_1[5] + 8" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) ))))) < identifier) ))) )) (compound_statement "{\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" { (expression_statement "__nmemb = FUN_00012680();" (assignment_expression "__nmemb = FUN_00012680()" identifier = (call_expression "FUN_00012680()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }" if (parenthesized_expression "((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0))" ( (binary_expression "(__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)" (parenthesized_expression "(__nmemb != 0)" ( (binary_expression "__nmemb != 0" identifier != number_literal) )) && (parenthesized_expression "((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)" ( (binary_expression "(__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0" (binary_expression "(__nmemb & 0x20000000) == 0" (parenthesized_expression "(__nmemb & 0x20000000)" ( (binary_expression "__nmemb & 0x20000000" identifier & number_literal) )) == number_literal) && (binary_expression "__nmemb >> 0x1e == 0" (binary_expression "__nmemb >> 0x1e" identifier >> number_literal) == number_literal)) ))) )) (compound_statement "{\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }" { (if_statement "if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }" if (parenthesized_expression "(param_1[2] == __nmemb)" ( (binary_expression "param_1[2] == __nmemb" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000132e4;" goto statement_identifier ;) })) (expression_statement "__ptr = calloc(__nmemb,8);" (assignment_expression "__ptr = calloc(__nmemb,8)" identifier = (call_expression "calloc(__nmemb,8)" identifier (argument_list "(__nmemb,8)" ( identifier , number_literal )))) ;) (if_statement "if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }" { (expression_statement "uVar2 = param_1[9];" (assignment_expression "uVar2 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = FUN_00012920();" (assignment_expression "uVar4 = FUN_00012920()" identifier = (call_expression "FUN_00012920()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" if (parenthesized_expression "((char)uVar4 == '\0')" ( (binary_expression "(char)uVar4 == '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }" { (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar3 = FUN_00012920();" (assignment_expression "cVar3 = FUN_00012920()" identifier = (call_expression "FUN_00012920()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }" if (parenthesized_expression "((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0'))" ( (binary_expression "(cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')" (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar3 = FUN_00012920(), cVar3 == '\0')" ( (comma_expression "cVar3 = FUN_00012920(), cVar3 == '\0'" (assignment_expression "cVar3 = FUN_00012920()" identifier = (call_expression "FUN_00012920()" identifier (argument_list "()" ( )))) , (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" else (compound_statement "{\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" { (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "*param_1 = __ptr;" (assignment_expression "*param_1 = __ptr" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = (void *)((int)__ptr + __nmemb * 8);" (assignment_expression "param_1[1] = (void *)((int)__ptr + __nmemb * 8)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(void *)((int)__ptr + __nmemb * 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + __nmemb * 8)" ( (binary_expression "(int)__ptr + __nmemb * 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "__nmemb * 8" identifier * number_literal)) )))) ;) (expression_statement "param_1[2] = __nmemb;" (assignment_expression "param_1[2] = __nmemb" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) }))) (goto_statement "goto LAB_000132e4;" goto statement_identifier ;) })) })) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) comment (expression_statement "FUN_00017fb0();" (call_expression "FUN_00017fb0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */\n\n_Bool hash_rehash(Hash_table *table,size_t candidate)\n\n{\n  int iVar1;\n  hash_entry *phVar2;\n  float fVar3;\n  _Bool _Var4;\n  _Bool _Var5;\n  size_t sVar6;\n  hash_entry *__ptr;\n  int in_GS_OFFSET;\n  Hash_table *in_stack_ffffff94;\n  Hash_table *in_stack_ffffff98;\n  undefined1 safe;\n  size_t in_stack_ffffff9c;\n  size_t local_5c;\n  Hash_table storage;\n  \n  sVar6 = candidate;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (table->tuning->is_n_buckets == false) {\n    fVar3 = (float)candidate / table->tuning->growth_threshold;\n    if (fVar3 < _DAT_0001978c) {\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }\n  }\n  else {\nLAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;\n    sVar6 = next_prime(candidate);\n    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  _Var4 = false;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "_Bool hash_rehash(Hash_table *table,size_t candidate)\n\n{\n  int iVar1;\n  hash_entry *phVar2;\n  float fVar3;\n  _Bool _Var4;\n  _Bool _Var5;\n  size_t sVar6;\n  hash_entry *__ptr;\n  int in_GS_OFFSET;\n  Hash_table *in_stack_ffffff94;\n  Hash_table *in_stack_ffffff98;\n  undefined1 safe;\n  size_t in_stack_ffffff9c;\n  size_t local_5c;\n  Hash_table storage;\n  \n  sVar6 = candidate;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (table->tuning->is_n_buckets == false) {\n    fVar3 = (float)candidate / table->tuning->growth_threshold;\n    if (fVar3 < _DAT_0001978c) {\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }\n  }\n  else {\nLAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;\n    sVar6 = next_prime(candidate);\n    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  _Var4 = false;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "hash_rehash(Hash_table *table,size_t candidate)" identifier (parameter_list "(Hash_table *table,size_t candidate)" ( (parameter_declaration "Hash_table *table" type_identifier (pointer_declarator "*table" * identifier)) , (parameter_declaration "size_t candidate" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  hash_entry *phVar2;\n  float fVar3;\n  _Bool _Var4;\n  _Bool _Var5;\n  size_t sVar6;\n  hash_entry *__ptr;\n  int in_GS_OFFSET;\n  Hash_table *in_stack_ffffff94;\n  Hash_table *in_stack_ffffff98;\n  undefined1 safe;\n  size_t in_stack_ffffff9c;\n  size_t local_5c;\n  Hash_table storage;\n  \n  sVar6 = candidate;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (table->tuning->is_n_buckets == false) {\n    fVar3 = (float)candidate / table->tuning->growth_threshold;\n    if (fVar3 < _DAT_0001978c) {\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }\n  }\n  else {\nLAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;\n    sVar6 = next_prime(candidate);\n    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  _Var4 = false;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var4;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "hash_entry *phVar2;" type_identifier (pointer_declarator "*phVar2" * identifier) ;) (declaration "float fVar3;" primitive_type identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "_Bool _Var5;" type_identifier identifier ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "hash_entry *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Hash_table *in_stack_ffffff94;" type_identifier (pointer_declarator "*in_stack_ffffff94" * identifier) ;) (declaration "Hash_table *in_stack_ffffff98;" type_identifier (pointer_declarator "*in_stack_ffffff98" * identifier) ;) (declaration "undefined1 safe;" type_identifier identifier ;) (declaration "size_t in_stack_ffffff9c;" primitive_type identifier ;) (declaration "size_t local_5c;" primitive_type identifier ;) (declaration "Hash_table storage;" type_identifier identifier ;) (expression_statement "sVar6 = candidate;" (assignment_expression "sVar6 = candidate" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (table->tuning->is_n_buckets == false) {\n    fVar3 = (float)candidate / table->tuning->growth_threshold;\n    if (fVar3 < _DAT_0001978c) {\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }\n  }\n  else {\nLAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;\n    sVar6 = next_prime(candidate);\n    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" if (parenthesized_expression "(table->tuning->is_n_buckets == false)" ( (binary_expression "table->tuning->is_n_buckets == false" (field_expression "table->tuning->is_n_buckets" (field_expression "table->tuning" identifier -> field_identifier) -> field_identifier) == false) )) (compound_statement "{\n    fVar3 = (float)candidate / table->tuning->growth_threshold;\n    if (fVar3 < _DAT_0001978c) {\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }\n  }" { (expression_statement "fVar3 = (float)candidate / table->tuning->growth_threshold;" (assignment_expression "fVar3 = (float)candidate / table->tuning->growth_threshold" identifier = (binary_expression "(float)candidate / table->tuning->growth_threshold" (cast_expression "(float)candidate" ( (type_descriptor "float" primitive_type) ) identifier) / (field_expression "table->tuning->growth_threshold" (field_expression "table->tuning" identifier -> field_identifier) -> field_identifier))) ;) (if_statement "if (fVar3 < _DAT_0001978c) {\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }" if (parenthesized_expression "(fVar3 < _DAT_0001978c)" ( (binary_expression "fVar3 < _DAT_0001978c" identifier < identifier) )) (compound_statement "{\n      local_5c = (size_t)(longlong)ROUND(fVar3);\n      candidate = local_5c;\n      in_stack_ffffff9c = sVar6;\n      goto LAB_000131f7;\n    }" { (expression_statement "local_5c = (size_t)(longlong)ROUND(fVar3);" (assignment_expression "local_5c = (size_t)(longlong)ROUND(fVar3)" identifier = (cast_expression "(size_t)(longlong)ROUND(fVar3)" ( (type_descriptor "size_t" primitive_type) ) (cast_expression "(longlong)ROUND(fVar3)" ( (type_descriptor "longlong" type_identifier) ) (call_expression "ROUND(fVar3)" identifier (argument_list "(fVar3)" ( identifier )))))) ;) (expression_statement "candidate = local_5c;" (assignment_expression "candidate = local_5c" identifier = identifier) ;) (expression_statement "in_stack_ffffff9c = sVar6;" (assignment_expression "in_stack_ffffff9c = sVar6" identifier = identifier) ;) (goto_statement "goto LAB_000131f7;" goto statement_identifier ;) })) }) (else_clause "else {\nLAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;\n    sVar6 = next_prime(candidate);\n    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" else (compound_statement "{\nLAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;\n    sVar6 = next_prime(candidate);\n    if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" { (labeled_statement "LAB_000131f7:\n    safe = (undefined1)in_stack_ffffff9c;" statement_identifier : (expression_statement "safe = (undefined1)in_stack_ffffff9c;" (assignment_expression "safe = (undefined1)in_stack_ffffff9c" identifier = (cast_expression "(undefined1)in_stack_ffffff9c" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;)) (expression_statement "sVar6 = next_prime(candidate);" (assignment_expression "sVar6 = next_prime(candidate)" identifier = (call_expression "next_prime(candidate)" identifier (argument_list "(candidate)" ( identifier )))) ;) (if_statement "if ((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)) {\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }" if (parenthesized_expression "((sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0))" ( (binary_expression "(sVar6 != 0) && ((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)" (parenthesized_expression "(sVar6 != 0)" ( (binary_expression "sVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "((sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0)" ( (binary_expression "(sVar6 & 0x20000000) == 0 && sVar6 >> 0x1e == 0" (binary_expression "(sVar6 & 0x20000000) == 0" (parenthesized_expression "(sVar6 & 0x20000000)" ( (binary_expression "sVar6 & 0x20000000" identifier & number_literal) )) == number_literal) && (binary_expression "sVar6 >> 0x1e == 0" (binary_expression "sVar6 >> 0x1e" identifier >> number_literal) == number_literal)) ))) )) (compound_statement "{\n      if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }\n      __ptr = (hash_entry *)calloc(sVar6,8);\n      if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }\n    }" { (if_statement "if (table->n_buckets == sVar6) {\n        _Var4 = true;\n        goto LAB_000132e4;\n      }" if (parenthesized_expression "(table->n_buckets == sVar6)" ( (binary_expression "table->n_buckets == sVar6" (field_expression "table->n_buckets" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        _Var4 = true;\n        goto LAB_000132e4;\n      }" { (expression_statement "_Var4 = true;" (assignment_expression "_Var4 = true" identifier = true) ;) (goto_statement "goto LAB_000132e4;" goto statement_identifier ;) })) (expression_statement "__ptr = (hash_entry *)calloc(sVar6,8);" (assignment_expression "__ptr = (hash_entry *)calloc(sVar6,8)" identifier = (cast_expression "(hash_entry *)calloc(sVar6,8)" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "calloc(sVar6,8)" identifier (argument_list "(sVar6,8)" ( identifier , number_literal ))))) ;) (if_statement "if (__ptr != (hash_entry *)0x0) {\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }" if (parenthesized_expression "(__ptr != (hash_entry *)0x0)" ( (binary_expression "__ptr != (hash_entry *)0x0" identifier != (cast_expression "(hash_entry *)0x0" ( (type_descriptor "hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        phVar2 = table->free_entry_list;\n        _Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n        if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }\n        goto LAB_000132e4;\n      }" { (expression_statement "phVar2 = table->free_entry_list;" (assignment_expression "phVar2 = table->free_entry_list" identifier = (field_expression "table->free_entry_list" identifier -> field_identifier)) ;) (expression_statement "_Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);" (assignment_expression "_Var4 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" identifier = (call_expression "transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" identifier (argument_list "(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" ( identifier , identifier , (cast_expression "(_Bool)safe" ( (type_descriptor "_Bool" type_identifier) ) identifier) )))) ;) (if_statement "if (_Var4) {\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }\n        else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }" if (parenthesized_expression "(_Var4)" ( identifier )) (compound_statement "{\n          free(table->bucket);\n          table->bucket = __ptr;\n          table->bucket_limit = __ptr + sVar6;\n          table->n_buckets = sVar6;\n          table->n_buckets_used = 0;\n          table->free_entry_list = phVar2;\n        }" { (expression_statement "free(table->bucket);" (call_expression "free(table->bucket)" identifier (argument_list "(table->bucket)" ( (field_expression "table->bucket" identifier -> field_identifier) ))) ;) (expression_statement "table->bucket = __ptr;" (assignment_expression "table->bucket = __ptr" (field_expression "table->bucket" identifier -> field_identifier) = identifier) ;) (expression_statement "table->bucket_limit = __ptr + sVar6;" (assignment_expression "table->bucket_limit = __ptr + sVar6" (field_expression "table->bucket_limit" identifier -> field_identifier) = (binary_expression "__ptr + sVar6" identifier + identifier)) ;) (expression_statement "table->n_buckets = sVar6;" (assignment_expression "table->n_buckets = sVar6" (field_expression "table->n_buckets" identifier -> field_identifier) = identifier) ;) (expression_statement "table->n_buckets_used = 0;" (assignment_expression "table->n_buckets_used = 0" (field_expression "table->n_buckets_used" identifier -> field_identifier) = number_literal) ;) (expression_statement "table->free_entry_list = phVar2;" (assignment_expression "table->free_entry_list = phVar2" (field_expression "table->free_entry_list" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }" else (compound_statement "{\n          table->free_entry_list = phVar2;\n          _Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);\n          if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }\n          free(__ptr);\n        }" { (expression_statement "table->free_entry_list = phVar2;" (assignment_expression "table->free_entry_list = phVar2" (field_expression "table->free_entry_list" identifier -> field_identifier) = identifier) ;) (expression_statement "_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe);" (assignment_expression "_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" identifier = (call_expression "transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" identifier (argument_list "(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" ( identifier , identifier , (cast_expression "(_Bool)safe" ( (type_descriptor "_Bool" type_identifier) ) identifier) )))) ;) (if_statement "if ((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)) {\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }" if (parenthesized_expression "((!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5))" ( (binary_expression "(!_Var5) ||\n             (_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)" (parenthesized_expression "(!_Var5)" ( (unary_expression "!_Var5" ! identifier) )) || (parenthesized_expression "(_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5)" ( (comma_expression "_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe), !_Var5" (assignment_expression "_Var5 = transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" identifier = (call_expression "transfer_entries(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" identifier (argument_list "(in_stack_ffffff94,in_stack_ffffff98,(_Bool)safe)" ( identifier , identifier , (cast_expression "(_Bool)safe" ( (type_descriptor "_Bool" type_identifier) ) identifier) )))) , (unary_expression "!_Var5" ! identifier)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n            abort();\n          }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (goto_statement "goto LAB_000132e4;" goto statement_identifier ;) })) })) }))) (expression_statement "_Var4 = false;" (assignment_expression "_Var4 = false" identifier = false) ;) (labeled_statement "LAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var4;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return _Var4;\n  }" { (return_statement "return _Var4;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00013180(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017fb0();\n}\n\n" (function_definition "undefined4 FUN_00013180(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017fb0();\n}" type_identifier (function_declarator "FUN_00013180(undefined4 *param_1,uint param_2)" identifier (parameter_list "(undefined4 *param_1,uint param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017fb0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint __nmemb;" type_identifier identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" if (parenthesized_expression "((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c))" ( (binary_expression "(*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)" (parenthesized_expression "(*(char *)(param_1[5] + 0x10) != '\0')" ( (binary_expression "*(char *)(param_1[5] + 0x10) != '\0'" (pointer_expression "*(char *)(param_1[5] + 0x10)" * (cast_expression "(char *)(param_1[5] + 0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0x10)" ( (binary_expression "param_1[5] + 0x10" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)" ( (binary_expression "(float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c" (binary_expression "(float)param_2 / *(float *)(param_1[5] + 8)" (cast_expression "(float)param_2" ( (type_descriptor "float" primitive_type) ) identifier) / (pointer_expression "*(float *)(param_1[5] + 8)" * (cast_expression "(float *)(param_1[5] + 8)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 8)" ( (binary_expression "param_1[5] + 8" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) ))))) < identifier) ))) )) (compound_statement "{\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" { (expression_statement "__nmemb = FUN_00012680();" (assignment_expression "__nmemb = FUN_00012680()" identifier = (call_expression "FUN_00012680()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }" if (parenthesized_expression "((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0))" ( (binary_expression "(__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)" (parenthesized_expression "(__nmemb != 0)" ( (binary_expression "__nmemb != 0" identifier != number_literal) )) && (parenthesized_expression "((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)" ( (binary_expression "(__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0" (binary_expression "(__nmemb & 0x20000000) == 0" (parenthesized_expression "(__nmemb & 0x20000000)" ( (binary_expression "__nmemb & 0x20000000" identifier & number_literal) )) == number_literal) && (binary_expression "__nmemb >> 0x1e == 0" (binary_expression "__nmemb >> 0x1e" identifier >> number_literal) == number_literal)) ))) )) (compound_statement "{\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }" { (if_statement "if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }" if (parenthesized_expression "(param_1[2] == __nmemb)" ( (binary_expression "param_1[2] == __nmemb" (subscript_expression "param_1[2]" identifier [ number_literal ]) == identifier) )) (compound_statement "{\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }" { (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_000132e4;" goto statement_identifier ;) })) (expression_statement "__ptr = calloc(__nmemb,8);" (assignment_expression "__ptr = calloc(__nmemb,8)" identifier = (call_expression "calloc(__nmemb,8)" identifier (argument_list "(__nmemb,8)" ( identifier , number_literal )))) ;) (if_statement "if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }" if (parenthesized_expression "(__ptr != (void *)0x0)" ( (binary_expression "__ptr != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }" { (expression_statement "uVar2 = param_1[9];" (assignment_expression "uVar2 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (expression_statement "uVar4 = FUN_00012920();" (assignment_expression "uVar4 = FUN_00012920()" identifier = (call_expression "FUN_00012920()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" if (parenthesized_expression "((char)uVar4 == '\0')" ( (binary_expression "(char)uVar4 == '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }" { (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar3 = FUN_00012920();" (assignment_expression "cVar3 = FUN_00012920()" identifier = (call_expression "FUN_00012920()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }" if (parenthesized_expression "((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0'))" ( (binary_expression "(cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')" (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar3 = FUN_00012920(), cVar3 == '\0')" ( (comma_expression "cVar3 = FUN_00012920(), cVar3 == '\0'" (assignment_expression "cVar3 = FUN_00012920()" identifier = (call_expression "FUN_00012920()" identifier (argument_list "()" ( )))) , (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence '))) ))) )) (compound_statement "{\n                    \n            abort();\n          }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }) (else_clause "else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" else (compound_statement "{\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" { (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" identifier (argument_list "((void *)*param_1)" ( (cast_expression "(void *)*param_1" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) ))) ;) (expression_statement "*param_1 = __ptr;" (assignment_expression "*param_1 = __ptr" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = (void *)((int)__ptr + __nmemb * 8);" (assignment_expression "param_1[1] = (void *)((int)__ptr + __nmemb * 8)" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(void *)((int)__ptr + __nmemb * 8)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)__ptr + __nmemb * 8)" ( (binary_expression "(int)__ptr + __nmemb * 8" (cast_expression "(int)__ptr" ( (type_descriptor "int" primitive_type) ) identifier) + (binary_expression "__nmemb * 8" identifier * number_literal)) )))) ;) (expression_statement "param_1[2] = __nmemb;" (assignment_expression "param_1[2] = __nmemb" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) }))) (goto_statement "goto LAB_000132e4;" goto statement_identifier ;) })) })) })) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar4;\n  }" { (return_statement "return uVar4;" return identifier ;) }))) (expression_statement "FUN_00017fb0();" (call_expression "FUN_00017fb0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) && (binary_expression (binary_expression IDENT >> LIT) == LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (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) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) (goto_statement goto statement_identifier ;) })) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_00013180(undefined4 *param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017fb0();\n}" (type_identifier "undefined4") (function_declarator "FUN_00013180(undefined4 *param_1,uint param_2)" (identifier "FUN_00013180") (parameter_list "(undefined4 *param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char cVar3;\n  uint __nmemb;\n  void *__ptr;\n  undefined4 uVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }\n  uVar4 = 0;\nLAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }\n                    \n  FUN_00017fb0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "uint __nmemb;" (type_identifier "uint") (identifier "__nmemb") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if ((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c))" (( "(") (binary_expression "(*(char *)(param_1[5] + 0x10) != '\0') ||\n     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)" (parenthesized_expression "(*(char *)(param_1[5] + 0x10) != '\0')" (( "(") (binary_expression "*(char *)(param_1[5] + 0x10) != '\0'" (pointer_expression "*(char *)(param_1[5] + 0x10)" (* "*") (cast_expression "(char *)(param_1[5] + 0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 0x10)" (( "(") (binary_expression "param_1[5] + 0x10" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)" (( "(") (binary_expression "(float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c" (binary_expression "(float)param_2 / *(float *)(param_1[5] + 8)" (cast_expression "(float)param_2" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (identifier "param_2")) (/ "/") (pointer_expression "*(float *)(param_1[5] + 8)" (* "*") (cast_expression "(float *)(param_1[5] + 8)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 8)" (( "(") (binary_expression "param_1[5] + 8" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "8")) () ")"))))) (< "<") (identifier "_DAT_0001978c")) () ")"))) () ")")) (compound_statement "{\n    __nmemb = FUN_00012680();\n    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }\n  }" ({ "{") (expression_statement "__nmemb = FUN_00012680();" (assignment_expression "__nmemb = FUN_00012680()" (identifier "__nmemb") (= "=") (call_expression "FUN_00012680()" (identifier "FUN_00012680") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }" (if "if") (parenthesized_expression "((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0))" (( "(") (binary_expression "(__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)" (parenthesized_expression "(__nmemb != 0)" (( "(") (binary_expression "__nmemb != 0" (identifier "__nmemb") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)" (( "(") (binary_expression "(__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0" (binary_expression "(__nmemb & 0x20000000) == 0" (parenthesized_expression "(__nmemb & 0x20000000)" (( "(") (binary_expression "__nmemb & 0x20000000" (identifier "__nmemb") (& "&") (number_literal "0x20000000")) () ")")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "__nmemb >> 0x1e == 0" (binary_expression "__nmemb >> 0x1e" (identifier "__nmemb") (>> ">>") (number_literal "0x1e")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }\n      __ptr = calloc(__nmemb,8);\n      if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }\n    }" ({ "{") (if_statement "if (param_1[2] == __nmemb) {\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }" (if "if") (parenthesized_expression "(param_1[2] == __nmemb)" (( "(") (binary_expression "param_1[2] == __nmemb" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (identifier "__nmemb")) () ")")) (compound_statement "{\n        uVar4 = 1;\n        goto LAB_000132e4;\n      }" ({ "{") (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000132e4;" (goto "goto") (statement_identifier "LAB_000132e4") (; ";")) (} "}"))) (expression_statement "__ptr = calloc(__nmemb,8);" (assignment_expression "__ptr = calloc(__nmemb,8)" (identifier "__ptr") (= "=") (call_expression "calloc(__nmemb,8)" (identifier "calloc") (argument_list "(__nmemb,8)" (( "(") (identifier "__nmemb") (, ",") (number_literal "8") () ")")))) (; ";")) (if_statement "if (__ptr != (void *)0x0) {\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }" (if "if") (parenthesized_expression "(__ptr != (void *)0x0)" (( "(") (binary_expression "__ptr != (void *)0x0" (identifier "__ptr") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        uVar2 = param_1[9];\n        uVar4 = FUN_00012920();\n        if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }\n        goto LAB_000132e4;\n      }" ({ "{") (expression_statement "uVar2 = param_1[9];" (assignment_expression "uVar2 = param_1[9]" (identifier "uVar2") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "uVar4 = FUN_00012920();" (assignment_expression "uVar4 = FUN_00012920()" (identifier "uVar4") (= "=") (call_expression "FUN_00012920()" (identifier "FUN_00012920") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((char)uVar4 == '\0') {\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }\n        else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" (if "if") (parenthesized_expression "((char)uVar4 == '\0')" (( "(") (binary_expression "(char)uVar4 == '\0'" (cast_expression "(char)uVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar4")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          param_1[9] = uVar2;\n          cVar3 = FUN_00012920();\n          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }\n          free(__ptr);\n        }" ({ "{") (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "cVar3 = FUN_00012920();" (assignment_expression "cVar3 = FUN_00012920()" (identifier "cVar3") (= "=") (call_expression "FUN_00012920()" (identifier "FUN_00012920") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {\n                    \n            abort();\n          }" (if "if") (parenthesized_expression "((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0'))" (( "(") (binary_expression "(cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')" (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar3 = FUN_00012920(), cVar3 == '\0')" (( "(") (comma_expression "cVar3 = FUN_00012920(), cVar3 == '\0'" (assignment_expression "cVar3 = FUN_00012920()" (identifier "cVar3") (= "=") (call_expression "FUN_00012920()" (identifier "FUN_00012920") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) (compound_statement "{\n                    \n            abort();\n          }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" (else "else") (compound_statement "{\n          free((void *)*param_1);\n          *param_1 = __ptr;\n          param_1[1] = (void *)((int)__ptr + __nmemb * 8);\n          param_1[2] = __nmemb;\n          param_1[3] = 0;\n          param_1[9] = uVar2;\n        }" ({ "{") (expression_statement "free((void *)*param_1);" (call_expression "free((void *)*param_1)" (identifier "free") (argument_list "((void *)*param_1)" (( "(") (cast_expression "(void *)*param_1" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")"))) (; ";")) (expression_statement "*param_1 = __ptr;" (assignment_expression "*param_1 = __ptr" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "__ptr")) (; ";")) (expression_statement "param_1[1] = (void *)((int)__ptr + __nmemb * 8);" (assignment_expression "param_1[1] = (void *)((int)__ptr + __nmemb * 8)" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(void *)((int)__ptr + __nmemb * 8)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)__ptr + __nmemb * 8)" (( "(") (binary_expression "(int)__ptr + __nmemb * 8" (cast_expression "(int)__ptr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__ptr")) (+ "+") (binary_expression "__nmemb * 8" (identifier "__nmemb") (* "*") (number_literal "8"))) () ")")))) (; ";")) (expression_statement "param_1[2] = __nmemb;" (assignment_expression "param_1[2] = __nmemb" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "__nmemb")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[9] = uVar2;" (assignment_expression "param_1[9] = uVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (} "}")))) (goto_statement "goto LAB_000132e4;" (goto "goto") (statement_identifier "LAB_000132e4") (; ";")) (} "}"))) (} "}"))) (} "}"))) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000132e4:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (statement_identifier "LAB_000132e4") (: ":") (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar4;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return uVar4;\n  }" ({ "{") (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))) (expression_statement "FUN_00017fb0();" (call_expression "FUN_00017fb0()" (identifier "FUN_00017fb0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

type_1 function_1(type_2 *table,size_t candidate)

{
  int var_12;
  type_3 *phVar2;
  float var_2;
  type_1 _Var4;
  type_1 _Var5;
  size_t var_6;
  type_3 *var_8;
  int var_1;
  type_2 *in_stack_ffffff94;
  type_2 *in_stack_ffffff98;
  type_4 safe;
  size_t in_stack_ffffff9c;
  size_t local_5c;
  type_2 storage;
  
  var_6 = candidate;
  var_12 = *(int *)(var_1 + 0x14);
  if (table->tuning->is_n_buckets == false) {
    var_2 = (float)candidate / table->tuning->growth_threshold;
    if (var_2 < var_3) {
      local_5c = (size_t)(type_5)var_4(var_2);
      candidate = local_5c;
      in_stack_ffffff9c = var_6;
      goto LAB_000131f7;
    }
  }
  else {
LAB_000131f7:
    safe = (type_4)in_stack_ffffff9c;
    var_6 = var_5(candidate);
    if ((var_6 != 0) && ((var_6 & 0x20000000) == 0 && var_6 >> 0x1e == 0)) {
      if (table->n_buckets == var_6) {
        _Var4 = true;
        goto LAB_000132e4;
      }
      var_8 = (type_3 *)var_7(var_6,8);
      if (var_8 != (type_3 *)0x0) {
        phVar2 = table->free_entry_list;
        _Var4 = var_9(in_stack_ffffff94,in_stack_ffffff98,(type_1)safe);
        if (_Var4) {
          var_10(table->bucket);
          table->bucket = var_8;
          table->bucket_limit = var_8 + var_6;
          table->n_buckets = var_6;
          table->n_buckets_used = 0;
          table->free_entry_list = phVar2;
        }
        else {
          table->free_entry_list = phVar2;
          _Var5 = var_9(in_stack_ffffff94,in_stack_ffffff98,(type_1)safe);
          if ((!_Var5) ||
             (_Var5 = var_9(in_stack_ffffff94,in_stack_ffffff98,(type_1)safe), !_Var5)) {
                    /* WARNING: Subroutine does not return */
            var_11();
          }
          var_10(var_8);
        }
        goto LAB_000132e4;
      }
    }
  }
  _Var4 = false;
LAB_000132e4:
  if (var_12 == *(int *)(var_1 + 0x14)) {
    return _Var4;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4 MASKED(undefined4 *param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  char cVar3;
  uint __nmemb;
  void *__ptr;
  undefined4 uVar4;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if ((*(char *)(param_1[5] + 0x10) != '\0') ||
     ((float)param_2 / *(float *)(param_1[5] + 8) < _DAT_0001978c)) {
    __nmemb = FUN_00012680();
    if ((__nmemb != 0) && ((__nmemb & 0x20000000) == 0 && __nmemb >> 0x1e == 0)) {
      if (param_1[2] == __nmemb) {
        uVar4 = 1;
        goto LAB_000132e4;
      }
      __ptr = calloc(__nmemb,8);
      if (__ptr != (void *)0x0) {
        uVar2 = param_1[9];
        uVar4 = FUN_00012920();
        if ((char)uVar4 == '\0') {
          param_1[9] = uVar2;
          cVar3 = FUN_00012920();
          if ((cVar3 == '\0') || (cVar3 = FUN_00012920(), cVar3 == '\0')) {
                    /* WARNING: Subroutine does not return */
            abort();
          }
          free(__ptr);
        }
        else {
          free((void *)*param_1);
          *param_1 = __ptr;
          param_1[1] = (void *)((int)__ptr + __nmemb * 8);
          param_1[2] = __nmemb;
          param_1[3] = 0;
          param_1[9] = uVar2;
        }
        goto LAB_000132e4;
      }
    }
  }
  uVar4 = 0;
LAB_000132e4:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00017fb0();
}

