
char comparisonAffinity(Expr *pExpr)

{
  undefined3 extraout_var;
  char cVar1;
  
  cVar1 = sqlite3ExprAffinity(pExpr->pLeft);
  if (pExpr->pRight != (Expr *)0x0) {
    cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);
    return cVar1;
  }
  if ((pExpr->flags & 0x800) == 0) {
    if (CONCAT31(extraout_var,cVar1) != 0) {
      return cVar1;
    }
    return 'A';
  }
  cVar1 = sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1);
  return cVar1;
}



int FUN_0002500c(int param_1)

{
  int iVar1;
  
  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));
  if (*(int *)(param_1 + 0x10) != 0) {
    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);
    return iVar1;
  }
  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {
    if (iVar1 != 0) {
      return iVar1;
    }
    return 0x41;
  }
  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);
  return iVar1;
}


lui gp,0xe
addiu gp,gp,-0x7d6c
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7fd8(gp)
sw s0,0x18(sp)
or s0,a0,zero
sw gp,0x10(sp)
addiu t9,t9,0x4e84
sw ra,0x1c(sp)
bal 0x00024e84
_lw a0,0xc(a0)
lw a0,0x10(s0)
bne a0,zero,0x0002506c
_lw gp,0x10(sp)
lw v1,0x4(s0)
andi v1,v1,0x800
bne v1,zero,0x00025088
_or a1,v0,zero
beq v0,zero,0x000250ac
_lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7fd8(gp)
or a1,v0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
addiu t9,t9,0x4f8c
b 0x00024f8c
_addiu sp,sp,0x20
lw v1,0x14(s0)
lw t9,-0x7fd8(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
lw v0,0x1c(v1)
addiu t9,t9,0x4f8c
lw a0,0x4(v0)
b 0x00024f8c
_addiu sp,sp,0x20
li v0,0x41
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "int FUN_0002500c(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}\n\n" (function_definition "int FUN_0002500c(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0002500c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_00024e84(*(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) )))) )))) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);" (assignment_expression "iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1)" identifier = (call_expression "FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1)" identifier (argument_list "(*(int *)(param_1 + 0x10),iVar1)" ( (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 4) & 0x800) == 0)" ( (binary_expression "(*(uint *)(param_1 + 4) & 0x800) == 0" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x800)" ( (binary_expression "*(uint *)(param_1 + 4) & 0x800" (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 (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }" { (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0x41;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);" (assignment_expression "iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" identifier = (call_expression "FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" identifier (argument_list "(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" ( (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" * (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x1c)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x1c)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x1c" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "char comparisonAffinity(Expr *pExpr)\n\n{\n  undefined3 extraout_var;\n  char cVar1;\n  \n  cVar1 = sqlite3ExprAffinity(pExpr->pLeft);\n  if (pExpr->pRight != (Expr *)0x0) {\n    cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);\n    return cVar1;\n  }\n  if ((pExpr->flags & 0x800) == 0) {\n    if (CONCAT31(extraout_var,cVar1) != 0) {\n      return cVar1;\n    }\n    return 'A';\n  }\n  cVar1 = sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1);\n  return cVar1;\n}\n\n" (function_definition "char comparisonAffinity(Expr *pExpr)\n\n{\n  undefined3 extraout_var;\n  char cVar1;\n  \n  cVar1 = sqlite3ExprAffinity(pExpr->pLeft);\n  if (pExpr->pRight != (Expr *)0x0) {\n    cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);\n    return cVar1;\n  }\n  if ((pExpr->flags & 0x800) == 0) {\n    if (CONCAT31(extraout_var,cVar1) != 0) {\n      return cVar1;\n    }\n    return 'A';\n  }\n  cVar1 = sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1);\n  return cVar1;\n}" primitive_type (function_declarator "comparisonAffinity(Expr *pExpr)" identifier (parameter_list "(Expr *pExpr)" ( (parameter_declaration "Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  char cVar1;\n  \n  cVar1 = sqlite3ExprAffinity(pExpr->pLeft);\n  if (pExpr->pRight != (Expr *)0x0) {\n    cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);\n    return cVar1;\n  }\n  if ((pExpr->flags & 0x800) == 0) {\n    if (CONCAT31(extraout_var,cVar1) != 0) {\n      return cVar1;\n    }\n    return 'A';\n  }\n  cVar1 = sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1);\n  return cVar1;\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "char cVar1;" primitive_type identifier ;) (expression_statement "cVar1 = sqlite3ExprAffinity(pExpr->pLeft);" (assignment_expression "cVar1 = sqlite3ExprAffinity(pExpr->pLeft)" identifier = (call_expression "sqlite3ExprAffinity(pExpr->pLeft)" identifier (argument_list "(pExpr->pLeft)" ( (field_expression "pExpr->pLeft" identifier -> field_identifier) )))) ;) (if_statement "if (pExpr->pRight != (Expr *)0x0) {\n    cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);\n    return cVar1;\n  }" if (parenthesized_expression "(pExpr->pRight != (Expr *)0x0)" ( (binary_expression "pExpr->pRight != (Expr *)0x0" (field_expression "pExpr->pRight" identifier -> field_identifier) != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);\n    return cVar1;\n  }" { (expression_statement "cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1);" (assignment_expression "cVar1 = sqlite3CompareAffinity(pExpr->pRight,cVar1)" identifier = (call_expression "sqlite3CompareAffinity(pExpr->pRight,cVar1)" identifier (argument_list "(pExpr->pRight,cVar1)" ( (field_expression "pExpr->pRight" identifier -> field_identifier) , identifier )))) ;) (return_statement "return cVar1;" return identifier ;) })) (if_statement "if ((pExpr->flags & 0x800) == 0) {\n    if (CONCAT31(extraout_var,cVar1) != 0) {\n      return cVar1;\n    }\n    return 'A';\n  }" if (parenthesized_expression "((pExpr->flags & 0x800) == 0)" ( (binary_expression "(pExpr->flags & 0x800) == 0" (parenthesized_expression "(pExpr->flags & 0x800)" ( (binary_expression "pExpr->flags & 0x800" (field_expression "pExpr->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if (CONCAT31(extraout_var,cVar1) != 0) {\n      return cVar1;\n    }\n    return 'A';\n  }" { (if_statement "if (CONCAT31(extraout_var,cVar1) != 0) {\n      return cVar1;\n    }" if (parenthesized_expression "(CONCAT31(extraout_var,cVar1) != 0)" ( (binary_expression "CONCAT31(extraout_var,cVar1) != 0" (call_expression "CONCAT31(extraout_var,cVar1)" identifier (argument_list "(extraout_var,cVar1)" ( identifier , identifier ))) != number_literal) )) (compound_statement "{\n      return cVar1;\n    }" { (return_statement "return cVar1;" return identifier ;) })) (return_statement "return 'A';" return (char_literal "'A'" ' character ') ;) })) (expression_statement "cVar1 = sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1);" (assignment_expression "cVar1 = sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1)" identifier = (call_expression "sqlite3CompareAffinity(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1)" identifier (argument_list "(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1)" ( (field_expression "((pExpr->x).pSelect)->pEList->a[0].pExpr" (subscript_expression "((pExpr->x).pSelect)->pEList->a[0]" (field_expression "((pExpr->x).pSelect)->pEList->a" (field_expression "((pExpr->x).pSelect)->pEList" (parenthesized_expression "((pExpr->x).pSelect)" ( (field_expression "(pExpr->x).pSelect" (parenthesized_expression "(pExpr->x)" ( (field_expression "pExpr->x" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) -> field_identifier) [ number_literal ]) . field_identifier) , identifier )))) ;) (return_statement "return cVar1;" return identifier ;) })))
(translation_unit "int FUN_0002500c(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}\n\n" (function_definition "int FUN_0002500c(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_0002500c(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_00024e84(*(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) )))) )))) ;) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);" (assignment_expression "iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1)" identifier = (call_expression "FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1)" identifier (argument_list "(*(int *)(param_1 + 0x10),iVar1)" ( (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 4) & 0x800) == 0)" ( (binary_expression "(*(uint *)(param_1 + 4) & 0x800) == 0" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x800)" ( (binary_expression "*(uint *)(param_1 + 4) & 0x800" (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 (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }" { (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0x41;" return number_literal ;) })) (expression_statement "iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);" (assignment_expression "iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" identifier = (call_expression "FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" identifier (argument_list "(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" ( (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" * (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x1c)" * (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x1c)" ( (binary_expression "*(int *)(param_1 + 0x14) + 0x1c" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != 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) )))) , IDENT )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) )))) , IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0002500c(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_0002500c(int param_1)" (identifier "FUN_0002500c") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));\n  if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }\n  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }\n  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc))" (identifier "iVar1") (= "=") (call_expression "FUN_00024e84(*(undefined4 *)(param_1 + 0xc))" (identifier "FUN_00024e84") (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")) () ")")))) () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10) != 0) {\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);" (assignment_expression "iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1)" (identifier "iVar1") (= "=") (call_expression "FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1)" (identifier "FUN_00024f8c") (argument_list "(*(int *)(param_1 + 0x10),iVar1)" (( "(") (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "iVar1") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (if_statement "if ((*(uint *)(param_1 + 4) & 0x800) == 0) {\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 4) & 0x800) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 4) & 0x800) == 0" (parenthesized_expression "(*(uint *)(param_1 + 4) & 0x800)" (( "(") (binary_expression "*(uint *)(param_1 + 4) & 0x800" (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 "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    return 0x41;\n  }" ({ "{") (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0x41;" (return "return") (number_literal "0x41") (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);" (assignment_expression "iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" (identifier "iVar1") (= "=") (call_expression "FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" (identifier "FUN_00024f8c") (argument_list "(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1)" (( "(") (pointer_expression "*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" (* "*") (cast_expression "(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4" (pointer_expression "*(int *)(*(int *)(param_1 + 0x14) + 0x1c)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x14) + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x14) + 0x1c)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) + 0x1c" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "iVar1") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

char function_1(type_1 *pExpr)

{
  type_2 extraout_var;
  char cVar1;
  
  cVar1 = var_1(pExpr->pLeft);
  if (pExpr->pRight != (type_1 *)0x0) {
    cVar1 = var_2(pExpr->pRight,cVar1);
    return cVar1;
  }
  if ((pExpr->flags & 0x800) == 0) {
    if (var_3(extraout_var,cVar1) != 0) {
      return cVar1;
    }
    return 'A';
  }
  cVar1 = var_2(((pExpr->x).pSelect)->pEList->a[0].pExpr,cVar1);
  return cVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier))))) (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (return_statement (number_literal)))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))))) (identifier))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = FUN_00024e84(*(undefined4 *)(param_1 + 0xc));
  if (*(int *)(param_1 + 0x10) != 0) {
    iVar1 = FUN_00024f8c(*(int *)(param_1 + 0x10),iVar1);
    return iVar1;
  }
  if ((*(uint *)(param_1 + 4) & 0x800) == 0) {
    if (iVar1 != 0) {
      return iVar1;
    }
    return 0x41;
  }
  iVar1 = FUN_00024f8c(*(undefined4 *)(*(int *)(*(int *)(param_1 + 0x14) + 0x1c) + 4),iVar1);
  return iVar1;
}

