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

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

{
  int iVar1;
  sqlite3_blob *psVar2;
  int n;
  Fts5Data *p_00;
  undefined4 in_ECX;
  undefined4 in_EDX;
  
  if (p->rc != 0) {
    return (Fts5Data *)0x0;
  }
  psVar2 = p->pReader;
  if (psVar2 == (sqlite3_blob *)0x0) {
LAB_000d65a0:
    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",
                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);
    if (iVar1 == 1) {
LAB_000d65c8:
      iVar1 = 0x10b;
      p_00 = (Fts5Data *)0x0;
      goto LAB_000d65cf;
    }
    if (iVar1 != 0) {
      p_00 = (Fts5Data *)0x0;
      goto LAB_000d65cf;
    }
LAB_000d64f0:
    psVar2 = p->pReader;
  }
  else {
    p->pReader = (sqlite3_blob *)0x0;
    iVar1 = sqlite3_blob_reopen(psVar2,CONCAT44(in_ECX,in_EDX));
    if (iVar1 == 0) {
      p->pReader = psVar2;
      goto LAB_000d64f0;
    }
    p->pReader = (sqlite3_blob *)0x0;
    sqlite3_blob_close(psVar2);
    if (iVar1 != 4) {
      if (p->pReader == (sqlite3_blob *)0x0) {
        if (iVar1 != 1) {
          p_00 = (Fts5Data *)0x0;
          goto LAB_000d65cf;
        }
      }
      else if (iVar1 != 1) {
        p_00 = (Fts5Data *)0x0;
        goto LAB_000d65cf;
      }
      goto LAB_000d65c8;
    }
    psVar2 = p->pReader;
    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000d65a0;
  }
  n = sqlite3_blob_bytes(psVar2);
  p_00 = (Fts5Data *)sqlite3_malloc64((ulonglong)(n + 0x20));
  if (p_00 == (Fts5Data *)0x0) {
    iVar1 = 7;
  }
  else {
    p_00->nn = n;
    p_00->p = (u8 *)(p_00 + 1);
    iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);
    if (iVar1 == 0) {
      p_00->p[n] = '\0';
      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);
      goto LAB_000d65cf;
    }
  }
  sqlite3_free(p_00);
  p_00 = (Fts5Data *)0x0;
LAB_000d65cf:
  p->rc = iVar1;
  p->nRead = p->nRead + 1;
  return p_00;
}



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

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

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  if (param_1[8] != 0) {
    return (int *)0x0;
  }
  iVar2 = param_1[9];
  if (iVar2 == 0) {
LAB_000d65a0:
    iVar1 = FUN_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",
                         param_2,param_3,0,param_1 + 9);
    if (iVar1 == 1) {
LAB_000d65c8:
      iVar1 = 0x10b;
      piVar3 = (int *)0x0;
      goto LAB_000d65cf;
    }
    if (iVar1 != 0) {
      piVar3 = (int *)0x0;
      goto LAB_000d65cf;
    }
LAB_000d64f0:
    iVar2 = param_1[9];
  }
  else {
    param_1[9] = 0;
    iVar1 = FUN_000d6390(iVar2,param_2,param_3);
    if (iVar1 == 0) {
      param_1[9] = iVar2;
      goto LAB_000d64f0;
    }
    param_1[9] = 0;
    FUN_00089d60(iVar2);
    if (iVar1 != 4) {
      if (param_1[9] == 0) {
        if (iVar1 != 1) {
          piVar3 = (int *)0x0;
          goto LAB_000d65cf;
        }
      }
      else if (iVar1 != 1) {
        piVar3 = (int *)0x0;
        goto LAB_000d65cf;
      }
      goto LAB_000d65c8;
    }
    iVar2 = param_1[9];
    if (iVar2 == 0) goto LAB_000d65a0;
  }
  iVar2 = FUN_0001bd90(iVar2);
  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);
  if (piVar3 == (int *)0x0) {
    iVar1 = 7;
  }
  else {
    piVar3[1] = iVar2;
    *piVar3 = (int)(piVar3 + 3);
    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);
    if (iVar1 == 0) {
      *(undefined1 *)(*piVar3 + iVar2) = 0;
      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));
      goto LAB_000d65cf;
    }
  }
  FUN_00024cc0(piVar3);
  piVar3 = (int *)0x0;
