
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

Fts5Data * __regparm3 fts5DataRead(Fts5Index *p,i64 iRowid)

{
  int iVar1;
  sqlite3_blob *psVar2;
  Fts5Data *p_00;
  undefined4 in_ECX;
  undefined4 in_EDX;
  undefined **ppuVar3;
  undefined4 in_stack_ffffffd4;
  int local_24;
  
  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;
  if (p->rc != 0) {
    return (Fts5Data *)0x0;
  }
  psVar2 = p->pReader;
  if (psVar2 == (sqlite3_blob *)0x0) {
LAB_000f64f0:
    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,
                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,
                              &p->pReader);
    if (iVar1 == 1) {
LAB_000f651c:
      iVar1 = 0x10b;
      goto LAB_000f6523;
    }
    if (iVar1 != 0) goto LAB_000f6523;
LAB_000f641a:
    psVar2 = p->pReader;
    if (psVar2 != (sqlite3_blob *)0x0) goto LAB_000f6425;
LAB_000f6538:
    local_24 = 0;
  }
  else {
    p->pReader = (sqlite3_blob *)0x0;
    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));
    if (iVar1 == 0) {
      p->pReader = psVar2;
      goto LAB_000f641a;
    }
    p->pReader = (sqlite3_blob *)0x0;
    sqlite3_blob_close(psVar2);
    if (iVar1 != 4) {
      if (iVar1 != 1) goto LAB_000f6523;
      goto LAB_000f651c;
    }
    psVar2 = p->pReader;
    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;
LAB_000f6425:
    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;
    local_24 = *(int *)psVar2;
  }
  iVar1 = sqlite3_initialize();
  if ((iVar1 == 0) &&
     (p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0
     )) {
    p_00->nn = local_24;
    p_00->p = (u8 *)(p_00 + 1);
    iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,
                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106));
    if (iVar1 == 0) {
      p_00->p[local_24] = '\0';
      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);
      p->nRead = p->nRead + 1;
      p->rc = 0;
      return p_00;
    }
  }
  else {
    p_00 = (Fts5Data *)0x0;
    iVar1 = 7;
  }
  sqlite3_free(p_00);
LAB_000f6523:
  p->rc = iVar1;
  p->nRead = p->nRead + 1;
  return (Fts5Data *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int * __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int local_24;
  
  if (param_1[8] != 0) {
    return (int *)0x0;
  }
  iVar2 = param_1[9];
  if (iVar2 == 0) {
LAB_000f64f0:
    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",
                         param_2,param_3,0,param_1 + 9);
    if (iVar1 == 1) {
LAB_000f651c:
      iVar1 = 0x10b;
      goto LAB_000f6523;
    }
    if (iVar1 != 0) goto LAB_000f6523;
LAB_000f641a:
    piVar3 = (int *)param_1[9];
    if (piVar3 != (int *)0x0) goto LAB_000f6425;
LAB_000f6538:
    local_24 = 0;
  }
  else {
    param_1[9] = 0;
    iVar1 = FUN_000f0130(iVar2,param_2,param_3);
    if (iVar1 == 0) {
      param_1[9] = iVar2;
      goto LAB_000f641a;
    }
    param_1[9] = 0;
    FUN_000a9830(iVar2);
    if (iVar1 != 4) {
      if (iVar1 != 1) goto LAB_000f6523;
      goto LAB_000f651c;
    }
    piVar3 = (int *)param_1[9];
    if (piVar3 == (int *)0x0) goto LAB_000f64f0;
LAB_000f6425:
    if (piVar3[4] == 0) goto LAB_000f6538;
    local_24 = *piVar3;
  }
  iVar2 = FUN_0005b490();
  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {
    piVar3[1] = local_24;
    *piVar3 = (int)(piVar3 + 3);
    iVar1 = FUN_000ab210(0,FUN_000a3a10);
    if (iVar1 == 0) {
      *(undefined1 *)(*piVar3 + local_24) = 0;
      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));
      param_1[0xf] = param_1[0xf] + 1;
      param_1[8] = 0;
      return piVar3;
    }
  }
  else {
    piVar3 = (int *)0x0;
    iVar1 = 7;
  }
  FUN_00042800(piVar3);
LAB_000f6523:
  param_1[8] = iVar1;
  param_1[0xf] = param_1[0xf] + 1;
  return (int *)0x0;
}


