
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Workqueue_thread(Workqueue_thread * this,
   Workqueue_threader_threadpool * threadpool, int thread_number) */

void __thiscall
gold::Workqueue_thread::Workqueue_thread
          (Workqueue_thread *this,Workqueue_threader_threadpool *threadpool,int thread_number)

{
  int iVar1;
  Workqueue_thread *in_stack_ffffffc4;
  char *in_stack_ffffffc8;
  int in_stack_ffffffcc;
  pthread_attr_t attr;
  
  attr._32_4_ = 0x161f68;
  this->threadpool_ = threadpool;
  this->thread_number_ = thread_number;
  iVar1 = pthread_attr_init((pthread_attr_t *)&attr);
  if (iVar1 != 0) {
                    /* WARNING: Subroutine does not return */
    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  }
  iVar1 = pthread_attr_setdetachstate((pthread_attr_t *)&attr,1);
  if (iVar1 != 0) {
                    /* WARNING: Subroutine does not return */
    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  }
  iVar1 = pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this);
  if (iVar1 != 0) {
                    /* WARNING: Subroutine does not return */
    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  }
  iVar1 = pthread_attr_destroy((pthread_attr_t *)&attr);
  if (iVar1 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
}



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

void FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int in_stack_ffffffc8;
  int iStack_34;
  pthread_attr_t local_30;
  
  local_30._32_4_ = 0x161f68;
  *param_1 = param_2;
  param_1[1] = param_3;
  iVar1 = pthread_attr_init(&local_30);
  if (iVar1 == 0) {
    iVar1 = pthread_attr_setdetachstate(&local_30,1);
    if (iVar1 != 0) goto LAB_00161ffc;
    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);
    if (iVar1 == 0) {
      iVar1 = pthread_attr_destroy(&local_30);
      if (iVar1 == 0) {
        return;
      }
      goto LAB_00161fe2;
    }
  }
  else {
    FUN_00161f20();
LAB_00161fe2:
    FUN_00161f20();
  }
  FUN_00161f20();
