
void sqlite3VdbeSetNumCols(Vdbe *p,int nResColumn)

{
  Mem *pMVar1;
  int iVar2;
  sqlite3 *db;
  undefined1 *puVar3;
  undefined4 in_stack_ffffffe4;
  
  puVar3 = &_gp;
  db = p->db;
  if ((p->nResColumn != 0) && (p->aColName != (Mem *)0x0)) {
    releaseMemArray(p->aColName,(uint)p->nResColumn << 1);
    if (p->aColName != (Mem *)0x0) {
                    /* WARNING: Subroutine does not return */
      sqlite3DbFreeNN(db,p->aColName);
    }
  }
  p->nResColumn = (u16)nResColumn;
  pMVar1 = (Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4));
  p->aColName = pMVar1;
  if ((pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)) {
    do {
      pMVar1->db = db;
      pMVar1->flags = 1;
      iVar2 = iVar2 + -1;
      pMVar1->szMalloc = 0;
      pMVar1 = pMVar1 + 1;
    } while (iVar2 != -1);
  }
  return;
}



void FUN_00037e44(undefined4 *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar3 = *param_1;
  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&
     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {
    FUN_000288d8(uVar3);
  }
  *(short *)(param_1 + 0x24) = (short)param_2;
  iVar1 = FUN_00036c00(uVar3);
  param_1[0x1d] = iVar1;
  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {
    do {
      *(undefined4 *)(iVar1 + 0x20) = uVar3;
      *(undefined2 *)(iVar1 + 8) = 1;
      iVar2 = iVar2 + -1;
      *(undefined4 *)(iVar1 + 0x18) = 0;
      iVar1 = iVar1 + 0x28;
    } while (iVar2 != -1);
  }
  return;
}