LAB_000d65cf:
  param_1[8] = iVar1;
  param_1[0xf] = param_1[0xf] + 1;
  return piVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x72a2b
SUB ESP,0x1c
MOV ESI,dword ptr [EAX + 0x20]
TEST ESI,ESI
JNZ 0x000d65e0
MOV EBP,dword ptr [EAX + 0x24]
MOV ESI,EAX
TEST EBP,EBP
JZ 0x000d65a0
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 0x000d6390
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JNZ 0x000d6568
MOV dword ptr [ESI + 0x24],EBP
MOV EAX,dword ptr [ESI + 0x24]
LEA ESI,[ESI]
NOP
SUB ESP,0xc
PUSH EAX
CALL 0x0001bd90
MOV EBP,EAX
POP EAX
POP EDX
XOR EDX,EDX
LEA EAX,[EBP + 0x20]
PUSH EDX
PUSH EAX
CALL 0x0003f0c0
ADD ESP,0x10
MOV EDX,EAX
TEST EAX,EAX
JZ 0x000d6600
MOV dword ptr [EAX + 0x4],EBP
LEA EAX,[EAX + 0xc]
MOV dword ptr [ESP + 0x8],EDX
MOV dword ptr [EDX],EAX
PUSH 0x0
PUSH EBP
PUSH EAX
PUSH dword ptr [ESI + 0x24]
CALL 0x0008d380
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x8]
TEST EAX,EAX
MOV EDI,EAX
JNZ 0x000d6605
MOV EAX,dword ptr [EDX]
MOV byte ptr [EAX + EBP*0x1],0x0
MOV ECX,dword ptr [EDX]
MOVZX EAX,byte ptr [ECX + 0x2]
MOVZX ECX,byte ptr [ECX + 0x3]
SHL EAX,0x8
ADD EAX,ECX
MOVZX EAX,AX
MOV dword ptr [EDX + 0x8],EAX
JMP 0x000d65cf
SUB ESP,0xc
MOV dword ptr [ESI + 0x24],0x0
PUSH EBP
CALL 0x00089d60
ADD ESP,0x10
CMP EDI,0x4
JNZ 0x000d6615
MOV EAX,dword ptr [ESI + 0x24]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JNZ 0x000d64f8
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESI]
LEA EDI,[ESI + 0x24]
PUSH EDI
PUSH 0x0
PUSH ECX
PUSH EDX
LEA EDX,[EBX + 0xfffaf666]
PUSH EDX
PUSH dword ptr [ESI + 0x4]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [EAX]
CALL 0x000d59c0
ADD ESP,0x20
MOV EDI,EAX
CMP EAX,0x1
JNZ 0x000d65f0
MOV EDI,0x10b
XOR EDX,EDX
MOV dword ptr [ESI + 0x20],EDI
MOV EAX,EDX
ADD dword ptr [ESI + 0x3c],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0x1c
XOR EDX,EDX
POP EBX
MOV EAX,EDX
POP ESI
POP EDI
POP EBP
RET
TEST EAX,EAX
JZ 0x000d64f0
XOR EDX,EDX
JMP 0x000d65cf
MOV EDI,0x7
SUB ESP,0xc
PUSH EDX
CALL 0x00024cc0
ADD ESP,0x10
XOR EDX,EDX
JMP 0x000d65cf
MOV EDX,dword ptr [ESI + 0x24]
TEST EDX,EDX
JNZ 0x000d6623
CMP EDI,0x1
JZ 0x000d65c8
JMP 0x000d65cf
CMP EDI,0x1
JZ 0x000d65c8
XOR EDX,EDX
JMP 0x000d65cf
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}\n\n" comment (function_definition "int * __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000d64a0(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  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * 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_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }" { (labeled_statement "LAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (assignment_expression "iVar1 = FUN_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" identifier = (call_expression "FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" { (labeled_statement "LAB_000d65c8:\n      iVar1 = 0x10b;" statement_identifier : (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;)) (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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) (labeled_statement "LAB_000d64f0:\n    iVar2 = param_1[9];" statement_identifier : (expression_statement "iVar2 = param_1[9];" (assignment_expression "iVar2 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;)) }) (else_clause "else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }" else (compound_statement "{\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\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_000d6390(iVar2,param_2,param_3);" (assignment_expression "iVar1 = FUN_000d6390(iVar2,param_2,param_3)" identifier = (call_expression "FUN_000d6390(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_000d64f0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\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_000d64f0;" 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_00089d60(iVar2);" (call_expression "FUN_00089d60(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" { (if_statement "if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" if (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }" { (if_statement "if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) }) (else_clause "else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" else (if_statement "if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })))) (goto_statement "goto LAB_000d65c8;" goto statement_identifier ;) })) (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) goto LAB_000d65a0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000d65a0;" goto statement_identifier ;)) }))) (expression_statement "iVar2 = FUN_0001bd90(iVar2);" (assignment_expression "iVar2 = FUN_0001bd90(iVar2)" identifier = (call_expression "FUN_0001bd90(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);" (assignment_expression "piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0)" identifier = (cast_expression "(int *)FUN_0003f0c0(iVar2 + 0x20,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003f0c0(iVar2 + 0x20,0)" identifier (argument_list "(iVar2 + 0x20,0)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) , number_literal ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 7;\n  }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }) (else_clause "else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" else (compound_statement "{\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" { (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (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_0008d380(param_1[9],piVar3 + 3,iVar2,0);" (assignment_expression "iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0)" identifier = (call_expression "FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0)" identifier (argument_list "(param_1[9],piVar3 + 3,iVar2,0)" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) , (binary_expression "piVar3 + 3" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }" { (expression_statement "*(undefined1 *)(*piVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(*piVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(*piVar3 + iVar2)" * (cast_expression "(undefined1 *)(*piVar3 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + iVar2)" ( (binary_expression "*piVar3 + iVar2" (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) )))) ))))) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) }))) (expression_statement "FUN_00024cc0(piVar3);" (call_expression "FUN_00024cc0(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (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)) ;) (labeled_statement "LAB_000d65cf:\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 piVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nFts5Data * __regparm3 fts5DataRead(Fts5Index *p,i64 iRowid)\n\n{\n  int iVar1;\n  sqlite3_blob *psVar2;\n  int n;\n  Fts5Data *p_00;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  \n  if (p->rc != 0) {\n    return (Fts5Data *)0x0;\n  }\n  psVar2 = p->pReader;\n  if (psVar2 == (sqlite3_blob *)0x0) {\nLAB_000d65a0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);\n    if (iVar1 == 1) {\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    psVar2 = p->pReader;\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_000d64f0;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000d65a0;\n  }\n  n = sqlite3_blob_bytes(psVar2);\n  p_00 = (Fts5Data *)sqlite3_malloc64((ulonglong)(n + 0x20));\n  if (p_00 == (Fts5Data *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    p_00->nn = n;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);\n    if (iVar1 == 0) {\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }\n  }\n  sqlite3_free(p_00);\n  p_00 = (Fts5Data *)0x0;\nLAB_000d65cf:\n  p->rc = iVar1;\n  p->nRead = p->nRead + 1;\n  return p_00;\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  int n;\n  Fts5Data *p_00;\n  undefined4 in_ECX;\n  undefined4 in_EDX;\n  \n  if (p->rc != 0) {\n    return (Fts5Data *)0x0;\n  }\n  psVar2 = p->pReader;\n  if (psVar2 == (sqlite3_blob *)0x0) {\nLAB_000d65a0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);\n    if (iVar1 == 1) {\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    psVar2 = p->pReader;\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_000d64f0;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000d65a0;\n  }\n  n = sqlite3_blob_bytes(psVar2);\n  p_00 = (Fts5Data *)sqlite3_malloc64((ulonglong)(n + 0x20));\n  if (p_00 == (Fts5Data *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    p_00->nn = n;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);\n    if (iVar1 == 0) {\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }\n  }\n  sqlite3_free(p_00);\n  p_00 = (Fts5Data *)0x0;\nLAB_000d65cf:\n  p->rc = iVar1;\n  p->nRead = p->nRead + 1;\n  return p_00;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sqlite3_blob *psVar2;" type_identifier (pointer_declarator "*psVar2" * identifier) ;) (declaration "int n;" primitive_type 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 ;) (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_000d65a0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);\n    if (iVar1 == 1) {\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    psVar2 = p->pReader;\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_000d64f0;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000d65a0;\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_000d65a0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);\n    if (iVar1 == 1) {\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    psVar2 = p->pReader;\n  }" { (labeled_statement "LAB_000d65a0:\n    iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);" statement_identifier : (expression_statement "iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader);" (assignment_expression "iVar1 = sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader)" identifier = (call_expression "sqlite3_blob_open(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&p->pReader)" identifier (argument_list "(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",\n                              CONCAT44(in_ECX,in_EDX),0,&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) , (string_literal ""block"" " string_content ") , (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_000d65c8:\n      iVar1 = 0x10b;\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }" { (labeled_statement "LAB_000d65c8:\n      iVar1 = 0x10b;" statement_identifier : (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;)) (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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 0) {\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      p_00 = (Fts5Data *)0x0;\n      goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) (labeled_statement "LAB_000d64f0:\n    psVar2 = p->pReader;" statement_identifier : (expression_statement "psVar2 = p->pReader;" (assignment_expression "psVar2 = p->pReader" identifier = (field_expression "p->pReader" identifier -> field_identifier)) ;)) }) (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_000d64f0;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000d65a0;\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_000d64f0;\n    }\n    p->pReader = (sqlite3_blob *)0x0;\n    sqlite3_blob_close(psVar2);\n    if (iVar1 != 4) {\n      if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    psVar2 = p->pReader;\n    if (psVar2 == (sqlite3_blob *)0x0) goto LAB_000d65a0;\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_000d64f0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      p->pReader = psVar2;\n      goto LAB_000d64f0;\n    }" { (expression_statement "p->pReader = psVar2;" (assignment_expression "p->pReader = psVar2" (field_expression "p->pReader" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_000d64f0;" 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 (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n      if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" { (if_statement "if (p->pReader == (sqlite3_blob *)0x0) {\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }" if (parenthesized_expression "(p->pReader == (sqlite3_blob *)0x0)" ( (binary_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)) )) (compound_statement "{\n        if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }\n      }" { (if_statement "if (iVar1 != 1) {\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\n        }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n          p_00 = (Fts5Data *)0x0;\n          goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) }) (else_clause "else if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }" else (if_statement "if (iVar1 != 1) {\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\n      }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n        p_00 = (Fts5Data *)0x0;\n        goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })))) (goto_statement "goto LAB_000d65c8;" 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_000d65a0;" 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_000d65a0;" goto statement_identifier ;)) }))) (expression_statement "n = sqlite3_blob_bytes(psVar2);" (assignment_expression "n = sqlite3_blob_bytes(psVar2)" identifier = (call_expression "sqlite3_blob_bytes(psVar2)" identifier (argument_list "(psVar2)" ( identifier )))) ;) (expression_statement "p_00 = (Fts5Data *)sqlite3_malloc64((ulonglong)(n + 0x20));" (assignment_expression "p_00 = (Fts5Data *)sqlite3_malloc64((ulonglong)(n + 0x20))" identifier = (cast_expression "(Fts5Data *)sqlite3_malloc64((ulonglong)(n + 0x20))" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64((ulonglong)(n + 0x20))" identifier (argument_list "((ulonglong)(n + 0x20))" ( (call_expression "(ulonglong)(n + 0x20)" (parenthesized_expression "(ulonglong)" ( identifier )) (argument_list "(n + 0x20)" ( (binary_expression "n + 0x20" identifier + number_literal) ))) ))))) ;) (if_statement "if (p_00 == (Fts5Data *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    p_00->nn = n;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);\n    if (iVar1 == 0) {\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }\n  }" if (parenthesized_expression "(p_00 == (Fts5Data *)0x0)" ( (binary_expression "p_00 == (Fts5Data *)0x0" identifier == (cast_expression "(Fts5Data *)0x0" ( (type_descriptor "Fts5Data *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 7;\n  }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }) (else_clause "else {\n    p_00->nn = n;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);\n    if (iVar1 == 0) {\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }\n  }" else (compound_statement "{\n    p_00->nn = n;\n    p_00->p = (u8 *)(p_00 + 1);\n    iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);\n    if (iVar1 == 0) {\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }\n  }" { (expression_statement "p_00->nn = n;" (assignment_expression "p_00->nn = n" (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 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0);" (assignment_expression "iVar1 = sqlite3_blob_read(p->pReader,p_00 + 1,n,0)" identifier = (call_expression "sqlite3_blob_read(p->pReader,p_00 + 1,n,0)" identifier (argument_list "(p->pReader,p_00 + 1,n,0)" ( (field_expression "p->pReader" identifier -> field_identifier) , (binary_expression "p_00 + 1" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      p_00->p[n] = '\0';\n      p_00->szLeaf = (uint)CONCAT11(p_00->p[2],p_00->p[3]);\n      goto LAB_000d65cf;\n    }" { (expression_statement "p_00->p[n] = '\0';" (assignment_expression "p_00->p[n] = '\0'" (subscript_expression "p_00->p[n]" (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 ]) ))))) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) }))) (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) (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)) ;) (labeled_statement "LAB_000d65cf:\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 p_00;" return identifier ;) }))
(translation_unit "int * __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}\n\n" (function_definition "int * __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_000d64a0(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  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * 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_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }" { (labeled_statement "LAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (assignment_expression "iVar1 = FUN_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" identifier = (call_expression "FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" { (labeled_statement "LAB_000d65c8:\n      iVar1 = 0x10b;" statement_identifier : (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" identifier = number_literal) ;)) (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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) (labeled_statement "LAB_000d64f0:\n    iVar2 = param_1[9];" statement_identifier : (expression_statement "iVar2 = param_1[9];" (assignment_expression "iVar2 = param_1[9]" identifier = (subscript_expression "param_1[9]" identifier [ number_literal ])) ;)) }) (else_clause "else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }" else (compound_statement "{\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\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_000d6390(iVar2,param_2,param_3);" (assignment_expression "iVar1 = FUN_000d6390(iVar2,param_2,param_3)" identifier = (call_expression "FUN_000d6390(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_000d64f0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\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_000d64f0;" 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_00089d60(iVar2);" (call_expression "FUN_00089d60(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (if_statement "if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" { (if_statement "if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" if (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }" { (if_statement "if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) }) (else_clause "else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" else (if_statement "if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (compound_statement "{\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\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)) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })))) (goto_statement "goto LAB_000d65c8;" goto statement_identifier ;) })) (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) goto LAB_000d65a0;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000d65a0;" goto statement_identifier ;)) }))) (expression_statement "iVar2 = FUN_0001bd90(iVar2);" (assignment_expression "iVar2 = FUN_0001bd90(iVar2)" identifier = (call_expression "FUN_0001bd90(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);" (assignment_expression "piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0)" identifier = (cast_expression "(int *)FUN_0003f0c0(iVar2 + 0x20,0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0003f0c0(iVar2 + 0x20,0)" identifier (argument_list "(iVar2 + 0x20,0)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) , number_literal ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar1 = 7;\n  }" { (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" identifier = number_literal) ;) }) (else_clause "else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" else (compound_statement "{\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" { (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (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_0008d380(param_1[9],piVar3 + 3,iVar2,0);" (assignment_expression "iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0)" identifier = (call_expression "FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0)" identifier (argument_list "(param_1[9],piVar3 + 3,iVar2,0)" ( (subscript_expression "param_1[9]" identifier [ number_literal ]) , (binary_expression "piVar3 + 3" identifier + number_literal) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }" { (expression_statement "*(undefined1 *)(*piVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(*piVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(*piVar3 + iVar2)" * (cast_expression "(undefined1 *)(*piVar3 + iVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + iVar2)" ( (binary_expression "*piVar3 + iVar2" (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) )))) ))))) ;) (goto_statement "goto LAB_000d65cf;" goto statement_identifier ;) })) }))) (expression_statement "FUN_00024cc0(piVar3);" (call_expression "FUN_00024cc0(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) (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)) ;) (labeled_statement "LAB_000d65cf:\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 piVar3;" return identifier ;) })))
(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) ;) (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) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_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 = (subscript_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 (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })))) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 ( (subscript_expression IDENT [ LIT ]) , (binary_expression IDENT + LIT) , IDENT , LIT )))) ;) (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) )))) ))))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (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 IDENT ;) })))
(function_definition "int * __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000d64a0(int *param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_000d64a0") (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  \n  if (param_1[8] != 0) {\n    return (int *)0x0;\n  }\n  iVar2 = param_1[9];\n  if (iVar2 == 0) {\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }\n  iVar2 = FUN_0001bd90(iVar2);\n  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);\n  if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }\n  FUN_00024cc0(piVar3);\n  piVar3 = (int *)0x0;\nLAB_000d65cf:\n  param_1[8] = iVar1;\n  param_1[0xf] = param_1[0xf] + 1;\n  return piVar3;\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")) (; ";")) (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_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }\n  else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\n    if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }\nLAB_000d64f0:\n    iVar2 = param_1[9];\n  }" ({ "{") (labeled_statement "LAB_000d65a0:\n    iVar1 = FUN_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (statement_identifier "LAB_000d65a0") (: ":") (expression_statement "iVar1 = FUN_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9);" (assignment_expression "iVar1 = FUN_000d59c0(*(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_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",\n                         param_2,param_3,0,param_1 + 9)" (identifier "FUN_000d59c0") (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_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\nLAB_000d65c8:\n      iVar1 = 0x10b;\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" ({ "{") (labeled_statement "LAB_000d65c8:\n      iVar1 = 0x10b;" (statement_identifier "LAB_000d65c8") (: ":") (expression_statement "iVar1 = 0x10b;" (assignment_expression "iVar1 = 0x10b" (identifier "iVar1") (= "=") (number_literal "0x10b")) (; ";"))) (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"))) (; ";")) (goto_statement "goto LAB_000d65cf;" (goto "goto") (statement_identifier "LAB_000d65cf") (; ";")) (} "}"))) (if_statement "if (iVar1 != 0) {\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      piVar3 = (int *)0x0;\n      goto LAB_000d65cf;\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"))) (; ";")) (goto_statement "goto LAB_000d65cf;" (goto "goto") (statement_identifier "LAB_000d65cf") (; ";")) (} "}"))) (labeled_statement "LAB_000d64f0:\n    iVar2 = param_1[9];" (statement_identifier "LAB_000d64f0") (: ":") (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") (] "]"))) (; ";"))) (} "}")) (else_clause "else {\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\n  }" (else "else") (compound_statement "{\n    param_1[9] = 0;\n    iVar1 = FUN_000d6390(iVar2,param_2,param_3);\n    if (iVar1 == 0) {\n      param_1[9] = iVar2;\n      goto LAB_000d64f0;\n    }\n    param_1[9] = 0;\n    FUN_00089d60(iVar2);\n    if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }\n    iVar2 = param_1[9];\n    if (iVar2 == 0) goto LAB_000d65a0;\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_000d6390(iVar2,param_2,param_3);" (assignment_expression "iVar1 = FUN_000d6390(iVar2,param_2,param_3)" (identifier "iVar1") (= "=") (call_expression "FUN_000d6390(iVar2,param_2,param_3)" (identifier "FUN_000d6390") (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_000d64f0;\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_000d64f0;\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_000d64f0;" (goto "goto") (statement_identifier "LAB_000d64f0") (; ";")) (} "}"))) (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_00089d60(iVar2);" (call_expression "FUN_00089d60(iVar2)" (identifier "FUN_00089d60") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (if_statement "if (iVar1 != 4) {\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" (if "if") (parenthesized_expression "(iVar1 != 4)" (( "(") (binary_expression "iVar1 != 4" (identifier "iVar1") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n      if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }\n      goto LAB_000d65c8;\n    }" ({ "{") (if_statement "if (param_1[9] == 0) {\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }\n      else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" (if "if") (parenthesized_expression "(param_1[9] == 0)" (( "(") (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }\n      }" ({ "{") (if_statement "if (iVar1 != 1) {\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\n        }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n          piVar3 = (int *)0x0;\n          goto LAB_000d65cf;\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"))) (; ";")) (goto_statement "goto LAB_000d65cf;" (goto "goto") (statement_identifier "LAB_000d65cf") (; ";")) (} "}"))) (} "}")) (else_clause "else if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" (else "else") (if_statement "if (iVar1 != 1) {\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\n      }" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        piVar3 = (int *)0x0;\n        goto LAB_000d65cf;\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"))) (; ";")) (goto_statement "goto LAB_000d65cf;" (goto "goto") (statement_identifier "LAB_000d65cf") (; ";")) (} "}"))))) (goto_statement "goto LAB_000d65c8;" (goto "goto") (statement_identifier "LAB_000d65c8") (; ";")) (} "}"))) (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) goto LAB_000d65a0;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000d65a0;" (goto "goto") (statement_identifier "LAB_000d65a0") (; ";"))) (} "}")))) (expression_statement "iVar2 = FUN_0001bd90(iVar2);" (assignment_expression "iVar2 = FUN_0001bd90(iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_0001bd90(iVar2)" (identifier "FUN_0001bd90") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);" (assignment_expression "piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0003f0c0(iVar2 + 0x20,0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0003f0c0(iVar2 + 0x20,0)" (identifier "FUN_0003f0c0") (argument_list "(iVar2 + 0x20,0)" (( "(") (binary_expression "iVar2 + 0x20" (identifier "iVar2") (+ "+") (number_literal "0x20")) (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n    iVar1 = 7;\n  }\n  else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar1 = 7;\n  }" ({ "{") (expression_statement "iVar1 = 7;" (assignment_expression "iVar1 = 7" (identifier "iVar1") (= "=") (number_literal "7")) (; ";")) (} "}")) (else_clause "else {\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" (else "else") (compound_statement "{\n    piVar3[1] = iVar2;\n    *piVar3 = (int)(piVar3 + 3);\n    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);\n    if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }\n  }" ({ "{") (expression_statement "piVar3[1] = iVar2;" (assignment_expression "piVar3[1] = iVar2" (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (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_0008d380(param_1[9],piVar3 + 3,iVar2,0);" (assignment_expression "iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0)" (identifier "FUN_0008d380") (argument_list "(param_1[9],piVar3 + 3,iVar2,0)" (( "(") (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (, ",") (binary_expression "piVar3 + 3" (identifier "piVar3") (+ "+") (number_literal "3")) (, ",") (identifier "iVar2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined1 *)(*piVar3 + iVar2) = 0;\n      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));\n      goto LAB_000d65cf;\n    }" ({ "{") (expression_statement "*(undefined1 *)(*piVar3 + iVar2) = 0;" (assignment_expression "*(undefined1 *)(*piVar3 + iVar2) = 0" (pointer_expression "*(undefined1 *)(*piVar3 + iVar2)" (* "*") (cast_expression "(undefined1 *)(*piVar3 + iVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + iVar2)" (( "(") (binary_expression "*piVar3 + iVar2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (identifier "iVar2")) () ")")))) (= "=") (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")) () ")")))) () ")"))))) (; ";")) (goto_statement "goto LAB_000d65cf;" (goto "goto") (statement_identifier "LAB_000d65cf") (; ";")) (} "}"))) (} "}")))) (expression_statement "FUN_00024cc0(piVar3);" (call_expression "FUN_00024cc0(piVar3)" (identifier "FUN_00024cc0") (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (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"))) (; ";")) (labeled_statement "LAB_000d65cf:\n  param_1[8] = iVar1;" (statement_identifier "LAB_000d65cf") (: ":") (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 piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}")))

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

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

{
  int var_4;
  type_1 *var_1;
  int var_9;
  type_2 *var_10;
  type_3 in_ECX;
  type_3 in_EDX;
  
  if (p->rc != 0) {
    return (type_2 *)0x0;
  }
  var_1 = p->pReader;
  if (var_1 == (type_1 *)0x0) {
LAB_000d65a0:
    var_4 = var_2(p->pConfig->db,p->pConfig->zDb,p->zDataTbl,"block",
                              var_3(in_ECX,in_EDX),0,&p->pReader);
    if (var_4 == 1) {
LAB_000d65c8:
      var_4 = 0x10b;
      var_10 = (type_2 *)0x0;
      goto LAB_000d65cf;
    }
    if (var_4 != 0) {
      var_10 = (type_2 *)0x0;
      goto LAB_000d65cf;
    }
LAB_000d64f0:
    var_1 = p->pReader;
  }
  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_000d64f0;
    }
    p->pReader = (type_1 *)0x0;
    var_6(var_1);
    if (var_4 != 4) {
      if (p->pReader == (type_1 *)0x0) {
        if (var_4 != 1) {
          var_10 = (type_2 *)0x0;
          goto LAB_000d65cf;
        }
      }
      else if (var_4 != 1) {
        var_10 = (type_2 *)0x0;
        goto LAB_000d65cf;
      }
      goto LAB_000d65c8;
    }
    var_1 = p->pReader;
    if (var_1 == (type_1 *)0x0) goto LAB_000d65a0;
  }
  var_9 = var_7(var_1);
  var_10 = (type_2 *)var_8((ulonglong)(var_9 + 0x20));
  if (var_10 == (type_2 *)0x0) {
    var_4 = 7;
  }
  else {
    var_10->nn = var_9;
    var_10->p = (type_4 *)(var_10 + 1);
    var_4 = var_11(p->pReader,var_10 + 1,var_9,0);
    if (var_4 == 0) {
      var_10->p[var_9] = '\0';
      var_10->szLeaf = (type_5)var_12(var_10->p[2],var_10->p[3]);
      goto LAB_000d65cf;
    }
  }
  var_13(var_10);
  var_10 = (type_2 *)0x0;
