
char * sqlite3MPrintf(sqlite3 *db,char *zFormat,...)

{
  undefined4 *puVar1;
  char *pcVar2;
  char *pcVar3;
  undefined4 uVar4;
  int lineno;
  undefined4 in_a2;
  undefined4 in_a3;
  sqlite3 *db_00;
  undefined4 *puVar5;
  undefined *puVar6;
  undefined4 uStackX_8;
  undefined4 uStackX_c;
  va_list ap;
  
  puVar6 = PTR___stack_chk_guard_0015ba2c;
  pcVar3 = (char *)&uStackX_8;
  puVar1 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;
  uStackX_8 = in_a2;
  uStackX_c = in_a3;
  pcVar2 = sqlite3VMPrintf(db,zFormat,pcVar3);
  if (puVar1 == *(undefined4 **)puVar6) {
    return pcVar2;
  }
  puVar6 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  db_00 = (sqlite3 *)*puVar1;
  if (db_00->mallocFailed == '\0') {
    puVar5 = (undefined4 *)puVar1[1];
    pcVar2 = (char *)*puVar5;
    if (pcVar2 == (char *)0x0) {
      if ((puVar1[4] & 1) == 0) {
        if ((db_00->flags & 1) == 0) {
          if (zFormat == (char *)0x0) {
            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);
          }
          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);
          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {
            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,
                                    pcVar3);
          }
          lineno = 0x1e23a;
          *(char **)puVar1[1] = pcVar2;
        }
        else {
          lineno = 0x1e233;
        }
        pcVar3 = (char *)sqlite3CorruptError(lineno);
        puVar1[3] = pcVar3;
        return pcVar3;
      }
      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);
      *puVar5 = uVar4;
      pcVar2 = (char *)0x1;
      puVar1[3] = 1;
    }
  }
  else {
    pcVar2 = &DAT_00000007;
    puVar1[3] = 7;
  }
  return pcVar2;
}



void FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  char *pcVar4;
  int iVar5;
  int *piVar6;
  undefined *puVar7;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar7 = PTR___stack_chk_guard_0015ba2c;
  pcVar4 = (char *)&local_res8;
  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;
  local_res8 = param_3;
  local_resc = param_4;
  FUN_0006fdc8();
  if (piVar1 == *(int **)puVar7) {
    return;
  }
  puVar7 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  iVar5 = *piVar1;
  if (*(char *)(iVar5 + 0x51) == '\0') {
    piVar6 = (int *)piVar1[1];
    if (*piVar6 == 0) {
      if ((piVar1[4] & 1U) == 0) {
        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {
          if (param_2 == 0) {
            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;
          }
          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);
          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {
            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);
          }
          uVar3 = 0x1e23a;
          *(undefined4 *)piVar1[1] = uVar2;
        }
        else {
          uVar3 = 0x1e233;
        }
        iVar5 = FUN_00068a40(uVar3);
        piVar1[3] = iVar5;
        return;
      }
      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);
      *piVar6 = iVar5;
      piVar1[3] = 1;
    }
  }
  else {
    piVar1[3] = 7;
  }
  return;
}


