
int expertOpen(sqlite3_vtab *pVTab,sqlite3_vtab_cursor **ppCursor)

{
  sqlite3_vtab_cursor *psVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  undefined *puVar5;
  code *pcVar6;
  int rc;
  int *local_14;
  
  puVar5 = PTR___stack_chk_guard_00190e24;
  uVar4 = 8;
  rc = 0;
  local_14 = *(int **)PTR___stack_chk_guard_00190e24;
  psVar1 = (sqlite3_vtab_cursor *)idxMalloc(&rc,8);
  *ppCursor = psVar1;
  if (local_14 == *(int **)puVar5) {
    return rc;
  }
  piVar3 = local_14;
  puVar5 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar2 = (**(code **)(puVar5 + 0x170904))(uVar4);
  piVar3 = (int *)idxMalloc(piVar3,iVar2 * 0x1c + 1);
  if (piVar3 != (int *)0x0) {
    pcVar6 = *(code **)(puVar5 + 0x1709b0);
    *piVar3 = (int)(piVar3 + 7);
    (*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);
  }
  return (int)piVar3;
}



int * FUN_000203f8(undefined4 param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar6;
  code *pcVar7;
  int *local_18;
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_00190e24;
  uVar5 = 8;
  local_18 = (int *)0x0;
  local_14 = *(int *)PTR___stack_chk_guard_00190e24;
  uVar1 = FUN_00020368(&local_18,8);
  *param_2 = uVar1;
  if (local_14 == *(int *)puVar6) {
    return local_18;
  }
  iVar4 = local_14;
  puVar6 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);
  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);
  if (piVar3 != (int *)0x0) {
    pcVar7 = *(code **)(puVar6 + 0x1709b0);
    *piVar3 = (int)(piVar3 + 7);
    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);
  }
  return piVar3;
}


