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

void idxSampleFunc(sqlite3_context *pCtx,int argc,sqlite3_value **argv)

{
  int *piVar1;
  uint iVal;
  int in_GS_OFFSET;
  ushort rnd;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e8d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = (int *)sqlite3_user_data(pCtx);
  if (*(double *)(piVar1 + 3) == 0.0) {
    iVal = 1;
  }
  else {
    iVal = 1;
    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {
      sqlite3_randomness(2,&rnd);
      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);
    }
  }
  sqlite3_result_int(pCtx,iVal);
  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;
  *(double *)(piVar1 + 5) = (double)iVal + *(double *)(piVar1 + 5);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void FUN_0001e8d0(undefined4 param_1)

{
  int *piVar1;
  bool bVar2;
  int in_GS_OFFSET;
  ushort local_22;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e8d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = (int *)FUN_0003cab0(param_1);
  if (*(double *)(piVar1 + 3) == 0.0) {
    bVar2 = true;
  }
  else {
    bVar2 = true;
    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {
      FUN_000a9290(2,&local_22);
      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;
    }
  }
  FUN_0004c2c0(param_1,bVar2);
  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;
  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00153870();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000172e0
ADD EBX,0x19c54f
SUB ESP,0x38
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x28],EAX
XOR EAX,EAX
MOV EBP,dword ptr [ESP + 0x4c]
PUSH EBP
CALL 0x0003cab0
ADD ESP,0x10
FLDZ
FLD qword ptr [EAX + 0xc]
MOV ESI,EAX
FUCOMI ST0,ST1
FSTP ST1
JP 0x0001e950
JNZ 0x0001e950
FSTP ST0
MOV EDI,0x1
SUB ESP,0x8
PUSH EDI
PUSH EBP
CALL 0x0004c2c0
MOV dword ptr [ESP + 0x1c],EDI
FLD1
FADD qword ptr [ESI + 0xc]
FSTP qword ptr [ESI + 0xc]
FILD dword ptr [ESP + 0x1c]
FADD qword ptr [ESI + 0x14]
ADD ESP,0x10
FSTP qword ptr [ESI + 0x14]
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0001e9a6
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
FDIVR qword ptr [ESI + 0x14]
MOV EDI,0x1
FLD qword ptr [ESI + 0x4]
FCOMIP ST0,ST1
FSTP ST0
JNC 0x0001e911
SUB ESP,0x8
LEA EAX,[ESP + 0x22]
PUSH EAX
PUSH 0x2
CALL 0x000a9290
MOVZX EDX,word ptr [ESP + 0x2a]
ADD ESP,0x10
MOV EAX,EDX
SHR AX,0x2
MOVZX EAX,AX
IMUL EAX,EAX,0x147b
SHR EAX,0x11
LEA EAX,[EAX + EAX*0x4]
LEA EAX,[EAX + EAX*0x4]
SHL EAX,0x2
SUB EDX,EAX
XOR EAX,EAX
MOVZX EDX,DX
CMP EDX,dword ptr [ESI]
SETLE AL
MOV EDI,EAX
JMP 0x0001e911
CALL 0x00153870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0001e8d0(undefined4 param_1)\n\n{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0001e8d0(undefined4 param_1)\n\n{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001e8d0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ushort local_22;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e8d9;" (assignment_expression "uStack_14 = 0x1e8d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)FUN_0003cab0(param_1);" (assignment_expression "piVar1 = (int *)FUN_0003cab0(param_1)" identifier = (cast_expression "(int *)FUN_0003cab0(param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003cab0(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" if (parenthesized_expression "(*(double *)(piVar1 + 3) == 0.0)" ( (binary_expression "*(double *)(piVar1 + 3) == 0.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    bVar2 = true;\n  }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }) (else_clause "else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" else (compound_statement "{\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (if_statement "if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }" if (parenthesized_expression "(*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3))" ( (binary_expression "*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 1)" * (cast_expression "(double *)(piVar1 + 1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) < (binary_expression "*(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) / (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))))) )) (compound_statement "{\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }" { (expression_statement "FUN_000a9290(2,&local_22);" (call_expression "FUN_000a9290(2,&local_22)" identifier (argument_list "(2,&local_22)" ( number_literal , (pointer_expression "&local_22" & identifier) ))) ;) (expression_statement "bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;" (assignment_expression "bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" identifier = (binary_expression "(int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" (cast_expression "(int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff)" ( (binary_expression "(uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff" (binary_expression "(uint)local_22 + ((local_22 >> 2) / 0x19) * -100" (cast_expression "(uint)local_22" ( (type_descriptor "uint" type_identifier) ) identifier) + (binary_expression "((local_22 >> 2) / 0x19) * -100" (parenthesized_expression "((local_22 >> 2) / 0x19)" ( (binary_expression "(local_22 >> 2) / 0x19" (parenthesized_expression "(local_22 >> 2)" ( (binary_expression "local_22 >> 2" identifier >> number_literal) )) / number_literal) )) * number_literal)) & number_literal) ))) <= (pointer_expression "*piVar1" * identifier))) ;) })) }))) (expression_statement "FUN_0004c2c0(param_1,bVar2);" (call_expression "FUN_0004c2c0(param_1,bVar2)" identifier (argument_list "(param_1,bVar2)" ( identifier , identifier ))) ;) (expression_statement "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;" (assignment_expression "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) = (binary_expression "*(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);" (assignment_expression "*(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5)" (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = (binary_expression "(double)bVar2 + *(double *)(piVar1 + 5)" (cast_expression "(double)bVar2" ( (type_descriptor "double" primitive_type) ) identifier) + (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00153870();\n  }" { comment (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid idxSampleFunc(sqlite3_context *pCtx,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  uint iVal;\n  int in_GS_OFFSET;\n  ushort rnd;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)sqlite3_user_data(pCtx);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    iVal = 1;\n  }\n  else {\n    iVal = 1;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }\n  }\n  sqlite3_result_int(pCtx,iVal);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)iVal + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void idxSampleFunc(sqlite3_context *pCtx,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  uint iVal;\n  int in_GS_OFFSET;\n  ushort rnd;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)sqlite3_user_data(pCtx);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    iVal = 1;\n  }\n  else {\n    iVal = 1;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }\n  }\n  sqlite3_result_int(pCtx,iVal);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)iVal + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (function_declarator "idxSampleFunc(sqlite3_context *pCtx,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *pCtx,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int *piVar1;\n  uint iVal;\n  int in_GS_OFFSET;\n  ushort rnd;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)sqlite3_user_data(pCtx);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    iVal = 1;\n  }\n  else {\n    iVal = 1;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }\n  }\n  sqlite3_result_int(pCtx,iVal);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)iVal + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "uint iVal;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ushort rnd;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e8d9;" (assignment_expression "uStack_14 = 0x1e8d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)sqlite3_user_data(pCtx);" (assignment_expression "piVar1 = (int *)sqlite3_user_data(pCtx)" identifier = (cast_expression "(int *)sqlite3_user_data(pCtx)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_user_data(pCtx)" identifier (argument_list "(pCtx)" ( identifier ))))) ;) (if_statement "if (*(double *)(piVar1 + 3) == 0.0) {\n    iVal = 1;\n  }\n  else {\n    iVal = 1;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }\n  }" if (parenthesized_expression "(*(double *)(piVar1 + 3) == 0.0)" ( (binary_expression "*(double *)(piVar1 + 3) == 0.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVal = 1;\n  }" { (expression_statement "iVal = 1;" (assignment_expression "iVal = 1" identifier = number_literal) ;) }) (else_clause "else {\n    iVal = 1;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }\n  }" else (compound_statement "{\n    iVal = 1;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }\n  }" { (expression_statement "iVal = 1;" (assignment_expression "iVal = 1" identifier = number_literal) ;) (if_statement "if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }" if (parenthesized_expression "(*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3))" ( (binary_expression "*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 1)" * (cast_expression "(double *)(piVar1 + 1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) < (binary_expression "*(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) / (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))))) )) (compound_statement "{\n      sqlite3_randomness(2,&rnd);\n      iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);\n    }" { (expression_statement "sqlite3_randomness(2,&rnd);" (call_expression "sqlite3_randomness(2,&rnd)" identifier (argument_list "(2,&rnd)" ( number_literal , (pointer_expression "&rnd" & identifier) ))) ;) (expression_statement "iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1);" (assignment_expression "iVal = (uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1)" identifier = (call_expression "(uint)((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1)" ( (binary_expression "(int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" (cast_expression "(int)((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff)" ( (binary_expression "(uint)rnd + ((rnd >> 2) / 0x19) * -100 & 0xffff" (binary_expression "(uint)rnd + ((rnd >> 2) / 0x19) * -100" (cast_expression "(uint)rnd" ( (type_descriptor "uint" type_identifier) ) identifier) + (binary_expression "((rnd >> 2) / 0x19) * -100" (parenthesized_expression "((rnd >> 2) / 0x19)" ( (binary_expression "(rnd >> 2) / 0x19" (parenthesized_expression "(rnd >> 2)" ( (binary_expression "rnd >> 2" identifier >> number_literal) )) / number_literal) )) * number_literal)) & number_literal) ))) <= (pointer_expression "*piVar1" * identifier)) )))) ;) })) }))) (expression_statement "sqlite3_result_int(pCtx,iVal);" (call_expression "sqlite3_result_int(pCtx,iVal)" identifier (argument_list "(pCtx,iVal)" ( identifier , identifier ))) ;) (expression_statement "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;" (assignment_expression "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) = (binary_expression "*(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(double *)(piVar1 + 5) = (double)iVal + *(double *)(piVar1 + 5);" (assignment_expression "*(double *)(piVar1 + 5) = (double)iVal + *(double *)(piVar1 + 5)" (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = (binary_expression "(double)iVal + *(double *)(piVar1 + 5)" (cast_expression "(double)iVal" ( (type_descriptor "double" primitive_type) ) identifier) + (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001e8d0(undefined4 param_1)\n\n{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0001e8d0(undefined4 param_1)\n\n{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0001e8d0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ushort local_22;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x1e8d9;" (assignment_expression "uStack_14 = 0x1e8d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)FUN_0003cab0(param_1);" (assignment_expression "piVar1 = (int *)FUN_0003cab0(param_1)" identifier = (cast_expression "(int *)FUN_0003cab0(param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003cab0(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" if (parenthesized_expression "(*(double *)(piVar1 + 3) == 0.0)" ( (binary_expression "*(double *)(piVar1 + 3) == 0.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    bVar2 = true;\n  }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) }) (else_clause "else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" else (compound_statement "{\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" { (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" identifier = true) ;) (if_statement "if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }" if (parenthesized_expression "(*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3))" ( (binary_expression "*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 1)" * (cast_expression "(double *)(piVar1 + 1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) < (binary_expression "*(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) / (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))))) )) (compound_statement "{\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }" { (expression_statement "FUN_000a9290(2,&local_22);" (call_expression "FUN_000a9290(2,&local_22)" identifier (argument_list "(2,&local_22)" ( number_literal , (pointer_expression "&local_22" & identifier) ))) ;) (expression_statement "bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;" (assignment_expression "bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" identifier = (binary_expression "(int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" (cast_expression "(int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff)" ( (binary_expression "(uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff" (binary_expression "(uint)local_22 + ((local_22 >> 2) / 0x19) * -100" (cast_expression "(uint)local_22" ( (type_descriptor "uint" type_identifier) ) identifier) + (binary_expression "((local_22 >> 2) / 0x19) * -100" (parenthesized_expression "((local_22 >> 2) / 0x19)" ( (binary_expression "(local_22 >> 2) / 0x19" (parenthesized_expression "(local_22 >> 2)" ( (binary_expression "local_22 >> 2" identifier >> number_literal) )) / number_literal) )) * number_literal)) & number_literal) ))) <= (pointer_expression "*piVar1" * identifier))) ;) })) }))) (expression_statement "FUN_0004c2c0(param_1,bVar2);" (call_expression "FUN_0004c2c0(param_1,bVar2)" identifier (argument_list "(param_1,bVar2)" ( identifier , identifier ))) ;) (expression_statement "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;" (assignment_expression "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) = (binary_expression "*(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" * (cast_expression "(double *)(piVar1 + 3)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);" (assignment_expression "*(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5)" (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))) = (binary_expression "(double)bVar2 + *(double *)(piVar1 + 5)" (cast_expression "(double)bVar2" ( (type_descriptor "double" primitive_type) ) identifier) + (pointer_expression "*(double *)(piVar1 + 5)" * (cast_expression "(double *)(piVar1 + 5)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 5)" ( (binary_expression "piVar1 + 5" identifier + number_literal) )))))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00153870();\n  }" { (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_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) )))) / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) / LIT) )) * LIT)) & LIT) ))) <= (pointer_expression * IDENT))) ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0001e8d0(undefined4 param_1)\n\n{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001e8d0(undefined4 param_1)" (identifier "FUN_0001e8d0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  bool bVar2;\n  int in_GS_OFFSET;\n  ushort local_22;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x1e8d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  piVar1 = (int *)FUN_0003cab0(param_1);\n  if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }\n  FUN_0004c2c0(param_1,bVar2);\n  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;\n  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "bool bVar2;" (primitive_type "bool") (identifier "bVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "ushort local_22;" (type_identifier "ushort") (identifier "local_22") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x1e8d9;" (assignment_expression "uStack_14 = 0x1e8d9" (identifier "uStack_14") (= "=") (number_literal "0x1e8d9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "piVar1 = (int *)FUN_0003cab0(param_1);" (assignment_expression "piVar1 = (int *)FUN_0003cab0(param_1)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0003cab0(param_1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003cab0(param_1)" (identifier "FUN_0003cab0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (*(double *)(piVar1 + 3) == 0.0) {\n    bVar2 = true;\n  }\n  else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" (if "if") (parenthesized_expression "(*(double *)(piVar1 + 3) == 0.0)" (( "(") (binary_expression "*(double *)(piVar1 + 3) == 0.0" (pointer_expression "*(double *)(piVar1 + 3)" (* "*") (cast_expression "(double *)(piVar1 + 3)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")")))) (== "==") (number_literal "0.0")) () ")")) (compound_statement "{\n    bVar2 = true;\n  }" ({ "{") (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (} "}")) (else_clause "else {\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" (else "else") (compound_statement "{\n    bVar2 = true;\n    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }\n  }" ({ "{") (expression_statement "bVar2 = true;" (assignment_expression "bVar2 = true" (identifier "bVar2") (= "=") (true "true")) (; ";")) (if_statement "if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }" (if "if") (parenthesized_expression "(*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3))" (( "(") (binary_expression "*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 1)" (* "*") (cast_expression "(double *)(piVar1 + 1)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (< "<") (binary_expression "*(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)" (pointer_expression "*(double *)(piVar1 + 5)" (* "*") (cast_expression "(double *)(piVar1 + 5)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))) (/ "/") (pointer_expression "*(double *)(piVar1 + 3)" (* "*") (cast_expression "(double *)(piVar1 + 3)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")")))))) () ")")) (compound_statement "{\n      FUN_000a9290(2,&local_22);\n      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;\n    }" ({ "{") (expression_statement "FUN_000a9290(2,&local_22);" (call_expression "FUN_000a9290(2,&local_22)" (identifier "FUN_000a9290") (argument_list "(2,&local_22)" (( "(") (number_literal "2") (, ",") (pointer_expression "&local_22" (& "&") (identifier "local_22")) () ")"))) (; ";")) (expression_statement "bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;" (assignment_expression "bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" (identifier "bVar2") (= "=") (binary_expression "(int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1" (cast_expression "(int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff)" (( "(") (binary_expression "(uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff" (binary_expression "(uint)local_22 + ((local_22 >> 2) / 0x19) * -100" (cast_expression "(uint)local_22" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_22")) (+ "+") (binary_expression "((local_22 >> 2) / 0x19) * -100" (parenthesized_expression "((local_22 >> 2) / 0x19)" (( "(") (binary_expression "(local_22 >> 2) / 0x19" (parenthesized_expression "(local_22 >> 2)" (( "(") (binary_expression "local_22 >> 2" (identifier "local_22") (>> ">>") (number_literal "2")) () ")")) (/ "/") (number_literal "0x19")) () ")")) (* "*") (number_literal "-100"))) (& "&") (number_literal "0xffff")) () ")"))) (<= "<=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")))) (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_0004c2c0(param_1,bVar2);" (call_expression "FUN_0004c2c0(param_1,bVar2)" (identifier "FUN_0004c2c0") (argument_list "(param_1,bVar2)" (( "(") (identifier "param_1") (, ",") (identifier "bVar2") () ")"))) (; ";")) (expression_statement "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;" (assignment_expression "*(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" (* "*") (cast_expression "(double *)(piVar1 + 3)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")")))) (= "=") (binary_expression "*(double *)(piVar1 + 3) + 1.0" (pointer_expression "*(double *)(piVar1 + 3)" (* "*") (cast_expression "(double *)(piVar1 + 3)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")")))) (+ "+") (number_literal "1.0"))) (; ";")) (expression_statement "*(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);" (assignment_expression "*(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5)" (pointer_expression "*(double *)(piVar1 + 5)" (* "*") (cast_expression "(double *)(piVar1 + 5)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))) (= "=") (binary_expression "(double)bVar2 + *(double *)(piVar1 + 5)" (cast_expression "(double)bVar2" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "bVar2")) (+ "+") (pointer_expression "*(double *)(piVar1 + 5)" (* "*") (cast_expression "(double *)(piVar1 + 5)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 5)" (( "(") (binary_expression "piVar1 + 5" (identifier "piVar1") (+ "+") (number_literal "5")) () ")")))))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00153870();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00153870();\n  }" ({ "{") (expression_statement "FUN_00153870();" (call_expression "FUN_00153870()" (identifier "FUN_00153870") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *pCtx,int argc,type_2 **argv)

{
  int *var_3;
  type_3 iVal;
  int var_1;
  type_4 var_5;
  int var_7;
  type_5 uStack_14;
  
  uStack_14 = 0x1e8d9;
  var_7 = *(int *)(var_1 + 0x14);
  var_3 = (int *)var_2(pCtx);
  if (*(double *)(var_3 + 3) == 0.0) {
    iVal = 1;
  }
  else {
    iVal = 1;
    if (*(double *)(var_3 + 1) < *(double *)(var_3 + 5) / *(double *)(var_3 + 3)) {
      var_4(2,&var_5);
      iVal = (type_3)((int)((type_3)var_5 + ((var_5 >> 2) / 0x19) * -100 & 0xffff) <= *var_3);
    }
  }
  var_6(pCtx,iVal);
  *(double *)(var_3 + 3) = *(double *)(var_3 + 3) + 1.0;
  *(double *)(var_3 + 5) = (double)iVal + *(double *)(var_3 + 5);
  if (var_7 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_8();
  }
  return;
}


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

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

void MASKED(undefined4 param_1)

{
  int *piVar1;
  bool bVar2;
  int in_GS_OFFSET;
  ushort local_22;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x1e8d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  piVar1 = (int *)FUN_0003cab0(param_1);
  if (*(double *)(piVar1 + 3) == 0.0) {
    bVar2 = true;
  }
  else {
    bVar2 = true;
    if (*(double *)(piVar1 + 1) < *(double *)(piVar1 + 5) / *(double *)(piVar1 + 3)) {
      FUN_000a9290(2,&local_22);
      bVar2 = (int)((uint)local_22 + ((local_22 >> 2) / 0x19) * -100 & 0xffff) <= *piVar1;
    }
  }
  FUN_0004c2c0(param_1,bVar2);
  *(double *)(piVar1 + 3) = *(double *)(piVar1 + 3) + 1.0;
  *(double *)(piVar1 + 5) = (double)bVar2 + *(double *)(piVar1 + 5);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00153870();
  }
  return;
}