lui gp,0xf
addiu gp,gp,-0x76bc
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7e70(gp)
addiu v0,sp,0x30
sw s0,0x20(sp)
addiu t9,t9,-0x238
sw gp,0x10(sp)
sw a2,0x30(sp)
or a2,v0,zero
sw ra,0x24(sp)
sw a3,0x34(sp)
sw v0,0x18(sp)
lw s0,-0x7b84(gp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
bal 0x0006fdc8
_nop
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x0007acd8
_lw gp,0x10(sp)
lw ra,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "void FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "pcVar4 = (char *)&local_res8;" (assignment_expression "pcVar4 = (char *)&local_res8" identifier = (cast_expression "(char *)&local_res8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_res8" & identifier))) ;) (expression_statement "piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "FUN_0006fdc8();" (call_expression "FUN_0006fdc8()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar1 == *(int **)puVar7) {\n    return;\n  }" if (parenthesized_expression "(piVar1 == *(int **)puVar7)" ( (binary_expression "piVar1 == *(int **)puVar7" identifier == (pointer_expression "*(int **)puVar7" * (cast_expression "(int **)puVar7" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar7 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }" if (parenthesized_expression "(*(char *)(iVar5 + 0x51) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" * (cast_expression "(char *)(iVar5 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x51)" ( (binary_expression "iVar5 + 0x51" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }" { (if_statement "if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }" if (parenthesized_expression "((piVar1[4] & 1U) == 0)" ( (binary_expression "(piVar1[4] & 1U) == 0" (parenthesized_expression "(piVar1[4] & 1U)" ( (binary_expression "piVar1[4] & 1U" (subscript_expression "piVar1[4]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }" { (if_statement "if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }" if (parenthesized_expression "((*(uint *)(iVar5 + 0x24) & 1) == 0)" ( (binary_expression "(*(uint *)(iVar5 + 0x24) & 1) == 0" (parenthesized_expression "(*(uint *)(iVar5 + 0x24) & 1)" ( (binary_expression "*(uint *)(iVar5 + 0x24) & 1" (pointer_expression "*(uint *)(iVar5 + 0x24)" * (cast_expression "(uint *)(iVar5 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }" { (if_statement "if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }" { (expression_statement "param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;" (assignment_expression "param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774" identifier = (binary_expression "*(int *)(puVar7 + 0xe0918) + -0x4774" (pointer_expression "*(int *)(puVar7 + 0xe0918)" * (cast_expression "(int *)(puVar7 + 0xe0918)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe0918)" ( (binary_expression "puVar7 + 0xe0918" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);" (assignment_expression "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" identifier = (call_expression "FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" identifier (argument_list "(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" ( identifier , (binary_expression "*(int *)(puVar7 + 0xe0904) + 0x7b40" (pointer_expression "*(int *)(puVar7 + 0xe0904)" * (cast_expression "(int *)(puVar7 + 0xe0904)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe0904)" ( (binary_expression "puVar7 + 0xe0904" identifier + number_literal) )))) + number_literal) , identifier )))) ;) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }" if (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }" { (expression_statement "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);" (assignment_expression "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" identifier = (call_expression "FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" identifier (argument_list "(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" ( identifier , (binary_expression "*(int *)(puVar7 + 0xe0904) + 0x7b60" (pointer_expression "*(int *)(puVar7 + 0xe0904)" * (cast_expression "(int *)(puVar7 + 0xe0904)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe0904)" ( (binary_expression "puVar7 + 0xe0904" identifier + number_literal) )))) + number_literal) , identifier , identifier )))) ;) })) (expression_statement "uVar3 = 0x1e23a;" (assignment_expression "uVar3 = 0x1e23a" identifier = number_literal) ;) (expression_statement "*(undefined4 *)piVar1[1] = uVar2;" (assignment_expression "*(undefined4 *)piVar1[1] = uVar2" (pointer_expression "*(undefined4 *)piVar1[1]" * (cast_expression "(undefined4 *)piVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n          uVar3 = 0x1e233;\n        }" else (compound_statement "{\n          uVar3 = 0x1e233;\n        }" { (expression_statement "uVar3 = 0x1e233;" (assignment_expression "uVar3 = 0x1e233" identifier = number_literal) ;) }))) (expression_statement "iVar5 = FUN_00068a40(uVar3);" (assignment_expression "iVar5 = FUN_00068a40(uVar3)" identifier = (call_expression "FUN_00068a40(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "piVar1[3] = iVar5;" (assignment_expression "piVar1[3] = iVar5" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);" (assignment_expression "iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4)" identifier = (call_expression "(*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4)" (parenthesized_expression "(*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))" ( (pointer_expression "*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" * (cast_expression "(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" ( (binary_expression "*(int *)(puVar7 + 0xe09f4) + -0x23a0" (pointer_expression "*(int *)(puVar7 + 0xe09f4)" * (cast_expression "(int *)(puVar7 + 0xe09f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe09f4)" ( (binary_expression "puVar7 + 0xe09f4" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(iVar5,pcVar4)" ( identifier , identifier )))) ;) (expression_statement "*piVar6 = iVar5;" (assignment_expression "*piVar6 = iVar5" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "piVar1[3] = 1;" (assignment_expression "piVar1[3] = 1" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    piVar1[3] = 7;\n  }" else (compound_statement "{\n    piVar1[3] = 7;\n  }" { (expression_statement "piVar1[3] = 7;" (assignment_expression "piVar1[3] = 7" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "char * sqlite3MPrintf(sqlite3 *db,char *zFormat,...)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int lineno;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  sqlite3 *db_00;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  undefined4 uStackX_8;\n  undefined4 uStackX_c;\n  va_list ap;\n  \n  puVar6 = PTR___stack_chk_guard_0015ba2c;\n  pcVar3 = (char *)&uStackX_8;\n  puVar1 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  uStackX_8 = in_a2;\n  uStackX_c = in_a3;\n  pcVar2 = sqlite3VMPrintf(db,zFormat,pcVar3);\n  if (puVar1 == *(undefined4 **)puVar6) {\n    return pcVar2;\n  }\n  puVar6 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  db_00 = (sqlite3 *)*puVar1;\n  if (db_00->mallocFailed == '\0') {\n    puVar5 = (undefined4 *)puVar1[1];\n    pcVar2 = (char *)*puVar5;\n    if (pcVar2 == (char *)0x0) {\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }\n  }\n  else {\n    pcVar2 = &DAT_00000007;\n    puVar1[3] = 7;\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * sqlite3MPrintf(sqlite3 *db,char *zFormat,...)\n\n{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int lineno;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  sqlite3 *db_00;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  undefined4 uStackX_8;\n  undefined4 uStackX_c;\n  va_list ap;\n  \n  puVar6 = PTR___stack_chk_guard_0015ba2c;\n  pcVar3 = (char *)&uStackX_8;\n  puVar1 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  uStackX_8 = in_a2;\n  uStackX_c = in_a3;\n  pcVar2 = sqlite3VMPrintf(db,zFormat,pcVar3);\n  if (puVar1 == *(undefined4 **)puVar6) {\n    return pcVar2;\n  }\n  puVar6 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  db_00 = (sqlite3 *)*puVar1;\n  if (db_00->mallocFailed == '\0') {\n    puVar5 = (undefined4 *)puVar1[1];\n    pcVar2 = (char *)*puVar5;\n    if (pcVar2 == (char *)0x0) {\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }\n  }\n  else {\n    pcVar2 = &DAT_00000007;\n    puVar1[3] = 7;\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* sqlite3MPrintf(sqlite3 *db,char *zFormat,...)" * (function_declarator "sqlite3MPrintf(sqlite3 *db,char *zFormat,...)" identifier (parameter_list "(sqlite3 *db,char *zFormat,...)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zFormat" primitive_type (pointer_declarator "*zFormat" * identifier)) , (variadic_parameter "..." ...) )))) (compound_statement "{\n  undefined4 *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined4 uVar4;\n  int lineno;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  sqlite3 *db_00;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  undefined4 uStackX_8;\n  undefined4 uStackX_c;\n  va_list ap;\n  \n  puVar6 = PTR___stack_chk_guard_0015ba2c;\n  pcVar3 = (char *)&uStackX_8;\n  puVar1 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;\n  uStackX_8 = in_a2;\n  uStackX_c = in_a3;\n  pcVar2 = sqlite3VMPrintf(db,zFormat,pcVar3);\n  if (puVar1 == *(undefined4 **)puVar6) {\n    return pcVar2;\n  }\n  puVar6 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  db_00 = (sqlite3 *)*puVar1;\n  if (db_00->mallocFailed == '\0') {\n    puVar5 = (undefined4 *)puVar1[1];\n    pcVar2 = (char *)*puVar5;\n    if (pcVar2 == (char *)0x0) {\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }\n  }\n  else {\n    pcVar2 = &DAT_00000007;\n    puVar1[3] = 7;\n  }\n  return pcVar2;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int lineno;" primitive_type identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "sqlite3 *db_00;" type_identifier (pointer_declarator "*db_00" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uStackX_8;" type_identifier identifier ;) (declaration "undefined4 uStackX_c;" type_identifier identifier ;) (declaration "va_list ap;" type_identifier identifier ;) (expression_statement "puVar6 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar6 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "pcVar3 = (char *)&uStackX_8;" (assignment_expression "pcVar3 = (char *)&uStackX_8" identifier = (cast_expression "(char *)&uStackX_8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&uStackX_8" & identifier))) ;) (expression_statement "puVar1 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = *(undefined4 **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(undefined4 **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(undefined4 **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uStackX_8 = in_a2;" (assignment_expression "uStackX_8 = in_a2" identifier = identifier) ;) (expression_statement "uStackX_c = in_a3;" (assignment_expression "uStackX_c = in_a3" identifier = identifier) ;) (expression_statement "pcVar2 = sqlite3VMPrintf(db,zFormat,pcVar3);" (assignment_expression "pcVar2 = sqlite3VMPrintf(db,zFormat,pcVar3)" identifier = (call_expression "sqlite3VMPrintf(db,zFormat,pcVar3)" identifier (argument_list "(db,zFormat,pcVar3)" ( identifier , identifier , identifier )))) ;) (if_statement "if (puVar1 == *(undefined4 **)puVar6) {\n    return pcVar2;\n  }" if (parenthesized_expression "(puVar1 == *(undefined4 **)puVar6)" ( (binary_expression "puVar1 == *(undefined4 **)puVar6" identifier == (pointer_expression "*(undefined4 **)puVar6" * (cast_expression "(undefined4 **)puVar6" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return pcVar2;\n  }" { (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "puVar6 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar6 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "db_00 = (sqlite3 *)*puVar1;" (assignment_expression "db_00 = (sqlite3 *)*puVar1" identifier = (cast_expression "(sqlite3 *)*puVar1" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ;) (if_statement "if (db_00->mallocFailed == '\0') {\n    puVar5 = (undefined4 *)puVar1[1];\n    pcVar2 = (char *)*puVar5;\n    if (pcVar2 == (char *)0x0) {\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }\n  }\n  else {\n    pcVar2 = &DAT_00000007;\n    puVar1[3] = 7;\n  }" if (parenthesized_expression "(db_00->mallocFailed == '\0')" ( (binary_expression "db_00->mallocFailed == '\0'" (field_expression "db_00->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar5 = (undefined4 *)puVar1[1];\n    pcVar2 = (char *)*puVar5;\n    if (pcVar2 == (char *)0x0) {\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }\n  }" { (expression_statement "puVar5 = (undefined4 *)puVar1[1];" (assignment_expression "puVar5 = (undefined4 *)puVar1[1]" identifier = (cast_expression "(undefined4 *)puVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) ;) (expression_statement "pcVar2 = (char *)*puVar5;" (assignment_expression "pcVar2 = (char *)*puVar5" identifier = (cast_expression "(char *)*puVar5" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) (if_statement "if (pcVar2 == (char *)0x0) {\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }" if (parenthesized_expression "(pcVar2 == (char *)0x0)" ( (binary_expression "pcVar2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }\n      uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);\n      *puVar5 = uVar4;\n      pcVar2 = (char *)0x1;\n      puVar1[3] = 1;\n    }" { (if_statement "if ((puVar1[4] & 1) == 0) {\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }" if (parenthesized_expression "((puVar1[4] & 1) == 0)" ( (binary_expression "(puVar1[4] & 1) == 0" (parenthesized_expression "(puVar1[4] & 1)" ( (binary_expression "puVar1[4] & 1" (subscript_expression "puVar1[4]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }\n        pcVar3 = (char *)sqlite3CorruptError(lineno);\n        puVar1[3] = pcVar3;\n        return pcVar3;\n      }" { (if_statement "if ((db_00->flags & 1) == 0) {\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }\n        else {\n          lineno = 0x1e233;\n        }" if (parenthesized_expression "((db_00->flags & 1) == 0)" ( (binary_expression "(db_00->flags & 1) == 0" (parenthesized_expression "(db_00->flags & 1)" ( (binary_expression "db_00->flags & 1" (field_expression "db_00->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }\n          pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);\n          if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }\n          lineno = 0x1e23a;\n          *(char **)puVar1[1] = pcVar2;\n        }" { (if_statement "if (zFormat == (char *)0x0) {\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }" if (parenthesized_expression "(zFormat == (char *)0x0)" ( (binary_expression "zFormat == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);\n          }" { (expression_statement "zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774);" (assignment_expression "zFormat = (char *)(*(int *)(puVar6 + 0xe0918) + -0x4774)" identifier = (cast_expression "(char *)(*(int *)(puVar6 + 0xe0918) + -0x4774)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0xe0918) + -0x4774)" ( (binary_expression "*(int *)(puVar6 + 0xe0918) + -0x4774" (pointer_expression "*(int *)(puVar6 + 0xe0918)" * (cast_expression "(int *)(puVar6 + 0xe0918)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xe0918)" ( (binary_expression "puVar6 + 0xe0918" identifier + number_literal) )))) + number_literal) )))) ;) })) (expression_statement "pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat);" (assignment_expression "pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat)" identifier = (call_expression "sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat)" identifier (argument_list "(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40),zFormat)" ( identifier , (cast_expression "(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b40)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0xe0904) + 0x7b40)" ( (binary_expression "*(int *)(puVar6 + 0xe0904) + 0x7b40" (pointer_expression "*(int *)(puVar6 + 0xe0904)" * (cast_expression "(int *)(puVar6 + 0xe0904)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xe0904)" ( (binary_expression "puVar6 + 0xe0904" identifier + number_literal) )))) + number_literal) ))) , identifier )))) ;) (if_statement "if ((pcVar3 != (char *)0x0) && (*pcVar3 != '\0')) {\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }" if (parenthesized_expression "((pcVar3 != (char *)0x0) && (*pcVar3 != '\0'))" ( (binary_expression "(pcVar3 != (char *)0x0) && (*pcVar3 != '\0')" (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar3 != '\0')" ( (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n            pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);\n          }" { (expression_statement "pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3);" (assignment_expression "pcVar2 = sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3)" identifier = (call_expression "sqlite3MPrintf(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3)" identifier (argument_list "(db_00,(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60),pcVar2,\n                                    pcVar3)" ( identifier , (cast_expression "(char *)(*(int *)(puVar6 + 0xe0904) + 0x7b60)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0xe0904) + 0x7b60)" ( (binary_expression "*(int *)(puVar6 + 0xe0904) + 0x7b60" (pointer_expression "*(int *)(puVar6 + 0xe0904)" * (cast_expression "(int *)(puVar6 + 0xe0904)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xe0904)" ( (binary_expression "puVar6 + 0xe0904" identifier + number_literal) )))) + number_literal) ))) , identifier , identifier )))) ;) })) (expression_statement "lineno = 0x1e23a;" (assignment_expression "lineno = 0x1e23a" identifier = number_literal) ;) (expression_statement "*(char **)puVar1[1] = pcVar2;" (assignment_expression "*(char **)puVar1[1] = pcVar2" (pointer_expression "*(char **)puVar1[1]" * (cast_expression "(char **)puVar1[1]" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n          lineno = 0x1e233;\n        }" else (compound_statement "{\n          lineno = 0x1e233;\n        }" { (expression_statement "lineno = 0x1e233;" (assignment_expression "lineno = 0x1e233" identifier = number_literal) ;) }))) (expression_statement "pcVar3 = (char *)sqlite3CorruptError(lineno);" (assignment_expression "pcVar3 = (char *)sqlite3CorruptError(lineno)" identifier = (cast_expression "(char *)sqlite3CorruptError(lineno)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3CorruptError(lineno)" identifier (argument_list "(lineno)" ( identifier ))))) ;) (expression_statement "puVar1[3] = pcVar3;" (assignment_expression "puVar1[3] = pcVar3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3);" (assignment_expression "uVar4 = (*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3)" identifier = (call_expression "(*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))(db_00,pcVar3)" (parenthesized_expression "(*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0))" ( (pointer_expression "*(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0)" * (cast_expression "(code *)(*(int *)(puVar6 + 0xe09f4) + -0x23a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar6 + 0xe09f4) + -0x23a0)" ( (binary_expression "*(int *)(puVar6 + 0xe09f4) + -0x23a0" (pointer_expression "*(int *)(puVar6 + 0xe09f4)" * (cast_expression "(int *)(puVar6 + 0xe09f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar6 + 0xe09f4)" ( (binary_expression "puVar6 + 0xe09f4" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(db_00,pcVar3)" ( identifier , identifier )))) ;) (expression_statement "*puVar5 = uVar4;" (assignment_expression "*puVar5 = uVar4" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "pcVar2 = (char *)0x1;" (assignment_expression "pcVar2 = (char *)0x1" identifier = (cast_expression "(char *)0x1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar1[3] = 1;" (assignment_expression "puVar1[3] = 1" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    pcVar2 = &DAT_00000007;\n    puVar1[3] = 7;\n  }" else (compound_statement "{\n    pcVar2 = &DAT_00000007;\n    puVar1[3] = 7;\n  }" { (expression_statement "pcVar2 = &DAT_00000007;" (assignment_expression "pcVar2 = &DAT_00000007" identifier = (pointer_expression "&DAT_00000007" & identifier)) ;) (expression_statement "puVar1[3] = 7;" (assignment_expression "puVar1[3] = 7" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "void FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "puVar7 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "pcVar4 = (char *)&local_res8;" (assignment_expression "pcVar4 = (char *)&local_res8" identifier = (cast_expression "(char *)&local_res8" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&local_res8" & identifier))) ;) (expression_statement "piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" identifier = identifier) ;) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" identifier = identifier) ;) (expression_statement "FUN_0006fdc8();" (call_expression "FUN_0006fdc8()" identifier (argument_list "()" ( ))) ;) (if_statement "if (piVar1 == *(int **)puVar7) {\n    return;\n  }" if (parenthesized_expression "(piVar1 == *(int **)puVar7)" ( (binary_expression "piVar1 == *(int **)puVar7" identifier == (pointer_expression "*(int **)puVar7" * (cast_expression "(int **)puVar7" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar7 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }" if (parenthesized_expression "(*(char *)(iVar5 + 0x51) == '\0')" ( (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" * (cast_expression "(char *)(iVar5 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x51)" ( (binary_expression "iVar5 + 0x51" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }" { (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" identifier = (cast_expression "(int *)piVar1[1]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) ;) (if_statement "if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }" if (parenthesized_expression "(*piVar6 == 0)" ( (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" * identifier) == number_literal) )) (compound_statement "{\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }" { (if_statement "if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }" if (parenthesized_expression "((piVar1[4] & 1U) == 0)" ( (binary_expression "(piVar1[4] & 1U) == 0" (parenthesized_expression "(piVar1[4] & 1U)" ( (binary_expression "piVar1[4] & 1U" (subscript_expression "piVar1[4]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) (compound_statement "{\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }" { (if_statement "if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }" if (parenthesized_expression "((*(uint *)(iVar5 + 0x24) & 1) == 0)" ( (binary_expression "(*(uint *)(iVar5 + 0x24) & 1) == 0" (parenthesized_expression "(*(uint *)(iVar5 + 0x24) & 1)" ( (binary_expression "*(uint *)(iVar5 + 0x24) & 1" (pointer_expression "*(uint *)(iVar5 + 0x24)" * (cast_expression "(uint *)(iVar5 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }" { (if_statement "if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }" { (expression_statement "param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;" (assignment_expression "param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774" identifier = (binary_expression "*(int *)(puVar7 + 0xe0918) + -0x4774" (pointer_expression "*(int *)(puVar7 + 0xe0918)" * (cast_expression "(int *)(puVar7 + 0xe0918)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe0918)" ( (binary_expression "puVar7 + 0xe0918" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);" (assignment_expression "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" identifier = (call_expression "FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" identifier (argument_list "(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" ( identifier , (binary_expression "*(int *)(puVar7 + 0xe0904) + 0x7b40" (pointer_expression "*(int *)(puVar7 + 0xe0904)" * (cast_expression "(int *)(puVar7 + 0xe0904)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe0904)" ( (binary_expression "puVar7 + 0xe0904" identifier + number_literal) )))) + number_literal) , identifier )))) ;) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }" if (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" ( (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*pcVar4 != '\0')" ( (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }" { (expression_statement "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);" (assignment_expression "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" identifier = (call_expression "FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" identifier (argument_list "(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" ( identifier , (binary_expression "*(int *)(puVar7 + 0xe0904) + 0x7b60" (pointer_expression "*(int *)(puVar7 + 0xe0904)" * (cast_expression "(int *)(puVar7 + 0xe0904)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe0904)" ( (binary_expression "puVar7 + 0xe0904" identifier + number_literal) )))) + number_literal) , identifier , identifier )))) ;) })) (expression_statement "uVar3 = 0x1e23a;" (assignment_expression "uVar3 = 0x1e23a" identifier = number_literal) ;) (expression_statement "*(undefined4 *)piVar1[1] = uVar2;" (assignment_expression "*(undefined4 *)piVar1[1] = uVar2" (pointer_expression "*(undefined4 *)piVar1[1]" * (cast_expression "(undefined4 *)piVar1[1]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[1]" identifier [ number_literal ]))) = identifier) ;) }) (else_clause "else {\n          uVar3 = 0x1e233;\n        }" else (compound_statement "{\n          uVar3 = 0x1e233;\n        }" { (expression_statement "uVar3 = 0x1e233;" (assignment_expression "uVar3 = 0x1e233" identifier = number_literal) ;) }))) (expression_statement "iVar5 = FUN_00068a40(uVar3);" (assignment_expression "iVar5 = FUN_00068a40(uVar3)" identifier = (call_expression "FUN_00068a40(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "piVar1[3] = iVar5;" (assignment_expression "piVar1[3] = iVar5" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);" (assignment_expression "iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4)" identifier = (call_expression "(*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4)" (parenthesized_expression "(*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))" ( (pointer_expression "*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" * (cast_expression "(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" ( (binary_expression "*(int *)(puVar7 + 0xe09f4) + -0x23a0" (pointer_expression "*(int *)(puVar7 + 0xe09f4)" * (cast_expression "(int *)(puVar7 + 0xe09f4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar7 + 0xe09f4)" ( (binary_expression "puVar7 + 0xe09f4" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(iVar5,pcVar4)" ( identifier , identifier )))) ;) (expression_statement "*piVar6 = iVar5;" (assignment_expression "*piVar6 = iVar5" (pointer_expression "*piVar6" * identifier) = identifier) ;) (expression_statement "piVar1[3] = 1;" (assignment_expression "piVar1[3] = 1" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    piVar1[3] = 7;\n  }" else (compound_statement "{\n    piVar1[3] = 7;\n  }" { (expression_statement "piVar1[3] = 7;" (assignment_expression "piVar1[3] = 7" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (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 = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT) )) (compound_statement { (if_statement if (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) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )) (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0007ac6c(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0007ac6c") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  int iVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  puVar7 = PTR___stack_chk_guard_0015ba2c;\n  pcVar4 = (char *)&local_res8;\n  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;\n  local_res8 = param_3;\n  local_resc = param_4;\n  FUN_0006fdc8();\n  if (piVar1 == *(int **)puVar7) {\n    return;\n  }\n  puVar7 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  iVar5 = *piVar1;\n  if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "puVar7 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar7 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "pcVar4 = (char *)&local_res8;" (assignment_expression "pcVar4 = (char *)&local_res8" (identifier "pcVar4") (= "=") (cast_expression "(char *)&local_res8" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&local_res8" (& "&") (identifier "local_res8")))) (; ";")) (expression_statement "piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c" (identifier "piVar1") (= "=") (pointer_expression "*(int **)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int **)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "local_res8 = param_3;" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (; ";")) (expression_statement "local_resc = param_4;" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (; ";")) (expression_statement "FUN_0006fdc8();" (call_expression "FUN_0006fdc8()" (identifier "FUN_0006fdc8") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (piVar1 == *(int **)puVar7) {\n    return;\n  }" (if "if") (parenthesized_expression "(piVar1 == *(int **)puVar7)" (( "(") (binary_expression "piVar1 == *(int **)puVar7" (identifier "piVar1") (== "==") (pointer_expression "*(int **)puVar7" (* "*") (cast_expression "(int **)puVar7" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar7")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar7 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar7 = PTR___stack_chk_fail_0015ba10" (identifier "puVar7") (= "=") (identifier "PTR___stack_chk_fail_0015ba10")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = *piVar1;" (assignment_expression "iVar5 = *piVar1" (identifier "iVar5") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (*(char *)(iVar5 + 0x51) == '\0') {\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }\n  else {\n    piVar1[3] = 7;\n  }" (if "if") (parenthesized_expression "(*(char *)(iVar5 + 0x51) == '\0')" (( "(") (binary_expression "*(char *)(iVar5 + 0x51) == '\0'" (pointer_expression "*(char *)(iVar5 + 0x51)" (* "*") (cast_expression "(char *)(iVar5 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x51)" (( "(") (binary_expression "iVar5 + 0x51" (identifier "iVar5") (+ "+") (number_literal "0x51")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    piVar6 = (int *)piVar1[1];\n    if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }\n  }" ({ "{") (expression_statement "piVar6 = (int *)piVar1[1];" (assignment_expression "piVar6 = (int *)piVar1[1]" (identifier "piVar6") (= "=") (cast_expression "(int *)piVar1[1]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (*piVar6 == 0) {\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }" (if "if") (parenthesized_expression "(*piVar6 == 0)" (( "(") (binary_expression "*piVar6 == 0" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }\n      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);\n      *piVar6 = iVar5;\n      piVar1[3] = 1;\n    }" ({ "{") (if_statement "if ((piVar1[4] & 1U) == 0) {\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }" (if "if") (parenthesized_expression "((piVar1[4] & 1U) == 0)" (( "(") (binary_expression "(piVar1[4] & 1U) == 0" (parenthesized_expression "(piVar1[4] & 1U)" (( "(") (binary_expression "piVar1[4] & 1U" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (& "&") (number_literal "1U")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }\n        iVar5 = FUN_00068a40(uVar3);\n        piVar1[3] = iVar5;\n        return;\n      }" ({ "{") (if_statement "if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }\n        else {\n          uVar3 = 0x1e233;\n        }" (if "if") (parenthesized_expression "((*(uint *)(iVar5 + 0x24) & 1) == 0)" (( "(") (binary_expression "(*(uint *)(iVar5 + 0x24) & 1) == 0" (parenthesized_expression "(*(uint *)(iVar5 + 0x24) & 1)" (( "(") (binary_expression "*(uint *)(iVar5 + 0x24) & 1" (pointer_expression "*(uint *)(iVar5 + 0x24)" (* "*") (cast_expression "(uint *)(iVar5 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x24)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }\n          uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);\n          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }\n          uVar3 = 0x1e23a;\n          *(undefined4 *)piVar1[1] = uVar2;\n        }" ({ "{") (if_statement "if (param_2 == 0) {\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;\n          }" ({ "{") (expression_statement "param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;" (assignment_expression "param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774" (identifier "param_2") (= "=") (binary_expression "*(int *)(puVar7 + 0xe0918) + -0x4774" (pointer_expression "*(int *)(puVar7 + 0xe0918)" (* "*") (cast_expression "(int *)(puVar7 + 0xe0918)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0xe0918)" (( "(") (binary_expression "puVar7 + 0xe0918" (identifier "puVar7") (+ "+") (number_literal "0xe0918")) () ")")))) (+ "+") (number_literal "-0x4774"))) (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);" (assignment_expression "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" (identifier "uVar2") (= "=") (call_expression "FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" (identifier "FUN_0007ac6c") (argument_list "(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2)" (( "(") (identifier "iVar5") (, ",") (binary_expression "*(int *)(puVar7 + 0xe0904) + 0x7b40" (pointer_expression "*(int *)(puVar7 + 0xe0904)" (* "*") (cast_expression "(int *)(puVar7 + 0xe0904)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0xe0904)" (( "(") (binary_expression "puVar7 + 0xe0904" (identifier "puVar7") (+ "+") (number_literal "0xe0904")) () ")")))) (+ "+") (number_literal "0x7b40")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }" (if "if") (parenthesized_expression "((pcVar4 != (char *)0x0) && (*pcVar4 != '\0'))" (( "(") (binary_expression "(pcVar4 != (char *)0x0) && (*pcVar4 != '\0')" (parenthesized_expression "(pcVar4 != (char *)0x0)" (( "(") (binary_expression "pcVar4 != (char *)0x0" (identifier "pcVar4") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*pcVar4 != '\0')" (( "(") (binary_expression "*pcVar4 != '\0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n            uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);\n          }" ({ "{") (expression_statement "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);" (assignment_expression "uVar2 = FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" (identifier "uVar2") (= "=") (call_expression "FUN_0007ac6c(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" (identifier "FUN_0007ac6c") (argument_list "(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4)" (( "(") (identifier "iVar5") (, ",") (binary_expression "*(int *)(puVar7 + 0xe0904) + 0x7b60" (pointer_expression "*(int *)(puVar7 + 0xe0904)" (* "*") (cast_expression "(int *)(puVar7 + 0xe0904)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0xe0904)" (( "(") (binary_expression "puVar7 + 0xe0904" (identifier "puVar7") (+ "+") (number_literal "0xe0904")) () ")")))) (+ "+") (number_literal "0x7b60")) (, ",") (identifier "uVar2") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (} "}"))) (expression_statement "uVar3 = 0x1e23a;" (assignment_expression "uVar3 = 0x1e23a" (identifier "uVar3") (= "=") (number_literal "0x1e23a")) (; ";")) (expression_statement "*(undefined4 *)piVar1[1] = uVar2;" (assignment_expression "*(undefined4 *)piVar1[1] = uVar2" (pointer_expression "*(undefined4 *)piVar1[1]" (* "*") (cast_expression "(undefined4 *)piVar1[1]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")))) (= "=") (identifier "uVar2")) (; ";")) (} "}")) (else_clause "else {\n          uVar3 = 0x1e233;\n        }" (else "else") (compound_statement "{\n          uVar3 = 0x1e233;\n        }" ({ "{") (expression_statement "uVar3 = 0x1e233;" (assignment_expression "uVar3 = 0x1e233" (identifier "uVar3") (= "=") (number_literal "0x1e233")) (; ";")) (} "}")))) (expression_statement "iVar5 = FUN_00068a40(uVar3);" (assignment_expression "iVar5 = FUN_00068a40(uVar3)" (identifier "iVar5") (= "=") (call_expression "FUN_00068a40(uVar3)" (identifier "FUN_00068a40") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (expression_statement "piVar1[3] = iVar5;" (assignment_expression "piVar1[3] = iVar5" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);" (assignment_expression "iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4)" (identifier "iVar5") (= "=") (call_expression "(*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4)" (parenthesized_expression "(*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))" (( "(") (pointer_expression "*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" (* "*") (cast_expression "(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar7 + 0xe09f4) + -0x23a0)" (( "(") (binary_expression "*(int *)(puVar7 + 0xe09f4) + -0x23a0" (pointer_expression "*(int *)(puVar7 + 0xe09f4)" (* "*") (cast_expression "(int *)(puVar7 + 0xe09f4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar7 + 0xe09f4)" (( "(") (binary_expression "puVar7 + 0xe09f4" (identifier "puVar7") (+ "+") (number_literal "0xe09f4")) () ")")))) (+ "+") (number_literal "-0x23a0")) () ")")))) () ")")) (argument_list "(iVar5,pcVar4)" (( "(") (identifier "iVar5") (, ",") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "*piVar6 = iVar5;" (assignment_expression "*piVar6 = iVar5" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "piVar1[3] = 1;" (assignment_expression "piVar1[3] = 1" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    piVar1[3] = 7;\n  }" (else "else") (compound_statement "{\n    piVar1[3] = 7;\n  }" ({ "{") (expression_statement "piVar1[3] = 7;" (assignment_expression "piVar1[3] = 7" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "7")) (; ";")) (} "}")))) (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: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (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 declarator: (abstract_pointer_declarator))) value: (identifier))))) consequence: (compound_statement (return_statement))) (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: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) (identifier) (identifier))))))) (expression_statement (assignment_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: (subscript_expression argument: (identifier) index: (number_literal)))) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (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))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (return_statement))))

void MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  char *pcVar4;
  int iVar5;
  int *piVar6;
  undefined *puVar7;
  undefined4 local_res8;
  undefined4 local_resc;
  
  puVar7 = PTR___stack_chk_guard_0015ba2c;
  pcVar4 = (char *)&local_res8;
  piVar1 = *(int **)PTR___stack_chk_guard_0015ba2c;
  local_res8 = param_3;
  local_resc = param_4;
  FUN_0006fdc8();
  if (piVar1 == *(int **)puVar7) {
    return;
  }
  puVar7 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  iVar5 = *piVar1;
  if (*(char *)(iVar5 + 0x51) == '\0') {
    piVar6 = (int *)piVar1[1];
    if (*piVar6 == 0) {
      if ((piVar1[4] & 1U) == 0) {
        if ((*(uint *)(iVar5 + 0x24) & 1) == 0) {
          if (param_2 == 0) {
            param_2 = *(int *)(puVar7 + 0xe0918) + -0x4774;
          }
          uVar2 = MASKED(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b40,param_2);
          if ((pcVar4 != (char *)0x0) && (*pcVar4 != '\0')) {
            uVar2 = MASKED(iVar5,*(int *)(puVar7 + 0xe0904) + 0x7b60,uVar2,pcVar4);
          }
          uVar3 = 0x1e23a;
          *(undefined4 *)piVar1[1] = uVar2;
        }
        else {
          uVar3 = 0x1e233;
        }
        iVar5 = FUN_00068a40(uVar3);
        piVar1[3] = iVar5;
        return;
      }
      iVar5 = (*(code *)(*(int *)(puVar7 + 0xe09f4) + -0x23a0))(iVar5,pcVar4);
      *piVar6 = iVar5;
      piVar1[3] = 1;
    }
  }
  else {
    piVar1[3] = 7;
  }
  return;
}