LAB_00161ffc:
  FUN_00161f20();
  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));
  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;
  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);
  iVar3 = iStack_34 - iVar1;
  if (-1 < iVar3) {
    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));
    if (iStack_34 != iVar1) {
      iVar1 = 0;
      do {
        uVar2 = FUN_001aa8c0(0xc);
        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));
        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;
        iVar1 = iVar1 + 1;
      } while (iVar3 != iVar1);
    }
    return;
  }
  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;
                    /* WARNING: Could not recover jumptable at 0x001620b1. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035680
ADD EBX,0x1dd098
SUB ESP,0x3c
MOV ESI,dword ptr [ESP + 0x4c]
MOV EAX,dword ptr [ESP + 0x50]
LEA EDI,[ESP + 0x18]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [ESP + 0x54]
MOV dword ptr [ESI + 0x4],EAX
PUSH EDI
CALL 0x00028510
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00161fd5
SUB ESP,0x8
PUSH 0x1
PUSH EDI
CALL 0x00028150
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00161ffc
PUSH ESI
LEA EAX,[EBX + 0xffe22dd0]
ADD ESI,0x8
PUSH EAX
PUSH EDI
PUSH ESI
CALL 0x00028850
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00161fef
SUB ESP,0xc
PUSH EDI
CALL 0x00028920
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00161fe2
ADD ESP,0x30
POP EBX
POP ESI
POP EDI
RET
MOV EDX,EAX
LEA EAX,[EBX + 0xfff24b11]
CALL 0x00161f20
MOV EDX,EAX
LEA EAX,[EBX + 0xfff24b4e]
CALL 0x00161f20
MOV EDX,EAX
LEA EAX,[EBX + 0xfff24b3f]
CALL 0x00161f20
MOV EDX,EAX
LEA EAX,[EBX + 0xfff24b23]
CALL 0x00161f20
NOP
LEA ESI,[ESI]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    /* WARNING: Could not recover jumptable at 0x001620b1. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}\n\n" comment comment (function_definition "void FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    /* WARNING: Could not recover jumptable at 0x001620b1. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}" primitive_type (function_declarator "FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    /* WARNING: Could not recover jumptable at 0x001620b1. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_stack_ffffffc8;" primitive_type identifier ;) (declaration "int iStack_34;" primitive_type identifier ;) (declaration "pthread_attr_t local_30;" type_identifier identifier ;) (expression_statement "local_30._32_4_ = 0x161f68;" (assignment_expression "local_30._32_4_ = 0x161f68" (field_expression "local_30._32_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = pthread_attr_init(&local_30);" (assignment_expression "iVar1 = pthread_attr_init(&local_30)" identifier = (call_expression "pthread_attr_init(&local_30)" identifier (argument_list "(&local_30)" ( (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }" { (expression_statement "iVar1 = pthread_attr_setdetachstate(&local_30,1);" (assignment_expression "iVar1 = pthread_attr_setdetachstate(&local_30,1)" identifier = (call_expression "pthread_attr_setdetachstate(&local_30,1)" identifier (argument_list "(&local_30,1)" ( (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00161ffc;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00161ffc;" goto statement_identifier ;)) (expression_statement "iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);" (assignment_expression "iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1)" identifier = (call_expression "pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1)" identifier (argument_list "(param_1 + 2,&local_30,FUN_00161dd0,param_1)" ( (binary_expression "param_1 + 2" identifier + number_literal) , (pointer_expression "&local_30" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }" { (expression_statement "iVar1 = pthread_attr_destroy(&local_30);" (assignment_expression "iVar1 = pthread_attr_destroy(&local_30)" identifier = (call_expression "pthread_attr_destroy(&local_30)" identifier (argument_list "(&local_30)" ( (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00161fe2;" goto statement_identifier ;) })) }) (else_clause "else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" else (compound_statement "{\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" { (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_00161fe2:\n    FUN_00161f20();" statement_identifier : (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;)) }))) (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_00161ffc:\n  FUN_00161f20();" statement_identifier : (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;)) (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" ( (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 8" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" * (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" ( (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;" (assignment_expression "*(int *)(in_stack_ffffffc8 + 0x10) = iStack_34" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x10)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x10)" ( (binary_expression "in_stack_ffffffc8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);" (assignment_expression "iVar1 = *(int *)(in_stack_ffffffc8 + 0x14)" identifier = (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iStack_34 - iVar1;" (assignment_expression "iVar3 = iStack_34 - iVar1" identifier = (binary_expression "iStack_34 - iVar1" identifier - identifier)) ;) (if_statement "if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 0xc" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" * (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" ( (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }" if (parenthesized_expression "(iStack_34 != iVar1)" ( (binary_expression "iStack_34 != iVar1" identifier != identifier) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);" do (compound_statement "{\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "uVar2 = FUN_001aa8c0(0xc);" (assignment_expression "uVar2 = FUN_001aa8c0(0xc)" identifier = (call_expression "FUN_001aa8c0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));" (call_expression "FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14))" identifier (argument_list "(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(undefined4 *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;" (assignment_expression "*(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(in_stack_ffffffc8 + 0x14) + 1" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar1)" ( (binary_expression "iVar3 != iVar1" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(in_stack_ffffffc8 + 8) = 1;" (assignment_expression "*(undefined4 *)(in_stack_ffffffc8 + 8) = 1" (pointer_expression "*(undefined4 *)(in_stack_ffffffc8 + 8)" * (cast_expression "(undefined4 *)(in_stack_ffffffc8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 8)" ( (binary_expression "in_stack_ffffffc8 + 8" identifier + number_literal) )))) = number_literal) ;) comment comment (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 0xc" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" * (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" ( (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void Workqueue_thread(Workqueue_thread * this,\n   Workqueue_threader_threadpool * threadpool, int thread_number) */\n\nvoid __thiscall\ngold::Workqueue_thread::Workqueue_thread\n          (Workqueue_thread *this,Workqueue_threader_threadpool *threadpool,int thread_number)\n\n{\n  int iVar1;\n  Workqueue_thread *in_stack_ffffffc4;\n  char *in_stack_ffffffc8;\n  int in_stack_ffffffcc;\n  pthread_attr_t attr;\n  \n  attr._32_4_ = 0x161f68;\n  this->threadpool_ = threadpool;\n  this->thread_number_ = thread_number;\n  iVar1 = pthread_attr_init((pthread_attr_t *)&attr);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_attr_setdetachstate((pthread_attr_t *)&attr,1);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_attr_destroy((pthread_attr_t *)&attr);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n}\n\n" comment comment (function_definition "void __thiscall\ngold::Workqueue_thread::Workqueue_thread\n          (Workqueue_thread *this,Workqueue_threader_threadpool *threadpool,int thread_number)\n\n{\n  int iVar1;\n  Workqueue_thread *in_stack_ffffffc4;\n  char *in_stack_ffffffc8;\n  int in_stack_ffffffcc;\n  pthread_attr_t attr;\n  \n  attr._32_4_ = 0x161f68;\n  this->threadpool_ = threadpool;\n  this->thread_number_ = thread_number;\n  iVar1 = pthread_attr_init((pthread_attr_t *)&attr);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_attr_setdetachstate((pthread_attr_t *)&attr,1);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_attr_destroy((pthread_attr_t *)&attr);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue_thread::" identifier : : identifier : :) (function_declarator "Workqueue_thread\n          (Workqueue_thread *this,Workqueue_threader_threadpool *threadpool,int thread_number)" identifier (parameter_list "(Workqueue_thread *this,Workqueue_threader_threadpool *threadpool,int thread_number)" ( (parameter_declaration "Workqueue_thread *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Workqueue_threader_threadpool *threadpool" type_identifier (pointer_declarator "*threadpool" * identifier)) , (parameter_declaration "int thread_number" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Workqueue_thread *in_stack_ffffffc4;\n  char *in_stack_ffffffc8;\n  int in_stack_ffffffcc;\n  pthread_attr_t attr;\n  \n  attr._32_4_ = 0x161f68;\n  this->threadpool_ = threadpool;\n  this->thread_number_ = thread_number;\n  iVar1 = pthread_attr_init((pthread_attr_t *)&attr);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_attr_setdetachstate((pthread_attr_t *)&attr,1);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this);\n  if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }\n  iVar1 = pthread_attr_destroy((pthread_attr_t *)&attr);\n  if (iVar1 == 0) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Workqueue_thread *in_stack_ffffffc4;" type_identifier (pointer_declarator "*in_stack_ffffffc4" * identifier) ;) (declaration "char *in_stack_ffffffc8;" primitive_type (pointer_declarator "*in_stack_ffffffc8" * identifier) ;) (declaration "int in_stack_ffffffcc;" primitive_type identifier ;) (declaration "pthread_attr_t attr;" type_identifier identifier ;) (expression_statement "attr._32_4_ = 0x161f68;" (assignment_expression "attr._32_4_ = 0x161f68" (field_expression "attr._32_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "this->threadpool_ = threadpool;" (assignment_expression "this->threadpool_ = threadpool" (field_expression "this->threadpool_" identifier -> field_identifier) = identifier) ;) (expression_statement "this->thread_number_ = thread_number;" (assignment_expression "this->thread_number_ = thread_number" (field_expression "this->thread_number_" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = pthread_attr_init((pthread_attr_t *)&attr);" (assignment_expression "iVar1 = pthread_attr_init((pthread_attr_t *)&attr)" identifier = (call_expression "pthread_attr_init((pthread_attr_t *)&attr)" identifier (argument_list "((pthread_attr_t *)&attr)" ( (cast_expression "(pthread_attr_t *)&attr" ( (type_descriptor "pthread_attr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & identifier)) )))) ;) (if_statement "if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }" { comment (expression_statement "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (call_expression "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar1 = pthread_attr_setdetachstate((pthread_attr_t *)&attr,1);" (assignment_expression "iVar1 = pthread_attr_setdetachstate((pthread_attr_t *)&attr,1)" identifier = (call_expression "pthread_attr_setdetachstate((pthread_attr_t *)&attr,1)" identifier (argument_list "((pthread_attr_t *)&attr,1)" ( (cast_expression "(pthread_attr_t *)&attr" ( (type_descriptor "pthread_attr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & identifier)) , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }" { comment (expression_statement "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (call_expression "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar1 = pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this);" (assignment_expression "iVar1 = pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this)" identifier = (call_expression "pthread_create(&this->tid_,(pthread_attr_t *)&attr,thread_body,this)" identifier (argument_list "(&this->tid_,(pthread_attr_t *)&attr,thread_body,this)" ( (pointer_expression "&this->tid_" & (field_expression "this->tid_" identifier -> field_identifier)) , (cast_expression "(pthread_attr_t *)&attr" ( (type_descriptor "pthread_attr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & identifier)) , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);\n  }" { comment (expression_statement "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (call_expression "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "iVar1 = pthread_attr_destroy((pthread_attr_t *)&attr);" (assignment_expression "iVar1 = pthread_attr_destroy((pthread_attr_t *)&attr)" identifier = (call_expression "pthread_attr_destroy((pthread_attr_t *)&attr)" identifier (argument_list "((pthread_attr_t *)&attr)" ( (cast_expression "(pthread_attr_t *)&attr" ( (type_descriptor "pthread_attr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);" (call_expression "check(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" identifier (argument_list "(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc)" ( identifier , identifier , identifier ))) ;) })))
(translation_unit "void FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}\n\n" (function_definition "void FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}" primitive_type (function_declarator "FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_stack_ffffffc8;" primitive_type identifier ;) (declaration "int iStack_34;" primitive_type identifier ;) (declaration "pthread_attr_t local_30;" type_identifier identifier ;) (expression_statement "local_30._32_4_ = 0x161f68;" (assignment_expression "local_30._32_4_ = 0x161f68" (field_expression "local_30._32_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = pthread_attr_init(&local_30);" (assignment_expression "iVar1 = pthread_attr_init(&local_30)" identifier = (call_expression "pthread_attr_init(&local_30)" identifier (argument_list "(&local_30)" ( (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }" { (expression_statement "iVar1 = pthread_attr_setdetachstate(&local_30,1);" (assignment_expression "iVar1 = pthread_attr_setdetachstate(&local_30,1)" identifier = (call_expression "pthread_attr_setdetachstate(&local_30,1)" identifier (argument_list "(&local_30,1)" ( (pointer_expression "&local_30" & identifier) , number_literal )))) ;) (if_statement "if (iVar1 != 0) goto LAB_00161ffc;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00161ffc;" goto statement_identifier ;)) (expression_statement "iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);" (assignment_expression "iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1)" identifier = (call_expression "pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1)" identifier (argument_list "(param_1 + 2,&local_30,FUN_00161dd0,param_1)" ( (binary_expression "param_1 + 2" identifier + number_literal) , (pointer_expression "&local_30" & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }" { (expression_statement "iVar1 = pthread_attr_destroy(&local_30);" (assignment_expression "iVar1 = pthread_attr_destroy(&local_30)" identifier = (call_expression "pthread_attr_destroy(&local_30)" identifier (argument_list "(&local_30)" ( (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        return;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (goto_statement "goto LAB_00161fe2;" goto statement_identifier ;) })) }) (else_clause "else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" else (compound_statement "{\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" { (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_00161fe2:\n    FUN_00161f20();" statement_identifier : (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;)) }))) (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_00161ffc:\n  FUN_00161f20();" statement_identifier : (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" identifier (argument_list "()" ( ))) ;)) (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))" ( (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" * (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" * (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" ( (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 8" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" * (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" ( (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;" (assignment_expression "*(int *)(in_stack_ffffffc8 + 0x10) = iStack_34" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x10)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x10)" ( (binary_expression "in_stack_ffffffc8 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);" (assignment_expression "iVar1 = *(int *)(in_stack_ffffffc8 + 0x14)" identifier = (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = iStack_34 - iVar1;" (assignment_expression "iVar3 = iStack_34 - iVar1" identifier = (binary_expression "iStack_34 - iVar1" identifier - identifier)) ;) (if_statement "if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }" { (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 0xc" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" * (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" ( (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) )))) ))) ;) (if_statement "if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }" if (parenthesized_expression "(iStack_34 != iVar1)" ( (binary_expression "iStack_34 != iVar1" identifier != identifier) )) (compound_statement "{\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);" do (compound_statement "{\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      }" { (expression_statement "uVar2 = FUN_001aa8c0(0xc);" (assignment_expression "uVar2 = FUN_001aa8c0(0xc)" identifier = (call_expression "FUN_001aa8c0(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) (expression_statement "FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));" (call_expression "FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14))" identifier (argument_list "(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(undefined4 *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) )))) ))) ;) (expression_statement "*(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;" (assignment_expression "*(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) )))) = (binary_expression "*(int *)(in_stack_ffffffc8 + 0x14) + 1" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" * (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" ( (binary_expression "in_stack_ffffffc8 + 0x14" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" identifier = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != iVar1)" ( (binary_expression "iVar3 != iVar1" identifier != identifier) )) ;) })) (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(in_stack_ffffffc8 + 8) = 1;" (assignment_expression "*(undefined4 *)(in_stack_ffffffc8 + 8) = 1" (pointer_expression "*(undefined4 *)(in_stack_ffffffc8 + 8)" * (cast_expression "(undefined4 *)(in_stack_ffffffc8 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_ffffffc8 + 8)" ( (binary_expression "in_stack_ffffffc8 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))" ( (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" * (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" ( (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 0xc" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" * (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" ( (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" * (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" ( (binary_expression "in_stack_ffffffc8 + 0xc" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression & IDENT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00161f60(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00161f60") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int in_stack_ffffffc8;\n  int iStack_34;\n  pthread_attr_t local_30;\n  \n  local_30._32_4_ = 0x161f68;\n  *param_1 = param_2;\n  param_1[1] = param_3;\n  iVar1 = pthread_attr_init(&local_30);\n  if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }\n  FUN_00161f20();\nLAB_00161ffc:\n  FUN_00161f20();\n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));\n  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;\n  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);\n  iVar3 = iStack_34 - iVar1;\n  if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }\n  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;\n                    \n                    \n  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int in_stack_ffffffc8;" (primitive_type "int") (identifier "in_stack_ffffffc8") (; ";")) (declaration "int iStack_34;" (primitive_type "int") (identifier "iStack_34") (; ";")) (declaration "pthread_attr_t local_30;" (type_identifier "pthread_attr_t") (identifier "local_30") (; ";")) (expression_statement "local_30._32_4_ = 0x161f68;" (assignment_expression "local_30._32_4_ = 0x161f68" (field_expression "local_30._32_4_" (identifier "local_30") (. ".") (field_identifier "_32_4_")) (= "=") (number_literal "0x161f68")) (; ";")) (expression_statement "*param_1 = param_2;" (assignment_expression "*param_1 = param_2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_1[1] = param_3;" (assignment_expression "param_1[1] = param_3" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar1 = pthread_attr_init(&local_30);" (assignment_expression "iVar1 = pthread_attr_init(&local_30)" (identifier "iVar1") (= "=") (call_expression "pthread_attr_init(&local_30)" (identifier "pthread_attr_init") (argument_list "(&local_30)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }\n  else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = pthread_attr_setdetachstate(&local_30,1);\n    if (iVar1 != 0) goto LAB_00161ffc;\n    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);\n    if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = pthread_attr_setdetachstate(&local_30,1);" (assignment_expression "iVar1 = pthread_attr_setdetachstate(&local_30,1)" (identifier "iVar1") (= "=") (call_expression "pthread_attr_setdetachstate(&local_30,1)" (identifier "pthread_attr_setdetachstate") (argument_list "(&local_30,1)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) goto LAB_00161ffc;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00161ffc;" (goto "goto") (statement_identifier "LAB_00161ffc") (; ";"))) (expression_statement "iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);" (assignment_expression "iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1)" (identifier "iVar1") (= "=") (call_expression "pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1)" (identifier "pthread_create") (argument_list "(param_1 + 2,&local_30,FUN_00161dd0,param_1)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (identifier "FUN_00161dd0") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = pthread_attr_destroy(&local_30);\n      if (iVar1 == 0) {\n        return;\n      }\n      goto LAB_00161fe2;\n    }" ({ "{") (expression_statement "iVar1 = pthread_attr_destroy(&local_30);" (assignment_expression "iVar1 = pthread_attr_destroy(&local_30)" (identifier "iVar1") (= "=") (call_expression "pthread_attr_destroy(&local_30)" (identifier "pthread_attr_destroy") (argument_list "(&local_30)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (goto_statement "goto LAB_00161fe2;" (goto "goto") (statement_identifier "LAB_00161fe2") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" (else "else") (compound_statement "{\n    FUN_00161f20();\nLAB_00161fe2:\n    FUN_00161f20();\n  }" ({ "{") (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" (identifier "FUN_00161f20") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00161fe2:\n    FUN_00161f20();" (statement_identifier "LAB_00161fe2") (: ":") (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" (identifier "FUN_00161f20") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}")))) (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" (identifier "FUN_00161f20") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_00161ffc:\n  FUN_00161f20();" (statement_identifier "LAB_00161ffc") (: ":") (expression_statement "FUN_00161f20();" (call_expression "FUN_00161f20()" (identifier "FUN_00161f20") (argument_list "()" (( "(") () ")"))) (; ";"))) (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))" (( "(") (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" (* "*") (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" (* "*") (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 8)" (( "(") (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 8" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" (( "(") (binary_expression "in_stack_ffffffc8 + 0xc" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" (( "(") (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" (( "(") (binary_expression "in_stack_ffffffc8 + 0xc" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "*(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;" (assignment_expression "*(int *)(in_stack_ffffffc8 + 0x10) = iStack_34" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x10)" (* "*") (cast_expression "(int *)(in_stack_ffffffc8 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0x10)" (( "(") (binary_expression "in_stack_ffffffc8 + 0x10" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iStack_34")) (; ";")) (expression_statement "iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);" (assignment_expression "iVar1 = *(int *)(in_stack_ffffffc8 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" (* "*") (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" (( "(") (binary_expression "in_stack_ffffffc8 + 0x14" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar3 = iStack_34 - iVar1;" (assignment_expression "iVar3 = iStack_34 - iVar1" (identifier "iVar3") (= "=") (binary_expression "iStack_34 - iVar1" (identifier "iStack_34") (- "-") (identifier "iVar1"))) (; ";")) (if_statement "if (-1 < iVar3) {\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));\n    if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 0xc" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" (( "(") (binary_expression "in_stack_ffffffc8 + 0xc" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" (( "(") (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" (( "(") (binary_expression "in_stack_ffffffc8 + 0xc" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (if_statement "if (iStack_34 != iVar1) {\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }" (if "if") (parenthesized_expression "(iStack_34 != iVar1)" (( "(") (binary_expression "iStack_34 != iVar1" (identifier "iStack_34") (!= "!=") (identifier "iVar1")) () ")")) (compound_statement "{\n      iVar1 = 0;\n      do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);\n    }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      } while (iVar3 != iVar1);" (do "do") (compound_statement "{\n        uVar2 = FUN_001aa8c0(0xc);\n        FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));\n        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;\n        iVar1 = iVar1 + 1;\n      }" ({ "{") (expression_statement "uVar2 = FUN_001aa8c0(0xc);" (assignment_expression "uVar2 = FUN_001aa8c0(0xc)" (identifier "uVar2") (= "=") (call_expression "FUN_001aa8c0(0xc)" (identifier "FUN_001aa8c0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (expression_statement "FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));" (call_expression "FUN_00161f60(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14))" (identifier "FUN_00161f60") (argument_list "(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14))" (( "(") (identifier "uVar2") (, ",") (identifier "in_stack_ffffffc8") (, ",") (pointer_expression "*(undefined4 *)(in_stack_ffffffc8 + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_stack_ffffffc8 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" (( "(") (binary_expression "in_stack_ffffffc8 + 0x14" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (expression_statement "*(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;" (assignment_expression "*(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" (* "*") (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" (( "(") (binary_expression "in_stack_ffffffc8 + 0x14" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "*(int *)(in_stack_ffffffc8 + 0x14) + 1" (pointer_expression "*(int *)(in_stack_ffffffc8 + 0x14)" (* "*") (cast_expression "(int *)(in_stack_ffffffc8 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0x14)" (( "(") (binary_expression "in_stack_ffffffc8 + 0x14" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = iVar1 + 1;" (assignment_expression "iVar1 = iVar1 + 1" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != iVar1)" (( "(") (binary_expression "iVar3 != iVar1" (identifier "iVar3") (!= "!=") (identifier "iVar1")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(in_stack_ffffffc8 + 8) = 1;" (assignment_expression "*(undefined4 *)(in_stack_ffffffc8 + 8) = 1" (pointer_expression "*(undefined4 *)(in_stack_ffffffc8 + 8)" (* "*") (cast_expression "(undefined4 *)(in_stack_ffffffc8 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 8)" (( "(") (binary_expression "in_stack_ffffffc8 + 8" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));" (call_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc))" (parenthesized_expression "(**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))" (( "(") (pointer_expression "**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (* "*") (pointer_expression "*(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (* "*") (cast_expression "(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc)" (( "(") (binary_expression "**(int **)(in_stack_ffffffc8 + 0xc) + 0xc" (pointer_expression "**(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" (( "(") (binary_expression "in_stack_ffffffc8 + 0xc" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0xc")) () ")"))))) () ")")) (argument_list "(*(int **)(in_stack_ffffffc8 + 0xc))" (( "(") (pointer_expression "*(int **)(in_stack_ffffffc8 + 0xc)" (* "*") (cast_expression "(int **)(in_stack_ffffffc8 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(in_stack_ffffffc8 + 0xc)" (( "(") (binary_expression "in_stack_ffffffc8 + 0xc" (identifier "in_stack_ffffffc8") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Workqueue_thread(Workqueue_thread * this,
   Workqueue_threader_threadpool * threadpool, int thread_number) */

void __thiscall
gold::function_1::function_1
          (function_1 *this,type_1 *threadpool,int thread_number)

{
  int var_2;
  function_1 *in_stack_ffffffc4;
  char *in_stack_ffffffc8;
  int in_stack_ffffffcc;
  type_2 attr;
  
  attr._32_4_ = 0x161f68;
  this->threadpool_ = threadpool;
  this->thread_number_ = thread_number;
  var_2 = var_1((type_2 *)&attr);
  if (var_2 != 0) {
                    /* WARNING: Subroutine does not return */
    var_3(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  }
  var_2 = var_4((type_2 *)&attr,1);
  if (var_2 != 0) {
                    /* WARNING: Subroutine does not return */
    var_3(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  }
  var_2 = var_5(&this->tid_,(type_2 *)&attr,thread_body,this);
  if (var_2 != 0) {
                    /* WARNING: Subroutine does not return */
    var_3(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
  }
  var_2 = var_6((type_2 *)&attr);
  if (var_2 == 0) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  var_3(in_stack_ffffffc4,in_stack_ffffffc8,in_stack_ffffffcc);
}


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

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

void MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int in_stack_ffffffc8;
  int iStack_34;
  pthread_attr_t local_30;
  
  local_30._32_4_ = 0x161f68;
  *param_1 = param_2;
  param_1[1] = param_3;
  iVar1 = pthread_attr_init(&local_30);
  if (iVar1 == 0) {
    iVar1 = pthread_attr_setdetachstate(&local_30,1);
    if (iVar1 != 0) goto LAB_00161ffc;
    iVar1 = pthread_create(param_1 + 2,&local_30,FUN_00161dd0,param_1);
    if (iVar1 == 0) {
      iVar1 = pthread_attr_destroy(&local_30);
      if (iVar1 == 0) {
        return;
      }
      goto LAB_00161fe2;
    }
  }
  else {
    FUN_00161f20();
LAB_00161fe2:
    FUN_00161f20();
  }
  FUN_00161f20();
LAB_00161ffc:
  FUN_00161f20();
  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 8))(*(int **)(in_stack_ffffffc8 + 0xc));
  *(int *)(in_stack_ffffffc8 + 0x10) = iStack_34;
  iVar1 = *(int *)(in_stack_ffffffc8 + 0x14);
  iVar3 = iStack_34 - iVar1;
  if (-1 < iVar3) {
    (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));
    if (iStack_34 != iVar1) {
      iVar1 = 0;
      do {
        uVar2 = FUN_001aa8c0(0xc);
        MASKED(uVar2,in_stack_ffffffc8,*(undefined4 *)(in_stack_ffffffc8 + 0x14));
        *(int *)(in_stack_ffffffc8 + 0x14) = *(int *)(in_stack_ffffffc8 + 0x14) + 1;
        iVar1 = iVar1 + 1;
      } while (iVar3 != iVar1);
    }
    return;
  }
  *(undefined4 *)(in_stack_ffffffc8 + 8) = 1;
                    /* WARNING: Could not recover jumptable at 0x001620b1. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(**(int **)(in_stack_ffffffc8 + 0xc) + 0xc))(*(int **)(in_stack_ffffffc8 + 0xc));
  return;
}