LAB_000d65cf:
  p->rc = var_4;
  p->nRead = p->nRead + 1;
  return var_10;
}


(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))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (goto_statement label: (statement_identifier)))))) (goto_statement label: (statement_identifier)))) (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: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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: (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 (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal))))) (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)))))))))) (goto_statement label: (statement_identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (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 (identifier)))))

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

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

{
  int iVar1;
  int iVar2;
  int *piVar3;
  
  if (param_1[8] != 0) {
    return (int *)0x0;
  }
  iVar2 = param_1[9];
  if (iVar2 == 0) {
LAB_000d65a0:
    iVar1 = FUN_000d59c0(*(undefined4 *)*param_1,((undefined4 *)*param_1)[1],param_1[1],"block",
                         param_2,param_3,0,param_1 + 9);
    if (iVar1 == 1) {
LAB_000d65c8:
      iVar1 = 0x10b;
      piVar3 = (int *)0x0;
      goto LAB_000d65cf;
    }
    if (iVar1 != 0) {
      piVar3 = (int *)0x0;
      goto LAB_000d65cf;
    }
LAB_000d64f0:
    iVar2 = param_1[9];
  }
  else {
    param_1[9] = 0;
    iVar1 = FUN_000d6390(iVar2,param_2,param_3);
    if (iVar1 == 0) {
      param_1[9] = iVar2;
      goto LAB_000d64f0;
    }
    param_1[9] = 0;
    FUN_00089d60(iVar2);
    if (iVar1 != 4) {
      if (param_1[9] == 0) {
        if (iVar1 != 1) {
          piVar3 = (int *)0x0;
          goto LAB_000d65cf;
        }
      }
      else if (iVar1 != 1) {
        piVar3 = (int *)0x0;
        goto LAB_000d65cf;
      }
      goto LAB_000d65c8;
    }
    iVar2 = param_1[9];
    if (iVar2 == 0) goto LAB_000d65a0;
  }
  iVar2 = FUN_0001bd90(iVar2);
  piVar3 = (int *)FUN_0003f0c0(iVar2 + 0x20,0);
  if (piVar3 == (int *)0x0) {
    iVar1 = 7;
  }
  else {
    piVar3[1] = iVar2;
    *piVar3 = (int)(piVar3 + 3);
    iVar1 = FUN_0008d380(param_1[9],piVar3 + 3,iVar2,0);
    if (iVar1 == 0) {
      *(undefined1 *)(*piVar3 + iVar2) = 0;
      piVar3[2] = (uint)CONCAT11(*(undefined1 *)(*piVar3 + 2),*(undefined1 *)(*piVar3 + 3));
      goto LAB_000d65cf;
    }
  }
  FUN_00024cc0(piVar3);
  piVar3 = (int *)0x0;
LAB_000d65cf:
  param_1[8] = iVar1;
  param_1[0xf] = param_1[0xf] + 1;
  return piVar3;
}

