
void fts5WriteFlushLeaf(Fts5Index *p,Fts5SegWriter *pWriter)

{
  i64 iRowid;
  u8 *puVar1;
  int iVar2;
  int iVar3;
  code *pcVar4;
  int *piVar5;
  Fts5Buffer *pFVar6;
  
  pFVar6 = &(pWriter->writer).buf;
  piVar5 = &p->rc;
  iVar2 = (pWriter->writer).buf.n;
  puVar1 = (pWriter->writer).buf.p;
  puVar1[3] = (u8)iVar2;
  puVar1[2] = (u8)((uint)iVar2 >> 8);
  if (pWriter->bFirstTermInPage == '\0') {
    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);
    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);
  }
  else {
    if (pWriter->bFirstRowidInPage != '\0') {
      if (0 < (pWriter->aDlidx->buf).n) {
        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);
      }
    }
    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);
    pWriter->nEmpty = pWriter->nEmpty + 1;
  }
  iRowid._0_4_ = (pWriter->writer).buf.p;
  iRowid._4_4_ = (pWriter->writer).buf.n;
  fts5DataWrite(p,iRowid,(u8 *)(pWriter->writer).buf.n,
                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f));
  (pWriter->writer).buf.n = 0;
  (pWriter->writer).pgidx.n = 0;
  (*pcVar4)(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);
  iVar3 = (pWriter->writer).pgno;
  iVar2 = pWriter->nLeafWritten;
  (pWriter->writer).iPrevPgidx = 0;
  pWriter->bFirstTermInPage = '\x01';
  pWriter->bFirstRowidInPage = '\x01';
  (pWriter->writer).pgno = iVar3 + 1;
  pWriter->nLeafWritten = iVar2 + 1;
  return;
}



void FUN_00102300(int param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  code *pcVar3;
  int iVar4;
  
  iVar4 = param_1 + 0x24;
  iVar2 = param_2[4];
  iVar1 = param_2[3];
  *(char *)(iVar1 + 3) = (char)iVar2;
  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);
  if (*(char *)((int)param_2 + 0x3a) == '\0') {
    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);
    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);
  }
  else {
    if (*(char *)((int)param_2 + 0x39) != '\0') {
      if (0 < *(int *)(param_2[0x12] + 0x14)) {
        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);
      }
    }
    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);
    param_2[0x10] = param_2[0x10] + 1;
  }
  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],
               param_2[4]);
  param_2[4] = 0;
  param_2[7] = 0;
  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);
  param_2[2] = 0;
  *(undefined1 *)((int)param_2 + 0x3a) = 1;
  *(undefined1 *)((int)param_2 + 0x39) = 1;
  param_2[1] = param_2[1] + 1;
  param_2[0xf] = param_2[0xf] + 1;
  return;
}