lui gp,0x18
addiu gp,gp,-0x7ad8
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7fcc(gp)
addiu a0,sp,0x18
sw s0,0x24(sp)
addiu t9,t9,0x368
sw gp,0x10(sp)
sw s1,0x28(sp)
or s1,a1,zero
sw ra,0x2c(sp)
li a1,0x8
lw s0,-0x7afc(gp)
sw zero,0x18(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
bal 0x00020368
_nop
lw gp,0x10(sp)
lw a0,0x1c(sp)
sw v0,0x0(s1)
lw v1,0x0(s0)
bne a0,v1,0x00020470
_lw v0,0x18(sp)
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7b28(gp)
jalr t9
_nop
(translation_unit "int * FUN_000203f8(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_000203f8(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_000203f8(undefined4 param_1,undefined4 *param_2)" * (function_declarator "FUN_000203f8(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar6 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" identifier = number_literal) ;) (expression_statement "local_18 = (int *)0x0;" (assignment_expression "local_18 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = FUN_00020368(&local_18,8);" (assignment_expression "uVar1 = FUN_00020368(&local_18,8)" identifier = (call_expression "FUN_00020368(&local_18,8)" identifier (argument_list "(&local_18,8)" ( (pointer_expression "&local_18" & identifier) , number_literal )))) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar6)" ( (binary_expression "local_14 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "iVar4 = local_14;" (assignment_expression "iVar4 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5)" identifier = (call_expression "(**(code **)(puVar6 + 0x170904))(uVar5)" (parenthesized_expression "(**(code **)(puVar6 + 0x170904))" ( (pointer_expression "**(code **)(puVar6 + 0x170904)" * (pointer_expression "*(code **)(puVar6 + 0x170904)" * (cast_expression "(code **)(puVar6 + 0x170904)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x170904)" ( (binary_expression "puVar6 + 0x170904" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);" (assignment_expression "piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1)" identifier = (cast_expression "(int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020368(iVar4,iVar2 * 0x1c + 1)" identifier (argument_list "(iVar4,iVar2 * 0x1c + 1)" ( identifier , (binary_expression "iVar2 * 0x1c + 1" (binary_expression "iVar2 * 0x1c" identifier * number_literal) + number_literal) ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }" { (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1709b0);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1709b0)" identifier = (pointer_expression "*(code **)(puVar6 + 0x1709b0)" * (cast_expression "(code **)(puVar6 + 0x1709b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1709b0)" ( (binary_expression "puVar6 + 0x1709b0" identifier + number_literal) ))))) ;) (expression_statement "*piVar3 = (int)(piVar3 + 7);" (assignment_expression "*piVar3 = (int)(piVar3 + 7)" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)(piVar3 + 7)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 7)" ( (binary_expression "piVar3 + 7" identifier + number_literal) )))) ;) (expression_statement "(*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);" (call_expression "(*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(piVar3 + 7,uVar5,iVar2 + 1)" ( (binary_expression "piVar3 + 7" identifier + number_literal) , identifier , (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) })) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit "int expertOpen(sqlite3_vtab *pVTab,sqlite3_vtab_cursor **ppCursor)\n\n{\n  sqlite3_vtab_cursor *psVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int rc;\n  int *local_14;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  uVar4 = 8;\n  rc = 0;\n  local_14 = *(int **)PTR___stack_chk_guard_00190e24;\n  psVar1 = (sqlite3_vtab_cursor *)idxMalloc(&rc,8);\n  *ppCursor = psVar1;\n  if (local_14 == *(int **)puVar5) {\n    return rc;\n  }\n  piVar3 = local_14;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar5 + 0x170904))(uVar4);\n  piVar3 = (int *)idxMalloc(piVar3,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar6 = *(code **)(puVar5 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);\n  }\n  return (int)piVar3;\n}\n\n" (function_definition "int expertOpen(sqlite3_vtab *pVTab,sqlite3_vtab_cursor **ppCursor)\n\n{\n  sqlite3_vtab_cursor *psVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int rc;\n  int *local_14;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  uVar4 = 8;\n  rc = 0;\n  local_14 = *(int **)PTR___stack_chk_guard_00190e24;\n  psVar1 = (sqlite3_vtab_cursor *)idxMalloc(&rc,8);\n  *ppCursor = psVar1;\n  if (local_14 == *(int **)puVar5) {\n    return rc;\n  }\n  piVar3 = local_14;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar5 + 0x170904))(uVar4);\n  piVar3 = (int *)idxMalloc(piVar3,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar6 = *(code **)(puVar5 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);\n  }\n  return (int)piVar3;\n}" primitive_type (function_declarator "expertOpen(sqlite3_vtab *pVTab,sqlite3_vtab_cursor **ppCursor)" identifier (parameter_list "(sqlite3_vtab *pVTab,sqlite3_vtab_cursor **ppCursor)" ( (parameter_declaration "sqlite3_vtab *pVTab" type_identifier (pointer_declarator "*pVTab" * identifier)) , (parameter_declaration "sqlite3_vtab_cursor **ppCursor" type_identifier (pointer_declarator "**ppCursor" * (pointer_declarator "*ppCursor" * identifier))) ))) (compound_statement "{\n  sqlite3_vtab_cursor *psVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  code *pcVar6;\n  int rc;\n  int *local_14;\n  \n  puVar5 = PTR___stack_chk_guard_00190e24;\n  uVar4 = 8;\n  rc = 0;\n  local_14 = *(int **)PTR___stack_chk_guard_00190e24;\n  psVar1 = (sqlite3_vtab_cursor *)idxMalloc(&rc,8);\n  *ppCursor = psVar1;\n  if (local_14 == *(int **)puVar5) {\n    return rc;\n  }\n  piVar3 = local_14;\n  puVar5 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar5 + 0x170904))(uVar4);\n  piVar3 = (int *)idxMalloc(piVar3,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar6 = *(code **)(puVar5 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);\n  }\n  return (int)piVar3;\n}" { (declaration "sqlite3_vtab_cursor *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int rc;" primitive_type identifier ;) (declaration "int *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar5 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "uVar4 = 8;" (assignment_expression "uVar4 = 8" identifier = number_literal) ;) (expression_statement "rc = 0;" (assignment_expression "rc = 0" identifier = number_literal) ;) (expression_statement "local_14 = *(int **)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_14 = *(int **)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_00190e24" * (cast_expression "(int **)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "psVar1 = (sqlite3_vtab_cursor *)idxMalloc(&rc,8);" (assignment_expression "psVar1 = (sqlite3_vtab_cursor *)idxMalloc(&rc,8)" identifier = (cast_expression "(sqlite3_vtab_cursor *)idxMalloc(&rc,8)" ( (type_descriptor "sqlite3_vtab_cursor *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "idxMalloc(&rc,8)" identifier (argument_list "(&rc,8)" ( (pointer_expression "&rc" & identifier) , number_literal ))))) ;) (expression_statement "*ppCursor = psVar1;" (assignment_expression "*ppCursor = psVar1" (pointer_expression "*ppCursor" * identifier) = identifier) ;) (if_statement "if (local_14 == *(int **)puVar5) {\n    return rc;\n  }" if (parenthesized_expression "(local_14 == *(int **)puVar5)" ( (binary_expression "local_14 == *(int **)puVar5" identifier == (pointer_expression "*(int **)puVar5" * (cast_expression "(int **)puVar5" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return rc;\n  }" { (return_statement "return rc;" return identifier ;) })) (expression_statement "piVar3 = local_14;" (assignment_expression "piVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar5 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar5 + 0x170904))(uVar4);" (assignment_expression "iVar2 = (**(code **)(puVar5 + 0x170904))(uVar4)" identifier = (call_expression "(**(code **)(puVar5 + 0x170904))(uVar4)" (parenthesized_expression "(**(code **)(puVar5 + 0x170904))" ( (pointer_expression "**(code **)(puVar5 + 0x170904)" * (pointer_expression "*(code **)(puVar5 + 0x170904)" * (cast_expression "(code **)(puVar5 + 0x170904)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x170904)" ( (binary_expression "puVar5 + 0x170904" identifier + number_literal) ))))) )) (argument_list "(uVar4)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)idxMalloc(piVar3,iVar2 * 0x1c + 1);" (assignment_expression "piVar3 = (int *)idxMalloc(piVar3,iVar2 * 0x1c + 1)" identifier = (cast_expression "(int *)idxMalloc(piVar3,iVar2 * 0x1c + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "idxMalloc(piVar3,iVar2 * 0x1c + 1)" identifier (argument_list "(piVar3,iVar2 * 0x1c + 1)" ( identifier , (binary_expression "iVar2 * 0x1c + 1" (binary_expression "iVar2 * 0x1c" identifier * number_literal) + number_literal) ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    pcVar6 = *(code **)(puVar5 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar6 = *(code **)(puVar5 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);\n  }" { (expression_statement "pcVar6 = *(code **)(puVar5 + 0x1709b0);" (assignment_expression "pcVar6 = *(code **)(puVar5 + 0x1709b0)" identifier = (pointer_expression "*(code **)(puVar5 + 0x1709b0)" * (cast_expression "(code **)(puVar5 + 0x1709b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0x1709b0)" ( (binary_expression "puVar5 + 0x1709b0" identifier + number_literal) ))))) ;) (expression_statement "*piVar3 = (int)(piVar3 + 7);" (assignment_expression "*piVar3 = (int)(piVar3 + 7)" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)(piVar3 + 7)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 7)" ( (binary_expression "piVar3 + 7" identifier + number_literal) )))) ;) (expression_statement "(*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1);" (call_expression "(*pcVar6)(piVar3 + 7,uVar4,iVar2 + 1)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(piVar3 + 7,uVar4,iVar2 + 1)" ( (binary_expression "piVar3 + 7" identifier + number_literal) , identifier , (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) })) (return_statement "return (int)piVar3;" return (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) ;) })))
(translation_unit "int * FUN_000203f8(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}\n\n" (function_definition "int * FUN_000203f8(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}" primitive_type (pointer_declarator "* FUN_000203f8(undefined4 param_1,undefined4 *param_2)" * (function_declarator "FUN_000203f8(undefined4 param_1,undefined4 *param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 *param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int *local_18;" primitive_type (pointer_declarator "*local_18" * identifier) ;) (declaration "int local_14;" primitive_type identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar6 = PTR___stack_chk_guard_00190e24" identifier = identifier) ;) (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" identifier = number_literal) ;) (expression_statement "local_18 = (int *)0x0;" (assignment_expression "local_18 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00190e24" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" * (cast_expression "(int *)PTR___stack_chk_guard_00190e24" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar1 = FUN_00020368(&local_18,8);" (assignment_expression "uVar1 = FUN_00020368(&local_18,8)" identifier = (call_expression "FUN_00020368(&local_18,8)" identifier (argument_list "(&local_18,8)" ( (pointer_expression "&local_18" & identifier) , number_literal )))) ;) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" * identifier) = identifier) ;) (if_statement "if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }" if (parenthesized_expression "(local_14 == *(int *)puVar6)" ( (binary_expression "local_14 == *(int *)puVar6" identifier == (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return local_18;\n  }" { (return_statement "return local_18;" return identifier ;) })) (expression_statement "iVar4 = local_14;" (assignment_expression "iVar4 = local_14" identifier = identifier) ;) (expression_statement "puVar6 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_00190df8" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" * (cast_expression "(code *)PTR___stack_chk_fail_00190df8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5)" identifier = (call_expression "(**(code **)(puVar6 + 0x170904))(uVar5)" (parenthesized_expression "(**(code **)(puVar6 + 0x170904))" ( (pointer_expression "**(code **)(puVar6 + 0x170904)" * (pointer_expression "*(code **)(puVar6 + 0x170904)" * (cast_expression "(code **)(puVar6 + 0x170904)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x170904)" ( (binary_expression "puVar6 + 0x170904" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier )))) ;) (expression_statement "piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);" (assignment_expression "piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1)" identifier = (cast_expression "(int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00020368(iVar4,iVar2 * 0x1c + 1)" identifier (argument_list "(iVar4,iVar2 * 0x1c + 1)" ( identifier , (binary_expression "iVar2 * 0x1c + 1" (binary_expression "iVar2 * 0x1c" identifier * number_literal) + number_literal) ))))) ;) (if_statement "if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }" if (parenthesized_expression "(piVar3 != (int *)0x0)" ( (binary_expression "piVar3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }" { (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1709b0);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1709b0)" identifier = (pointer_expression "*(code **)(puVar6 + 0x1709b0)" * (cast_expression "(code **)(puVar6 + 0x1709b0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar6 + 0x1709b0)" ( (binary_expression "puVar6 + 0x1709b0" identifier + number_literal) ))))) ;) (expression_statement "*piVar3 = (int)(piVar3 + 7);" (assignment_expression "*piVar3 = (int)(piVar3 + 7)" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)(piVar3 + 7)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar3 + 7)" ( (binary_expression "piVar3 + 7" identifier + number_literal) )))) ;) (expression_statement "(*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);" (call_expression "(*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(piVar3 + 7,uVar5,iVar2 + 1)" ( (binary_expression "piVar3 + 7" identifier + number_literal) , identifier , (binary_expression "iVar2 + 1" identifier + number_literal) ))) ;) })) (return_statement "return piVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (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 ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT * LIT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_000203f8(undefined4 param_1,undefined4 *param_2)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}" (primitive_type "int") (pointer_declarator "* FUN_000203f8(undefined4 param_1,undefined4 *param_2)" (* "*") (function_declarator "FUN_000203f8(undefined4 param_1,undefined4 *param_2)" (identifier "FUN_000203f8") (parameter_list "(undefined4 param_1,undefined4 *param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar6;\n  code *pcVar7;\n  int *local_18;\n  int local_14;\n  \n  puVar6 = PTR___stack_chk_guard_00190e24;\n  uVar5 = 8;\n  local_18 = (int *)0x0;\n  local_14 = *(int *)PTR___stack_chk_guard_00190e24;\n  uVar1 = FUN_00020368(&local_18,8);\n  *param_2 = uVar1;\n  if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }\n  iVar4 = local_14;\n  puVar6 = PTR___stack_chk_fail_00190df8;\n  (*(code *)PTR___stack_chk_fail_00190df8)();\n  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);\n  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);\n  if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }\n  return piVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "code *pcVar7;" (type_identifier "code") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int *local_18;" (primitive_type "int") (pointer_declarator "*local_18" (* "*") (identifier "local_18")) (; ";")) (declaration "int local_14;" (primitive_type "int") (identifier "local_14") (; ";")) (expression_statement "puVar6 = PTR___stack_chk_guard_00190e24;" (assignment_expression "puVar6 = PTR___stack_chk_guard_00190e24" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_guard_00190e24")) (; ";")) (expression_statement "uVar5 = 8;" (assignment_expression "uVar5 = 8" (identifier "uVar5") (= "=") (number_literal "8")) (; ";")) (expression_statement "local_18 = (int *)0x0;" (assignment_expression "local_18 = (int *)0x0" (identifier "local_18") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_14 = *(int *)PTR___stack_chk_guard_00190e24;" (assignment_expression "local_14 = *(int *)PTR___stack_chk_guard_00190e24" (identifier "local_14") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00190e24" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00190e24" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00190e24")))) (; ";")) (expression_statement "uVar1 = FUN_00020368(&local_18,8);" (assignment_expression "uVar1 = FUN_00020368(&local_18,8)" (identifier "uVar1") (= "=") (call_expression "FUN_00020368(&local_18,8)" (identifier "FUN_00020368") (argument_list "(&local_18,8)" (( "(") (pointer_expression "&local_18" (& "&") (identifier "local_18")) (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "*param_2 = uVar1;" (assignment_expression "*param_2 = uVar1" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (local_14 == *(int *)puVar6) {\n    return local_18;\n  }" (if "if") (parenthesized_expression "(local_14 == *(int *)puVar6)" (( "(") (binary_expression "local_14 == *(int *)puVar6" (identifier "local_14") (== "==") (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6")))) () ")")) (compound_statement "{\n    return local_18;\n  }" ({ "{") (return_statement "return local_18;" (return "return") (identifier "local_18") (; ";")) (} "}"))) (expression_statement "iVar4 = local_14;" (assignment_expression "iVar4 = local_14" (identifier "iVar4") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar6 = PTR___stack_chk_fail_00190df8;" (assignment_expression "puVar6 = PTR___stack_chk_fail_00190df8" (identifier "puVar6") (= "=") (identifier "PTR___stack_chk_fail_00190df8")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00190df8)();" (call_expression "(*(code *)PTR___stack_chk_fail_00190df8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00190df8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00190df8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00190df8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00190df8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);" (assignment_expression "iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(puVar6 + 0x170904))(uVar5)" (parenthesized_expression "(**(code **)(puVar6 + 0x170904))" (( "(") (pointer_expression "**(code **)(puVar6 + 0x170904)" (* "*") (pointer_expression "*(code **)(puVar6 + 0x170904)" (* "*") (cast_expression "(code **)(puVar6 + 0x170904)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x170904)" (( "(") (binary_expression "puVar6 + 0x170904" (identifier "puVar6") (+ "+") (number_literal "0x170904")) () ")"))))) () ")")) (argument_list "(uVar5)" (( "(") (identifier "uVar5") () ")")))) (; ";")) (expression_statement "piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);" (assignment_expression "piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00020368(iVar4,iVar2 * 0x1c + 1)" (identifier "FUN_00020368") (argument_list "(iVar4,iVar2 * 0x1c + 1)" (( "(") (identifier "iVar4") (, ",") (binary_expression "iVar2 * 0x1c + 1" (binary_expression "iVar2 * 0x1c" (identifier "iVar2") (* "*") (number_literal "0x1c")) (+ "+") (number_literal "1")) () ")"))))) (; ";")) (if_statement "if (piVar3 != (int *)0x0) {\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }" (if "if") (parenthesized_expression "(piVar3 != (int *)0x0)" (( "(") (binary_expression "piVar3 != (int *)0x0" (identifier "piVar3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar7 = *(code **)(puVar6 + 0x1709b0);\n    *piVar3 = (int)(piVar3 + 7);\n    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);\n  }" ({ "{") (expression_statement "pcVar7 = *(code **)(puVar6 + 0x1709b0);" (assignment_expression "pcVar7 = *(code **)(puVar6 + 0x1709b0)" (identifier "pcVar7") (= "=") (pointer_expression "*(code **)(puVar6 + 0x1709b0)" (* "*") (cast_expression "(code **)(puVar6 + 0x1709b0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar6 + 0x1709b0)" (( "(") (binary_expression "puVar6 + 0x1709b0" (identifier "puVar6") (+ "+") (number_literal "0x1709b0")) () ")"))))) (; ";")) (expression_statement "*piVar3 = (int)(piVar3 + 7);" (assignment_expression "*piVar3 = (int)(piVar3 + 7)" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (cast_expression "(int)(piVar3 + 7)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar3 + 7)" (( "(") (binary_expression "piVar3 + 7" (identifier "piVar3") (+ "+") (number_literal "7")) () ")")))) (; ";")) (expression_statement "(*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);" (call_expression "(*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1)" (parenthesized_expression "(*pcVar7)" (( "(") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) () ")")) (argument_list "(piVar3 + 7,uVar5,iVar2 + 1)" (( "(") (binary_expression "piVar3 + 7" (identifier "piVar3") (+ "+") (number_literal "7")) (, ",") (identifier "uVar5") (, ",") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1")) () ")"))) (; ";")) (} "}"))) (return_statement "return piVar3;" (return "return") (identifier "piVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier)))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

int * MASKED(undefined4 param_1,undefined4 *param_2)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar6;
  code *pcVar7;
  int *local_18;
  int local_14;
  
  puVar6 = PTR___stack_chk_guard_00190e24;
  uVar5 = 8;
  local_18 = (int *)0x0;
  local_14 = *(int *)PTR___stack_chk_guard_00190e24;
  uVar1 = FUN_00020368(&local_18,8);
  *param_2 = uVar1;
  if (local_14 == *(int *)puVar6) {
    return local_18;
  }
  iVar4 = local_14;
  puVar6 = PTR___stack_chk_fail_00190df8;
  (*(code *)PTR___stack_chk_fail_00190df8)();
  iVar2 = (**(code **)(puVar6 + 0x170904))(uVar5);
  piVar3 = (int *)FUN_00020368(iVar4,iVar2 * 0x1c + 1);
  if (piVar3 != (int *)0x0) {
    pcVar7 = *(code **)(puVar6 + 0x1709b0);
    *piVar3 = (int)(piVar3 + 7);
    (*pcVar7)(piVar3 + 7,uVar5,iVar2 + 1);
  }
  return piVar3;
}