PUSH EBP
XOR EBP,EBP
PUSH EDI
PUSH ESI
CALL 0x00115708
ADD ESI,0x85a5e
PUSH EBX
SUB ESP,0x1c
MOV dword ptr [ESP + 0x4],ESI
MOV ESI,dword ptr [EAX + 0x20]
TEST ESI,ESI
JNZ 0x000f64b2
MOV EBP,dword ptr [EAX + 0x24]
MOV EBX,EAX
TEST EBP,EBP
JZ 0x000f64f0
SUB ESP,0x4
MOV dword ptr [EAX + 0x24],0x0
PUSH ECX
PUSH EDX
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x18],ECX
PUSH EBP
CALL 0x000f0130
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000f64c0
MOV dword ptr [EBX + 0x24],EBP
MOV EAX,dword ptr [EBX + 0x24]
TEST EAX,EAX
JZ 0x000f6538
MOV EDX,dword ptr [EAX + 0x10]
TEST EDX,EDX
JZ 0x000f6538
MOV ESI,dword ptr [EAX]
XOR EBP,EBP
MOV dword ptr [ESP + 0x8],ESI
LEA EDI,[ESI + 0x20]
CALL 0x0005b490
TEST EAX,EAX
JNZ 0x000f6550
MOV EDX,EBP
MOV EAX,EDI
CALL 0x000421f0
MOV EBP,EAX
TEST EAX,EAX
JZ 0x000f6550
SUB ESP,0x8
LEA EDX,[EAX + 0xc]
MOV dword ptr [EAX + 0x4],ESI
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],EDX
MOV EAX,dword ptr [EBX + 0x24]
LEA ECX,[ECX + 0xfff27be8]
PUSH ECX
MOV ECX,ESI
PUSH 0x0
CALL 0x000ab210
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000f6557
MOV EAX,dword ptr [EBP]
MOV ECX,dword ptr [ESP + 0x8]
MOV byte ptr [EAX + ECX*0x1],0x0
MOV EDX,dword ptr [EBP]
MOVZX EAX,byte ptr [EDX + 0x2]
MOVZX EDX,byte ptr [EDX + 0x3]
SHL EAX,0x8
ADD EAX,EDX
MOVZX EAX,AX
MOV dword ptr [EBP + 0x8],EAX
ADD dword ptr [EBX + 0x3c],0x1
MOV dword ptr [EBX + 0x20],EDI
ADD ESP,0x1c
MOV EAX,EBP
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV dword ptr [EBX + 0x24],0x0
PUSH EBP
CALL 0x000a9830
ADD ESP,0x10
CMP EDI,0x4
JNZ 0x000f657c
MOV EAX,dword ptr [EBX + 0x24]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x000f6425
NOP
LEA EDI,[EBX + 0x24]
MOV EAX,dword ptr [EBX]
PUSH EDI
PUSH 0x0
PUSH ECX
PUSH EDX
MOV ECX,dword ptr [ESP + 0x14]
LEA EDX,[ECX + 0xfffa59bf]
PUSH EDX
PUSH dword ptr [EBX + 0x4]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
CALL 0x000ef970
ADD ESP,0x20
MOV EDI,EAX
CMP EAX,0x1
JNZ 0x000f6570
MOV EDI,0x10b
XOR EBP,EBP
MOV dword ptr [EBX + 0x20],EDI
MOV EAX,EBP
ADD dword ptr [EBX + 0x3c],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,0x20
XOR EBP,EBP
MOV dword ptr [ESP + 0x8],0x0
JMP 0x000f643b
XOR EBP,EBP
MOV EDI,0x7
SUB ESP,0xc
PUSH EBP
XOR EBP,EBP
CALL 0x00042800
ADD ESP,0x10
JMP 0x000f6523
TEST EAX,EAX
JZ 0x000f641a
XOR EBP,EBP
JMP 0x000f6523
MOV EBP,dword ptr [EBX + 0x24]
TEST EBP,EBP
JNZ 0x000f658a
CMP EDI,0x1
JZ 0x000f651c
JMP 0x000f6523
CMP EDI,0x1
JZ 0x000f651c
XOR EBP,EBP
JMP 0x000f6523
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint * __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (param_1[8] != 0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(param_1[8] != 0)" ( (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar2 = param_1[9];" (assignment_expression "iVar2 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }" { (labeled_statement "LAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" statement_identifier : (expression_statement "iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (assignment_expression "iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" identifier = (call_expression "FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" identifier (argument_list "(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (subscript_expression "((undefined4 *)*param_1)[1]" (parenthesized_expression "((undefined4 *)*param_1)" ( (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ]) , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (string_literal ""block"" " string_content ") , identifier , identifier , number_literal , (binary_expression "param_1 + 9" identifier + number_literal) )))) ;)) (if_statement "if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" { (labeled_statement "LAB_000f651c:\n      iVar1 = 0x10b;" statement_identifier : (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;)) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 0) goto LAB_000f6523;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;)) (labeled_statement "LAB_000f641a:\n    piVar3 = (int *)param_1[9];" statement_identifier : (expression_statement "piVar3 = (int *)param_1[9];" (assignment_expression "piVar3 = (int *)param_1[9]" identifier = (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) ;)) (if_statement "if (piVar3 != (int *)0x0) goto LAB_000f6425;" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f6425;" goto statement_identifier ;)) (labeled_statement "LAB_000f6538:\n    local_24 = 0;" statement_identifier : (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" else (compound_statement "{\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" { (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = FUN_000f0130(iVar2,param_2,param_3);" (assignment_expression "iVar1 = FUN_000f0130(iVar2,param_2,param_3)" identifier = (call_expression "FUN_000f0130(iVar2,param_2,param_3)" identifier (argument_list "(iVar2,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }" { (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_000f641a;" goto statement_identifier ;) })) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000a9830(iVar2);" (call_expression "FUN_000a9830(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" { (if_statement "if (iVar1 != 1) goto LAB_000f6523;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;)) (goto_statement "goto LAB_000f651c;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)param_1[9];" (assignment_expression "piVar3 = (int *)param_1[9]" identifier = (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_000f64f0;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f64f0;" goto statement_identifier ;)) (labeled_statement "LAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;" statement_identifier : (if_statement "if (piVar3[4] == 0) goto LAB_000f6538;" if (parenthesized_expression "(piVar3[4] == 0)" ( (binary_expression "piVar3[4] == 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_000f6538;" goto statement_identifier ;))) (expression_statement "local_24 = *piVar3;" (assignment_expression "local_24 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) }))) (expression_statement "iVar2 = FUN_0005b490();" (assignment_expression "iVar2 = FUN_0005b490()" identifier = (call_expression "FUN_0005b490()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" if (parenthesized_expression "((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0))" ( (binary_expression "(iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)" ( (comma_expression "piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0" (assignment_expression "piVar3 = (int *)FUN_000421f0()" identifier = (cast_expression "(int *)FUN_000421f0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000421f0()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }" { (expression_statement "piVar3[1] = local_24;" (assignment_expression "piVar3[1] = local_24" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar3 = (int)(piVar3 + 3);" (assignment_expression "*piVar3 = (int)(piVar3 + 3)" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)(piVar3 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 3)" ( (binary_expression "piVar3 + 3" identifier + number_literal) )))) ;) (expression_statement "iVar1 = FUN_000ab210(0,FUN_000a3a10);" (assignment_expression "iVar1 = FUN_000ab210(0,FUN_000a3a10)" identifier = (call_expression "FUN_000ab210(0,FUN_000a3a10)" identifier (argument_list "(0,FUN_000a3a10)" ( number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }" { (expression_statement "*(undefined1 *)(*piVar3 + local_24) = 0;" (assignment_expression "*(undefined1 *)(*piVar3 + local_24) = 0" (pointer_expression "*(undefined1 *)(*piVar3 + local_24)" * (cast_expression "(undefined1 *)(*piVar3 + local_24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + local_24)" ( (binary_expression "*piVar3 + local_24" (pointer_expression "*piVar3" * identifier) + identifier) )))) = number_literal) ;) (expression_statement "piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));" (assignment_expression "piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" identifier (argument_list "(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" ( (pointer_expression "*(undefined1 *)(*piVar3 + 2)" * (cast_expression "(undefined1 *)(*piVar3 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 2)" ( (binary_expression "*piVar3 + 2" (pointer_expression "*piVar3" * identifier) + number_literal) )))) , (pointer_expression "*(undefined1 *)(*piVar3 + 3)" * (cast_expression "(undefined1 *)(*piVar3 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 3)" ( (binary_expression "*piVar3 + 3" (pointer_expression "*piVar3" * identifier) + number_literal) )))) ))))) ;) (expression_statement "param_1[0xf] = param_1[0xf] + 1;" (assignment_expression "param_1[0xf] = param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = (binary_expression "param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[8] = 0;" (assignment_expression "param_1[8] = 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" else (compound_statement "{\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" { (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }))) (expression_statement "FUN_00042800(piVar3);" (call_expression "FUN_00042800(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (labeled_statement "LAB_000f6523:\n  param_1[8] = iVar1;" statement_identifier : (expression_statement "param_1[8] = iVar1;" (assignment_expression "param_1[8] = iVar1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "param_1[0xf] = param_1[0xf] + 1;" (assignment_expression "param_1[0xf] = param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = (binary_expression "param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nFts5Data * __regparm3 fts5DataRead(Fts5Index *p,i64 iRowid)\n\n{\n  int iVar1;\n  sqlite3_blob *psVar2;\n  Fts5Data *p_00;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  undefined **ppuVar3;\n  undefined4 in_stack_ffffffd4;\n  int local_24;\n  \n  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;\n  if (p->rc != 0) {\n    return (Fts5Data *)0x0;\n  }\n  psVar2 = p->pReader;\n  if (psVar2 == (sqlite3_blob *)0x0) {\nLAB_000f64f0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    psVar2 = p->pReader;\n    if (psVar2 != (sqlite3_blob *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    p->pReader = (sqlite3_blob *)0x0;\n    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));\n    if (iVar1 == 0) {\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;\n    local_24 = *(int *)psVar2;\n  }\n  iVar1 = sqlite3_initialize();\n  if ((iVar1 == 0) &&\n     (p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0\n     )) {\n    p_00->nn = local_24;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106));\n    if (iVar1 == 0) {\n      p_00->p[local_24] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      p->nRead = p->nRead + 1;\n      p->rc = 0;\n      return p_00;\n    }\n  }\n  else {\n    p_00 = (Fts5Data *)0x0;\n    iVar1 = 7;\n  }\n  sqlite3_free(p_00);\nLAB_000f6523:\n  p->rc = iVar1;\n  p->nRead = p->nRead + 1;\n  return (Fts5Data *)0x0;\n}\n\n" comment (ERROR "Fts5Data * __regparm3 fts5DataRead(Fts5Index *p,i64 iRowid)" (binary_expression "Fts5Data * __regparm3 fts5DataRead(Fts5Index *p,i64 iRowid)" identifier * (ERROR "__regparm3" identifier) (call_expression "fts5DataRead(Fts5Index *p,i64 iRowid)" identifier (argument_list "(Fts5Index *p,i64 iRowid)" ( (binary_expression "Fts5Index *p" identifier * identifier) , (ERROR "i64" identifier) identifier ))))) (compound_statement "{\n  int iVar1;\n  sqlite3_blob *psVar2;\n  Fts5Data *p_00;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  undefined **ppuVar3;\n  undefined4 in_stack_ffffffd4;\n  int local_24;\n  \n  ppuVar3 = &_GLOBAL_OFFSET_TABLE_;\n  if (p->rc != 0) {\n    return (Fts5Data *)0x0;\n  }\n  psVar2 = p->pReader;\n  if (psVar2 == (sqlite3_blob *)0x0) {\nLAB_000f64f0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    psVar2 = p->pReader;\n    if (psVar2 != (sqlite3_blob *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    p->pReader = (sqlite3_blob *)0x0;\n    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));\n    if (iVar1 == 0) {\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;\n    local_24 = *(int *)psVar2;\n  }\n  iVar1 = sqlite3_initialize();\n  if ((iVar1 == 0) &&\n     (p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0\n     )) {\n    p_00->nn = local_24;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106));\n    if (iVar1 == 0) {\n      p_00->p[local_24] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      p->nRead = p->nRead + 1;\n      p->rc = 0;\n      return p_00;\n    }\n  }\n  else {\n    p_00 = (Fts5Data *)0x0;\n    iVar1 = 7;\n  }\n  sqlite3_free(p_00);\nLAB_000f6523:\n  p->rc = iVar1;\n  p->nRead = p->nRead + 1;\n  return (Fts5Data *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_blob *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "Fts5Data *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (declaration "undefined4 in_EDX;" type_identifier identifier ;) (declaration "undefined **ppuVar3;" type_identifier (pointer_declarator "**ppuVar3" * (pointer_declarator "*ppuVar3" * identifier)) ;) (declaration "undefined4 in_stack_ffffffd4;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "ppuVar3 = &_GLOBAL_OFFSET_TABLE_;" (assignment_expression "ppuVar3 = &_GLOBAL_OFFSET_TABLE_" identifier = (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) ;) (if_statement "if (p->rc != 0) {\n    return (Fts5Data *)0x0;\n  }" if (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    return (Fts5Data *)0x0;\n  }" { (return_statement "return (Fts5Data *)0x0;" return (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "psVar2 = p->pReader;" (assignment_expression "psVar2 = p->pReader" identifier = (field_expression "p->pReader" identifier -> field_identifier)) ;) (if_statement "if (psVar2 == (sqlite3_blob *)0x0) {\nLAB_000f64f0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    psVar2 = p->pReader;\n    if (psVar2 != (sqlite3_blob *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    p->pReader = (sqlite3_blob *)0x0;\n    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));\n    if (iVar1 == 0) {\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;\n    local_24 = *(int *)psVar2;\n  }" if (parenthesized_expression "(psVar2 == (sqlite3_blob *)0x0)" ( (binary_expression "psVar2 == (sqlite3_blob *)0x0" identifier == (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000f64f0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    psVar2 = p->pReader;\n    if (psVar2 != (sqlite3_blob *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }" { (labeled_statement "LAB_000f64f0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader);" statement_identifier : (expression_statement "iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader);" (assignment_expression "iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader)" identifier = (call_expression "sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader)" identifier (argument_list "(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,\n                              (char *)((int)ppuVar3 + -0x5a641),CONCAT44(in_ECX,in_EDX),0,\n                              &p->pReader)" ( (field_expression "p->pConfig->db" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) , (field_expression "p->pConfig->zDb" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier) , (field_expression "p->zDataTbl" identifier -> field_identifier) , (cast_expression "(char *)((int)ppuVar3 + -0x5a641)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)ppuVar3 + -0x5a641)" ( (binary_expression "(int)ppuVar3 + -0x5a641" (cast_expression "(int)ppuVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (call_expression "CONCAT44(in_ECX,in_EDX)" identifier (argument_list "(in_ECX,in_EDX)" ( identifier , identifier ))) , number_literal , (pointer_expression "&p->pReader" & (field_expression "p->pReader" identifier -> field_identifier)) )))) ;)) (if_statement "if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" { (labeled_statement "LAB_000f651c:\n      iVar1 = 0x10b;" statement_identifier : (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;)) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 0) goto LAB_000f6523;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;)) (labeled_statement "LAB_000f641a:\n    psVar2 = p->pReader;" statement_identifier : (expression_statement "psVar2 = p->pReader;" (assignment_expression "psVar2 = p->pReader" identifier = (field_expression "p->pReader" identifier -> field_identifier)) ;)) (if_statement "if (psVar2 != (sqlite3_blob *)0x0) goto LAB_000f6425;" if (parenthesized_expression "(psVar2 != (sqlite3_blob *)0x0)" ( (binary_expression "psVar2 != (sqlite3_blob *)0x0" identifier != (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f6425;" goto statement_identifier ;)) (labeled_statement "LAB_000f6538:\n    local_24 = 0;" statement_identifier : (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    p->pReader = (sqlite3_blob *)0x0;\n    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));\n    if (iVar1 == 0) {\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;\n    local_24 = *(int *)psVar2;\n  }" else (compound_statement "{\n    p->pReader = (sqlite3_blob *)0x0;\n    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));\n    if (iVar1 == 0) {\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;\n    local_24 = *(int *)psVar2;\n  }" { (expression_statement "p->pReader = (sqlite3_blob *)0x0;" (assignment_expression "p->pReader = (sqlite3_blob *)0x0" (field_expression "p->pReader" identifier -> field_identifier) = (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));" (assignment_expression "iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX))" identifier = (call_expression "sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX))" identifier (argument_list "(psVar2,CONCAT44(in_ECX,in_EDX))" ( identifier , (call_expression "CONCAT44(in_ECX,in_EDX)" identifier (argument_list "(in_ECX,in_EDX)" ( identifier , identifier ))) )))) ;) (if_statement "if (iVar1 == 0) {\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      p->pReader = psVar2;\n      goto LAB_000f641a;\n    }" { (expression_statement "p->pReader = psVar2;" (assignment_expression "p->pReader = psVar2" (field_expression "p->pReader" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_000f641a;" goto statement_identifier ;) })) (expression_statement "p->pReader = (sqlite3_blob *)0x0;" (assignment_expression "p->pReader = (sqlite3_blob *)0x0" (field_expression "p->pReader" identifier -> field_identifier) = (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_blob_close(psVar2);" (call_expression "sqlite3_blob_close(psVar2)" identifier (argument_list "(psVar2)" ( identifier ))) ;) (if_statement "if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" { (if_statement "if (iVar1 != 1) goto LAB_000f6523;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;)) (goto_statement "goto LAB_000f651c;" goto statement_identifier ;) })) (expression_statement "psVar2 = p->pReader;" (assignment_expression "psVar2 = p->pReader" identifier = (field_expression "p->pReader" identifier -> field_identifier)) ;) (if_statement "if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000f64f0;" if (parenthesized_expression "(psVar2 == (sqlite3_blob *)0x0)" ( (binary_expression "psVar2 == (sqlite3_blob *)0x0" identifier == (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f64f0;" goto statement_identifier ;)) (labeled_statement "LAB_000f6425:\n    if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;" statement_identifier : (if_statement "if (*(int *)(psVar2 + 0x10) == 0) goto LAB_000f6538;" if (parenthesized_expression "(*(int *)(psVar2 + 0x10) == 0)" ( (binary_expression "*(int *)(psVar2 + 0x10) == 0" (pointer_expression "*(int *)(psVar2 + 0x10)" * (cast_expression "(int *)(psVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar2 + 0x10)" ( (binary_expression "psVar2 + 0x10" identifier + number_literal) )))) == number_literal) )) (goto_statement "goto LAB_000f6538;" goto statement_identifier ;))) (expression_statement "local_24 = *(int *)psVar2;" (assignment_expression "local_24 = *(int *)psVar2" identifier = (pointer_expression "*(int *)psVar2" * (cast_expression "(int *)psVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (expression_statement "iVar1 = sqlite3_initialize();" (assignment_expression "iVar1 = sqlite3_initialize()" identifier = (call_expression "sqlite3_initialize()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar1 == 0) &&\n     (p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0\n     )) {\n    p_00->nn = local_24;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106));\n    if (iVar1 == 0) {\n      p_00->p[local_24] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      p->nRead = p->nRead + 1;\n      p->rc = 0;\n      return p_00;\n    }\n  }\n  else {\n    p_00 = (Fts5Data *)0x0;\n    iVar1 = 7;\n  }" if (parenthesized_expression "((iVar1 == 0) &&\n     (p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0\n     ))" ( (binary_expression "(iVar1 == 0) &&\n     (p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0\n     )" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0\n     )" ( (comma_expression "p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4)), p_00 != (Fts5Data *)0x0" (assignment_expression "p_00 = (Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4))" identifier = (cast_expression "(Fts5Data *)sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4))" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(CONCAT44(ppuVar3,in_stack_ffffffd4))" identifier (argument_list "(CONCAT44(ppuVar3,in_stack_ffffffd4))" ( (call_expression "CONCAT44(ppuVar3,in_stack_ffffffd4)" identifier (argument_list "(ppuVar3,in_stack_ffffffd4)" ( identifier , identifier ))) ))))) , (binary_expression "p_00 != (Fts5Data *)0x0" identifier != (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    p_00->nn = local_24;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106));\n    if (iVar1 == 0) {\n      p_00->p[local_24] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      p->nRead = p->nRead + 1;\n      p->rc = 0;\n      return p_00;\n    }\n  }" { (expression_statement "p_00->nn = local_24;" (assignment_expression "p_00->nn = local_24" (field_expression "p_00->nn" identifier -> field_identifier) = identifier) ;) (expression_statement "p_00->p = (u8 *)(p_00 + 1);" (assignment_expression "p_00->p = (u8 *)(p_00 + 1)" (field_expression "p_00->p" identifier -> field_identifier) = (cast_expression "(u8 *)(p_00 + 1)" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p_00 + 1)" ( (binary_expression "p_00 + 1" identifier + number_literal) )))) ;) (expression_statement "iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106));" (assignment_expression "iVar1 = blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106))" identifier = (call_expression "blobReadWrite(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106))" identifier (argument_list "(p->pReader,p_00 + 1,local_24,0,\n                          (_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106))" ( (field_expression "p->pReader" identifier -> field_identifier) , (binary_expression "p_00 + 1" identifier + number_literal) , identifier , number_literal , (cast_expression "(_func_int_BtCursor_ptr_u32_u32_void_ptr *)(ppuVar3 + -0x36106)" ( (type_descriptor "_func_int_BtCursor_ptr_u32_u32_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(ppuVar3 + -0x36106)" ( (binary_expression "ppuVar3 + -0x36106" identifier + number_literal) ))) )))) ;) (if_statement "if (iVar1 == 0) {\n      p_00->p[local_24] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      p->nRead = p->nRead + 1;\n      p->rc = 0;\n      return p_00;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      p_00->p[local_24] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      p->nRead = p->nRead + 1;\n      p->rc = 0;\n      return p_00;\n    }" { (expression_statement "p_00->p[local_24] = '\0';" (assignment_expression "p_00->p[local_24] = '\0'" (subscript_expression "p_00->p[local_24]" (field_expression "p_00->p" identifier -> field_identifier) [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);" (assignment_expression "p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3])" (field_expression "p_00->szLeaf" identifier -> field_identifier) = (cast_expression "(uint)CONCAT11(p_00->p[2],p_00->p[3])" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(p_00->p[2],p_00->p[3])" identifier (argument_list "(p_00->p[2],p_00->p[3])" ( (subscript_expression "p_00->p[2]" (field_expression "p_00->p" identifier -> field_identifier) [ number_literal ]) , (subscript_expression "p_00->p[3]" (field_expression "p_00->p" identifier -> field_identifier) [ number_literal ]) ))))) ;) (expression_statement "p->nRead = p->nRead + 1;" (assignment_expression "p->nRead = p->nRead + 1" (field_expression "p->nRead" identifier -> field_identifier) = (binary_expression "p->nRead + 1" (field_expression "p->nRead" identifier -> field_identifier) + number_literal)) ;) (expression_statement "p->rc = 0;" (assignment_expression "p->rc = 0" (field_expression "p->rc" identifier -> field_identifier) = number_literal) ;) (return_statement "return p_00;" return identifier ;) })) }) (else_clause "else {\n    p_00 = (Fts5Data *)0x0;\n    iVar1 = 7;\n  }" else (compound_statement "{\n    p_00 = (Fts5Data *)0x0;\n    iVar1 = 7;\n  }" { (expression_statement "p_00 = (Fts5Data *)0x0;" (assignment_expression "p_00 = (Fts5Data *)0x0" identifier = (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }))) (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) (labeled_statement "LAB_000f6523:\n  p->rc = iVar1;" statement_identifier : (expression_statement "p->rc = iVar1;" (assignment_expression "p->rc = iVar1" (field_expression "p->rc" identifier -> field_identifier) = identifier) ;)) (expression_statement "p->nRead = p->nRead + 1;" (assignment_expression "p->nRead = p->nRead + 1" (field_expression "p->nRead" identifier -> field_identifier) = (binary_expression "p->nRead + 1" (field_expression "p->nRead" identifier -> field_identifier) + number_literal)) ;) (return_statement "return (Fts5Data *)0x0;" return (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int * __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (if_statement "if (param_1[8] != 0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(param_1[8] != 0)" ( (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar2 = param_1[9];" (assignment_expression "iVar2 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;) (if_statement "if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }" { (labeled_statement "LAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" statement_identifier : (expression_statement "iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (assignment_expression "iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" identifier = (call_expression "FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" identifier (argument_list "(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" ( (pointer_expression "*(undefined4 *)*param_1" * (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) , (subscript_expression "((undefined4 *)*param_1)[1]" (parenthesized_expression "((undefined4 *)*param_1)" ( (cast_expression "(undefined4 *)*param_1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )) [ number_literal ]) , (subscript_expression "param_1[1]" identifier [ number_literal ]) , (string_literal ""block"" " string_content ") , identifier , identifier , number_literal , (binary_expression "param_1 + 9" identifier + number_literal) )))) ;)) (if_statement "if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" { (labeled_statement "LAB_000f651c:\n      iVar1 = 0x10b;" statement_identifier : (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;)) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 0) goto LAB_000f6523;" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;)) (labeled_statement "LAB_000f641a:\n    piVar3 = (int *)param_1[9];" statement_identifier : (expression_statement "piVar3 = (int *)param_1[9];" (assignment_expression "piVar3 = (int *)param_1[9]" identifier = (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) ;)) (if_statement "if (piVar3 != (int *)0x0) goto LAB_000f6425;" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f6425;" goto statement_identifier ;)) (labeled_statement "LAB_000f6538:\n    local_24 = 0;" statement_identifier : (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;)) }) (else_clause "else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" else (compound_statement "{\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" { (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = FUN_000f0130(iVar2,param_2,param_3);" (assignment_expression "iVar1 = FUN_000f0130(iVar2,param_2,param_3)" identifier = (call_expression "FUN_000f0130(iVar2,param_2,param_3)" identifier (argument_list "(iVar2,param_2,param_3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }" { (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_000f641a;" goto statement_identifier ;) })) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_000a9830(iVar2);" (call_expression "FUN_000a9830(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" { (if_statement "if (iVar1 != 1) goto LAB_000f6523;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_000f6523;" goto statement_identifier ;)) (goto_statement "goto LAB_000f651c;" goto statement_identifier ;) })) (expression_statement "piVar3 = (int *)param_1[9];" (assignment_expression "piVar3 = (int *)param_1[9]" identifier = (cast_expression "(int *)param_1[9]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[9]" identifier [ number_literal ]))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_000f64f0;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000f64f0;" goto statement_identifier ;)) (labeled_statement "LAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;" statement_identifier : (if_statement "if (piVar3[4] == 0) goto LAB_000f6538;" if (parenthesized_expression "(piVar3[4] == 0)" ( (binary_expression "piVar3[4] == 0" (subscript_expression "piVar3[4]" identifier [ number_literal ]) == number_literal) )) (goto_statement "goto LAB_000f6538;" goto statement_identifier ;))) (expression_statement "local_24 = *piVar3;" (assignment_expression "local_24 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) }))) (expression_statement "iVar2 = FUN_0005b490();" (assignment_expression "iVar2 = FUN_0005b490()" identifier = (call_expression "FUN_0005b490()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" if (parenthesized_expression "((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0))" ( (binary_expression "(iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)" ( (comma_expression "piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0" (assignment_expression "piVar3 = (int *)FUN_000421f0()" identifier = (cast_expression "(int *)FUN_000421f0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000421f0()" identifier (argument_list "()" ( ))))) , (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }" { (expression_statement "piVar3[1] = local_24;" (assignment_expression "piVar3[1] = local_24" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar3 = (int)(piVar3 + 3);" (assignment_expression "*piVar3 = (int)(piVar3 + 3)" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)(piVar3 + 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 3)" ( (binary_expression "piVar3 + 3" identifier + number_literal) )))) ;) (expression_statement "iVar1 = FUN_000ab210(0,FUN_000a3a10);" (assignment_expression "iVar1 = FUN_000ab210(0,FUN_000a3a10)" identifier = (call_expression "FUN_000ab210(0,FUN_000a3a10)" identifier (argument_list "(0,FUN_000a3a10)" ( number_literal , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }" { (expression_statement "*(undefined1 *)(*piVar3 + local_24) = 0;" (assignment_expression "*(undefined1 *)(*piVar3 + local_24) = 0" (pointer_expression "*(undefined1 *)(*piVar3 + local_24)" * (cast_expression "(undefined1 *)(*piVar3 + local_24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + local_24)" ( (binary_expression "*piVar3 + local_24" (pointer_expression "*piVar3" * identifier) + identifier) )))) = number_literal) ;) (expression_statement "piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));" (assignment_expression "piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" (subscript_expression "piVar3[2]" identifier [ number_literal ]) = (cast_expression "(uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" identifier (argument_list "(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" ( (pointer_expression "*(undefined1 *)(*piVar3 + 2)" * (cast_expression "(undefined1 *)(*piVar3 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 2)" ( (binary_expression "*piVar3 + 2" (pointer_expression "*piVar3" * identifier) + number_literal) )))) , (pointer_expression "*(undefined1 *)(*piVar3 + 3)" * (cast_expression "(undefined1 *)(*piVar3 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 3)" ( (binary_expression "*piVar3 + 3" (pointer_expression "*piVar3" * identifier) + number_literal) )))) ))))) ;) (expression_statement "param_1[0xf] = param_1[0xf] + 1;" (assignment_expression "param_1[0xf] = param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = (binary_expression "param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[8] = 0;" (assignment_expression "param_1[8] = 0" (subscript_expression "param_1[8]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return piVar3;" return identifier ;) })) }) (else_clause "else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" else (compound_statement "{\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" { (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }))) (expression_statement "FUN_00042800(piVar3);" (call_expression "FUN_00042800(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (labeled_statement "LAB_000f6523:\n  param_1[8] = iVar1;" statement_identifier : (expression_statement "param_1[8] = iVar1;" (assignment_expression "param_1[8] = iVar1" (subscript_expression "param_1[8]" identifier [ number_literal ]) = identifier) ;)) (expression_statement "param_1[0xf] = param_1[0xf] + 1;" (assignment_expression "param_1[0xf] = param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) = (binary_expression "param_1[0xf] + 1" (subscript_expression "param_1[0xf]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) , (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )) [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (string_literal " string_content ") , IDENT , IDENT , LIT , (binary_expression IDENT + LIT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000f63c0(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000f63c0") (parameter_list "(int *param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  int local_24;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }\n  iVar2 = FUN_0005b490();\n  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }\n  FUN_00042800(piVar3);\nLAB_000f6523:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return (int *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (if_statement "if (param_1[8] != 0) {\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(param_1[8] != 0)" (( "(") (binary_expression "param_1[8] != 0" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return (int *)0x0;\n  }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar2 = param_1[9];" (assignment_expression "iVar2 = param_1[9]" (identifier "iVar2") (= "=") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]"))) (; ";")) (if_statement "if (iVar2 == 0) {\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);\n    if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }\n    if (iVar1 != 0) goto LAB_000f6523;\nLAB_000f641a:\n    piVar3 = (int *)param_1[9];\n    if (piVar3 != (int *)0x0) goto LAB_000f6425;\nLAB_000f6538:\n    local_24 = 0;\n  }" ({ "{") (labeled_statement "LAB_000f64f0:\n    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (statement_identifier "LAB_000f64f0") (: ":") (expression_statement "iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (assignment_expression "iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" (identifier "iVar1") (= "=") (call_expression "FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" (identifier "FUN_000ef970") (argument_list "(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" (( "(") (pointer_expression "*(undefined4 *)*param_1" (* "*") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (, ",") (subscript_expression "((undefined4 *)*param_1)[1]" (parenthesized_expression "((undefined4 *)*param_1)" (( "(") (cast_expression "(undefined4 *)*param_1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")) ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (string_literal ""block"" (" """) (string_content "block") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (; ";"))) (if_statement "if (iVar1 == 1) {\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\nLAB_000f651c:\n      iVar1 = 0x10b;\n      goto LAB_000f6523;\n    }" ({ "{") (labeled_statement "LAB_000f651c:\n      iVar1 = 0x10b;" (statement_identifier "LAB_000f651c") (: ":") (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" (identifier "iVar1") (= "=") (number_literal "0x10b")) (; ";"))) (goto_statement "goto LAB_000f6523;" (goto "goto") (statement_identifier "LAB_000f6523") (; ";")) (} "}"))) (if_statement "if (iVar1 != 0) goto LAB_000f6523;" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f6523;" (goto "goto") (statement_identifier "LAB_000f6523") (; ";"))) (labeled_statement "LAB_000f641a:\n    piVar3 = (int *)param_1[9];" (statement_identifier "LAB_000f641a") (: ":") (expression_statement "piVar3 = (int *)param_1[9];" (assignment_expression "piVar3 = (int *)param_1[9]" (identifier "piVar3") (= "=") (cast_expression "(int *)param_1[9]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")))) (; ";"))) (if_statement "if (piVar3 != (int *)0x0) goto LAB_000f6425;" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000f6425;" (goto "goto") (statement_identifier "LAB_000f6425") (; ";"))) (labeled_statement "LAB_000f6538:\n    local_24 = 0;" (statement_identifier "LAB_000f6538") (: ":") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";"))) (} "}")) (else_clause "else {\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" (else "else") (compound_statement "{\n    param_1[9] = 0;\n    iVar1 = FUN_000f0130(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }\n    param_1[9] = 0;\n    FUN_000a9830(iVar2);\n    if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }\n    piVar3 = (int *)param_1[9];\n    if (piVar3 == (int *)0x0) goto LAB_000f64f0;\nLAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;\n    local_24 = *piVar3;\n  }" ({ "{") (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_000f0130(iVar2,param_2,param_3);" (assignment_expression "iVar1 = FUN_000f0130(iVar2,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_000f0130(iVar2,param_2,param_3)" (identifier "FUN_000f0130") (argument_list "(iVar2,param_2,param_3)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_1[9] = iVar2;\n      goto LAB_000f641a;\n    }" ({ "{") (expression_statement "param_1[9] = iVar2;" (assignment_expression "param_1[9] = iVar2" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (goto_statement "goto LAB_000f641a;" (goto "goto") (statement_identifier "LAB_000f641a") (; ";")) (} "}"))) (expression_statement "param_1[9] = 0;" (assignment_expression "param_1[9] = 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000a9830(iVar2);" (call_expression "FUN_000a9830(iVar2)" (identifier "FUN_000a9830") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (iVar1 != 4) {\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" (if "if") (parenthesized_expression "(iVar1 != 4)" (( "(") (binary_expression "iVar1 != 4" (identifier "iVar1") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n      if (iVar1 != 1) goto LAB_000f6523;\n      goto LAB_000f651c;\n    }" ({ "{") (if_statement "if (iVar1 != 1) goto LAB_000f6523;" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_000f6523;" (goto "goto") (statement_identifier "LAB_000f6523") (; ";"))) (goto_statement "goto LAB_000f651c;" (goto "goto") (statement_identifier "LAB_000f651c") (; ";")) (} "}"))) (expression_statement "piVar3 = (int *)param_1[9];" (assignment_expression "piVar3 = (int *)param_1[9]" (identifier "piVar3") (= "=") (cast_expression "(int *)param_1[9]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) goto LAB_000f64f0;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000f64f0;" (goto "goto") (statement_identifier "LAB_000f64f0") (; ";"))) (labeled_statement "LAB_000f6425:\n    if (piVar3[4] == 0) goto LAB_000f6538;" (statement_identifier "LAB_000f6425") (: ":") (if_statement "if (piVar3[4] == 0) goto LAB_000f6538;" (if "if") (parenthesized_expression "(piVar3[4] == 0)" (( "(") (binary_expression "piVar3[4] == 0" (subscript_expression "piVar3[4]" (identifier "piVar3") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000f6538;" (goto "goto") (statement_identifier "LAB_000f6538") (; ";")))) (expression_statement "local_24 = *piVar3;" (assignment_expression "local_24 = *piVar3" (identifier "local_24") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_0005b490();" (assignment_expression "iVar2 = FUN_0005b490()" (identifier "iVar2") (= "=") (call_expression "FUN_0005b490()" (identifier "FUN_0005b490") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }\n  else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" (if "if") (parenthesized_expression "((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0))" (( "(") (binary_expression "(iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)" (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)" (( "(") (comma_expression "piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0" (assignment_expression "piVar3 = (int *)FUN_000421f0()" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_000421f0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000421f0()" (identifier "FUN_000421f0") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    piVar3[1] = local_24;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_000ab210(0,FUN_000a3a10);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }\n  }" ({ "{") (expression_statement "piVar3[1] = local_24;" (assignment_expression "piVar3[1] = local_24" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*piVar3 = (int)(piVar3 + 3);" (assignment_expression "*piVar3 = (int)(piVar3 + 3)" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (cast_expression "(int)(piVar3 + 3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar3 + 3)" (( "(") (binary_expression "piVar3 + 3" (identifier "piVar3") (+ "+") (number_literal "3")) () ")")))) (; ";")) (expression_statement "iVar1 = FUN_000ab210(0,FUN_000a3a10);" (assignment_expression "iVar1 = FUN_000ab210(0,FUN_000a3a10)" (identifier "iVar1") (= "=") (call_expression "FUN_000ab210(0,FUN_000a3a10)" (identifier "FUN_000ab210") (argument_list "(0,FUN_000a3a10)" (( "(") (number_literal "0") (, ",") (identifier "FUN_000a3a10") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)(*piVar3 + local_24) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      param_1[0xf] = param_1[0xf] + 1;\n      param_1[8] = 0;\n      return piVar3;\n    }" ({ "{") (expression_statement "*(undefined1 *)(*piVar3 + local_24) = 0;" (assignment_expression "*(undefined1 *)(*piVar3 + local_24) = 0" (pointer_expression "*(undefined1 *)(*piVar3 + local_24)" (* "*") (cast_expression "(undefined1 *)(*piVar3 + local_24)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + local_24)" (( "(") (binary_expression "*piVar3 + local_24" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (identifier "local_24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));" (assignment_expression "piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" (identifier "CONCAT11") (argument_list "(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3))" (( "(") (pointer_expression "*(undefined1 *)(*piVar3 + 2)" (* "*") (cast_expression "(undefined1 *)(*piVar3 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + 2)" (( "(") (binary_expression "*piVar3 + 2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "2")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)(*piVar3 + 3)" (* "*") (cast_expression "(undefined1 *)(*piVar3 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + 3)" (( "(") (binary_expression "*piVar3 + 3" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "3")) () ")")))) () ")"))))) (; ";")) (expression_statement "param_1[0xf] = param_1[0xf] + 1;" (assignment_expression "param_1[0xf] = param_1[0xf] + 1" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (binary_expression "param_1[0xf] + 1" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[8] = 0;" (assignment_expression "param_1[8] = 0" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" (else "else") (compound_statement "{\n    piVar3 = (int *)0x0;\n    iVar1 = 7;\n  }" ({ "{") (expression_statement "piVar3 = (int *)0x0;" (assignment_expression "piVar3 = (int *)0x0" (identifier "piVar3") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" (identifier "iVar1") (= "=") (number_literal "7")) (; ";")) (} "}")))) (expression_statement "FUN_00042800(piVar3);" (call_expression "FUN_00042800(piVar3)" (identifier "FUN_00042800") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (labeled_statement "LAB_000f6523:\n  param_1[8] = iVar1;" (statement_identifier "LAB_000f6523") (: ":") (expression_statement "param_1[8] = iVar1;" (assignment_expression "param_1[8] = iVar1" (subscript_expression "param_1[8]" (identifier "param_1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "iVar1")) (; ";"))) (expression_statement "param_1[0xf] = param_1[0xf] + 1;" (assignment_expression "param_1[0xf] = param_1[0xf] + 1" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (binary_expression "param_1[0xf] + 1" (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

type_2 * __regparm3 fts5DataRead(Fts5Index *p,i64 iRowid)

{
  int var_4;
  type_1 *var_1;
  type_2 *var_9;
  type_3 in_ECX;
  type_3 in_EDX;
  type_4 **var_11;
  type_3 in_stack_ffffffd4;
  int local_24;
  
  var_11 = &_GLOBAL_OFFSET_TABLE_;
  if (p->rc != 0) {
    return (type_2 *)0x0;
  }
  var_1 = p->pReader;
  if (var_1 == (type_1 *)0x0) {
LAB_000f64f0:
    var_4 = var_2(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,
                              (char *)((int)var_11 + -0x5a641),var_3(in_ECX,in_EDX),0,
                              &p->pReader);
    if (var_4 == 1) {
LAB_000f651c:
      var_4 = 0x10b;
      goto LAB_000f6523;
    }
    if (var_4 != 0) goto LAB_000f6523;
LAB_000f641a:
    var_1 = p->pReader;
    if (var_1 != (type_1 *)0x0) goto LAB_000f6425;
LAB_000f6538:
    local_24 = 0;
  }
  else {
    p->pReader = (type_1 *)0x0;
    var_4 = var_5(var_1,var_3(in_ECX,in_EDX));
    if (var_4 == 0) {
      p->pReader = var_1;
      goto LAB_000f641a;
    }
    p->pReader = (type_1 *)0x0;
    var_6(var_1);
    if (var_4 != 4) {
      if (var_4 != 1) goto LAB_000f6523;
      goto LAB_000f651c;
    }
    var_1 = p->pReader;
    if (var_1 == (type_1 *)0x0) goto LAB_000f64f0;
LAB_000f6425:
    if (*(int *)(var_1 + 0x10) == 0) goto LAB_000f6538;
    local_24 = *(int *)var_1;
  }
  var_4 = var_7();
  if ((var_4 == 0) &&
     (var_9 = (type_2 *)var_8(var_3(var_11,in_stack_ffffffd4)), var_9 != (type_2 *)0x0
     )) {
    var_9->nn = local_24;
    var_9->p = (type_5 *)(var_9 + 1);
    var_4 = var_10(p->pReader,var_9 + 1,local_24,0,
                          (type_6 *)(var_11 + -0x36106));
    if (var_4 == 0) {
      var_9->p[local_24] = '\0';
      var_9->szLeaf = (type_7)var_12(var_9->p[2],var_9->p[3]);
      p->nRead = p->nRead + 1;
      p->rc = 0;
      return var_9;
    }
  }
  else {
    var_9 = (type_2 *)0x0;
    var_4 = 7;
  }
  var_13(var_9);
LAB_000f6523:
  p->rc = var_4;
  p->nRead = p->nRead + 1;
  return (type_2 *)0x0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int * __regparm3 MASKED(int *param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  int local_24;
  
  if (param_1[8] != 0) {
    return (int *)0x0;
  }
  iVar2 = param_1[9];
  if (iVar2 == 0) {
LAB_000f64f0:
    iVar1 = FUN_000ef970(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",
                         param_2,param_3,0,param_1 + 9);
    if (iVar1 == 1) {
LAB_000f651c:
      iVar1 = 0x10b;
      goto LAB_000f6523;
    }
    if (iVar1 != 0) goto LAB_000f6523;
LAB_000f641a:
    piVar3 = (int *)param_1[9];
    if (piVar3 != (int *)0x0) goto LAB_000f6425;
LAB_000f6538:
    local_24 = 0;
  }
  else {
    param_1[9] = 0;
    iVar1 = FUN_000f0130(iVar2,param_2,param_3);
    if (iVar1 == 0) {
      param_1[9] = iVar2;
      goto LAB_000f641a;
    }
    param_1[9] = 0;
    FUN_000a9830(iVar2);
    if (iVar1 != 4) {
      if (iVar1 != 1) goto LAB_000f6523;
      goto LAB_000f651c;
    }
    piVar3 = (int *)param_1[9];
    if (piVar3 == (int *)0x0) goto LAB_000f64f0;
LAB_000f6425:
    if (piVar3[4] == 0) goto LAB_000f6538;
    local_24 = *piVar3;
  }
  iVar2 = FUN_0005b490();
  if ((iVar2 == 0) && (piVar3 = (int *)FUN_000421f0(), piVar3 != (int *)0x0)) {
    piVar3[1] = local_24;
    *piVar3 = (int)(piVar3 + 3);
    iVar1 = FUN_000ab210(0,FUN_000a3a10);
    if (iVar1 == 0) {
      *(undefined1 *)(*piVar3 + local_24) = 0;
      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));
      param_1[0xf] = param_1[0xf] + 1;
      param_1[8] = 0;
      return piVar3;
    }
  }
  else {
    piVar3 = (int *)0x0;
    iVar1 = 7;
  }
  FUN_00042800(piVar3);
LAB_000f6523:
  param_1[8] = iVar1;
  param_1[0xf] = param_1[0xf] + 1;
  return (int *)0x0;
}

