
int sqlite3ExprIsInteger(Expr *p,int *pValue)

{
  int iVar1;
  char cVar2;
  char *pcVar3;
  undefined *puVar4;
  int v;
  char *local_14;
  
  puVar4 = PTR___stack_chk_guard_000f5568;
  local_14 = *(char **)PTR___stack_chk_guard_000f5568;
  iVar1 = 0;
  if (p != (Expr *)0x0) {
    if ((p->flags & 0x400) == 0) {
      if (p->op == 0xaa) {
        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);
        if (iVar1 != 0) {
          iVar1 = 1;
          *pValue = -v;
        }
      }
      else if (p->op == 0xab) {
        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);
      }
      else {
        iVar1 = 0;
      }
    }
    else {
      iVar1 = 1;
      *pValue = (int)p->u;
    }
  }
  if (local_14 == *(char **)puVar4) {
    return iVar1;
  }
  pcVar3 = local_14;
  puVar4 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  cVar2 = *pcVar3;
  while ((byte)(cVar2 + 0x56U) < 2) {
    pcVar3 = *(char **)(pcVar3 + 0xc);
    cVar2 = *pcVar3;
  }
  if (cVar2 == -0x53) {
    cVar2 = pcVar3[2];
  }
  if ((byte)(cVar2 + 0x8d) < 0x32) {
                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +
                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();
    return iVar1;
  }
  return 0;
}



int FUN_00030254(char *param_1,int *param_2)

{
  int iVar1;
  char cVar2;
  char *pcVar3;
  undefined *puVar4;
  int local_18;
  char *local_14;
  
  puVar4 = PTR___stack_chk_guard_000f5568;
  local_14 = *(char **)PTR___stack_chk_guard_000f5568;
  iVar1 = 0;
  if (param_1 != (char *)0x0) {
    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {
      if (*param_1 == -0x56) {
        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);
        if (iVar1 != 0) {
          iVar1 = 1;
          *param_2 = -local_18;
        }
      }
      else if (*param_1 == -0x55) {
        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));
      }
      else {
        iVar1 = 0;
      }
    }
    else {
      iVar1 = 1;
      *param_2 = *(int *)(param_1 + 8);
    }
  }
  if (local_14 == *(char **)puVar4) {
    return iVar1;
  }
  pcVar3 = local_14;
  puVar4 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  cVar2 = *pcVar3;
  while ((byte)(cVar2 + 0x56U) < 2) {
    pcVar3 = *(char **)(pcVar3 + 0xc);
    cVar2 = *pcVar3;
  }
  if (cVar2 == -0x53) {
    cVar2 = pcVar3[2];
  }
  if ((byte)(cVar2 + 0x8d) < 0x32) {
                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +
                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();
    return iVar1;
  }
  return 0;
}