lui gp,0x6
addiu gp,gp,0x22b0
addu gp,gp,t9
addiu sp,sp,-0x38
sw s4,0x30(sp)
or s4,a0,zero
sw s3,0x2c(sp)
addiu s3,a1,0xc
sw s2,0x28(sp)
addiu s2,a0,0x24
sw s0,0x20(sp)
sw gp,0x18(sp)
sw ra,0x34(sp)
sw s1,0x24(sp)
lw v1,0x10(a1)
lw v0,0xc(a1)
ext a0,v1,0x8,0x8
sb v1,0x3(v0)
sb a0,0x2(v0)
lbu v0,0x3a(a1)
beq v0,zero,0x0010244c
_or s0,a1,zero
lbu v0,0x39(a1)
bne v0,zero,0x0010241c
_nop
lw v0,0x40(s0)
lw s1,-0x7e98(gp)
addiu v0,v0,0x1
addiu s1,s1,0x6cd0
sw v0,0x40(s0)
lw a3,0x4(s0)
or a0,s4,zero
lw v0,0x0(s0)
lw t9,-0x7edc(gp)
lw v1,0xc(s0)
sra a2,a3,0x1f
lw a1,0x10(s0)
sll v0,v0,0x5
addiu t9,t9,0x1cf0
addu a2,v0,a2
sw v1,0x10(sp)
bal 0x00101cf0
_sw a1,0x14(sp)
li a2,0x4
lw gp,0x18(sp)
or a1,s3,zero
or a0,s2,zero
sw zero,0x10(s0)
or t9,s1,zero
sw zero,0x1c(s0)
lw a3,-0x7fbc(gp)
jalr t9
_addiu a3,a3,0x2f70
li a0,0x1
lw v1,0x4(s0)
lw v0,0x3c(s0)
sw zero,0x8(s0)
addiu v1,v1,0x1
sb a0,0x3a(s0)
addiu v0,v0,0x1
sb a0,0x39(s0)
sw v1,0x4(s0)
sw v0,0x3c(s0)
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
lw a1,0x48(a1)
lw v0,0x14(a1)
blez v0,0x00102364
_lw t9,-0x7e90(gp)
or a3,zero,zero
or a2,zero,zero
addiu a1,a1,0x10
addiu t9,t9,-0x7fd0
jalr t9
_or a0,s2,zero
b 0x00102364
_lw gp,0x18(sp)
lw s1,-0x7e98(gp)
or a1,s3,zero
lw a3,0x18(s0)
or a0,s2,zero
addiu s1,s1,0x6cd0
or t9,s1,zero
jalr t9
_lw a2,0x1c(s0)
b 0x00102378
_lw gp,0x18(sp)
(translation_unit "void FUN_00102300(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}\n\n" (function_definition "void FUN_00102300(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00102300(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = param_1 + 0x24;" (assignment_expression "iVar4 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_2[3];" (assignment_expression "iVar1 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*(char *)(iVar1 + 3) = (char)iVar2;" (assignment_expression "*(char *)(iVar1 + 3) = (char)iVar2" (pointer_expression "*(char *)(iVar1 + 3)" * (cast_expression "(char *)(iVar1 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 3)" ( (binary_expression "iVar1 + 3" identifier + number_literal) )))) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);" (assignment_expression "*(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8)" (pointer_expression "*(char *)(iVar1 + 2)" * (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" if (parenthesized_expression "(*(char *)((int)param_2 + 0x3a) == '\0')" ( (binary_expression "*(char *)((int)param_2 + 0x3a) == '\0'" (pointer_expression "*(char *)((int)param_2 + 0x3a)" * (cast_expression "(char *)((int)param_2 + 0x3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x3a)" ( (binary_expression "(int)param_2 + 0x3a" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }" { (expression_statement "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" identifier = (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" ( (binary_expression "PTR_LAB_0015c718 + 0x6cd0" identifier + number_literal) )))) ;) (expression_statement "(*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);" (call_expression "(*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6])" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(iVar4,param_2 + 3,param_2[7],param_2[6])" ( identifier , (binary_expression "param_2 + 3" identifier + number_literal) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , (subscript_expression "param_2[6]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" else (compound_statement "{\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" { (if_statement "if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }" if (parenthesized_expression "(*(char *)((int)param_2 + 0x39) != '\0')" ( (binary_expression "*(char *)((int)param_2 + 0x39) != '\0'" (pointer_expression "*(char *)((int)param_2 + 0x39)" * (cast_expression "(char *)((int)param_2 + 0x39)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x39)" ( (binary_expression "(int)param_2 + 0x39" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }" { (if_statement "if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }" if (parenthesized_expression "(0 < *(int *)(param_2[0x12] + 0x14))" ( (binary_expression "0 < *(int *)(param_2[0x12] + 0x14)" number_literal < (pointer_expression "*(int *)(param_2[0x12] + 0x14)" * (cast_expression "(int *)(param_2[0x12] + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[0x12] + 0x14)" ( (binary_expression "param_2[0x12] + 0x14" (subscript_expression "param_2[0x12]" identifier [ number_literal ]) + number_literal) ))))) )) (compound_statement "{\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }" { (expression_statement "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);" (call_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))" ( (pointer_expression "*(code *)(PTR_LAB_0015c720 + -0x7fd0)" * (cast_expression "(code *)(PTR_LAB_0015c720 + -0x7fd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c720 + -0x7fd0)" ( (binary_expression "PTR_LAB_0015c720 + -0x7fd0" identifier + number_literal) )))) )) (argument_list "(iVar4,param_2[0x12] + 0x10,0,0)" ( identifier , (binary_expression "param_2[0x12] + 0x10" (subscript_expression "param_2[0x12]" identifier [ number_literal ]) + number_literal) , number_literal , number_literal ))) ;) })) })) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" identifier = (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" ( (binary_expression "PTR_LAB_0015c718 + 0x6cd0" identifier + number_literal) )))) ;) (expression_statement "param_2[0x10] = param_2[0x10] + 1;" (assignment_expression "param_2[0x10] = param_2[0x10] + 1" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) = (binary_expression "param_2[0x10] + 1" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) + number_literal)) ;) }))) (expression_statement "FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);" (call_expression "FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4])" identifier (argument_list "(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4])" ( identifier , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (binary_expression "*param_2 * 0x20 + (param_2[1] >> 0x1f)" (binary_expression "*param_2 * 0x20" (pointer_expression "*param_2" * identifier) * number_literal) + (parenthesized_expression "(param_2[1] >> 0x1f)" ( (binary_expression "param_2[1] >> 0x1f" (subscript_expression "param_2[1]" identifier [ number_literal ]) >> number_literal) ))) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_2[4] = 0;" (assignment_expression "param_2[4] = 0" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[7] = 0;" (assignment_expression "param_2[7] = 0" (subscript_expression "param_2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);" (call_expression "(*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" ( identifier , (binary_expression "param_2 + 3" identifier + number_literal) , number_literal , (binary_expression "PTR_s_LE_FTS4_0015c5f4 + 0x2f70" identifier + number_literal) ))) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + 0x3a) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 0x3a) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 0x3a)" * (cast_expression "(undefined1 *)((int)param_2 + 0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x3a)" ( (binary_expression "(int)param_2 + 0x3a" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + 0x39) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 0x39) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 0x39)" * (cast_expression "(undefined1 *)((int)param_2 + 0x39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x39)" ( (binary_expression "(int)param_2 + 0x39" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_2[0xf] = param_2[0xf] + 1;" (assignment_expression "param_2[0xf] = param_2[0xf] + 1" (subscript_expression "param_2[0xf]" identifier [ number_literal ]) = (binary_expression "param_2[0xf] + 1" (subscript_expression "param_2[0xf]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void fts5WriteFlushLeaf(Fts5Index *p,Fts5SegWriter *pWriter)\n\n{\n  i64 iRowid;\n  u8 *puVar1;\n  int iVar2;\n  int iVar3;\n  code *pcVar4;\n  int *piVar5;\n  Fts5Buffer *pFVar6;\n  \n  pFVar6 = &(pWriter->writer).buf;\n  piVar5 = &p->rc;\n  iVar2 = (pWriter->writer).buf.n;\n  puVar1 = (pWriter->writer).buf.p;\n  puVar1[3] = (u8)iVar2;\n  puVar1[2] = (u8)((uint)iVar2 >> 8);\n  if (pWriter->bFirstTermInPage == '\0') {\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);\n  }\n  else {\n    if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    pWriter->nEmpty = pWriter->nEmpty + 1;\n  }\n  iRowid._0_4_ = (pWriter->writer).buf.p;\n  iRowid._4_4_ = (pWriter->writer).buf.n;\n  fts5DataWrite(p,iRowid,(u8 *)(pWriter->writer).buf.n,\n                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f));\n  (pWriter->writer).buf.n = 0;\n  (pWriter->writer).pgidx.n = 0;\n  (*pcVar4)(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  iVar3 = (pWriter->writer).pgno;\n  iVar2 = pWriter->nLeafWritten;\n  (pWriter->writer).iPrevPgidx = 0;\n  pWriter->bFirstTermInPage = '\x01';\n  pWriter->bFirstRowidInPage = '\x01';\n  (pWriter->writer).pgno = iVar3 + 1;\n  pWriter->nLeafWritten = iVar2 + 1;\n  return;\n}\n\n" (function_definition "void fts5WriteFlushLeaf(Fts5Index *p,Fts5SegWriter *pWriter)\n\n{\n  i64 iRowid;\n  u8 *puVar1;\n  int iVar2;\n  int iVar3;\n  code *pcVar4;\n  int *piVar5;\n  Fts5Buffer *pFVar6;\n  \n  pFVar6 = &(pWriter->writer).buf;\n  piVar5 = &p->rc;\n  iVar2 = (pWriter->writer).buf.n;\n  puVar1 = (pWriter->writer).buf.p;\n  puVar1[3] = (u8)iVar2;\n  puVar1[2] = (u8)((uint)iVar2 >> 8);\n  if (pWriter->bFirstTermInPage == '\0') {\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);\n  }\n  else {\n    if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    pWriter->nEmpty = pWriter->nEmpty + 1;\n  }\n  iRowid._0_4_ = (pWriter->writer).buf.p;\n  iRowid._4_4_ = (pWriter->writer).buf.n;\n  fts5DataWrite(p,iRowid,(u8 *)(pWriter->writer).buf.n,\n                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f));\n  (pWriter->writer).buf.n = 0;\n  (pWriter->writer).pgidx.n = 0;\n  (*pcVar4)(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  iVar3 = (pWriter->writer).pgno;\n  iVar2 = pWriter->nLeafWritten;\n  (pWriter->writer).iPrevPgidx = 0;\n  pWriter->bFirstTermInPage = '\x01';\n  pWriter->bFirstRowidInPage = '\x01';\n  (pWriter->writer).pgno = iVar3 + 1;\n  pWriter->nLeafWritten = iVar2 + 1;\n  return;\n}" primitive_type (function_declarator "fts5WriteFlushLeaf(Fts5Index *p,Fts5SegWriter *pWriter)" identifier (parameter_list "(Fts5Index *p,Fts5SegWriter *pWriter)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5SegWriter *pWriter" type_identifier (pointer_declarator "*pWriter" * identifier)) ))) (compound_statement "{\n  i64 iRowid;\n  u8 *puVar1;\n  int iVar2;\n  int iVar3;\n  code *pcVar4;\n  int *piVar5;\n  Fts5Buffer *pFVar6;\n  \n  pFVar6 = &(pWriter->writer).buf;\n  piVar5 = &p->rc;\n  iVar2 = (pWriter->writer).buf.n;\n  puVar1 = (pWriter->writer).buf.p;\n  puVar1[3] = (u8)iVar2;\n  puVar1[2] = (u8)((uint)iVar2 >> 8);\n  if (pWriter->bFirstTermInPage == '\0') {\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);\n  }\n  else {\n    if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    pWriter->nEmpty = pWriter->nEmpty + 1;\n  }\n  iRowid._0_4_ = (pWriter->writer).buf.p;\n  iRowid._4_4_ = (pWriter->writer).buf.n;\n  fts5DataWrite(p,iRowid,(u8 *)(pWriter->writer).buf.n,\n                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f));\n  (pWriter->writer).buf.n = 0;\n  (pWriter->writer).pgidx.n = 0;\n  (*pcVar4)(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  iVar3 = (pWriter->writer).pgno;\n  iVar2 = pWriter->nLeafWritten;\n  (pWriter->writer).iPrevPgidx = 0;\n  pWriter->bFirstTermInPage = '\x01';\n  pWriter->bFirstRowidInPage = '\x01';\n  (pWriter->writer).pgno = iVar3 + 1;\n  pWriter->nLeafWritten = iVar2 + 1;\n  return;\n}" { (declaration "i64 iRowid;" type_identifier identifier ;) (declaration "u8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "Fts5Buffer *pFVar6;" type_identifier (pointer_declarator "*pFVar6" * identifier) ;) (expression_statement "pFVar6 = &(pWriter->writer).buf;" (assignment_expression "pFVar6 = &(pWriter->writer).buf" identifier = (pointer_expression "&(pWriter->writer).buf" & (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "piVar5 = &p->rc;" (assignment_expression "piVar5 = &p->rc" identifier = (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier))) ;) (expression_statement "iVar2 = (pWriter->writer).buf.n;" (assignment_expression "iVar2 = (pWriter->writer).buf.n" identifier = (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "puVar1 = (pWriter->writer).buf.p;" (assignment_expression "puVar1 = (pWriter->writer).buf.p" identifier = (field_expression "(pWriter->writer).buf.p" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "puVar1[3] = (u8)iVar2;" (assignment_expression "puVar1[3] = (u8)iVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(u8)iVar2" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "puVar1[2] = (u8)((uint)iVar2 >> 8);" (assignment_expression "puVar1[2] = (u8)((uint)iVar2 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (call_expression "(u8)((uint)iVar2 >> 8)" (parenthesized_expression "(u8)" ( identifier )) (argument_list "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (pWriter->bFirstTermInPage == '\0') {\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);\n  }\n  else {\n    if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    pWriter->nEmpty = pWriter->nEmpty + 1;\n  }" if (parenthesized_expression "(pWriter->bFirstTermInPage == '\0')" ( (binary_expression "pWriter->bFirstTermInPage == '\0'" (field_expression "pWriter->bFirstTermInPage" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);\n  }" { (expression_statement "pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" identifier = (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" ( (binary_expression "PTR_LAB_0015c718 + 0x6cd0" identifier + number_literal) )))) ;) (expression_statement "(*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);" (call_expression "(*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p)" ( identifier , identifier , (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) , (field_expression "(pWriter->writer).pgidx.p" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) ))) ;) }) (else_clause "else {\n    if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    pWriter->nEmpty = pWriter->nEmpty + 1;\n  }" else (compound_statement "{\n    if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }\n    pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    pWriter->nEmpty = pWriter->nEmpty + 1;\n  }" { (if_statement "if (pWriter->bFirstRowidInPage != '\0') {\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }" if (parenthesized_expression "(pWriter->bFirstRowidInPage != '\0')" ( (binary_expression "pWriter->bFirstRowidInPage != '\0'" (field_expression "pWriter->bFirstRowidInPage" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }\n    }" { (if_statement "if (0 < (pWriter->aDlidx->buf).n) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }" if (parenthesized_expression "(0 < (pWriter->aDlidx->buf).n)" ( (binary_expression "0 < (pWriter->aDlidx->buf).n" number_literal < (field_expression "(pWriter->aDlidx->buf).n" (parenthesized_expression "(pWriter->aDlidx->buf)" ( (field_expression "pWriter->aDlidx->buf" (field_expression "pWriter->aDlidx" identifier -> field_identifier) -> field_identifier) )) . field_identifier)) )) (compound_statement "{\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);\n      }" { (expression_statement "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);" (call_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))" ( (pointer_expression "*(code *)(PTR_LAB_0015c720 + -0x7fd0)" * (cast_expression "(code *)(PTR_LAB_0015c720 + -0x7fd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c720 + -0x7fd0)" ( (binary_expression "PTR_LAB_0015c720 + -0x7fd0" identifier + number_literal) )))) )) (argument_list "(piVar5,&pWriter->aDlidx->buf,0,0)" ( identifier , (pointer_expression "&pWriter->aDlidx->buf" & (field_expression "pWriter->aDlidx->buf" (field_expression "pWriter->aDlidx" identifier -> field_identifier) -> field_identifier)) , number_literal , number_literal ))) ;) })) })) (expression_statement "pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" identifier = (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" ( (binary_expression "PTR_LAB_0015c718 + 0x6cd0" identifier + number_literal) )))) ;) (expression_statement "pWriter->nEmpty = pWriter->nEmpty + 1;" (assignment_expression "pWriter->nEmpty = pWriter->nEmpty + 1" (field_expression "pWriter->nEmpty" identifier -> field_identifier) = (binary_expression "pWriter->nEmpty + 1" (field_expression "pWriter->nEmpty" identifier -> field_identifier) + number_literal)) ;) }))) (expression_statement "iRowid._0_4_ = (pWriter->writer).buf.p;" (assignment_expression "iRowid._0_4_ = (pWriter->writer).buf.p" (field_expression "iRowid._0_4_" identifier . field_identifier) = (field_expression "(pWriter->writer).buf.p" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "iRowid._4_4_ = (pWriter->writer).buf.n;" (assignment_expression "iRowid._4_4_ = (pWriter->writer).buf.n" (field_expression "iRowid._4_4_" identifier . field_identifier) = (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "fts5DataWrite(p,iRowid,(u8 *)(pWriter->writer).buf.n,\n                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f));" (call_expression "fts5DataWrite(p,iRowid,(u8 *)(pWriter->writer).buf.n,\n                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f))" identifier (argument_list "(p,iRowid,(u8 *)(pWriter->writer).buf.n,\n                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f))" ( identifier , identifier , (cast_expression "(u8 *)(pWriter->writer).buf.n" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) , (binary_expression "pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f)" (binary_expression "pWriter->iSegid * 0x20" (field_expression "pWriter->iSegid" identifier -> field_identifier) * number_literal) + (parenthesized_expression "((pWriter->writer).pgno >> 0x1f)" ( (binary_expression "(pWriter->writer).pgno >> 0x1f" (field_expression "(pWriter->writer).pgno" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) >> number_literal) ))) ))) ;) (expression_statement "(pWriter->writer).buf.n = 0;" (assignment_expression "(pWriter->writer).buf.n = 0" (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(pWriter->writer).pgidx.n = 0;" (assignment_expression "(pWriter->writer).pgidx.n = 0" (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(*pcVar4)(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);" (call_expression "(*pcVar4)(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(piVar5,pFVar6,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" ( identifier , identifier , number_literal , (binary_expression "PTR_s_LE_FTS4_0015c5f4 + 0x2f70" identifier + number_literal) ))) ;) (expression_statement "iVar3 = (pWriter->writer).pgno;" (assignment_expression "iVar3 = (pWriter->writer).pgno" identifier = (field_expression "(pWriter->writer).pgno" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar2 = pWriter->nLeafWritten;" (assignment_expression "iVar2 = pWriter->nLeafWritten" identifier = (field_expression "pWriter->nLeafWritten" identifier -> field_identifier)) ;) (expression_statement "(pWriter->writer).iPrevPgidx = 0;" (assignment_expression "(pWriter->writer).iPrevPgidx = 0" (field_expression "(pWriter->writer).iPrevPgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "pWriter->bFirstTermInPage = '\x01';" (assignment_expression "pWriter->bFirstTermInPage = '\x01'" (field_expression "pWriter->bFirstTermInPage" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "pWriter->bFirstRowidInPage = '\x01';" (assignment_expression "pWriter->bFirstRowidInPage = '\x01'" (field_expression "pWriter->bFirstRowidInPage" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "(pWriter->writer).pgno = iVar3 + 1;" (assignment_expression "(pWriter->writer).pgno = iVar3 + 1" (field_expression "(pWriter->writer).pgno" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "pWriter->nLeafWritten = iVar2 + 1;" (assignment_expression "pWriter->nLeafWritten = iVar2 + 1" (field_expression "pWriter->nLeafWritten" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00102300(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}\n\n" (function_definition "void FUN_00102300(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}" primitive_type (function_declarator "FUN_00102300(int param_1,int *param_2)" identifier (parameter_list "(int param_1,int *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "iVar4 = param_1 + 0x24;" (assignment_expression "iVar4 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = param_2[3];" (assignment_expression "iVar1 = param_2[3]" identifier = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (expression_statement "*(char *)(iVar1 + 3) = (char)iVar2;" (assignment_expression "*(char *)(iVar1 + 3) = (char)iVar2" (pointer_expression "*(char *)(iVar1 + 3)" * (cast_expression "(char *)(iVar1 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 3)" ( (binary_expression "iVar1 + 3" identifier + number_literal) )))) = (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "*(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);" (assignment_expression "*(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8)" (pointer_expression "*(char *)(iVar1 + 2)" * (cast_expression "(char *)(iVar1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 2)" ( (binary_expression "iVar1 + 2" identifier + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (if_statement "if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" if (parenthesized_expression "(*(char *)((int)param_2 + 0x3a) == '\0')" ( (binary_expression "*(char *)((int)param_2 + 0x3a) == '\0'" (pointer_expression "*(char *)((int)param_2 + 0x3a)" * (cast_expression "(char *)((int)param_2 + 0x3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x3a)" ( (binary_expression "(int)param_2 + 0x3a" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }" { (expression_statement "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" identifier = (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" ( (binary_expression "PTR_LAB_0015c718 + 0x6cd0" identifier + number_literal) )))) ;) (expression_statement "(*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);" (call_expression "(*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6])" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(iVar4,param_2 + 3,param_2[7],param_2[6])" ( identifier , (binary_expression "param_2 + 3" identifier + number_literal) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , (subscript_expression "param_2[6]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" else (compound_statement "{\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" { (if_statement "if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }" if (parenthesized_expression "(*(char *)((int)param_2 + 0x39) != '\0')" ( (binary_expression "*(char *)((int)param_2 + 0x39) != '\0'" (pointer_expression "*(char *)((int)param_2 + 0x39)" * (cast_expression "(char *)((int)param_2 + 0x39)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x39)" ( (binary_expression "(int)param_2 + 0x39" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }" { (if_statement "if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }" if (parenthesized_expression "(0 < *(int *)(param_2[0x12] + 0x14))" ( (binary_expression "0 < *(int *)(param_2[0x12] + 0x14)" number_literal < (pointer_expression "*(int *)(param_2[0x12] + 0x14)" * (cast_expression "(int *)(param_2[0x12] + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2[0x12] + 0x14)" ( (binary_expression "param_2[0x12] + 0x14" (subscript_expression "param_2[0x12]" identifier [ number_literal ]) + number_literal) ))))) )) (compound_statement "{\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }" { (expression_statement "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);" (call_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))" ( (pointer_expression "*(code *)(PTR_LAB_0015c720 + -0x7fd0)" * (cast_expression "(code *)(PTR_LAB_0015c720 + -0x7fd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c720 + -0x7fd0)" ( (binary_expression "PTR_LAB_0015c720 + -0x7fd0" identifier + number_literal) )))) )) (argument_list "(iVar4,param_2[0x12] + 0x10,0,0)" ( identifier , (binary_expression "param_2[0x12] + 0x10" (subscript_expression "param_2[0x12]" identifier [ number_literal ]) + number_literal) , number_literal , number_literal ))) ;) })) })) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" identifier = (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" ( (binary_expression "PTR_LAB_0015c718 + 0x6cd0" identifier + number_literal) )))) ;) (expression_statement "param_2[0x10] = param_2[0x10] + 1;" (assignment_expression "param_2[0x10] = param_2[0x10] + 1" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) = (binary_expression "param_2[0x10] + 1" (subscript_expression "param_2[0x10]" identifier [ number_literal ]) + number_literal)) ;) }))) (expression_statement "FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);" (call_expression "FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4])" identifier (argument_list "(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4])" ( identifier , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (binary_expression "*param_2 * 0x20 + (param_2[1] >> 0x1f)" (binary_expression "*param_2 * 0x20" (pointer_expression "*param_2" * identifier) * number_literal) + (parenthesized_expression "(param_2[1] >> 0x1f)" ( (binary_expression "param_2[1] >> 0x1f" (subscript_expression "param_2[1]" identifier [ number_literal ]) >> number_literal) ))) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_2[4] = 0;" (assignment_expression "param_2[4] = 0" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[7] = 0;" (assignment_expression "param_2[7] = 0" (subscript_expression "param_2[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);" (call_expression "(*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" ( identifier , (binary_expression "param_2 + 3" identifier + number_literal) , number_literal , (binary_expression "PTR_s_LE_FTS4_0015c5f4 + 0x2f70" identifier + number_literal) ))) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + 0x3a) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 0x3a) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 0x3a)" * (cast_expression "(undefined1 *)((int)param_2 + 0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x3a)" ( (binary_expression "(int)param_2 + 0x3a" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((int)param_2 + 0x39) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 0x39) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 0x39)" * (cast_expression "(undefined1 *)((int)param_2 + 0x39)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + 0x39)" ( (binary_expression "(int)param_2 + 0x39" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_2[0xf] = param_2[0xf] + 1;" (assignment_expression "param_2[0xf] = param_2[0xf] + 1" (subscript_expression "param_2[0xf]" identifier [ number_literal ]) = (binary_expression "param_2[0xf] + 1" (subscript_expression "param_2[0xf]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) ))))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) , LIT , LIT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (binary_expression (binary_expression (pointer_expression * IDENT) * LIT) + (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) >> LIT) ))) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return ;) })))
(function_definition "void FUN_00102300(int param_1,int *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00102300(int param_1,int *param_2)" (identifier "FUN_00102300") (parameter_list "(int param_1,int *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  iVar4 = param_1 + 0x24;\n  iVar2 = param_2[4];\n  iVar1 = param_2[3];\n  *(char *)(iVar1 + 3) = (char)iVar2;\n  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);\n  if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }\n  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);\n  param_2[4] = 0;\n  param_2[7] = 0;\n  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);\n  param_2[2] = 0;\n  *(undefined1 *)((int)param_2 + 0x3a) = 1;\n  *(undefined1 *)((int)param_2 + 0x39) = 1;\n  param_2[1] = param_2[1] + 1;\n  param_2[0xf] = param_2[0xf] + 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "iVar4 = param_1 + 0x24;" (assignment_expression "iVar4 = param_1 + 0x24" (identifier "iVar4") (= "=") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24"))) (; ";")) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" (identifier "iVar2") (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "iVar1 = param_2[3];" (assignment_expression "iVar1 = param_2[3]" (identifier "iVar1") (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*(char *)(iVar1 + 3) = (char)iVar2;" (assignment_expression "*(char *)(iVar1 + 3) = (char)iVar2" (pointer_expression "*(char *)(iVar1 + 3)" (* "*") (cast_expression "(char *)(iVar1 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 3)" (( "(") (binary_expression "iVar1 + 3" (identifier "iVar1") (+ "+") (number_literal "3")) () ")")))) (= "=") (cast_expression "(char)iVar2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar2"))) (; ";")) (expression_statement "*(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);" (assignment_expression "*(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8)" (pointer_expression "*(char *)(iVar1 + 2)" (* "*") (cast_expression "(char *)(iVar1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 2)" (( "(") (binary_expression "iVar1 + 2" (identifier "iVar1") (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar2 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 8)" (( "(") (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (if_statement "if (*(char *)((int)param_2 + 0x3a) == '\0') {\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }\n  else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" (if "if") (parenthesized_expression "(*(char *)((int)param_2 + 0x3a) == '\0')" (( "(") (binary_expression "*(char *)((int)param_2 + 0x3a) == '\0'" (pointer_expression "*(char *)((int)param_2 + 0x3a)" (* "*") (cast_expression "(char *)((int)param_2 + 0x3a)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x3a)" (( "(") (binary_expression "(int)param_2 + 0x3a" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x3a")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);\n  }" ({ "{") (expression_statement "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" (( "(") (binary_expression "PTR_LAB_0015c718 + 0x6cd0" (identifier "PTR_LAB_0015c718") (+ "+") (number_literal "0x6cd0")) () ")")))) (; ";")) (expression_statement "(*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);" (call_expression "(*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6])" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(iVar4,param_2 + 3,param_2[7],param_2[6])" (( "(") (identifier "iVar4") (, ",") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) (, ",") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (, ",") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" (else "else") (compound_statement "{\n    if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }\n    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);\n    param_2[0x10] = param_2[0x10] + 1;\n  }" ({ "{") (if_statement "if (*(char *)((int)param_2 + 0x39) != '\0') {\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }" (if "if") (parenthesized_expression "(*(char *)((int)param_2 + 0x39) != '\0')" (( "(") (binary_expression "*(char *)((int)param_2 + 0x39) != '\0'" (pointer_expression "*(char *)((int)param_2 + 0x39)" (* "*") (cast_expression "(char *)((int)param_2 + 0x39)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x39)" (( "(") (binary_expression "(int)param_2 + 0x39" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x39")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }\n    }" ({ "{") (if_statement "if (0 < *(int *)(param_2[0x12] + 0x14)) {\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }" (if "if") (parenthesized_expression "(0 < *(int *)(param_2[0x12] + 0x14))" (( "(") (binary_expression "0 < *(int *)(param_2[0x12] + 0x14)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_2[0x12] + 0x14)" (* "*") (cast_expression "(int *)(param_2[0x12] + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2[0x12] + 0x14)" (( "(") (binary_expression "param_2[0x12] + 0x14" (subscript_expression "param_2[0x12]" (identifier "param_2") ([ "[") (number_literal "0x12") (] "]")) (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);\n      }" ({ "{") (expression_statement "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);" (call_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c720 + -0x7fd0))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015c720 + -0x7fd0)" (* "*") (cast_expression "(code *)(PTR_LAB_0015c720 + -0x7fd0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c720 + -0x7fd0)" (( "(") (binary_expression "PTR_LAB_0015c720 + -0x7fd0" (identifier "PTR_LAB_0015c720") (+ "+") (number_literal "-0x7fd0")) () ")")))) () ")")) (argument_list "(iVar4,param_2[0x12] + 0x10,0,0)" (( "(") (identifier "iVar4") (, ",") (binary_expression "param_2[0x12] + 0x10" (subscript_expression "param_2[0x12]" (identifier "param_2") ([ "[") (number_literal "0x12") (] "]")) (+ "+") (number_literal "0x10")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_LAB_0015c718 + 0x6cd0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c718 + 0x6cd0)" (( "(") (binary_expression "PTR_LAB_0015c718 + 0x6cd0" (identifier "PTR_LAB_0015c718") (+ "+") (number_literal "0x6cd0")) () ")")))) (; ";")) (expression_statement "param_2[0x10] = param_2[0x10] + 1;" (assignment_expression "param_2[0x10] = param_2[0x10] + 1" (subscript_expression "param_2[0x10]" (identifier "param_2") ([ "[") (number_literal "0x10") (] "]")) (= "=") (binary_expression "param_2[0x10] + 1" (subscript_expression "param_2[0x10]" (identifier "param_2") ([ "[") (number_literal "0x10") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4]);" (call_expression "FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4])" (identifier "FUN_00101cf0") (argument_list "(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],\n               param_2[4])" (( "(") (identifier "param_1") (, ",") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (, ",") (binary_expression "*param_2 * 0x20 + (param_2[1] >> 0x1f)" (binary_expression "*param_2 * 0x20" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (* "*") (number_literal "0x20")) (+ "+") (parenthesized_expression "(param_2[1] >> 0x1f)" (( "(") (binary_expression "param_2[1] >> 0x1f" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (>> ">>") (number_literal "0x1f")) () ")"))) (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "param_2[4] = 0;" (assignment_expression "param_2[4] = 0" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_2[7] = 0;" (assignment_expression "param_2[7] = 0" (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);" (call_expression "(*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70)" (( "(") (identifier "iVar4") (, ",") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) (, ",") (number_literal "4") (, ",") (binary_expression "PTR_s_LE_FTS4_0015c5f4 + 0x2f70" (identifier "PTR_s_LE_FTS4_0015c5f4") (+ "+") (number_literal "0x2f70")) () ")"))) (; ";")) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((int)param_2 + 0x3a) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 0x3a) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 0x3a)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + 0x3a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x3a)" (( "(") (binary_expression "(int)param_2 + 0x3a" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x3a")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*(undefined1 *)((int)param_2 + 0x39) = 1;" (assignment_expression "*(undefined1 *)((int)param_2 + 0x39) = 1" (pointer_expression "*(undefined1 *)((int)param_2 + 0x39)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + 0x39)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + 0x39)" (( "(") (binary_expression "(int)param_2 + 0x39" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (number_literal "0x39")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_2[1] = param_2[1] + 1;" (assignment_expression "param_2[1] = param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_2[1] + 1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2[0xf] = param_2[0xf] + 1;" (assignment_expression "param_2[0xf] = param_2[0xf] + 1" (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]")) (= "=") (binary_expression "param_2[0xf] + 1" (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,type_2 *pWriter)

{
  type_3 iRowid;
  type_4 *puVar1;
  int var_6;
  int var_5;
  type_5 *pcVar4;
  int *piVar5;
  type_6 *pFVar6;
  
  pFVar6 = &(pWriter->writer).buf;
  piVar5 = &p->rc;
  var_6 = (pWriter->writer).buf.n;
  puVar1 = (pWriter->writer).buf.p;
  puVar1[3] = (type_4)var_6;
  puVar1[2] = (type_4)((type_7)var_6 >> 8);
  if (pWriter->bFirstTermInPage == '\0') {
    pcVar4 = (type_5 *)(var_1 + 0x6cd0);
    (*pcVar4)(piVar5,pFVar6,(pWriter->writer).pgidx.n,(pWriter->writer).pgidx.p);
  }
  else {
    if (pWriter->bFirstRowidInPage != '\0') {
      if (0 < (pWriter->aDlidx->buf).n) {
        (*(type_5 *)(var_2 + -0x7fd0))(piVar5,&pWriter->aDlidx->buf,0,0);
      }
    }
    pcVar4 = (type_5 *)(var_1 + 0x6cd0);
    pWriter->nEmpty = pWriter->nEmpty + 1;
  }
  iRowid._0_4_ = (pWriter->writer).buf.p;
  iRowid._4_4_ = (pWriter->writer).buf.n;
  var_3(p,iRowid,(type_4 *)(pWriter->writer).buf.n,
                pWriter->iSegid * 0x20 + ((pWriter->writer).pgno >> 0x1f));
  (pWriter->writer).buf.n = 0;
  (pWriter->writer).pgidx.n = 0;
  (*pcVar4)(piVar5,pFVar6,4,var_4 + 0x2f70);
  var_5 = (pWriter->writer).pgno;
  var_6 = pWriter->nLeafWritten;
  (pWriter->writer).iPrevPgidx = 0;
  pWriter->bFirstTermInPage = '\x01';
  pWriter->bFirstRowidInPage = '\x01';
  (pWriter->writer).pgno = var_5 + 1;
  pWriter->nLeafWritten = var_6 + 1;
  return;
}


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

void MASKED(int param_1,int *param_2)

{
  int iVar1;
  int iVar2;
  code *pcVar3;
  int iVar4;
  
  iVar4 = param_1 + 0x24;
  iVar2 = param_2[4];
  iVar1 = param_2[3];
  *(char *)(iVar1 + 3) = (char)iVar2;
  *(char *)(iVar1 + 2) = (char)((uint)iVar2 >> 8);
  if (*(char *)((int)param_2 + 0x3a) == '\0') {
    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);
    (*pcVar3)(iVar4,param_2 + 3,param_2[7],param_2[6]);
  }
  else {
    if (*(char *)((int)param_2 + 0x39) != '\0') {
      if (0 < *(int *)(param_2[0x12] + 0x14)) {
        (*(code *)(PTR_LAB_0015c720 + -0x7fd0))(iVar4,param_2[0x12] + 0x10,0,0);
      }
    }
    pcVar3 = (code *)(PTR_LAB_0015c718 + 0x6cd0);
    param_2[0x10] = param_2[0x10] + 1;
  }
  FUN_00101cf0(param_1,param_2[4],*param_2 * 0x20 + (param_2[1] >> 0x1f),param_2[1],param_2[3],
               param_2[4]);
  param_2[4] = 0;
  param_2[7] = 0;
  (*pcVar3)(iVar4,param_2 + 3,4,PTR_s_LE_FTS4_0015c5f4 + 0x2f70);
  param_2[2] = 0;
  *(undefined1 *)((int)param_2 + 0x3a) = 1;
  *(undefined1 *)((int)param_2 + 0x39) = 1;
  param_2[1] = param_2[1] + 1;
  param_2[0xf] = param_2[0xf] + 1;
  return;
}

