
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void statGet(sqlite3_context *context,int argc,sqlite3_value **argv)

{
  int *piVar1;
  char *zBuf;
  size_t sVar2;
  uint uVar3;
  uint uVar4;
  char *zBuf_00;
  int iVar5;
  undefined8 uVar6;
  sqlite3_value *pVal;
  undefined4 in_stack_ffffffc8;
  
  pVal = *argv;
  piVar1 = (int *)sqlite3_value_blob(pVal);
  zBuf = (char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal));
  if (zBuf == (char *)0x0) {
    sqlite3_result_error_nomem(context);
    return;
  }
  sqlite3_snprintf(0x18,zBuf,"%llu",*piVar1,0);
  iVar5 = 0;
  sVar2 = strlen(zBuf);
  zBuf_00 = zBuf + (sVar2 & 0x3fffffff);
  if (0 < piVar1[3]) {
    do {
      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;
      uVar4 = *piVar1 - 1;
      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);
      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));
      if (zBuf_00 != (char *)0x0) {
        sVar2 = strlen(zBuf_00);
        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 < piVar1[3]);
  }
  sqlite3_result_text(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);
  return;
}



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

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

{
  int *piVar1;
  char *__s;
  size_t sVar2;
  uint uVar3;
  uint uVar4;
  char *__s_00;
  int iVar5;
  undefined8 uVar6;
  
  piVar1 = (int *)FUN_0004ceb0(*param_3);
  __s = (char *)FUN_000249a0();
  if (__s == (char *)0x0) {
    FUN_00027870(param_1);
    return;
  }
  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);
  iVar5 = 0;
  sVar2 = strlen(__s);
  __s_00 = __s + (sVar2 & 0x3fffffff);
  if (0 < piVar1[3]) {
    do {
      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;
      uVar4 = *piVar1 - 1;
      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);
      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);
      if (__s_00 != (char *)0x0) {
        sVar2 = strlen(__s_00);
        __s_00 = __s_00 + (sVar2 & 0x3fffffff);
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 < piVar1[3]);
  }
  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);
  return;
}


