
/* WARNING: Unknown calling convention */

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

{
  Mem *nByte;
  int iVar1;
  int *piVar2;
  int iVar3;
  i64 iVar4;
  
  nByte = pCtx->pMem;
  if ((nByte->flags & 0x2000) == 0) {
    piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,
                                     (sqlite3_context *)0x18);
  }
  else {
    piVar2 = (int *)nByte->z;
  }
  if (piVar2 != (int *)0x0) {
    if (piVar2[5] == 0 && piVar2[4] == 0) {
      iVar4 = sqlite3VdbeIntValue(*apArg);
      *(i64 *)(piVar2 + 4) = iVar4;
    }
    iVar1 = piVar2[2] + 1;
    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);
    piVar2[2] = iVar1;
    piVar2[3] = iVar3;
    if (piVar2[1] == 0 && *piVar2 == 0) {
      *piVar2 = iVar1;
      piVar2[1] = iVar3;
    }
  }
  return;
}



void FUN_00062b50(int param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined8 uVar4;
  
  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {
    piVar2 = (int *)FUN_00062700();
  }
  else {
    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);
  }
  if (piVar2 != (int *)0x0) {
    if (piVar2[5] == 0 && piVar2[4] == 0) {
      uVar4 = FUN_000493a0();
      *(undefined8 *)(piVar2 + 4) = uVar4;
    }
    iVar1 = piVar2[2] + 1;
    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);
    piVar2[2] = iVar1;
    piVar2[3] = iVar3;
    if (piVar2[1] == 0 && *piVar2 == 0) {
      *piVar2 = iVar1;
      piVar2[1] = iVar3;
    }
  }
  return;
}