lui gp,0xc
addiu gp,gp,0x545c
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x24(sp)
or s2,a1,zero
sw gp,0x10(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw s0,0x1c(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
lhu a1,0x90(a0)
beq a1,zero,0x00037eb8
_lw s0,0x0(a0)
lw a0,0x74(a0)
beq a0,zero,0x00037eb8
_lw t9,-0x7fb4(gp)
addiu t9,t9,-0x1b80
bal 0x0002e480
_sll a1,a1,0x1
lw a1,0x74(s1)
beq a1,zero,0x00037eb8
_lw gp,0x10(sp)
lw t9,-0x7fb4(gp)
addiu t9,t9,-0x7728
bal 0x000288d8
_or a0,s0,zero
lw gp,0x10(sp)
sll s3,s2,0x1
lw t9,-0x7fb4(gp)
sll a3,s2,0x3
sh s2,0x90(s1)
or a2,zero,zero
addu a3,a3,s3
addiu t9,t9,0x6c00
sll a3,a3,0x3
bal 0x00036c00
_or a0,s0,zero
beq v0,zero,0x00037f10
_sw v0,0x74(s1)
blez s3,0x00037f10
_addiu v1,s3,-0x1
li a1,0x1
li a0,-0x1
sw s0,0x20(v0)
addiu v0,v0,0x28
sh a1,-0x20(v0)
addiu v1,v1,-0x1
bne v1,a0,0x00037ef8
_sw zero,-0x10(v0)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "void FUN_00037e44(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00037e44(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00037e44(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0))" ( (binary_expression "((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0))" ( (binary_expression "(*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)" (parenthesized_expression "(*(ushort *)(param_1 + 0x24) != 0)" ( (binary_expression "*(ushort *)(param_1 + 0x24) != 0" (pointer_expression "*(ushort *)(param_1 + 0x24)" * (cast_expression "(ushort *)(param_1 + 0x24)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_1[0x1d] != 0)" ( (binary_expression "param_1[0x1d] != 0" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "(FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)" ( (comma_expression "FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0" (call_expression "FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1)" identifier (argument_list "(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1)" ( (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) , (binary_expression "(uint)*(ushort *)(param_1 + 0x24) << 1" (binary_expression "(uint)*(ushort *)(param_1 + 0x24)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x24)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) << number_literal) ))) , (binary_expression "param_1[0x1d] != 0" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) != number_literal)) ))) )) (compound_statement "{\n    FUN_000288d8(uVar3);\n  }" { (expression_statement "FUN_000288d8(uVar3);" (call_expression "FUN_000288d8(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "*(short *)(param_1 + 0x24) = (short)param_2;" (assignment_expression "*(short *)(param_1 + 0x24) = (short)param_2" (pointer_expression "*(short *)(param_1 + 0x24)" * (cast_expression "(short *)(param_1 + 0x24)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (cast_expression "(short)param_2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "iVar1 = FUN_00036c00(uVar3);" (assignment_expression "iVar1 = FUN_00036c00(uVar3)" identifier = (call_expression "FUN_00036c00(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "param_1[0x1d] = iVar1;" (assignment_expression "param_1[0x1d] = iVar1" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2))" ( (binary_expression "(iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)" ( (comma_expression "iVar2 = param_2 * 2 + -1, 0 < param_2 * 2" (assignment_expression "iVar2 = param_2 * 2 + -1" identifier = (binary_expression "param_2 * 2 + -1" (binary_expression "param_2 * 2" identifier * number_literal) + number_literal)) , (binary_expression "0 < param_2 * 2" number_literal < (binary_expression "param_2 * 2" identifier * number_literal))) ))) )) (compound_statement "{\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }" { (do_statement "do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);" do (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(iVar1 + 8)" * (cast_expression "(undefined2 *)(iVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 0x28;" (assignment_expression "iVar1 = iVar1 + 0x28" identifier = (binary_expression "iVar1 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3VdbeSetNumCols(Vdbe *p,int nResColumn)\n\n{\n  Mem *pMVar1;\n  int iVar2;\n  sqlite3 *db;\n  undefined1 *puVar3;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar3 = &_gp;\n  db = p->db;\n  if ((p->nResColumn != 0) && (p->aColName != (Mem *)0x0)) {\n    releaseMemArray(p->aColName,(uint)p->nResColumn << 1);\n    if (p->aColName != (Mem *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }\n  }\n  p->nResColumn = (u16)nResColumn;\n  pMVar1 = (Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4));\n  p->aColName = pMVar1;\n  if ((pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)) {\n    do {\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    } while (iVar2 != -1);\n  }\n  return;\n}\n\n" (function_definition "void sqlite3VdbeSetNumCols(Vdbe *p,int nResColumn)\n\n{\n  Mem *pMVar1;\n  int iVar2;\n  sqlite3 *db;\n  undefined1 *puVar3;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar3 = &_gp;\n  db = p->db;\n  if ((p->nResColumn != 0) && (p->aColName != (Mem *)0x0)) {\n    releaseMemArray(p->aColName,(uint)p->nResColumn << 1);\n    if (p->aColName != (Mem *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }\n  }\n  p->nResColumn = (u16)nResColumn;\n  pMVar1 = (Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4));\n  p->aColName = pMVar1;\n  if ((pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)) {\n    do {\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    } while (iVar2 != -1);\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3VdbeSetNumCols(Vdbe *p,int nResColumn)" identifier (parameter_list "(Vdbe *p,int nResColumn)" ( (parameter_declaration "Vdbe *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int nResColumn" primitive_type identifier) ))) (compound_statement "{\n  Mem *pMVar1;\n  int iVar2;\n  sqlite3 *db;\n  undefined1 *puVar3;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar3 = &_gp;\n  db = p->db;\n  if ((p->nResColumn != 0) && (p->aColName != (Mem *)0x0)) {\n    releaseMemArray(p->aColName,(uint)p->nResColumn << 1);\n    if (p->aColName != (Mem *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }\n  }\n  p->nResColumn = (u16)nResColumn;\n  pMVar1 = (Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4));\n  p->aColName = pMVar1;\n  if ((pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)) {\n    do {\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    } while (iVar2 != -1);\n  }\n  return;\n}" { (declaration "Mem *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "puVar3 = &_gp;" (assignment_expression "puVar3 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "db = p->db;" (assignment_expression "db = p->db" identifier = (field_expression "p->db" identifier -> field_identifier)) ;) (if_statement "if ((p->nResColumn != 0) && (p->aColName != (Mem *)0x0)) {\n    releaseMemArray(p->aColName,(uint)p->nResColumn << 1);\n    if (p->aColName != (Mem *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }\n  }" if (parenthesized_expression "((p->nResColumn != 0) && (p->aColName != (Mem *)0x0))" ( (binary_expression "(p->nResColumn != 0) && (p->aColName != (Mem *)0x0)" (parenthesized_expression "(p->nResColumn != 0)" ( (binary_expression "p->nResColumn != 0" (field_expression "p->nResColumn" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "(p->aColName != (Mem *)0x0)" ( (binary_expression "p->aColName != (Mem *)0x0" (field_expression "p->aColName" identifier -> field_identifier) != (cast_expression "(Mem *)0x0" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    releaseMemArray(p->aColName,(uint)p->nResColumn << 1);\n    if (p->aColName != (Mem *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }\n  }" { (expression_statement "releaseMemArray(p->aColName,(uint)p->nResColumn << 1);" (call_expression "releaseMemArray(p->aColName,(uint)p->nResColumn << 1)" identifier (argument_list "(p->aColName,(uint)p->nResColumn << 1)" ( (field_expression "p->aColName" identifier -> field_identifier) , (binary_expression "(uint)p->nResColumn << 1" (cast_expression "(uint)p->nResColumn" ( (type_descriptor "uint" type_identifier) ) (field_expression "p->nResColumn" identifier -> field_identifier)) << number_literal) ))) ;) (if_statement "if (p->aColName != (Mem *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }" if (parenthesized_expression "(p->aColName != (Mem *)0x0)" ( (binary_expression "p->aColName != (Mem *)0x0" (field_expression "p->aColName" identifier -> field_identifier) != (cast_expression "(Mem *)0x0" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,p->aColName);\n    }" { comment (expression_statement "sqlite3DbFreeNN(db,p->aColName);" (call_expression "sqlite3DbFreeNN(db,p->aColName)" identifier (argument_list "(db,p->aColName)" ( identifier , (field_expression "p->aColName" identifier -> field_identifier) ))) ;) })) })) (expression_statement "p->nResColumn = (u16)nResColumn;" (assignment_expression "p->nResColumn = (u16)nResColumn" (field_expression "p->nResColumn" identifier -> field_identifier) = (cast_expression "(u16)nResColumn" ( (type_descriptor "u16" type_identifier) ) identifier)) ;) (expression_statement "pMVar1 = (Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4));" (assignment_expression "pMVar1 = (Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4))" identifier = (cast_expression "(Mem *)sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4))" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(db,CONCAT44(puVar3,in_stack_ffffffe4))" identifier (argument_list "(db,CONCAT44(puVar3,in_stack_ffffffe4))" ( identifier , (call_expression "CONCAT44(puVar3,in_stack_ffffffe4)" identifier (argument_list "(puVar3,in_stack_ffffffe4)" ( identifier , identifier ))) ))))) ;) (expression_statement "p->aColName = pMVar1;" (assignment_expression "p->aColName = pMVar1" (field_expression "p->aColName" identifier -> field_identifier) = identifier) ;) (if_statement "if ((pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)) {\n    do {\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    } while (iVar2 != -1);\n  }" if (parenthesized_expression "((pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2))" ( (binary_expression "(pMVar1 != (Mem *)0x0) && (iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)" (parenthesized_expression "(pMVar1 != (Mem *)0x0)" ( (binary_expression "pMVar1 != (Mem *)0x0" identifier != (cast_expression "(Mem *)0x0" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2)" ( (comma_expression "iVar2 = nResColumn * 2 + -1, 0 < nResColumn * 2" (assignment_expression "iVar2 = nResColumn * 2 + -1" identifier = (binary_expression "nResColumn * 2 + -1" (binary_expression "nResColumn * 2" identifier * number_literal) + number_literal)) , (binary_expression "0 < nResColumn * 2" number_literal < (binary_expression "nResColumn * 2" identifier * number_literal))) ))) )) (compound_statement "{\n    do {\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    } while (iVar2 != -1);\n  }" { (do_statement "do {\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    } while (iVar2 != -1);" do (compound_statement "{\n      pMVar1->db = db;\n      pMVar1->flags = 1;\n      iVar2 = iVar2 + -1;\n      pMVar1->szMalloc = 0;\n      pMVar1 = pMVar1 + 1;\n    }" { (expression_statement "pMVar1->db = db;" (assignment_expression "pMVar1->db = db" (field_expression "pMVar1->db" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->flags = 1;" (assignment_expression "pMVar1->flags = 1" (field_expression "pMVar1->flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "pMVar1->szMalloc = 0;" (assignment_expression "pMVar1->szMalloc = 0" (field_expression "pMVar1->szMalloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "pMVar1 = pMVar1 + 1;" (assignment_expression "pMVar1 = pMVar1 + 1" identifier = (binary_expression "pMVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00037e44(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00037e44(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00037e44(undefined4 *param_1,int param_2)" identifier (parameter_list "(undefined4 *param_1,int param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }" if (parenthesized_expression "(((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0))" ( (binary_expression "((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0))" ( (binary_expression "(*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)" (parenthesized_expression "(*(ushort *)(param_1 + 0x24) != 0)" ( (binary_expression "*(ushort *)(param_1 + 0x24) != 0" (pointer_expression "*(ushort *)(param_1 + 0x24)" * (cast_expression "(ushort *)(param_1 + 0x24)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(param_1[0x1d] != 0)" ( (binary_expression "param_1[0x1d] != 0" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) != number_literal) ))) )) && (parenthesized_expression "(FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)" ( (comma_expression "FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0" (call_expression "FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1)" identifier (argument_list "(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1)" ( (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) , (binary_expression "(uint)*(ushort *)(param_1 + 0x24) << 1" (binary_expression "(uint)*(ushort *)(param_1 + 0x24)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x24)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) << number_literal) ))) , (binary_expression "param_1[0x1d] != 0" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) != number_literal)) ))) )) (compound_statement "{\n    FUN_000288d8(uVar3);\n  }" { (expression_statement "FUN_000288d8(uVar3);" (call_expression "FUN_000288d8(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) })) (expression_statement "*(short *)(param_1 + 0x24) = (short)param_2;" (assignment_expression "*(short *)(param_1 + 0x24) = (short)param_2" (pointer_expression "*(short *)(param_1 + 0x24)" * (cast_expression "(short *)(param_1 + 0x24)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) = (cast_expression "(short)param_2" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "iVar1 = FUN_00036c00(uVar3);" (assignment_expression "iVar1 = FUN_00036c00(uVar3)" identifier = (call_expression "FUN_00036c00(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "param_1[0x1d] = iVar1;" (assignment_expression "param_1[0x1d] = iVar1" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }" if (parenthesized_expression "((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2))" ( (binary_expression "(iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)" ( (comma_expression "iVar2 = param_2 * 2 + -1, 0 < param_2 * 2" (assignment_expression "iVar2 = param_2 * 2 + -1" identifier = (binary_expression "param_2 * 2 + -1" (binary_expression "param_2 * 2" identifier * number_literal) + number_literal)) , (binary_expression "0 < param_2 * 2" number_literal < (binary_expression "param_2 * 2" identifier * number_literal))) ))) )) (compound_statement "{\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }" { (do_statement "do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);" do (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x20) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(iVar1 + 8)" * (cast_expression "(undefined2 *)(iVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = iVar1 + 0x28;" (assignment_expression "iVar1 = iVar1 + 0x28" identifier = (binary_expression "iVar1 + 0x28" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) && (parenthesized_expression ( (comma_expression (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) ))) , (binary_expression (subscript_expression IDENT [ LIT ]) != LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) , (binary_expression LIT < (binary_expression IDENT * LIT))) ))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00037e44(undefined4 *param_1,int param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00037e44(undefined4 *param_1,int param_2)" (identifier "FUN_00037e44") (parameter_list "(undefined4 *param_1,int param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  uVar3 = *param_1;\n  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }\n  *(short *)(param_1 + 0x24) = (short)param_2;\n  iVar1 = FUN_00036c00(uVar3);\n  param_1[0x1d] = iVar1;\n  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "uVar3 = *param_1;" (assignment_expression "uVar3 = *param_1" (identifier "uVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {\n    FUN_000288d8(uVar3);\n  }" (if "if") (parenthesized_expression "(((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0))" (( "(") (binary_expression "((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&\n     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)" (parenthesized_expression "((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0))" (( "(") (binary_expression "(*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)" (parenthesized_expression "(*(ushort *)(param_1 + 0x24) != 0)" (( "(") (binary_expression "*(ushort *)(param_1 + 0x24) != 0" (pointer_expression "*(ushort *)(param_1 + 0x24)" (* "*") (cast_expression "(ushort *)(param_1 + 0x24)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_1[0x1d] != 0)" (( "(") (binary_expression "param_1[0x1d] != 0" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)" (( "(") (comma_expression "FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0" (call_expression "FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1)" (identifier "FUN_0002e480") (argument_list "(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1)" (( "(") (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (, ",") (binary_expression "(uint)*(ushort *)(param_1 + 0x24) << 1" (binary_expression "(uint)*(ushort *)(param_1 + 0x24)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x24)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (<< "<<") (number_literal "1")) () ")"))) (, ",") (binary_expression "param_1[0x1d] != 0" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    FUN_000288d8(uVar3);\n  }" ({ "{") (expression_statement "FUN_000288d8(uVar3);" (call_expression "FUN_000288d8(uVar3)" (identifier "FUN_000288d8") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "*(short *)(param_1 + 0x24) = (short)param_2;" (assignment_expression "*(short *)(param_1 + 0x24) = (short)param_2" (pointer_expression "*(short *)(param_1 + 0x24)" (* "*") (cast_expression "(short *)(param_1 + 0x24)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (cast_expression "(short)param_2" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_2"))) (; ";")) (expression_statement "iVar1 = FUN_00036c00(uVar3);" (assignment_expression "iVar1 = FUN_00036c00(uVar3)" (identifier "iVar1") (= "=") (call_expression "FUN_00036c00(uVar3)" (identifier "FUN_00036c00") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "param_1[0x1d] = iVar1;" (assignment_expression "param_1[0x1d] = iVar1" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }" (if "if") (parenthesized_expression "((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2))" (( "(") (binary_expression "(iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)" (( "(") (comma_expression "iVar2 = param_2 * 2 + -1, 0 < param_2 * 2" (assignment_expression "iVar2 = param_2 * 2 + -1" (identifier "iVar2") (= "=") (binary_expression "param_2 * 2 + -1" (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")) (+ "+") (number_literal "-1"))) (, ",") (binary_expression "0 < param_2 * 2" (number_literal "0") (< "<") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2")))) () ")"))) () ")")) (compound_statement "{\n    do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);\n  }" ({ "{") (do_statement "do {\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    } while (iVar2 != -1);" (do "do") (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x20) = uVar3;\n      *(undefined2 *)(iVar1 + 8) = 1;\n      iVar2 = iVar2 + -1;\n      *(undefined4 *)(iVar1 + 0x18) = 0;\n      iVar1 = iVar1 + 0x28;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x20) = uVar3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = uVar3" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined2 *)(iVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(iVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar2 = iVar2 + -1;" (assignment_expression "iVar2 = iVar2 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = iVar1 + 0x28;" (assignment_expression "iVar1 = iVar1 + 0x28" (identifier "iVar1") (= "=") (binary_expression "iVar1 + 0x28" (identifier "iVar1") (+ "+") (number_literal "0x28"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != -1)" (( "(") (binary_expression "iVar2 != -1" (identifier "iVar2") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (parenthesized_expression (comma_expression left: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (do_statement body: (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: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) 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: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))))

void MASKED(undefined4 *param_1,int param_2)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  
  uVar3 = *param_1;
  if (((*(ushort *)(param_1 + 0x24) != 0) && (param_1[0x1d] != 0)) &&
     (FUN_0002e480(param_1[0x1d],(uint)*(ushort *)(param_1 + 0x24) << 1), param_1[0x1d] != 0)) {
    FUN_000288d8(uVar3);
  }
  *(short *)(param_1 + 0x24) = (short)param_2;
  iVar1 = FUN_00036c00(uVar3);
  param_1[0x1d] = iVar1;
  if ((iVar1 != 0) && (iVar2 = param_2 * 2 + -1, 0 < param_2 * 2)) {
    do {
      *(undefined4 *)(iVar1 + 0x20) = uVar3;
      *(undefined2 *)(iVar1 + 8) = 1;
      iVar2 = iVar2 + -1;
      *(undefined4 *)(iVar1 + 0x18) = 0;
      iVar1 = iVar1 + 0x28;
    } while (iVar2 != -1);
  }
  return;
}