CALL 0x000196f5
ADD EAX,0xf906f
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x28
MOV EBX,EAX
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x44]
PUSH dword ptr [EAX]
CALL 0x0004ceb0
MOV ESI,EAX
MOV EAX,dword ptr [EAX + 0xc]
LEA EAX,[EAX + EAX*0x4 + 0x5]
LEA EAX,[EAX + EAX*0x4]
CDQ
CALL 0x000249a0
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0004ff88
MOV EAX,dword ptr [ESI]
SUB ESP,0xc
XOR EDX,EDX
PUSH EDX
PUSH EAX
MOV EDI,dword ptr [ESP + 0x18]
LEA EAX,[EDI + 0xfffada6e]
MOV EBX,EDI
PUSH EAX
MOV EBP,dword ptr [ESP + 0x24]
PUSH EBP
PUSH 0x18
CALL 0x0004c9c0
ADD ESP,0x14
PUSH EBP
MOV dword ptr [ESP + 0x14],EDI
XOR EDI,EDI
CALL 0x00014230
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x4]
AND EAX,0x3fffffff
ADD EBP,EAX
LEA EAX,[EDX + 0xfffada6d]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JLE 0x0004ff5c
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESI + 0x18]
MOV ECX,dword ptr [ESI]
SUB ESP,0x10
XOR EDX,EDX
XOR EBX,EBX
MOV EAX,dword ptr [EAX + EDI*0x4]
PUSH EDX
ADD EAX,0x1
ADD ECX,-0x1
ADC EBX,-0x1
ADD ECX,EAX
PUSH EAX
ADC EBX,EDX
PUSH EBX
PUSH ECX
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x000f46e0
ADD ESP,0x14
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
PUSH EBP
PUSH 0x18
MOV EBX,dword ptr [ESP + 0x24]
CALL 0x0004c9c0
ADD ESP,0x20
TEST EBP,EBP
JZ 0x0004ff54
SUB ESP,0xc
PUSH EBP
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x00014230
ADD ESP,0x10
AND EAX,0x3fffffff
ADD EBP,EAX
ADD EDI,0x1
CMP dword ptr [ESI + 0xc],EDI
JG 0x0004fef8
MOV EAX,dword ptr [ESP + 0x4]
PUSH dword ptr [EAX + 0x114]
MOV EBX,EAX
PUSH -0x1
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x3c]
CALL 0x00046480
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x3c]
MOV EBX,dword ptr [ESP + 0x14]
CALL 0x00027870
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_0004fe60(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}\n\n" comment (function_definition "void FUN_0004fe60(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}" primitive_type (function_declarator "FUN_0004fe60(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  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)FUN_0004ceb0(*param_3);" (assignment_expression "piVar1 = (int *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(int *)FUN_0004ceb0(*param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "__s = (char *)FUN_000249a0();" (assignment_expression "__s = (char *)FUN_000249a0()" identifier = (cast_expression "(char *)FUN_000249a0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000249a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_00027870(param_1);\n    return;\n  }" { (expression_statement "FUN_00027870(param_1);" (call_expression "FUN_00027870(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);" (call_expression "FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0)" identifier (argument_list "(0x18,__s,&DAT_000f6942,*piVar1,0)" ( number_literal , identifier , (pointer_expression "&DAT_000f6942" & identifier) , (pointer_expression "*piVar1" * identifier) , number_literal ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = __s + (sVar2 & 0x3fffffff);" (assignment_expression "__s_00 = __s + (sVar2 & 0x3fffffff)" identifier = (binary_expression "__s + (sVar2 & 0x3fffffff)" identifier + (parenthesized_expression "(sVar2 & 0x3fffffff)" ( (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal) )))) ;) (if_statement "if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" if (parenthesized_expression "(0 < piVar1[3])" ( (binary_expression "0 < piVar1[3]" number_literal < (subscript_expression "piVar1[3]" identifier [ number_literal ])) )) (compound_statement "{\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" { (do_statement "do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);" do (compound_statement "{\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;" (assignment_expression "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1" identifier = (binary_expression "*(int *)(piVar1[6] + iVar5 * 4) + 1" (pointer_expression "*(int *)(piVar1[6] + iVar5 * 4)" * (cast_expression "(int *)(piVar1[6] + iVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[6] + iVar5 * 4)" ( (binary_expression "piVar1[6] + iVar5 * 4" (subscript_expression "piVar1[6]" identifier [ number_literal ]) + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) + number_literal)) ;) (expression_statement "uVar4 = *piVar1 - 1;" (assignment_expression "uVar4 = *piVar1 - 1" identifier = (binary_expression "*piVar1 - 1" (pointer_expression "*piVar1" * identifier) - number_literal)) ;) (expression_statement "uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);" (assignment_expression "uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" identifier = (call_expression "FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" identifier (argument_list "(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" ( (binary_expression "uVar4 + uVar3" identifier + identifier) , (binary_expression "((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3)" (parenthesized_expression "((*piVar1 != 0) - 1)" ( (binary_expression "(*piVar1 != 0) - 1" (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) - number_literal) )) + (cast_expression "(uint)CARRY4(uVar4,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))))) , identifier , number_literal )))) ;) (expression_statement "FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);" (call_expression "FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6)" identifier (argument_list "(0x18,__s_00,&DAT_000f6941,uVar6)" ( number_literal , identifier , (pointer_expression "&DAT_000f6941" & identifier) , identifier ))) ;) (if_statement "if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }" if (parenthesized_expression "(__s_00 != (char *)0x0)" ( (binary_expression "__s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }" { (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" identifier = (call_expression "strlen(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (expression_statement "__s_00 = __s_00 + (sVar2 & 0x3fffffff);" (assignment_expression "__s_00 = __s_00 + (sVar2 & 0x3fffffff)" identifier = (binary_expression "__s_00 + (sVar2 & 0x3fffffff)" identifier + (parenthesized_expression "(sVar2 & 0x3fffffff)" ( (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal) )))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < piVar1[3])" ( (binary_expression "iVar5 < piVar1[3]" identifier < (subscript_expression "piVar1[3]" identifier [ number_literal ])) )) ;) })) (expression_statement "FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);" (call_expression "FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8)" identifier (argument_list "(param_1,__s,0xffffffff,PTR_FUN_00148fe8)" ( identifier , identifier , number_literal , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nvoid statGet(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  char *zBuf;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *zBuf_00;\n  int iVar5;\n  undefined8 uVar6;\n  sqlite3_value *pVal;\n  undefined4 in_stack_ffffffc8;\n  \n  pVal = *argv;\n  piVar1 = (int *)sqlite3_value_blob(pVal);\n  zBuf = (char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal));\n  if (zBuf == (char *)0x0) {\n    sqlite3_result_error_nomem(context);\n    return;\n  }\n  sqlite3_snprintf(0x18,zBuf,"%llu",*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(zBuf);\n  zBuf_00 = zBuf + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  sqlite3_result_text(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  return;\n}\n\n" comment comment (function_definition "void statGet(sqlite3_context *context,int argc,sqlite3_value **argv)\n\n{\n  int *piVar1;\n  char *zBuf;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *zBuf_00;\n  int iVar5;\n  undefined8 uVar6;\n  sqlite3_value *pVal;\n  undefined4 in_stack_ffffffc8;\n  \n  pVal = *argv;\n  piVar1 = (int *)sqlite3_value_blob(pVal);\n  zBuf = (char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal));\n  if (zBuf == (char *)0x0) {\n    sqlite3_result_error_nomem(context);\n    return;\n  }\n  sqlite3_snprintf(0x18,zBuf,"%llu",*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(zBuf);\n  zBuf_00 = zBuf + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  sqlite3_result_text(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  return;\n}" primitive_type (function_declarator "statGet(sqlite3_context *context,int argc,sqlite3_value **argv)" identifier (parameter_list "(sqlite3_context *context,int argc,sqlite3_value **argv)" ( (parameter_declaration "sqlite3_context *context" type_identifier (pointer_declarator "*context" * identifier)) , (parameter_declaration "int argc" primitive_type identifier) , (parameter_declaration "sqlite3_value **argv" type_identifier (pointer_declarator "**argv" * (pointer_declarator "*argv" * identifier))) ))) (compound_statement "{\n  int *piVar1;\n  char *zBuf;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *zBuf_00;\n  int iVar5;\n  undefined8 uVar6;\n  sqlite3_value *pVal;\n  undefined4 in_stack_ffffffc8;\n  \n  pVal = *argv;\n  piVar1 = (int *)sqlite3_value_blob(pVal);\n  zBuf = (char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal));\n  if (zBuf == (char *)0x0) {\n    sqlite3_result_error_nomem(context);\n    return;\n  }\n  sqlite3_snprintf(0x18,zBuf,"%llu",*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(zBuf);\n  zBuf_00 = zBuf + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  sqlite3_result_text(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *zBuf;" primitive_type (pointer_declarator "*zBuf" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *zBuf_00;" primitive_type (pointer_declarator "*zBuf_00" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (declaration "sqlite3_value *pVal;" type_identifier (pointer_declarator "*pVal" * identifier) ;) (declaration "undefined4 in_stack_ffffffc8;" type_identifier identifier ;) (expression_statement "pVal = *argv;" (assignment_expression "pVal = *argv" identifier = (pointer_expression "*argv" * identifier)) ;) (expression_statement "piVar1 = (int *)sqlite3_value_blob(pVal);" (assignment_expression "piVar1 = (int *)sqlite3_value_blob(pVal)" identifier = (cast_expression "(int *)sqlite3_value_blob(pVal)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_value_blob(pVal)" identifier (argument_list "(pVal)" ( identifier ))))) ;) (expression_statement "zBuf = (char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal));" (assignment_expression "zBuf = (char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal))" identifier = (cast_expression "(char *)sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3MallocZero(CONCAT44(in_stack_ffffffc8,pVal))" identifier (argument_list "(CONCAT44(in_stack_ffffffc8,pVal))" ( (call_expression "CONCAT44(in_stack_ffffffc8,pVal)" identifier (argument_list "(in_stack_ffffffc8,pVal)" ( identifier , identifier ))) ))))) ;) (if_statement "if (zBuf == (char *)0x0) {\n    sqlite3_result_error_nomem(context);\n    return;\n  }" if (parenthesized_expression "(zBuf == (char *)0x0)" ( (binary_expression "zBuf == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3_result_error_nomem(context);\n    return;\n  }" { (expression_statement "sqlite3_result_error_nomem(context);" (call_expression "sqlite3_result_error_nomem(context)" identifier (argument_list "(context)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3_snprintf(0x18,zBuf,"%llu",*piVar1,0);" (call_expression "sqlite3_snprintf(0x18,zBuf,"%llu",*piVar1,0)" identifier (argument_list "(0x18,zBuf,"%llu",*piVar1,0)" ( number_literal , identifier , (string_literal ""%llu"" " string_content ") , (pointer_expression "*piVar1" * identifier) , number_literal ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar2 = strlen(zBuf);" (assignment_expression "sVar2 = strlen(zBuf)" identifier = (call_expression "strlen(zBuf)" identifier (argument_list "(zBuf)" ( identifier )))) ;) (expression_statement "zBuf_00 = zBuf + (sVar2 & 0x3fffffff);" (assignment_expression "zBuf_00 = zBuf + (sVar2 & 0x3fffffff)" identifier = (binary_expression "zBuf + (sVar2 & 0x3fffffff)" identifier + (parenthesized_expression "(sVar2 & 0x3fffffff)" ( (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal) )))) ;) (if_statement "if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" if (parenthesized_expression "(0 < piVar1[3])" ( (binary_expression "0 < piVar1[3]" number_literal < (subscript_expression "piVar1[3]" identifier [ number_literal ])) )) (compound_statement "{\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" { (do_statement "do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);" do (compound_statement "{\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));\n      if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;" (assignment_expression "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1" identifier = (binary_expression "*(int *)(piVar1[6] + iVar5 * 4) + 1" (pointer_expression "*(int *)(piVar1[6] + iVar5 * 4)" * (cast_expression "(int *)(piVar1[6] + iVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[6] + iVar5 * 4)" ( (binary_expression "piVar1[6] + iVar5 * 4" (subscript_expression "piVar1[6]" identifier [ number_literal ]) + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) + number_literal)) ;) (expression_statement "uVar4 = *piVar1 - 1;" (assignment_expression "uVar4 = *piVar1 - 1" identifier = (binary_expression "*piVar1 - 1" (pointer_expression "*piVar1" * identifier) - number_literal)) ;) (expression_statement "uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);" (assignment_expression "uVar6 = __udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" identifier = (call_expression "__udivdi3(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" identifier (argument_list "(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" ( (binary_expression "uVar4 + uVar3" identifier + identifier) , (binary_expression "((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3)" (parenthesized_expression "((*piVar1 != 0) - 1)" ( (binary_expression "(*piVar1 != 0) - 1" (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) - number_literal) )) + (cast_expression "(uint)CARRY4(uVar4,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))))) , identifier , number_literal )))) ;) (expression_statement "sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20));" (call_expression "sqlite3_snprintf(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20))" identifier (argument_list "(0x18,zBuf_00," %llu",(int)uVar6,(int)((ulonglong)uVar6 >> 0x20))" ( number_literal , identifier , (string_literal "" %llu"" " string_content ") , (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) , (cast_expression "(int)((ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar6 >> 0x20" (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) ))) ;) (if_statement "if (zBuf_00 != (char *)0x0) {\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }" if (parenthesized_expression "(zBuf_00 != (char *)0x0)" ( (binary_expression "zBuf_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar2 = strlen(zBuf_00);\n        zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);\n      }" { (expression_statement "sVar2 = strlen(zBuf_00);" (assignment_expression "sVar2 = strlen(zBuf_00)" identifier = (call_expression "strlen(zBuf_00)" identifier (argument_list "(zBuf_00)" ( identifier )))) ;) (expression_statement "zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff);" (assignment_expression "zBuf_00 = zBuf_00 + (sVar2 & 0x3fffffff)" identifier = (binary_expression "zBuf_00 + (sVar2 & 0x3fffffff)" identifier + (parenthesized_expression "(sVar2 & 0x3fffffff)" ( (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal) )))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < piVar1[3])" ( (binary_expression "iVar5 < piVar1[3]" identifier < (subscript_expression "piVar1[3]" identifier [ number_literal ])) )) ;) })) (expression_statement "sqlite3_result_text(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8);" (call_expression "sqlite3_result_text(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8)" identifier (argument_list "(context,zBuf,-1,(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8)" ( identifier , identifier , number_literal , (cast_expression "(_func_void_void_ptr *)PTR_sqlite3_free_00148fe8" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0004fe60(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}\n\n" (function_definition "void FUN_0004fe60(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}" primitive_type (function_declarator "FUN_0004fe60(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  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__s_00;" primitive_type (pointer_declarator "*__s_00" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined8 uVar6;" type_identifier identifier ;) (expression_statement "piVar1 = (int *)FUN_0004ceb0(*param_3);" (assignment_expression "piVar1 = (int *)FUN_0004ceb0(*param_3)" identifier = (cast_expression "(int *)FUN_0004ceb0(*param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004ceb0(*param_3)" identifier (argument_list "(*param_3)" ( (pointer_expression "*param_3" * identifier) ))))) ;) (expression_statement "__s = (char *)FUN_000249a0();" (assignment_expression "__s = (char *)FUN_000249a0()" identifier = (cast_expression "(char *)FUN_000249a0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000249a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    FUN_00027870(param_1);\n    return;\n  }" { (expression_statement "FUN_00027870(param_1);" (call_expression "FUN_00027870(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);" (call_expression "FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0)" identifier (argument_list "(0x18,__s,&DAT_000f6942,*piVar1,0)" ( number_literal , identifier , (pointer_expression "&DAT_000f6942" & identifier) , (pointer_expression "*piVar1" * identifier) , number_literal ))) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "__s_00 = __s + (sVar2 & 0x3fffffff);" (assignment_expression "__s_00 = __s + (sVar2 & 0x3fffffff)" identifier = (binary_expression "__s + (sVar2 & 0x3fffffff)" identifier + (parenthesized_expression "(sVar2 & 0x3fffffff)" ( (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal) )))) ;) (if_statement "if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" if (parenthesized_expression "(0 < piVar1[3])" ( (binary_expression "0 < piVar1[3]" number_literal < (subscript_expression "piVar1[3]" identifier [ number_literal ])) )) (compound_statement "{\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" { (do_statement "do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);" do (compound_statement "{\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    }" { (expression_statement "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;" (assignment_expression "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1" identifier = (binary_expression "*(int *)(piVar1[6] + iVar5 * 4) + 1" (pointer_expression "*(int *)(piVar1[6] + iVar5 * 4)" * (cast_expression "(int *)(piVar1[6] + iVar5 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1[6] + iVar5 * 4)" ( (binary_expression "piVar1[6] + iVar5 * 4" (subscript_expression "piVar1[6]" identifier [ number_literal ]) + (binary_expression "iVar5 * 4" identifier * number_literal)) )))) + number_literal)) ;) (expression_statement "uVar4 = *piVar1 - 1;" (assignment_expression "uVar4 = *piVar1 - 1" identifier = (binary_expression "*piVar1 - 1" (pointer_expression "*piVar1" * identifier) - number_literal)) ;) (expression_statement "uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);" (assignment_expression "uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" identifier = (call_expression "FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" identifier (argument_list "(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" ( (binary_expression "uVar4 + uVar3" identifier + identifier) , (binary_expression "((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3)" (parenthesized_expression "((*piVar1 != 0) - 1)" ( (binary_expression "(*piVar1 != 0) - 1" (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) - number_literal) )) + (cast_expression "(uint)CARRY4(uVar4,uVar3)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY4(uVar4,uVar3)" identifier (argument_list "(uVar4,uVar3)" ( identifier , identifier ))))) , identifier , number_literal )))) ;) (expression_statement "FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);" (call_expression "FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6)" identifier (argument_list "(0x18,__s_00,&DAT_000f6941,uVar6)" ( number_literal , identifier , (pointer_expression "&DAT_000f6941" & identifier) , identifier ))) ;) (if_statement "if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }" if (parenthesized_expression "(__s_00 != (char *)0x0)" ( (binary_expression "__s_00 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }" { (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" identifier = (call_expression "strlen(__s_00)" identifier (argument_list "(__s_00)" ( identifier )))) ;) (expression_statement "__s_00 = __s_00 + (sVar2 & 0x3fffffff);" (assignment_expression "__s_00 = __s_00 + (sVar2 & 0x3fffffff)" identifier = (binary_expression "__s_00 + (sVar2 & 0x3fffffff)" identifier + (parenthesized_expression "(sVar2 & 0x3fffffff)" ( (binary_expression "sVar2 & 0x3fffffff" identifier & number_literal) )))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 < piVar1[3])" ( (binary_expression "iVar5 < piVar1[3]" identifier < (subscript_expression "piVar1[3]" identifier [ number_literal ])) )) ;) })) (expression_statement "FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);" (call_expression "FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8)" identifier (argument_list "(param_1,__s,0xffffffff,PTR_FUN_00148fe8)" ( identifier , identifier , 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) , (pointer_expression * IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression IDENT * LIT)) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) - LIT) )) + (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) , IDENT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression & IDENT) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0004fe60(undefined4 param_1,undefined4 param_2,undefined4 *param_3)\n\n{\n  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004fe60(undefined4 param_1,undefined4 param_2,undefined4 *param_3)" (identifier "FUN_0004fe60") (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  int *piVar1;\n  char *__s;\n  size_t sVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__s_00;\n  int iVar5;\n  undefined8 uVar6;\n  \n  piVar1 = (int *)FUN_0004ceb0(*param_3);\n  __s = (char *)FUN_000249a0();\n  if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }\n  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);\n  iVar5 = 0;\n  sVar2 = strlen(__s);\n  __s_00 = __s + (sVar2 & 0x3fffffff);\n  if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }\n  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char *__s_00;" (primitive_type "char") (pointer_declarator "*__s_00" (* "*") (identifier "__s_00")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined8 uVar6;" (type_identifier "undefined8") (identifier "uVar6") (; ";")) (expression_statement "piVar1 = (int *)FUN_0004ceb0(*param_3);" (assignment_expression "piVar1 = (int *)FUN_0004ceb0(*param_3)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0004ceb0(*param_3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004ceb0(*param_3)" (identifier "FUN_0004ceb0") (argument_list "(*param_3)" (( "(") (pointer_expression "*param_3" (* "*") (identifier "param_3")) () ")"))))) (; ";")) (expression_statement "__s = (char *)FUN_000249a0();" (assignment_expression "__s = (char *)FUN_000249a0()" (identifier "__s") (= "=") (cast_expression "(char *)FUN_000249a0()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000249a0()" (identifier "FUN_000249a0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__s == (char *)0x0) {\n    FUN_00027870(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "(__s == (char *)0x0)" (( "(") (binary_expression "__s == (char *)0x0" (identifier "__s") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    FUN_00027870(param_1);\n    return;\n  }" ({ "{") (expression_statement "FUN_00027870(param_1);" (call_expression "FUN_00027870(param_1)" (identifier "FUN_00027870") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);" (call_expression "FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0)" (identifier "FUN_0004c9c0") (argument_list "(0x18,__s,&DAT_000f6942,*piVar1,0)" (( "(") (number_literal "0x18") (, ",") (identifier "__s") (, ",") (pointer_expression "&DAT_000f6942" (& "&") (identifier "DAT_000f6942")) (, ",") (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" (identifier "sVar2") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "__s_00 = __s + (sVar2 & 0x3fffffff);" (assignment_expression "__s_00 = __s + (sVar2 & 0x3fffffff)" (identifier "__s_00") (= "=") (binary_expression "__s + (sVar2 & 0x3fffffff)" (identifier "__s") (+ "+") (parenthesized_expression "(sVar2 & 0x3fffffff)" (( "(") (binary_expression "sVar2 & 0x3fffffff" (identifier "sVar2") (& "&") (number_literal "0x3fffffff")) () ")")))) (; ";")) (if_statement "if (0 < piVar1[3]) {\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" (if "if") (parenthesized_expression "(0 < piVar1[3])" (( "(") (binary_expression "0 < piVar1[3]" (number_literal "0") (< "<") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) () ")")) (compound_statement "{\n    do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);\n  }" ({ "{") (do_statement "do {\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    } while (iVar5 < piVar1[3]);" (do "do") (compound_statement "{\n      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;\n      uVar4 = *piVar1 - 1;\n      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);\n      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);\n      if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }\n      iVar5 = iVar5 + 1;\n    }" ({ "{") (expression_statement "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;" (assignment_expression "uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1" (identifier "uVar3") (= "=") (binary_expression "*(int *)(piVar1[6] + iVar5 * 4) + 1" (pointer_expression "*(int *)(piVar1[6] + iVar5 * 4)" (* "*") (cast_expression "(int *)(piVar1[6] + iVar5 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1[6] + iVar5 * 4)" (( "(") (binary_expression "piVar1[6] + iVar5 * 4" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (+ "+") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = *piVar1 - 1;" (assignment_expression "uVar4 = *piVar1 - 1" (identifier "uVar4") (= "=") (binary_expression "*piVar1 - 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);" (assignment_expression "uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" (identifier "uVar6") (= "=") (call_expression "FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" (identifier "FUN_000f46e0") (argument_list "(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0)" (( "(") (binary_expression "uVar4 + uVar3" (identifier "uVar4") (+ "+") (identifier "uVar3")) (, ",") (binary_expression "((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3)" (parenthesized_expression "((*piVar1 != 0) - 1)" (( "(") (binary_expression "(*piVar1 != 0) - 1" (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (- "-") (number_literal "1")) () ")")) (+ "+") (cast_expression "(uint)CARRY4(uVar4,uVar3)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY4(uVar4,uVar3)" (identifier "CARRY4") (argument_list "(uVar4,uVar3)" (( "(") (identifier "uVar4") (, ",") (identifier "uVar3") () ")"))))) (, ",") (identifier "uVar3") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);" (call_expression "FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6)" (identifier "FUN_0004c9c0") (argument_list "(0x18,__s_00,&DAT_000f6941,uVar6)" (( "(") (number_literal "0x18") (, ",") (identifier "__s_00") (, ",") (pointer_expression "&DAT_000f6941" (& "&") (identifier "DAT_000f6941")) (, ",") (identifier "uVar6") () ")"))) (; ";")) (if_statement "if (__s_00 != (char *)0x0) {\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }" (if "if") (parenthesized_expression "(__s_00 != (char *)0x0)" (( "(") (binary_expression "__s_00 != (char *)0x0" (identifier "__s_00") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        sVar2 = strlen(__s_00);\n        __s_00 = __s_00 + (sVar2 & 0x3fffffff);\n      }" ({ "{") (expression_statement "sVar2 = strlen(__s_00);" (assignment_expression "sVar2 = strlen(__s_00)" (identifier "sVar2") (= "=") (call_expression "strlen(__s_00)" (identifier "strlen") (argument_list "(__s_00)" (( "(") (identifier "__s_00") () ")")))) (; ";")) (expression_statement "__s_00 = __s_00 + (sVar2 & 0x3fffffff);" (assignment_expression "__s_00 = __s_00 + (sVar2 & 0x3fffffff)" (identifier "__s_00") (= "=") (binary_expression "__s_00 + (sVar2 & 0x3fffffff)" (identifier "__s_00") (+ "+") (parenthesized_expression "(sVar2 & 0x3fffffff)" (( "(") (binary_expression "sVar2 & 0x3fffffff" (identifier "sVar2") (& "&") (number_literal "0x3fffffff")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < piVar1[3])" (( "(") (binary_expression "iVar5 < piVar1[3]" (identifier "iVar5") (< "<") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);" (call_expression "FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8)" (identifier "FUN_00046480") (argument_list "(param_1,__s,0xffffffff,PTR_FUN_00148fe8)" (( "(") (identifier "param_1") (, ",") (identifier "__s") (, ",") (number_literal "0xffffffff") (, ",") (identifier "PTR_FUN_00148fe8") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

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

{
  int *piVar1;
  char *var_4;
  size_t var_8;
  type_3 var_12;
  type_3 var_11;
  char *var_14;
  int var_9;
  type_4 uVar6;
  type_2 *pVal;
  type_5 in_stack_ffffffc8;
  
  pVal = *argv;
  piVar1 = (int *)var_1(pVal);
  var_4 = (char *)var_2(var_3(in_stack_ffffffc8,pVal));
  if (var_4 == (char *)0x0) {
    var_5(context);
    return;
  }
  var_6(0x18,var_4,"%llu",*piVar1,0);
  var_9 = 0;
  var_8 = var_7(var_4);
  var_14 = var_4 + (var_8 & 0x3fffffff);
  if (0 < piVar1[3]) {
    do {
      var_12 = *(int *)(piVar1[6] + var_9 * 4) + 1;
      var_11 = *piVar1 - 1;
      uVar6 = var_10(var_11 + var_12,((*piVar1 != 0) - 1) + (type_3)var_13(var_11,var_12),var_12,0);
      var_6(0x18,var_14," %llu",(int)uVar6,(int)((type_6)uVar6 >> 0x20));
      if (var_14 != (char *)0x0) {
        var_8 = var_7(var_14);
        var_14 = var_14 + (var_8 & 0x3fffffff);
      }
      var_9 = var_9 + 1;
    } while (var_9 < piVar1[3]);
  }
  var_15(context,var_4,-1,(type_7 *)PTR_sqlite3_free_00148fe8);
  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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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 (pointer_expression argument: (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))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (identifier) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (pointer_expression argument: (identifier)) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier)))) (return_statement))))

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

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

{
  int *piVar1;
  char *__s;
  size_t sVar2;
  uint uVar3;
  uint uVar4;
  char *__s_00;
  int iVar5;
  undefined8 uVar6;
  
  piVar1 = (int *)FUN_0004ceb0(*param_3);
  __s = (char *)FUN_000249a0();
  if (__s == (char *)0x0) {
    FUN_00027870(param_1);
    return;
  }
  FUN_0004c9c0(0x18,__s,&DAT_000f6942,*piVar1,0);
  iVar5 = 0;
  sVar2 = strlen(__s);
  __s_00 = __s + (sVar2 & 0x3fffffff);
  if (0 < piVar1[3]) {
    do {
      uVar3 = *(int *)(piVar1[6] + iVar5 * 4) + 1;
      uVar4 = *piVar1 - 1;
      uVar6 = FUN_000f46e0(uVar4 + uVar3,((*piVar1 != 0) - 1) + (uint)CARRY4(uVar4,uVar3),uVar3,0);
      FUN_0004c9c0(0x18,__s_00,&DAT_000f6941,uVar6);
      if (__s_00 != (char *)0x0) {
        sVar2 = strlen(__s_00);
        __s_00 = __s_00 + (sVar2 & 0x3fffffff);
      }
      iVar5 = iVar5 + 1;
    } while (iVar5 < piVar1[3]);
  }
  FUN_00046480(param_1,__s,0xffffffff,PTR_FUN_00148fe8);
  return;
}