lui gp,0xd
addiu gp,gp,-0x2fb4
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x24(sp)
lw s0,-0x7d38(gp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s1,0x28(sp)
lw v0,0x0(s0)
sw v0,0x1c(sp)
beq a0,zero,0x000302d0
_or v0,zero,zero
lw v0,0x4(a0)
andi v0,v0,0x400
bne v0,zero,0x000302c4
_or s1,a1,zero
lbu v0,0x0(a0)
li v1,0xaa
beq v0,v1,0x000302f8
_li v1,0xab
bne v0,v1,0x000302f0
_lw t9,-0x7fb4(gp)
addiu t9,t9,0x254
bal 0x00030254
_lw a0,0xc(a0)
b 0x000302d0
_lw gp,0x10(sp)
lw v1,0x8(a0)
li v0,0x1
sw v1,0x0(a1)
lw a0,0x1c(sp)
lw v1,0x0(s0)
bne a0,v1,0x00030328
_lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
b 0x000302d0
_or v0,zero,zero
lw t9,-0x7fb4(gp)
addiu a1,sp,0x18
addiu t9,t9,0x254
bal 0x00030254
_lw a0,0xc(a0)
beq v0,zero,0x000302d0
_lw gp,0x10(sp)
lw v1,0x18(sp)
li v0,0x1
subu v1,zero,v1
b 0x000302d0
_sw v1,0x0(s1)
lw t9,-0x7d60(gp)
jalr t9
_nop
(translation_unit "int FUN_00030254(char *param_1,int *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_00030254(char *param_1,int *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_00030254(char *param_1,int *param_2)" identifier (parameter_list "(char *param_1,int *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "local_14 = *(char **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_14 = *(char **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(char **)PTR___stack_chk_guard_000f5568" * (cast_expression "(char **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }" { (if_statement "if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 4) & 0x400) == 0)" ( (binary_expression "(*(uint *)(param_1 + 4) & 0x400) == 0" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x400)" ( (binary_expression "*(uint *)(param_1 + 4) & 0x400" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }" { (if_statement "if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" if (parenthesized_expression "(*param_1 == -0x56)" ( (binary_expression "*param_1 == -0x56" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }" { (expression_statement "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);" (assignment_expression "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18)" identifier = (call_expression "FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),&local_18)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "&local_18" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*param_2 = -local_18;" (assignment_expression "*param_2 = -local_18" (pointer_expression "*param_2" * identifier) = (unary_expression "-local_18" - identifier)) ;) })) }) (else_clause "else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" else (if_statement "if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" if (parenthesized_expression "(*param_1 == -0x55)" ( (binary_expression "*param_1 == -0x55" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }" { (expression_statement "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_00030254(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) }) (else_clause "else {\n        iVar1 = 0;\n      }" else (compound_statement "{\n        iVar1 = 0;\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))))) }) (else_clause "else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" else (compound_statement "{\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*param_2 = *(int *)(param_1 + 8);" (assignment_expression "*param_2 = *(int *)(param_1 + 8)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) })) (if_statement "if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_14 == *(char **)puVar4)" ( (binary_expression "local_14 == *(char **)puVar4" identifier == (pointer_expression "*(char **)puVar4" * (cast_expression "(char **)puVar4" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (while_statement "while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" while (parenthesized_expression "((byte)(cVar2 + 0x56U) < 2)" ( (binary_expression "(byte)(cVar2 + 0x56U) < 2" (call_expression "(byte)(cVar2 + 0x56U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x56U)" ( (binary_expression "cVar2 + 0x56U" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" { (expression_statement "pcVar3 = *(char **)(pcVar3 + 0xc);" (assignment_expression "pcVar3 = *(char **)(pcVar3 + 0xc)" identifier = (pointer_expression "*(char **)(pcVar3 + 0xc)" * (cast_expression "(char **)(pcVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar3 + 0xc)" ( (binary_expression "pcVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (if_statement "if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }" if (parenthesized_expression "(cVar2 == -0x53)" ( (binary_expression "cVar2 == -0x53" identifier == number_literal) )) (compound_statement "{\n    cVar2 = pcVar3[2];\n  }" { (expression_statement "cVar2 = pcVar3[2];" (assignment_expression "cVar2 = pcVar3[2]" identifier = (subscript_expression "pcVar3[2]" identifier [ number_literal ])) ;) })) (if_statement "if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" if (parenthesized_expression "((byte)(cVar2 + 0x8d) < 0x32)" ( (binary_expression "(byte)(cVar2 + 0x8d) < 0x32" (call_expression "(byte)(cVar2 + 0x8d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x8d)" ( (binary_expression "cVar2 + 0x8d" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();" (assignment_expression "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" identifier = (call_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" (parenthesized_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))" ( (pointer_expression "*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" * (cast_expression "(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" ( (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c" (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" * (cast_expression "(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" ( (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4" (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc" (pointer_expression "*(int *)(puVar4 + 0xc4fa0)" * (cast_expression "(int *)(puVar4 + 0xc4fa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0xc4fa0)" ( (binary_expression "puVar4 + 0xc4fa0" identifier + number_literal) )))) + number_literal) + (binary_expression "(uint)(byte)(cVar2 + 0x8d) * 4" (call_expression "(uint)(byte)(cVar2 + 0x8d)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(cVar2 + 0x8d)" ( (binary_expression "cVar2 + 0x8d" identifier + number_literal) ))) * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3ExprIsInteger(Expr *p,int *pValue)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int v;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (p != (Expr *)0x0) {\n    if ((p->flags & 0x400) == 0) {\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int sqlite3ExprIsInteger(Expr *p,int *pValue)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int v;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (p != (Expr *)0x0) {\n    if ((p->flags & 0x400) == 0) {\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "sqlite3ExprIsInteger(Expr *p,int *pValue)" identifier (parameter_list "(Expr *p,int *pValue)" ( (parameter_declaration "Expr *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int *pValue" primitive_type (pointer_declarator "*pValue" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int v;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (p != (Expr *)0x0) {\n    if ((p->flags & 0x400) == 0) {\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int v;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "local_14 = *(char **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_14 = *(char **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(char **)PTR___stack_chk_guard_000f5568" * (cast_expression "(char **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (p != (Expr *)0x0) {\n    if ((p->flags & 0x400) == 0) {\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }\n  }" if (parenthesized_expression "(p != (Expr *)0x0)" ( (binary_expression "p != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((p->flags & 0x400) == 0) {\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }\n  }" { (if_statement "if ((p->flags & 0x400) == 0) {\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }" if (parenthesized_expression "((p->flags & 0x400) == 0)" ( (binary_expression "(p->flags & 0x400) == 0" (parenthesized_expression "(p->flags & 0x400)" ( (binary_expression "p->flags & 0x400" (field_expression "p->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }\n    }" { (if_statement "if (p->op == 0xaa) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }\n      else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }" if (parenthesized_expression "(p->op == 0xaa)" ( (binary_expression "p->op == 0xaa" (field_expression "p->op" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }\n      }" { (expression_statement "iVar1 = sqlite3ExprIsInteger(p->pLeft,&v);" (assignment_expression "iVar1 = sqlite3ExprIsInteger(p->pLeft,&v)" identifier = (call_expression "sqlite3ExprIsInteger(p->pLeft,&v)" identifier (argument_list "(p->pLeft,&v)" ( (field_expression "p->pLeft" identifier -> field_identifier) , (pointer_expression "&v" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n          iVar1 = 1;\n          *pValue = -v;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar1 = 1;\n          *pValue = -v;\n        }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*pValue = -v;" (assignment_expression "*pValue = -v" (pointer_expression "*pValue" * identifier) = (unary_expression "-v" - identifier)) ;) })) }) (else_clause "else if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }" else (if_statement "if (p->op == 0xab) {\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }\n      else {\n        iVar1 = 0;\n      }" if (parenthesized_expression "(p->op == 0xab)" ( (binary_expression "p->op == 0xab" (field_expression "p->op" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);\n      }" { (expression_statement "iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue);" (assignment_expression "iVar1 = sqlite3ExprIsInteger(p->pLeft,pValue)" identifier = (call_expression "sqlite3ExprIsInteger(p->pLeft,pValue)" identifier (argument_list "(p->pLeft,pValue)" ( (field_expression "p->pLeft" identifier -> field_identifier) , identifier )))) ;) }) (else_clause "else {\n        iVar1 = 0;\n      }" else (compound_statement "{\n        iVar1 = 0;\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))))) }) (else_clause "else {\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }" else (compound_statement "{\n      iVar1 = 1;\n      *pValue = (int)p->u;\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*pValue = (int)p->u;" (assignment_expression "*pValue = (int)p->u" (pointer_expression "*pValue" * identifier) = (cast_expression "(int)p->u" ( (type_descriptor "int" primitive_type) ) (field_expression "p->u" identifier -> field_identifier))) ;) }))) })) (if_statement "if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_14 == *(char **)puVar4)" ( (binary_expression "local_14 == *(char **)puVar4" identifier == (pointer_expression "*(char **)puVar4" * (cast_expression "(char **)puVar4" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (while_statement "while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" while (parenthesized_expression "((byte)(cVar2 + 0x56U) < 2)" ( (binary_expression "(byte)(cVar2 + 0x56U) < 2" (call_expression "(byte)(cVar2 + 0x56U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x56U)" ( (binary_expression "cVar2 + 0x56U" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" { (expression_statement "pcVar3 = *(char **)(pcVar3 + 0xc);" (assignment_expression "pcVar3 = *(char **)(pcVar3 + 0xc)" identifier = (pointer_expression "*(char **)(pcVar3 + 0xc)" * (cast_expression "(char **)(pcVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar3 + 0xc)" ( (binary_expression "pcVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (if_statement "if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }" if (parenthesized_expression "(cVar2 == -0x53)" ( (binary_expression "cVar2 == -0x53" identifier == number_literal) )) (compound_statement "{\n    cVar2 = pcVar3[2];\n  }" { (expression_statement "cVar2 = pcVar3[2];" (assignment_expression "cVar2 = pcVar3[2]" identifier = (subscript_expression "pcVar3[2]" identifier [ number_literal ])) ;) })) (if_statement "if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" if (parenthesized_expression "((byte)(cVar2 + 0x8d) < 0x32)" ( (binary_expression "(byte)(cVar2 + 0x8d) < 0x32" (call_expression "(byte)(cVar2 + 0x8d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x8d)" ( (binary_expression "cVar2 + 0x8d" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" { comment comment (expression_statement "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();" (assignment_expression "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" identifier = (call_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" (parenthesized_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))" ( (pointer_expression "*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" * (cast_expression "(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" ( (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c" (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" * (cast_expression "(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" ( (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4" (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc" (pointer_expression "*(int *)(puVar4 + 0xc4fa0)" * (cast_expression "(int *)(puVar4 + 0xc4fa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0xc4fa0)" ( (binary_expression "puVar4 + 0xc4fa0" identifier + number_literal) )))) + number_literal) + (binary_expression "(uint)(byte)(cVar2 + 0x8d) * 4" (call_expression "(uint)(byte)(cVar2 + 0x8d)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(cVar2 + 0x8d)" ( (binary_expression "cVar2 + 0x8d" identifier + number_literal) ))) * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int FUN_00030254(char *param_1,int *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_00030254(char *param_1,int *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_00030254(char *param_1,int *param_2)" identifier (parameter_list "(char *param_1,int *param_2)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "char *local_14;" primitive_type (pointer_declarator "*local_14" * identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "local_14 = *(char **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_14 = *(char **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(char **)PTR___stack_chk_guard_000f5568" * (cast_expression "(char **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }" if (parenthesized_expression "(param_1 != (char *)0x0)" ( (binary_expression "param_1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }" { (if_statement "if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 4) & 0x400) == 0)" ( (binary_expression "(*(uint *)(param_1 + 4) & 0x400) == 0" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x400)" ( (binary_expression "*(uint *)(param_1 + 4) & 0x400" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }" { (if_statement "if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" if (parenthesized_expression "(*param_1 == -0x56)" ( (binary_expression "*param_1 == -0x56" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }" { (expression_statement "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);" (assignment_expression "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18)" identifier = (call_expression "FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),&local_18)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "&local_18" & identifier) )))) ;) (if_statement "if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*param_2 = -local_18;" (assignment_expression "*param_2 = -local_18" (pointer_expression "*param_2" * identifier) = (unary_expression "-local_18" - identifier)) ;) })) }) (else_clause "else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" else (if_statement "if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" if (parenthesized_expression "(*param_1 == -0x55)" ( (binary_expression "*param_1 == -0x55" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }" { (expression_statement "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_00030254(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) }) (else_clause "else {\n        iVar1 = 0;\n      }" else (compound_statement "{\n        iVar1 = 0;\n      }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))))) }) (else_clause "else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" else (compound_statement "{\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" { (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (expression_statement "*param_2 = *(int *)(param_1 + 8);" (assignment_expression "*param_2 = *(int *)(param_1 + 8)" (pointer_expression "*param_2" * identifier) = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) }))) })) (if_statement "if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_14 == *(char **)puVar4)" ( (binary_expression "local_14 == *(char **)puVar4" identifier == (pointer_expression "*(char **)puVar4" * (cast_expression "(char **)puVar4" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" identifier = identifier) ;) (expression_statement "puVar4 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000f5540" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) (while_statement "while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" while (parenthesized_expression "((byte)(cVar2 + 0x56U) < 2)" ( (binary_expression "(byte)(cVar2 + 0x56U) < 2" (call_expression "(byte)(cVar2 + 0x56U)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x56U)" ( (binary_expression "cVar2 + 0x56U" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" { (expression_statement "pcVar3 = *(char **)(pcVar3 + 0xc);" (assignment_expression "pcVar3 = *(char **)(pcVar3 + 0xc)" identifier = (pointer_expression "*(char **)(pcVar3 + 0xc)" * (cast_expression "(char **)(pcVar3 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar3 + 0xc)" ( (binary_expression "pcVar3 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" identifier = (pointer_expression "*pcVar3" * identifier)) ;) })) (if_statement "if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }" if (parenthesized_expression "(cVar2 == -0x53)" ( (binary_expression "cVar2 == -0x53" identifier == number_literal) )) (compound_statement "{\n    cVar2 = pcVar3[2];\n  }" { (expression_statement "cVar2 = pcVar3[2];" (assignment_expression "cVar2 = pcVar3[2]" identifier = (subscript_expression "pcVar3[2]" identifier [ number_literal ])) ;) })) (if_statement "if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" if (parenthesized_expression "((byte)(cVar2 + 0x8d) < 0x32)" ( (binary_expression "(byte)(cVar2 + 0x8d) < 0x32" (call_expression "(byte)(cVar2 + 0x8d)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(cVar2 + 0x8d)" ( (binary_expression "cVar2 + 0x8d" identifier + number_literal) ))) < number_literal) )) (compound_statement "{\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" { (expression_statement "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();" (assignment_expression "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" identifier = (call_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" (parenthesized_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))" ( (pointer_expression "*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" * (cast_expression "(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" ( (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c" (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" identifier + (pointer_expression "*(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" * (cast_expression "(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" ( (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4" (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc" (pointer_expression "*(int *)(puVar4 + 0xc4fa0)" * (cast_expression "(int *)(puVar4 + 0xc4fa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0xc4fa0)" ( (binary_expression "puVar4 + 0xc4fa0" identifier + number_literal) )))) + number_literal) + (binary_expression "(uint)(byte)(cVar2 + 0x8d) * 4" (call_expression "(uint)(byte)(cVar2 + 0x8d)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(cVar2 + 0x8d)" ( (binary_expression "cVar2 + 0x8d" identifier + number_literal) ))) * number_literal)) ))))) + number_literal) )))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = 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 = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (unary_expression - IDENT)) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) })) (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 IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (while_statement while (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression IDENT + LIT) ))) * LIT)) ))))) + LIT) )))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_00030254(char *param_1,int *param_2)\n\n{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00030254(char *param_1,int *param_2)" (identifier "FUN_00030254") (parameter_list "(char *param_1,int *param_2)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar2;\n  char *pcVar3;\n  undefined *puVar4;\n  int local_18;\n  char *local_14;\n  \n  puVar4 = PTR___stack_chk_guard_000f5568;\n  local_14 = *(char **)PTR___stack_chk_guard_000f5568;\n  iVar1 = 0;\n  if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }\n  if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }\n  pcVar3 = local_14;\n  puVar4 = PTR___stack_chk_fail_000f5540;\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  cVar2 = *pcVar3;\n  while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }\n  if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }\n  if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "char *local_14;" (primitive_type "char") (pointer_declarator "*local_14" (* "*") (identifier "local_14")) (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar4 = PTR___stack_chk_guard_000f5568" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_000f5568")) (; ";")) (expression_statement "local_14 = *(char **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_14 = *(char **)PTR___stack_chk_guard_000f5568" (identifier "local_14") (= "=") (pointer_expression "*(char **)PTR___stack_chk_guard_000f5568" (* "*") (cast_expression "(char **)PTR___stack_chk_guard_000f5568" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR___stack_chk_guard_000f5568")))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 != (char *)0x0) {\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != (char *)0x0)" (( "(") (binary_expression "param_1 != (char *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }\n  }" ({ "{") (if_statement "if ((*(uint *)(param_1 + 4) & 0x400) == 0) {\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }\n    else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 4) & 0x400) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 4) & 0x400) == 0" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x400)" (( "(") (binary_expression "*(uint *)(param_1 + 4) & 0x400" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "0x400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }\n    }" ({ "{") (if_statement "if (*param_1 == -0x56) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }\n      else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" (if "if") (parenthesized_expression "(*param_1 == -0x56)" (( "(") (binary_expression "*param_1 == -0x56" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "-0x56")) () ")")) (compound_statement "{\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);\n        if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }\n      }" ({ "{") (expression_statement "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18);" (assignment_expression "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18)" (identifier "iVar1") (= "=") (call_expression "FUN_00030254(*(undefined4 *)(param_1 + 0xc),&local_18)" (identifier "FUN_00030254") (argument_list "(*(undefined4 *)(param_1 + 0xc),&local_18)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          iVar1 = 1;\n          *param_2 = -local_18;\n        }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "*param_2 = -local_18;" (assignment_expression "*param_2 = -local_18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (unary_expression "-local_18" (- "-") (identifier "local_18"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" (else "else") (if_statement "if (*param_1 == -0x55) {\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }\n      else {\n        iVar1 = 0;\n      }" (if "if") (parenthesized_expression "(*param_1 == -0x55)" (( "(") (binary_expression "*param_1 == -0x55" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "-0x55")) () ")")) (compound_statement "{\n        iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));\n      }" ({ "{") (expression_statement "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = FUN_00030254(*(undefined4 *)(param_1 + 0xc))" (identifier "iVar1") (= "=") (call_expression "FUN_00030254(*(undefined4 *)(param_1 + 0xc))" (identifier "FUN_00030254") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        iVar1 = 0;\n      }" (else "else") (compound_statement "{\n        iVar1 = 0;\n      }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}")))))) (} "}")) (else_clause "else {\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" (else "else") (compound_statement "{\n      iVar1 = 1;\n      *param_2 = *(int *)(param_1 + 8);\n    }" ({ "{") (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "*param_2 = *(int *)(param_1 + 8);" (assignment_expression "*param_2 = *(int *)(param_1 + 8)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (local_14 == *(char **)puVar4) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_14 == *(char **)puVar4)" (( "(") (binary_expression "local_14 == *(char **)puVar4" (identifier "local_14") (== "==") (pointer_expression "*(char **)puVar4" (* "*") (cast_expression "(char **)puVar4" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "pcVar3 = local_14;" (assignment_expression "pcVar3 = local_14" (identifier "pcVar3") (= "=") (identifier "local_14")) (; ";")) (expression_statement "puVar4 = PTR___stack_chk_fail_000f5540;" (assignment_expression "puVar4 = PTR___stack_chk_fail_000f5540" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_fail_000f5540")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000f5540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000f5540"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" (identifier "cVar2") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (while_statement "while ((byte)(cVar2 + 0x56U) < 2) {\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" (while "while") (parenthesized_expression "((byte)(cVar2 + 0x56U) < 2)" (( "(") (binary_expression "(byte)(cVar2 + 0x56U) < 2" (call_expression "(byte)(cVar2 + 0x56U)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar2 + 0x56U)" (( "(") (binary_expression "cVar2 + 0x56U" (identifier "cVar2") (+ "+") (number_literal "0x56U")) () ")"))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    pcVar3 = *(char **)(pcVar3 + 0xc);\n    cVar2 = *pcVar3;\n  }" ({ "{") (expression_statement "pcVar3 = *(char **)(pcVar3 + 0xc);" (assignment_expression "pcVar3 = *(char **)(pcVar3 + 0xc)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(pcVar3 + 0xc)" (* "*") (cast_expression "(char **)(pcVar3 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar3 + 0xc)" (( "(") (binary_expression "pcVar3 + 0xc" (identifier "pcVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "cVar2 = *pcVar3;" (assignment_expression "cVar2 = *pcVar3" (identifier "cVar2") (= "=") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3"))) (; ";")) (} "}"))) (if_statement "if (cVar2 == -0x53) {\n    cVar2 = pcVar3[2];\n  }" (if "if") (parenthesized_expression "(cVar2 == -0x53)" (( "(") (binary_expression "cVar2 == -0x53" (identifier "cVar2") (== "==") (number_literal "-0x53")) () ")")) (compound_statement "{\n    cVar2 = pcVar3[2];\n  }" ({ "{") (expression_statement "cVar2 = pcVar3[2];" (assignment_expression "cVar2 = pcVar3[2]" (identifier "cVar2") (= "=") (subscript_expression "pcVar3[2]" (identifier "pcVar3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (if_statement "if ((byte)(cVar2 + 0x8d) < 0x32) {\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((byte)(cVar2 + 0x8d) < 0x32)" (( "(") (binary_expression "(byte)(cVar2 + 0x8d) < 0x32" (call_expression "(byte)(cVar2 + 0x8d)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(cVar2 + 0x8d)" (( "(") (binary_expression "cVar2 + 0x8d" (identifier "cVar2") (+ "+") (number_literal "0x8d")) () ")"))) (< "<") (number_literal "0x32")) () ")")) (compound_statement "{\n                    \n                    \n    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();" (assignment_expression "iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" (identifier "iVar1") (= "=") (call_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))()" (parenthesized_expression "(*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))" (( "(") (pointer_expression "*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" (* "*") (cast_expression "(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c)" (( "(") (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c" (binary_expression "puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" (identifier "puVar4") (+ "+") (pointer_expression "*(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" (* "*") (cast_expression "(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4)" (( "(") (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc +\n                                        (uint)(byte)(cVar2 + 0x8d) * 4" (binary_expression "*(int *)(puVar4 + 0xc4fa0) + -0x36bc" (pointer_expression "*(int *)(puVar4 + 0xc4fa0)" (* "*") (cast_expression "(int *)(puVar4 + 0xc4fa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0xc4fa0)" (( "(") (binary_expression "puVar4 + 0xc4fa0" (identifier "puVar4") (+ "+") (number_literal "0xc4fa0")) () ")")))) (+ "+") (number_literal "-0x36bc")) (+ "+") (binary_expression "(uint)(byte)(cVar2 + 0x8d) * 4" (call_expression "(uint)(byte)(cVar2 + 0x8d)" (call_expression "(uint)(byte)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(cVar2 + 0x8d)" (( "(") (binary_expression "cVar2 + 0x8d" (identifier "cVar2") (+ "+") (number_literal "0x8d")) () ")"))) (* "*") (number_literal "4"))) () ")"))))) (+ "+") (number_literal "0xccf6c")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_1,int *pValue)

{
  int var_2;
  char var_4;
  char *var_5;
  type_2 *var_6;
  int v;
  char *var_3;
  
  var_6 = PTR___stack_chk_guard_000f5568;
  var_3 = *(char **)PTR___stack_chk_guard_000f5568;
  var_2 = 0;
  if (var_1 != (type_1 *)0x0) {
    if ((var_1->flags & 0x400) == 0) {
      if (var_1->op == 0xaa) {
        var_2 = function_1(var_1->pLeft,&v);
        if (var_2 != 0) {
          var_2 = 1;
          *pValue = -v;
        }
      }
      else if (var_1->op == 0xab) {
        var_2 = function_1(var_1->pLeft,pValue);
      }
      else {
        var_2 = 0;
      }
    }
    else {
      var_2 = 1;
      *pValue = (int)var_1->u;
    }
  }
  if (var_3 == *(char **)var_6) {
    return var_2;
  }
  var_5 = var_3;
  var_6 = PTR___stack_chk_fail_000f5540;
  (*(type_3 *)PTR___stack_chk_fail_000f5540)();
  var_4 = *var_5;
  while ((byte)(var_4 + 0x56U) < 2) {
    var_5 = *(char **)(var_5 + 0xc);
    var_4 = *var_5;
  }
  if (var_4 == -0x53) {
    var_4 = var_5[2];
  }
  if ((byte)(var_4 + 0x8d) < 0x32) {
                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    var_2 = (*(type_3 *)(var_6 + *(int *)(*(int *)(var_6 + 0xc4fa0) + -0x36bc +
                                        (uint)(byte)(var_4 + 0x8d) * 4) + 0xccf6c))();
    return var_2;
  }
  return 0;
}


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

int MASKED(char *param_1,int *param_2)

{
  int iVar1;
  char cVar2;
  char *pcVar3;
  undefined *puVar4;
  int local_18;
  char *local_14;
  
  puVar4 = PTR___stack_chk_guard_000f5568;
  local_14 = *(char **)PTR___stack_chk_guard_000f5568;
  iVar1 = 0;
  if (param_1 != (char *)0x0) {
    if ((*(uint *)(param_1 + 4) & 0x400) == 0) {
      if (*param_1 == -0x56) {
        iVar1 = MASKED(*(undefined4 *)(param_1 + 0xc),&local_18);
        if (iVar1 != 0) {
          iVar1 = 1;
          *param_2 = -local_18;
        }
      }
      else if (*param_1 == -0x55) {
        iVar1 = MASKED(*(undefined4 *)(param_1 + 0xc));
      }
      else {
        iVar1 = 0;
      }
    }
    else {
      iVar1 = 1;
      *param_2 = *(int *)(param_1 + 8);
    }
  }
  if (local_14 == *(char **)puVar4) {
    return iVar1;
  }
  pcVar3 = local_14;
  puVar4 = PTR___stack_chk_fail_000f5540;
  (*(code *)PTR___stack_chk_fail_000f5540)();
  cVar2 = *pcVar3;
  while ((byte)(cVar2 + 0x56U) < 2) {
    pcVar3 = *(char **)(pcVar3 + 0xc);
    cVar2 = *pcVar3;
  }
  if (cVar2 == -0x53) {
    cVar2 = pcVar3[2];
  }
  if ((byte)(cVar2 + 0x8d) < 0x32) {
                    /* WARNING: Could not recover jumptable at 0x000303b8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar1 = (*(code *)(puVar4 + *(int *)(*(int *)(puVar4 + 0xc4fa0) + -0x36bc +
                                        (uint)(byte)(cVar2 + 0x8d) * 4) + 0xccf6c))();
    return iVar1;
  }
  return 0;
}