PUSH EBX
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0x8]
TEST byte ptr [EDX + 0x9],0x20
JZ 0x00062bb0
MOV EBX,dword ptr [EDX + 0x10]
TEST EBX,EBX
JZ 0x00062b8e
MOV EAX,dword ptr [EBX + 0x14]
OR EAX,dword ptr [EBX + 0x10]
JZ 0x00062b98
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
MOV ECX,dword ptr [EBX + 0x4]
ADD EAX,0x1
ADC EDX,0x0
OR ECX,dword ptr [EBX]
MOV dword ptr [EBX + 0x8],EAX
MOV dword ptr [EBX + 0xc],EDX
JNZ 0x00062b8e
MOV dword ptr [EBX],EAX
MOV dword ptr [EBX + 0x4],EDX
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [EAX]
CALL 0x000493a0
MOV dword ptr [EBX + 0x10],EAX
MOV dword ptr [EBX + 0x14],EDX
JMP 0x00062b70
ADD EAX,0x4
MOV ECX,0x18
CALL 0x00062700
MOV EBX,EAX
JMP 0x00062b64
(translation_unit "void FUN_00062b50(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00062b50(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00062b50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (if_statement "if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20" (pointer_expression "*(byte *)(*(int *)(param_1 + 8) + 9)" * (cast_expression "(byte *)(*(int *)(param_1 + 8) + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 9)" ( (binary_expression "*(int *)(param_1 + 8) + 9" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar2 = (int *)FUN_00062700();\n  }" { (expression_statement "piVar2 = (int *)FUN_00062700();" (assignment_expression "piVar2 = (int *)FUN_00062700()" identifier = (cast_expression "(int *)FUN_00062700()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062700()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" else (compound_statement "{\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" { (expression_statement "piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);" (assignment_expression "piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 8) + 0x10)" * (cast_expression "(int **)(*(int *)(param_1 + 8) + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" ( (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (if_statement "if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" { (if_statement "if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }" if (parenthesized_expression "(piVar2[5] == 0 && piVar2[4] == 0)" ( (binary_expression "piVar2[5] == 0 && piVar2[4] == 0" (binary_expression "piVar2[5] == 0" (subscript_expression "piVar2[5]" identifier [ number_literal ]) == number_literal) && (binary_expression "piVar2[4] == 0" (subscript_expression "piVar2[4]" identifier [ number_literal ]) == number_literal)) )) (compound_statement "{\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_000493a0();" (assignment_expression "uVar4 = FUN_000493a0()" identifier = (call_expression "FUN_000493a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)(piVar2 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar2 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = piVar2[2] + 1;" (assignment_expression "iVar1 = piVar2[2] + 1" identifier = (binary_expression "piVar2[2] + 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);" (assignment_expression "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" identifier = (binary_expression "piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" (subscript_expression "piVar2[3]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < (uint)piVar2[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < (uint)piVar2[2])" ( (binary_expression "0xfffffffe < (uint)piVar2[2]" number_literal < (cast_expression "(uint)piVar2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) ))))) ;) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[3] = iVar3;" (assignment_expression "piVar2[3] = iVar3" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" if (parenthesized_expression "(piVar2[1] == 0 && *piVar2 == 0)" ( (binary_expression "piVar2[1] == 0 && *piVar2 == 0" (binary_expression "piVar2[1] == 0" (subscript_expression "piVar2[1]" identifier [ number_literal ]) == number_literal) && (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal)) )) (compound_statement "{\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" { (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid percent_rankStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  Mem *nByte;\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  i64 iVar4;\n  \n  nByte = pCtx->pMem;\n  if ((nByte->flags & 0x2000) == 0) {\n    piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18);\n  }\n  else {\n    piVar2 = (int *)nByte->z;\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void percent_rankStepFunc(sqlite3_context *pCtx,int nArg,sqlite3_value **apArg)\n\n{\n  Mem *nByte;\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  i64 iVar4;\n  \n  nByte = pCtx->pMem;\n  if ((nByte->flags & 0x2000) == 0) {\n    piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18);\n  }\n  else {\n    piVar2 = (int *)nByte->z;\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "percent_rankStepFunc(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  Mem *nByte;\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  i64 iVar4;\n  \n  nByte = pCtx->pMem;\n  if ((nByte->flags & 0x2000) == 0) {\n    piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18);\n  }\n  else {\n    piVar2 = (int *)nByte->z;\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" { (declaration "Mem *nByte;" type_identifier (pointer_declarator "*nByte" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "i64 iVar4;" type_identifier identifier ;) (expression_statement "nByte = pCtx->pMem;" (assignment_expression "nByte = pCtx->pMem" identifier = (field_expression "pCtx->pMem" identifier -> field_identifier)) ;) (if_statement "if ((nByte->flags & 0x2000) == 0) {\n    piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18);\n  }\n  else {\n    piVar2 = (int *)nByte->z;\n  }" if (parenthesized_expression "((nByte->flags & 0x2000) == 0)" ( (binary_expression "(nByte->flags & 0x2000) == 0" (parenthesized_expression "(nByte->flags & 0x2000)" ( (binary_expression "nByte->flags & 0x2000" (field_expression "nByte->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18);\n  }" { (expression_statement "piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18);" (assignment_expression "piVar2 = (int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18)" identifier = (cast_expression "(int *)createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "createAggContext((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18)" identifier (argument_list "((sqlite3_context *)&pCtx->pFunc,(int)nByte,\n                                     (sqlite3_context *)0x18)" ( (cast_expression "(sqlite3_context *)&pCtx->pFunc" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCtx->pFunc" & (field_expression "pCtx->pFunc" identifier -> field_identifier))) , (cast_expression "(int)nByte" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(sqlite3_context *)0x18" ( (type_descriptor "sqlite3_context *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))))) ;) }) (else_clause "else {\n    piVar2 = (int *)nByte->z;\n  }" else (compound_statement "{\n    piVar2 = (int *)nByte->z;\n  }" { (expression_statement "piVar2 = (int *)nByte->z;" (assignment_expression "piVar2 = (int *)nByte->z" identifier = (cast_expression "(int *)nByte->z" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "nByte->z" identifier -> field_identifier))) ;) }))) (if_statement "if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" { (if_statement "if (piVar2[5] == 0 && piVar2[4] == 0) {\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }" if (parenthesized_expression "(piVar2[5] == 0 && piVar2[4] == 0)" ( (binary_expression "piVar2[5] == 0 && piVar2[4] == 0" (binary_expression "piVar2[5] == 0" (subscript_expression "piVar2[5]" identifier [ number_literal ]) == number_literal) && (binary_expression "piVar2[4] == 0" (subscript_expression "piVar2[4]" identifier [ number_literal ]) == number_literal)) )) (compound_statement "{\n      iVar4 = sqlite3VdbeIntValue(*apArg);\n      *(i64 *)(piVar2 + 4) = iVar4;\n    }" { (expression_statement "iVar4 = sqlite3VdbeIntValue(*apArg);" (assignment_expression "iVar4 = sqlite3VdbeIntValue(*apArg)" identifier = (call_expression "sqlite3VdbeIntValue(*apArg)" identifier (argument_list "(*apArg)" ( (pointer_expression "*apArg" * identifier) )))) ;) (expression_statement "*(i64 *)(piVar2 + 4) = iVar4;" (assignment_expression "*(i64 *)(piVar2 + 4) = iVar4" (pointer_expression "*(i64 *)(piVar2 + 4)" * (cast_expression "(i64 *)(piVar2 + 4)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = piVar2[2] + 1;" (assignment_expression "iVar1 = piVar2[2] + 1" identifier = (binary_expression "piVar2[2] + 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);" (assignment_expression "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" identifier = (binary_expression "piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" (subscript_expression "piVar2[3]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < (uint)piVar2[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < (uint)piVar2[2])" ( (binary_expression "0xfffffffe < (uint)piVar2[2]" number_literal < (cast_expression "(uint)piVar2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) ))))) ;) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[3] = iVar3;" (assignment_expression "piVar2[3] = iVar3" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" if (parenthesized_expression "(piVar2[1] == 0 && *piVar2 == 0)" ( (binary_expression "piVar2[1] == 0 && *piVar2 == 0" (binary_expression "piVar2[1] == 0" (subscript_expression "piVar2[1]" identifier [ number_literal ]) == number_literal) && (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal)) )) (compound_statement "{\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" { (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00062b50(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00062b50(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00062b50(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (if_statement "if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" if (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0)" ( (binary_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20)" ( (binary_expression "*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20" (pointer_expression "*(byte *)(*(int *)(param_1 + 8) + 9)" * (cast_expression "(byte *)(*(int *)(param_1 + 8) + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 9)" ( (binary_expression "*(int *)(param_1 + 8) + 9" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    piVar2 = (int *)FUN_00062700();\n  }" { (expression_statement "piVar2 = (int *)FUN_00062700();" (assignment_expression "piVar2 = (int *)FUN_00062700()" identifier = (cast_expression "(int *)FUN_00062700()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00062700()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" else (compound_statement "{\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" { (expression_statement "piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);" (assignment_expression "piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10)" identifier = (pointer_expression "*(int **)(*(int *)(param_1 + 8) + 0x10)" * (cast_expression "(int **)(*(int *)(param_1 + 8) + 0x10)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" ( (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (if_statement "if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" { (if_statement "if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }" if (parenthesized_expression "(piVar2[5] == 0 && piVar2[4] == 0)" ( (binary_expression "piVar2[5] == 0 && piVar2[4] == 0" (binary_expression "piVar2[5] == 0" (subscript_expression "piVar2[5]" identifier [ number_literal ]) == number_literal) && (binary_expression "piVar2[4] == 0" (subscript_expression "piVar2[4]" identifier [ number_literal ]) == number_literal)) )) (compound_statement "{\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }" { (expression_statement "uVar4 = FUN_000493a0();" (assignment_expression "uVar4 = FUN_000493a0()" identifier = (call_expression "FUN_000493a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined8 *)(piVar2 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar2 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar1 = piVar2[2] + 1;" (assignment_expression "iVar1 = piVar2[2] + 1" identifier = (binary_expression "piVar2[2] + 1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);" (assignment_expression "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" identifier = (binary_expression "piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" (subscript_expression "piVar2[3]" identifier [ number_literal ]) + (call_expression "(uint)(0xfffffffe < (uint)piVar2[2])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < (uint)piVar2[2])" ( (binary_expression "0xfffffffe < (uint)piVar2[2]" number_literal < (cast_expression "(uint)piVar2[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "piVar2[2]" identifier [ number_literal ]))) ))))) ;) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[3] = iVar3;" (assignment_expression "piVar2[3] = iVar3" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" if (parenthesized_expression "(piVar2[1] == 0 && *piVar2 == 0)" ( (binary_expression "piVar2[1] == 0 && *piVar2 == 0" (binary_expression "piVar2[1] == 0" (subscript_expression "piVar2[1]" identifier [ number_literal ]) == number_literal) && (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal)) )) (compound_statement "{\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" { (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 (subscript_expression IDENT [ LIT ]) == LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00062b50(int param_1)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00062b50(int param_1)" (identifier "FUN_00062b50") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  undefined8 uVar4;\n  \n  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }\n  if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (if_statement "if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {\n    piVar2 = (int *)FUN_00062700();\n  }\n  else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" (if "if") (parenthesized_expression "((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0" (parenthesized_expression "(*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20)" (( "(") (binary_expression "*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20" (pointer_expression "*(byte *)(*(int *)(param_1 + 8) + 9)" (* "*") (cast_expression "(byte *)(*(int *)(param_1 + 8) + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 9)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 9" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "9")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar2 = (int *)FUN_00062700();\n  }" ({ "{") (expression_statement "piVar2 = (int *)FUN_00062700();" (assignment_expression "piVar2 = (int *)FUN_00062700()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00062700()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00062700()" (identifier "FUN_00062700") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" (else "else") (compound_statement "{\n    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);\n  }" ({ "{") (expression_statement "piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);" (assignment_expression "piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(*(int *)(param_1 + 8) + 0x10)" (* "*") (cast_expression "(int **)(*(int *)(param_1 + 8) + 0x10)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 8) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 8) + 0x10" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (piVar2 != (int *)0x0) {\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }\n    iVar1 = piVar2[2] + 1;\n    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);\n    piVar2[2] = iVar1;\n    piVar2[3] = iVar3;\n    if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }\n  }" ({ "{") (if_statement "if (piVar2[5] == 0 && piVar2[4] == 0) {\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }" (if "if") (parenthesized_expression "(piVar2[5] == 0 && piVar2[4] == 0)" (( "(") (binary_expression "piVar2[5] == 0 && piVar2[4] == 0" (binary_expression "piVar2[5] == 0" (subscript_expression "piVar2[5]" (identifier "piVar2") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "piVar2[4] == 0" (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      uVar4 = FUN_000493a0();\n      *(undefined8 *)(piVar2 + 4) = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = FUN_000493a0();" (assignment_expression "uVar4 = FUN_000493a0()" (identifier "uVar4") (= "=") (call_expression "FUN_000493a0()" (identifier "FUN_000493a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined8 *)(piVar2 + 4) = uVar4;" (assignment_expression "*(undefined8 *)(piVar2 + 4) = uVar4" (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "iVar1 = piVar2[2] + 1;" (assignment_expression "iVar1 = piVar2[2] + 1" (identifier "iVar1") (= "=") (binary_expression "piVar2[2] + 1" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);" (assignment_expression "iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" (identifier "iVar3") (= "=") (binary_expression "piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2])" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (+ "+") (call_expression "(uint)(0xfffffffe < (uint)piVar2[2])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0xfffffffe < (uint)piVar2[2])" (( "(") (binary_expression "0xfffffffe < (uint)piVar2[2]" (number_literal "0xfffffffe") (< "<") (cast_expression "(uint)piVar2[2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")))) () ")"))))) (; ";")) (expression_statement "piVar2[2] = iVar1;" (assignment_expression "piVar2[2] = iVar1" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "piVar2[3] = iVar3;" (assignment_expression "piVar2[3] = iVar3" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (piVar2[1] == 0 && *piVar2 == 0) {\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" (if "if") (parenthesized_expression "(piVar2[1] == 0 && *piVar2 == 0)" (( "(") (binary_expression "piVar2[1] == 0 && *piVar2 == 0" (binary_expression "piVar2[1] == 0" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      *piVar2 = iVar1;\n      piVar2[1] = iVar3;\n    }" ({ "{") (expression_statement "*piVar2 = iVar1;" (assignment_expression "*piVar2 = iVar1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 *pCtx,int nArg,type_2 **apArg)

{
  type_3 *nByte;
  int iVar1;
  int *var_2;
  int iVar3;
  type_4 iVar4;
  
  nByte = pCtx->pMem;
  if ((nByte->flags & 0x2000) == 0) {
    var_2 = (int *)var_1((type_1 *)&pCtx->pFunc,(int)nByte,
                                     (type_1 *)0x18);
  }
  else {
    var_2 = (int *)nByte->z;
  }
  if (var_2 != (int *)0x0) {
    if (var_2[5] == 0 && var_2[4] == 0) {
      iVar4 = var_3(*apArg);
      *(type_4 *)(var_2 + 4) = iVar4;
    }
    iVar1 = var_2[2] + 1;
    iVar3 = var_2[3] + (type_5)(0xfffffffe < (type_5)var_2[2]);
    var_2[2] = iVar1;
    var_2[3] = iVar3;
    if (var_2[1] == 0 && *var_2 == 0) {
      *var_2 = iVar1;
      var_2[1] = iVar3;
    }
  }
  return;
}


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

void MASKED(int param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  undefined8 uVar4;
  
  if ((*(byte *)(*(int *)(param_1 + 8) + 9) & 0x20) == 0) {
    piVar2 = (int *)FUN_00062700();
  }
  else {
    piVar2 = *(int **)(*(int *)(param_1 + 8) + 0x10);
  }
  if (piVar2 != (int *)0x0) {
    if (piVar2[5] == 0 && piVar2[4] == 0) {
      uVar4 = FUN_000493a0();
      *(undefined8 *)(piVar2 + 4) = uVar4;
    }
    iVar1 = piVar2[2] + 1;
    iVar3 = piVar2[3] + (uint)(0xfffffffe < (uint)piVar2[2]);
    piVar2[2] = iVar1;
    piVar2[3] = iVar3;
    if (piVar2[1] == 0 && *piVar2 == 0) {
      *piVar2 = iVar1;
      piVar2[1] = iVar3;
    }
  }
  return;
}

