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

void ntileStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)

{
  uint *puVar1;
  uint uVar2;
  sqlite_int64 *psVar3;
  sqlite_int64 sVar4;
  
  psVar3 = (sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18);
  if (psVar3 != (sqlite_int64 *)0x0) {
    if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {
      sVar4 = sqlite3_value_int64(*apArg);
      psVar3[1] = sVar4;
      sVar4 = sqlite3_value_int64(apArg[1]);
      *psVar3 = sVar4;
      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {
        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);
      }
    }
    puVar1 = (uint *)(psVar3 + 2);
    uVar2 = *puVar1;
    *puVar1 = *puVar1 + 1;
    *(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);
  }
  return;
}



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

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

{
  uint *puVar1;
  uint uVar2;
  int *piVar3;
  undefined8 uVar4;
  
  piVar3 = (int *)FUN_00044840(param_1,0x18);
  if (piVar3 != (int *)0x0) {
    if (piVar3[1] == 0 && *piVar3 == 0) {
      uVar4 = FUN_0002bb40(*param_3);
      *(undefined8 *)(piVar3 + 2) = uVar4;
      uVar4 = FUN_0002bb40(param_3[1]);
      *(undefined8 *)piVar3 = uVar4;
      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {
        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);
      }
    }
    puVar1 = (uint *)(piVar3 + 4);
    uVar2 = *puVar1;
    *puVar1 = *puVar1 + 1;
    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x1036eb
SUB ESP,0x14
MOV EBP,dword ptr [ESP + 0x28]
PUSH 0x18
PUSH EBP
CALL 0x00044840
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00045816
MOV ESI,EAX
MOV EDI,dword ptr [EAX + 0x4]
OR EDI,dword ptr [EAX]
JZ 0x00045820
ADD dword ptr [ESI + 0x10],0x1
ADC dword ptr [ESI + 0x14],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x34]
PUSH dword ptr [EAX]
CALL 0x0002bb40
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0xc],EDX
POP EAX
MOV EAX,dword ptr [ESP + 0x34]
PUSH dword ptr [EAX + 0x4]
CALL 0x0002bb40
ADD ESP,0x10
CMP EDI,dword ptr [ESI + 0x8]
SBB EDI,dword ptr [ESI + 0xc]
MOV dword ptr [ESI],EAX
MOV dword ptr [ESI + 0x4],EDX
JL 0x0004580e
SUB ESP,0x4
LEA EAX,[EBX + 0xfffb9b8c]
PUSH -0x1
PUSH EAX
PUSH EBP
CALL 0x000457b0
ADD ESP,0x10
JMP 0x0004580e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000457e0(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000457e0(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000457e0(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "piVar3 = (int *)FUN_00044840(param_1,0x18);" (assignment_expression "piVar3 = (int *)FUN_00044840(param_1,0x18)" identifier = (cast_expression "(int *)FUN_00044840(param_1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00044840(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }" { (if_statement "if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }" if (parenthesized_expression "(piVar3[1] == 0 && *piVar3 == 0)" ( (binary_expression "piVar3[1] == 0 && *piVar3 == 0" (binary_expression "piVar3[1] == 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == number_literal) && (binary_expression "*piVar3 == 0" (pointer_expression "*piVar3" * identifier) == number_literal)) )) (compound_statement "{\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }" { (expression_statement "uVar4 = FUN_0002bb40(*param_3);" (assignment_expression "uVar4 = FUN_0002bb40(*param_3)" identifier = (call_expression "FUN_0002bb40(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 2)" * (cast_expression "(undefined8 *)(piVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = FUN_0002bb40(param_3[1]);" (assignment_expression "uVar4 = FUN_0002bb40(param_3[1])" identifier = (call_expression "FUN_0002bb40(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "*(undefined8 *)piVar3 = uVar4;" (assignment_expression "*(undefined8 *)piVar3 = uVar4" (pointer_expression "*(undefined8 *)piVar3" * (cast_expression "(undefined8 *)piVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }" if (parenthesized_expression "((int)(uint)(piVar3[2] != 0) <= -piVar3[3])" ( (binary_expression "(int)(uint)(piVar3[2] != 0) <= -piVar3[3]" (cast_expression "(int)(uint)(piVar3[2] != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(piVar3[2] != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[2] != 0)" ( (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) != number_literal) )))) <= (unary_expression "-piVar3[3]" - (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }" { (expression_statement "FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);" (call_expression "FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff)" identifier (argument_list "(param_1,"argument of ntile must be a positive integer",0xffffffff)" ( identifier , (string_literal ""argument of ntile must be a positive integer"" " string_content ") , number_literal ))) ;) })) })) (expression_statement "puVar1 = (uint *)(piVar3 + 4);" (assignment_expression "puVar1 = (uint *)(piVar3 + 4)" identifier = (cast_expression "(uint *)(piVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + 1;" (assignment_expression "*puVar1 = *puVar1 + 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + 1" (pointer_expression "*puVar1" * identifier) + number_literal)) ;) (expression_statement "piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);" (assignment_expression "piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2)" (subscript_expression "piVar3[5]" identifier [ number_literal ]) = (binary_expression "piVar3[5] + (uint)(0xfffffffe < uVar2)" (subscript_expression "piVar3[5]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar2)" ( (binary_expression "0xfffffffe < uVar2" number_literal < identifier) ))))) ;) })) (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 ntileStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  sqlite_int64 *psVar3;\n  sqlite_int64 sVar4;\n  \n  psVar3 = (sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18);\n  if (psVar3 != (sqlite_int64 *)0x0) {\n    if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }\n    puVar1 = (uint *)(psVar3 + 2);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    *(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}\n\n" comment comment (function_definition "void ntileStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  sqlite_int64 *psVar3;\n  sqlite_int64 sVar4;\n  \n  psVar3 = (sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18);\n  if (psVar3 != (sqlite_int64 *)0x0) {\n    if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }\n    puVar1 = (uint *)(psVar3 + 2);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    *(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" primitive_type (function_declarator "ntileStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)" identifier (parameter_list "(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "int nArg" primitive_type identifier) , (parameter_declaration "sqlite3_value **apArg" type_identifier (pointer_declarator "**apArg" * (pointer_declarator "*apArg" * identifier))) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  sqlite_int64 *psVar3;\n  sqlite_int64 sVar4;\n  \n  psVar3 = (sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18);\n  if (psVar3 != (sqlite_int64 *)0x0) {\n    if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }\n    puVar1 = (uint *)(psVar3 + 2);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    *(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "sqlite_int64 *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "sqlite_int64 sVar4;" type_identifier identifier ;) (expression_statement "psVar3 = (sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18);" (assignment_expression "psVar3 = (sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18)" identifier = (cast_expression "(sqlite_int64 *)sqlite3_aggregate_context(pCtx,0x18)" ( (type_descriptor "sqlite_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(pCtx,0x18)" identifier (argument_list "(pCtx,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (psVar3 != (sqlite_int64 *)0x0) {\n    if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }\n    puVar1 = (uint *)(psVar3 + 2);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    *(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);\n  }" if (parenthesized_expression "(psVar3 != (sqlite_int64 *)0x0)" ( (binary_expression "psVar3 != (sqlite_int64 *)0x0" identifier != (cast_expression "(sqlite_int64 *)0x0" ( (type_descriptor "sqlite_int64 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }\n    puVar1 = (uint *)(psVar3 + 2);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    *(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);\n  }" { (if_statement "if (*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0) {\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }" if (parenthesized_expression "(*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0)" ( (binary_expression "*(int *)((int)psVar3 + 4) == 0 && (int)*psVar3 == 0" (binary_expression "*(int *)((int)psVar3 + 4) == 0" (pointer_expression "*(int *)((int)psVar3 + 4)" * (cast_expression "(int *)((int)psVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar3 + 4)" ( (binary_expression "(int)psVar3 + 4" (cast_expression "(int)psVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) && (binary_expression "(int)*psVar3 == 0" (cast_expression "(int)*psVar3" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*psVar3" * identifier)) == number_literal)) )) (compound_statement "{\n      sVar4 = sqlite3_value_int64(*apArg);\n      psVar3[1] = sVar4;\n      sVar4 = sqlite3_value_int64(apArg[1]);\n      *psVar3 = sVar4;\n      if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }\n    }" { (expression_statement "sVar4 = sqlite3_value_int64(*apArg);" (assignment_expression "sVar4 = sqlite3_value_int64(*apArg)" identifier = (call_expression "sqlite3_value_int64(*apArg)" identifier (argument_list "(*apArg)" ( (pointer_expression "*apArg" * identifier) )))) ;) (expression_statement "psVar3[1] = sVar4;" (assignment_expression "psVar3[1] = sVar4" (subscript_expression "psVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar4 = sqlite3_value_int64(apArg[1]);" (assignment_expression "sVar4 = sqlite3_value_int64(apArg[1])" identifier = (call_expression "sqlite3_value_int64(apArg[1])" identifier (argument_list "(apArg[1])" ( (subscript_expression "apArg[1]" identifier [ number_literal ]) )))) ;) (expression_statement "*psVar3 = sVar4;" (assignment_expression "*psVar3 = sVar4" (pointer_expression "*psVar3" * identifier) = identifier) ;) (if_statement "if ((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)) {\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }" if (parenthesized_expression "((int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc))" ( (binary_expression "(int)(uint)((int)psVar3[1] != 0) <= -*(int *)((int)psVar3 + 0xc)" (cast_expression "(int)(uint)((int)psVar3[1] != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)((int)psVar3[1] != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)psVar3[1] != 0)" ( (binary_expression "(int)psVar3[1] != 0" (cast_expression "(int)psVar3[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "psVar3[1]" identifier [ number_literal ])) != number_literal) )))) <= (unary_expression "-*(int *)((int)psVar3 + 0xc)" - (pointer_expression "*(int *)((int)psVar3 + 0xc)" * (cast_expression "(int *)((int)psVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar3 + 0xc)" ( (binary_expression "(int)psVar3 + 0xc" (cast_expression "(int)psVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) )) (compound_statement "{\n        sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);\n      }" { (expression_statement "sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1);" (call_expression "sqlite3_result_error(pCtx,"argument of ntile must be a positive integer",-1)" identifier (argument_list "(pCtx,"argument of ntile must be a positive integer",-1)" ( identifier , (string_literal ""argument of ntile must be a positive integer"" " string_content ") , number_literal ))) ;) })) })) (expression_statement "puVar1 = (uint *)(psVar3 + 2);" (assignment_expression "puVar1 = (uint *)(psVar3 + 2)" identifier = (cast_expression "(uint *)(psVar3 + 2)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar3 + 2)" ( (binary_expression "psVar3 + 2" identifier + number_literal) )))) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + 1;" (assignment_expression "*puVar1 = *puVar1 + 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + 1" (pointer_expression "*puVar1" * identifier) + number_literal)) ;) (expression_statement "*(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2);" (assignment_expression "*(int *)((int)psVar3 + 0x14) = *(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2)" (pointer_expression "*(int *)((int)psVar3 + 0x14)" * (cast_expression "(int *)((int)psVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar3 + 0x14)" ( (binary_expression "(int)psVar3 + 0x14" (cast_expression "(int)psVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(int *)((int)psVar3 + 0x14) + (uint)(0xfffffffe < uVar2)" (pointer_expression "*(int *)((int)psVar3 + 0x14)" * (cast_expression "(int *)((int)psVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)psVar3 + 0x14)" ( (binary_expression "(int)psVar3 + 0x14" (cast_expression "(int)psVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (call_expression "(uint)(0xfffffffe < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar2)" ( (binary_expression "0xfffffffe < uVar2" number_literal < identifier) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000457e0(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}\n\n" (function_definition "void FUN_000457e0(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000457e0(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 identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "piVar3 = (int *)FUN_00044840(param_1,0x18);" (assignment_expression "piVar3 = (int *)FUN_00044840(param_1,0x18)" identifier = (cast_expression "(int *)FUN_00044840(param_1,0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00044840(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }" { (if_statement "if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }" if (parenthesized_expression "(piVar3[1] == 0 && *piVar3 == 0)" ( (binary_expression "piVar3[1] == 0 && *piVar3 == 0" (binary_expression "piVar3[1] == 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) == number_literal) && (binary_expression "*piVar3 == 0" (pointer_expression "*piVar3" * identifier) == number_literal)) )) (compound_statement "{\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }" { (expression_statement "uVar4 = FUN_0002bb40(*param_3);" (assignment_expression "uVar4 = FUN_0002bb40(*param_3)" identifier = (call_expression "FUN_0002bb40(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) )))) ;) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 2)" * (cast_expression "(undefined8 *)(piVar3 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = FUN_0002bb40(param_3[1]);" (assignment_expression "uVar4 = FUN_0002bb40(param_3[1])" identifier = (call_expression "FUN_0002bb40(param_3[1])" identifier (argument_list "(param_3[1])" ( (subscript_expression "param_3[1]" identifier [ number_literal ]) )))) ;) (expression_statement "*(undefined8 *)piVar3 = uVar4;" (assignment_expression "*(undefined8 *)piVar3 = uVar4" (pointer_expression "*(undefined8 *)piVar3" * (cast_expression "(undefined8 *)piVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (if_statement "if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }" if (parenthesized_expression "((int)(uint)(piVar3[2] != 0) <= -piVar3[3])" ( (binary_expression "(int)(uint)(piVar3[2] != 0) <= -piVar3[3]" (cast_expression "(int)(uint)(piVar3[2] != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(piVar3[2] != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar3[2] != 0)" ( (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" identifier [ number_literal ]) != number_literal) )))) <= (unary_expression "-piVar3[3]" - (subscript_expression "piVar3[3]" identifier [ number_literal ]))) )) (compound_statement "{\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }" { (expression_statement "FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);" (call_expression "FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff)" identifier (argument_list "(param_1,"argument of ntile must be a positive integer",0xffffffff)" ( identifier , (string_literal ""argument of ntile must be a positive integer"" " string_content ") , number_literal ))) ;) })) })) (expression_statement "puVar1 = (uint *)(piVar3 + 4);" (assignment_expression "puVar1 = (uint *)(piVar3 + 4)" identifier = (cast_expression "(uint *)(piVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 4)" ( (binary_expression "piVar3 + 4" identifier + number_literal) )))) ;) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "*puVar1 = *puVar1 + 1;" (assignment_expression "*puVar1 = *puVar1 + 1" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 + 1" (pointer_expression "*puVar1" * identifier) + number_literal)) ;) (expression_statement "piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);" (assignment_expression "piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2)" (subscript_expression "piVar3[5]" identifier [ number_literal ]) = (binary_expression "piVar3[5] + (uint)(0xfffffffe < uVar2)" (subscript_expression "piVar3[5]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar2)" ( (binary_expression "0xfffffffe < uVar2" number_literal < identifier) ))))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) && (binary_expression (pointer_expression * IDENT) == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (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 = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )))) <= (unary_expression - (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_000457e0(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000457e0(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_000457e0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined8 uVar4;\n  \n  piVar3 = (int *)FUN_00044840(param_1,0x18);\n  if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }\n  return;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "piVar3 = (int *)FUN_00044840(param_1,0x18);" (assignment_expression "piVar3 = (int *)FUN_00044840(param_1,0x18)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00044840(param_1,0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00044840(param_1,0x18)" (identifier "FUN_00044840") (argument_list "(param_1,0x18)" (( "(") (identifier "param_1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }\n    puVar1 = (uint *)(piVar3 + 4);\n    uVar2 = *puVar1;\n    *puVar1 = *puVar1 + 1;\n    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);\n  }" ({ "{") (if_statement "if (piVar3[1] == 0 && *piVar3 == 0) {\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }" (if "if") (parenthesized_expression "(piVar3[1] == 0 && *piVar3 == 0)" (( "(") (binary_expression "piVar3[1] == 0 && *piVar3 == 0" (binary_expression "piVar3[1] == 0" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "*piVar3 == 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      uVar4 = FUN_0002bb40(*param_3);\n      *(undefined8 *)(piVar3 + 2) = uVar4;\n      uVar4 = FUN_0002bb40(param_3[1]);\n      *(undefined8 *)piVar3 = uVar4;\n      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }\n    }" ({ "{") (expression_statement "uVar4 = FUN_0002bb40(*param_3);" (assignment_expression "uVar4 = FUN_0002bb40(*param_3)" (identifier "uVar4") (= "=") (call_expression "FUN_0002bb40(*param_3)" (identifier "FUN_0002bb40") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")")))) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 2) = uVar4;" (assignment_expression "*(undefined8 *)(piVar3 + 2) = uVar4" (pointer_expression "*(undefined8 *)(piVar3 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 2)" (( "(") (binary_expression "piVar3 + 2" (identifier "piVar3") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = FUN_0002bb40(param_3[1]);" (assignment_expression "uVar4 = FUN_0002bb40(param_3[1])" (identifier "uVar4") (= "=") (call_expression "FUN_0002bb40(param_3[1])" (identifier "FUN_0002bb40") (argument_list "(param_3[1])" (( "(") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) () ")")))) (; ";")) (expression_statement "*(undefined8 *)piVar3 = uVar4;" (assignment_expression "*(undefined8 *)piVar3 = uVar4" (pointer_expression "*(undefined8 *)piVar3" (* "*") (cast_expression "(undefined8 *)piVar3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar3"))) (= "=") (identifier "uVar4")) (; ";")) (if_statement "if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }" (if "if") (parenthesized_expression "((int)(uint)(piVar3[2] != 0) <= -piVar3[3])" (( "(") (binary_expression "(int)(uint)(piVar3[2] != 0) <= -piVar3[3]" (cast_expression "(int)(uint)(piVar3[2] != 0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(piVar3[2] != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar3[2] != 0)" (( "(") (binary_expression "piVar3[2] != 0" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (!= "!=") (number_literal "0")) () ")")))) (<= "<=") (unary_expression "-piVar3[3]" (- "-") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);\n      }" ({ "{") (expression_statement "FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);" (call_expression "FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff)" (identifier "FUN_000457b0") (argument_list "(param_1,"argument of ntile must be a positive integer",0xffffffff)" (( "(") (identifier "param_1") (, ",") (string_literal ""argument of ntile must be a positive integer"" (" """) (string_content "argument of ntile must be a positive integer") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar1 = (uint *)(piVar3 + 4);" (assignment_expression "puVar1 = (uint *)(piVar3 + 4)" (identifier "puVar1") (= "=") (cast_expression "(uint *)(piVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 4)" (( "(") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "*puVar1 = *puVar1 + 1;" (assignment_expression "*puVar1 = *puVar1 + 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (binary_expression "*puVar1 + 1" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);" (assignment_expression "piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2)" (subscript_expression "piVar3[5]" (identifier "piVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "piVar3[5] + (uint)(0xfffffffe < uVar2)" (subscript_expression "piVar3[5]" (identifier "piVar3") ([ "[") (number_literal "5") (] "]")) (+ "+") (call_expression "(uint)(0xfffffffe < uVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0xfffffffe < uVar2)" (( "(") (binary_expression "0xfffffffe < uVar2" (number_literal "0xfffffffe") (< "<") (identifier "uVar2")) () ")"))))) (; ";")) (} "}"))) (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 nArg,type_2 **apArg)

{
  type_3 *puVar1;
  type_3 var_5;
  type_4 *var_2;
  type_4 sVar4;
  
  var_2 = (type_4 *)var_1(pCtx,0x18);
  if (var_2 != (type_4 *)0x0) {
    if (*(int *)((int)var_2 + 4) == 0 && (int)*var_2 == 0) {
      sVar4 = var_3(*apArg);
      var_2[1] = sVar4;
      sVar4 = var_3(apArg[1]);
      *var_2 = sVar4;
      if ((int)(type_3)((int)var_2[1] != 0) <= -*(int *)((int)var_2 + 0xc)) {
        var_4(pCtx,"argument of ntile must be a positive integer",-1);
      }
    }
    puVar1 = (type_3 *)(var_2 + 2);
    var_5 = *puVar1;
    *puVar1 = *puVar1 + 1;
    *(int *)((int)var_2 + 0x14) = *(int *)((int)var_2 + 0x14) + (type_3)(0xfffffffe < var_5);
  }
  return;
}


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

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

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

{
  uint *puVar1;
  uint uVar2;
  int *piVar3;
  undefined8 uVar4;
  
  piVar3 = (int *)FUN_00044840(param_1,0x18);
  if (piVar3 != (int *)0x0) {
    if (piVar3[1] == 0 && *piVar3 == 0) {
      uVar4 = FUN_0002bb40(*param_3);
      *(undefined8 *)(piVar3 + 2) = uVar4;
      uVar4 = FUN_0002bb40(param_3[1]);
      *(undefined8 *)piVar3 = uVar4;
      if ((int)(uint)(piVar3[2] != 0) <= -piVar3[3]) {
        FUN_000457b0(param_1,"argument of ntile must be a positive integer",0xffffffff);
      }
    }
    puVar1 = (uint *)(piVar3 + 4);
    uVar2 = *puVar1;
    *puVar1 = *puVar1 + 1;
    piVar3[5] = piVar3[5] + (uint)(0xfffffffe < uVar2);
  }
  return;
}

