
int sqlite3FixExpr(DbFixer *pFix,Expr *pExpr)

{
  int iVar1;
  uint uVar2;
  
  if (pExpr == (Expr *)0x0) {
    return 0;
  }
  while( true ) {
    if (pFix->bTemp == '\0') {
      pExpr->flags = pExpr->flags | 0x40000000;
    }
    if (pExpr->op == 0x99) {
      if ((pFix->pParse->db->init).busy == '\0') {
        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);
        return 1;
      }
      uVar2 = pExpr->flags;
      pExpr->op = 'w';
    }
    else {
      uVar2 = pExpr->flags;
    }
    if ((uVar2 & 0x804000) != 0) break;
    if ((uVar2 & 0x800) == 0) {
      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);
    }
    else {
      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);
    }
    if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {
      return 1;
    }
    pExpr = pExpr->pLeft;
    if (pExpr == (Expr *)0x0) {
      return 0;
    }
  }
  return 0;
}



undefined4 FUN_0004afa8(undefined4 *param_1,char *param_2)

{
  int iVar1;
  uint uVar2;
  
  if (param_2 == (char *)0x0) {
    return 0;
  }
  while( true ) {
    if (*(char *)(param_1 + 2) == '\0') {
      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;
    }
    if (*param_2 == -0x67) {
      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {
        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);
        return 1;
      }
      uVar2 = *(uint *)(param_2 + 4);
      *param_2 = 'w';
    }
    else {
      uVar2 = *(uint *)(param_2 + 4);
    }
    if ((uVar2 & 0x804000) != 0) break;
    if ((uVar2 & 0x800) == 0) {
      iVar1 = FUN_0004b130();
    }
    else {
      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));
    }
    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))
    {
      return 1;
    }
    param_2 = *(char **)(param_2 + 0xc);
    if (param_2 == (char *)0x0) {
      return 0;
    }
  }
  return 0;
}


lui gp,0xb
addiu gp,gp,0x22f8
addu gp,gp,t9
beq a1,zero,0x0004b128
_nop
addiu sp,sp,-0x30
sw s4,0x28(sp)
sw s3,0x24(sp)
sw gp,0x10(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or s0,a1,zero
sw ra,0x2c(sp)
lw s4,-0x7f94(gp)
lw s3,-0x7f94(gp)
lw s2,-0x7f94(gp)
addiu s4,s4,-0x4ed0
b 0x0004b034
_addiu s3,s3,-0x4dfc
or t9,s3,zero
bal 0x0004b204
_nop
bne v0,zero,0x0004b098
_li v0,0x1
lw a1,0x10(s0)
addiu t9,s2,-0x5058
bal 0x0004afa8
_or a0,s1,zero
bne v0,zero,0x0004b094
_lw gp,0x10(sp)
lw s0,0xc(s0)
beq s0,zero,0x0004b0ec
_lw ra,0x2c(sp)
lbu v0,0x8(s1)
bne v0,zero,0x0004b04c
_lui v1,0x4000
lw v0,0x4(s0)
or v0,v0,v1
sw v0,0x4(s0)
lbu v1,0x0(s0)
li v0,0x99
beq v1,v0,0x0004b0b8
_lui v0,0x80
lw v1,0x4(s0)
addiu v0,v0,0x4000
and v0,v1,v0
bne v0,zero,0x0004b0ec
_lw ra,0x2c(sp)
andi v1,v1,0x800
lw a1,0x14(s0)
bne v1,zero,0x0004affc
_or a0,s1,zero
or t9,s4,zero
bal 0x0004b130
_nop
beq v0,zero,0x0004b010
_nop
li v0,0x1
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw a0,0x0(s1)
lw v0,0x0(a0)
lbu v0,0xa5(v0)
beq v0,zero,0x0004b10c
_lw a1,-0x7fd4(gp)
li v0,0x77
lw v1,0x4(s0)
sb v0,0x0(s0)
lui v0,0x80
addiu v0,v0,0x4000
and v0,v1,v0
beq v0,zero,0x0004b070
_lw ra,0x2c(sp)
or v0,zero,zero
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7f94(gp)
lw a2,0x10(s1)
addiu t9,t9,-0x61d8
bal 0x00049e28
_addiu a1,a1,0x768c
b 0x0004b098
_li v0,0x1
jr ra
_or v0,zero,zero
(translation_unit "undefined4 FUN_0004afa8(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004afa8(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004afa8(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_2 == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 2) == '\0')" ( (binary_expression "*(char *)(param_1 + 2) == '\0'" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }" { (expression_statement "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;" (assignment_expression "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 4) | 0x40000000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }" if (parenthesized_expression "(*param_2 == -0x67)" ( (binary_expression "*param_2 == -0x67" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }" { (if_statement "if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }" if (parenthesized_expression "(*(char *)(*(int *)*param_1 + 0xa5) == '\0')" ( (binary_expression "*(char *)(*(int *)*param_1 + 0xa5) == '\0'" (pointer_expression "*(char *)(*(int *)*param_1 + 0xa5)" * (cast_expression "(char *)(*(int *)*param_1 + 0xa5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)*param_1 + 0xa5)" ( (binary_expression "*(int *)*param_1 + 0xa5" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }" { (expression_statement "FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);" (call_expression "FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4])" identifier (argument_list "((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4])" ( (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (binary_expression "PTR_LAB_000f52cc + 0x768c" identifier + number_literal) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = *(uint *)(param_2 + 4);" (assignment_expression "uVar2 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = 'w';" (assignment_expression "*param_2 = 'w'" (pointer_expression "*param_2" * identifier) = (char_literal "'w'" ' character ')) ;) }) (else_clause "else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }" else (compound_statement "{\n      uVar2 = *(uint *)(param_2 + 4);\n    }" { (expression_statement "uVar2 = *(uint *)(param_2 + 4);" (assignment_expression "uVar2 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if ((uVar2 & 0x804000) != 0) break;" if (parenthesized_expression "((uVar2 & 0x804000) != 0)" ( (binary_expression "(uVar2 & 0x804000) != 0" (parenthesized_expression "(uVar2 & 0x804000)" ( (binary_expression "uVar2 & 0x804000" identifier & number_literal) )) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" if (parenthesized_expression "((uVar2 & 0x800) == 0)" ( (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" ( (binary_expression "uVar2 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_0004b130();\n    }" { (expression_statement "iVar1 = FUN_0004b130();" (assignment_expression "iVar1 = FUN_0004b130()" identifier = (call_expression "FUN_0004b130()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" else (compound_statement "{\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" { (expression_statement "iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));" (assignment_expression "iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14))" identifier = (call_expression "FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) )))) ;) }))) (if_statement "if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }" if (parenthesized_expression "((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0" (assignment_expression "iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10))" identifier = (call_expression "FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x10))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_2 = *(char **)(param_2 + 0xc);" (assignment_expression "param_2 = *(char **)(param_2 + 0xc)" identifier = (pointer_expression "*(char **)(param_2 + 0xc)" * (cast_expression "(char **)(param_2 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3FixExpr(DbFixer *pFix,Expr *pExpr)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (pExpr == (Expr *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (pFix->bTemp == '\0') {\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }\n    if (pExpr->op == 0x99) {\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }\n    else {\n      uVar2 = pExpr->flags;\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }\n    else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }\n    if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {\n      return 1;\n    }\n    pExpr = pExpr->pLeft;\n    if (pExpr == (Expr *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "int sqlite3FixExpr(DbFixer *pFix,Expr *pExpr)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (pExpr == (Expr *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (pFix->bTemp == '\0') {\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }\n    if (pExpr->op == 0x99) {\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }\n    else {\n      uVar2 = pExpr->flags;\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }\n    else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }\n    if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {\n      return 1;\n    }\n    pExpr = pExpr->pLeft;\n    if (pExpr == (Expr *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" primitive_type (function_declarator "sqlite3FixExpr(DbFixer *pFix,Expr *pExpr)" identifier (parameter_list "(DbFixer *pFix,Expr *pExpr)" ( (parameter_declaration "DbFixer *pFix" type_identifier (pointer_declarator "*pFix" * identifier)) , (parameter_declaration "Expr *pExpr" type_identifier (pointer_declarator "*pExpr" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (pExpr == (Expr *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (pFix->bTemp == '\0') {\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }\n    if (pExpr->op == 0x99) {\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }\n    else {\n      uVar2 = pExpr->flags;\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }\n    else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }\n    if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {\n      return 1;\n    }\n    pExpr = pExpr->pLeft;\n    if (pExpr == (Expr *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (pExpr == (Expr *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(pExpr == (Expr *)0x0)" ( (binary_expression "pExpr == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while( true ) {\n    if (pFix->bTemp == '\0') {\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }\n    if (pExpr->op == 0x99) {\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }\n    else {\n      uVar2 = pExpr->flags;\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }\n    else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }\n    if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {\n      return 1;\n    }\n    pExpr = pExpr->pLeft;\n    if (pExpr == (Expr *)0x0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (pFix->bTemp == '\0') {\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }\n    if (pExpr->op == 0x99) {\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }\n    else {\n      uVar2 = pExpr->flags;\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }\n    else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }\n    if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {\n      return 1;\n    }\n    pExpr = pExpr->pLeft;\n    if (pExpr == (Expr *)0x0) {\n      return 0;\n    }\n  }" { (if_statement "if (pFix->bTemp == '\0') {\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }" if (parenthesized_expression "(pFix->bTemp == '\0')" ( (binary_expression "pFix->bTemp == '\0'" (field_expression "pFix->bTemp" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pExpr->flags = pExpr->flags | 0x40000000;\n    }" { (expression_statement "pExpr->flags = pExpr->flags | 0x40000000;" (assignment_expression "pExpr->flags = pExpr->flags | 0x40000000" (field_expression "pExpr->flags" identifier -> field_identifier) = (binary_expression "pExpr->flags | 0x40000000" (field_expression "pExpr->flags" identifier -> field_identifier) | number_literal)) ;) })) (if_statement "if (pExpr->op == 0x99) {\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }\n    else {\n      uVar2 = pExpr->flags;\n    }" if (parenthesized_expression "(pExpr->op == 0x99)" ( (binary_expression "pExpr->op == 0x99" (field_expression "pExpr->op" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }\n      uVar2 = pExpr->flags;\n      pExpr->op = 'w';\n    }" { (if_statement "if ((pFix->pParse->db->init).busy == '\0') {\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }" if (parenthesized_expression "((pFix->pParse->db->init).busy == '\0')" ( (binary_expression "(pFix->pParse->db->init).busy == '\0'" (field_expression "(pFix->pParse->db->init).busy" (parenthesized_expression "(pFix->pParse->db->init)" ( (field_expression "pFix->pParse->db->init" (field_expression "pFix->pParse->db" (field_expression "pFix->pParse" identifier -> field_identifier) -> field_identifier) -> field_identifier) )) . field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);\n        return 1;\n      }" { (expression_statement "sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType);" (call_expression "sqlite3ErrorMsg(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType)" identifier (argument_list "(pFix->pParse,PTR_LAB_000f52cc + 0x768c,pFix->zType)" ( (field_expression "pFix->pParse" identifier -> field_identifier) , (binary_expression "PTR_LAB_000f52cc + 0x768c" identifier + number_literal) , (field_expression "pFix->zType" identifier -> field_identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = pExpr->flags;" (assignment_expression "uVar2 = pExpr->flags" identifier = (field_expression "pExpr->flags" identifier -> field_identifier)) ;) (expression_statement "pExpr->op = 'w';" (assignment_expression "pExpr->op = 'w'" (field_expression "pExpr->op" identifier -> field_identifier) = (char_literal "'w'" ' character ')) ;) }) (else_clause "else {\n      uVar2 = pExpr->flags;\n    }" else (compound_statement "{\n      uVar2 = pExpr->flags;\n    }" { (expression_statement "uVar2 = pExpr->flags;" (assignment_expression "uVar2 = pExpr->flags" identifier = (field_expression "pExpr->flags" identifier -> field_identifier)) ;) }))) (if_statement "if ((uVar2 & 0x804000) != 0) break;" if (parenthesized_expression "((uVar2 & 0x804000) != 0)" ( (binary_expression "(uVar2 & 0x804000) != 0" (parenthesized_expression "(uVar2 & 0x804000)" ( (binary_expression "uVar2 & 0x804000" identifier & number_literal) )) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar2 & 0x800) == 0) {\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }\n    else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }" if (parenthesized_expression "((uVar2 & 0x800) == 0)" ( (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" ( (binary_expression "uVar2 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);\n    }" { (expression_statement "iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList);" (assignment_expression "iVar1 = sqlite3FixExprList(pFix,(pExpr->x).pList)" identifier = (call_expression "sqlite3FixExprList(pFix,(pExpr->x).pList)" identifier (argument_list "(pFix,(pExpr->x).pList)" ( identifier , (field_expression "(pExpr->x).pList" (parenthesized_expression "(pExpr->x)" ( (field_expression "pExpr->x" identifier -> field_identifier) )) . field_identifier) )))) ;) }) (else_clause "else {\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }" else (compound_statement "{\n      iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);\n    }" { (expression_statement "iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList);" (assignment_expression "iVar1 = sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList)" identifier = (call_expression "sqlite3FixSelect(pFix,(Select *)(pExpr->x).pList)" identifier (argument_list "(pFix,(Select *)(pExpr->x).pList)" ( identifier , (cast_expression "(Select *)(pExpr->x).pList" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pExpr->x).pList" (parenthesized_expression "(pExpr->x)" ( (field_expression "pExpr->x" identifier -> field_identifier) )) . field_identifier)) )))) ;) }))) (if_statement "if ((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)) {\n      return 1;\n    }" if (parenthesized_expression "((iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) || (iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0)" ( (comma_expression "iVar1 = sqlite3FixExpr(pFix,pExpr->pRight), iVar1 != 0" (assignment_expression "iVar1 = sqlite3FixExpr(pFix,pExpr->pRight)" identifier = (call_expression "sqlite3FixExpr(pFix,pExpr->pRight)" identifier (argument_list "(pFix,pExpr->pRight)" ( identifier , (field_expression "pExpr->pRight" identifier -> field_identifier) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "pExpr = pExpr->pLeft;" (assignment_expression "pExpr = pExpr->pLeft" identifier = (field_expression "pExpr->pLeft" identifier -> field_identifier)) ;) (if_statement "if (pExpr == (Expr *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(pExpr == (Expr *)0x0)" ( (binary_expression "pExpr == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_0004afa8(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0004afa8(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0004afa8(undefined4 *param_1,char *param_2)" identifier (parameter_list "(undefined4 *param_1,char *param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (if_statement "if (param_2 == (char *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (while_statement "while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 2) == '\0')" ( (binary_expression "*(char *)(param_1 + 2) == '\0'" (pointer_expression "*(char *)(param_1 + 2)" * (cast_expression "(char *)(param_1 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }" { (expression_statement "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;" (assignment_expression "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 4) | 0x40000000" (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }" if (parenthesized_expression "(*param_2 == -0x67)" ( (binary_expression "*param_2 == -0x67" (pointer_expression "*param_2" * identifier) == number_literal) )) (compound_statement "{\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }" { (if_statement "if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }" if (parenthesized_expression "(*(char *)(*(int *)*param_1 + 0xa5) == '\0')" ( (binary_expression "*(char *)(*(int *)*param_1 + 0xa5) == '\0'" (pointer_expression "*(char *)(*(int *)*param_1 + 0xa5)" * (cast_expression "(char *)(*(int *)*param_1 + 0xa5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)*param_1 + 0xa5)" ( (binary_expression "*(int *)*param_1 + 0xa5" (pointer_expression "*(int *)*param_1" * (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }" { (expression_statement "FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);" (call_expression "FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4])" identifier (argument_list "((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4])" ( (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) , (binary_expression "PTR_LAB_000f52cc + 0x768c" identifier + number_literal) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = *(uint *)(param_2 + 4);" (assignment_expression "uVar2 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = 'w';" (assignment_expression "*param_2 = 'w'" (pointer_expression "*param_2" * identifier) = (char_literal "'w'" ' character ')) ;) }) (else_clause "else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }" else (compound_statement "{\n      uVar2 = *(uint *)(param_2 + 4);\n    }" { (expression_statement "uVar2 = *(uint *)(param_2 + 4);" (assignment_expression "uVar2 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if ((uVar2 & 0x804000) != 0) break;" if (parenthesized_expression "((uVar2 & 0x804000) != 0)" ( (binary_expression "(uVar2 & 0x804000) != 0" (parenthesized_expression "(uVar2 & 0x804000)" ( (binary_expression "uVar2 & 0x804000" identifier & number_literal) )) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" if (parenthesized_expression "((uVar2 & 0x800) == 0)" ( (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" ( (binary_expression "uVar2 & 0x800" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_0004b130();\n    }" { (expression_statement "iVar1 = FUN_0004b130();" (assignment_expression "iVar1 = FUN_0004b130()" identifier = (call_expression "FUN_0004b130()" identifier (argument_list "()" ( )))) ;) }) (else_clause "else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" else (compound_statement "{\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" { (expression_statement "iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));" (assignment_expression "iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14))" identifier = (call_expression "FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) )))) ;) }))) (if_statement "if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }" if (parenthesized_expression "((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))" ( (binary_expression "(iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) || (parenthesized_expression "(iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0)" ( (comma_expression "iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0" (assignment_expression "iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10))" identifier = (call_expression "FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0x10))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      return 1;\n    }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "param_2 = *(char **)(param_2 + 0xc);" (assignment_expression "param_2 = *(char **)(param_2 + 0xc)" identifier = (pointer_expression "*(char **)(param_2 + 0xc)" * (cast_expression "(char **)(param_2 + 0xc)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (param_2 == (char *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) })) (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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (if_statement if (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 *)) ) (pointer_expression * IDENT))) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_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 (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0004afa8(undefined4 *param_1,char *param_2)\n\n{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0004afa8(undefined4 *param_1,char *param_2)" (identifier "FUN_0004afa8") (parameter_list "(undefined4 *param_1,char *param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  \n  if (param_2 == (char *)0x0) {\n    return 0;\n  }\n  while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (while_statement "while( true ) {\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }\n    if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }\n    if ((uVar2 & 0x804000) != 0) break;\n    if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }\n    if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }\n    param_2 = *(char **)(param_2 + 0xc);\n    if (param_2 == (char *)0x0) {\n      return 0;\n    }\n  }" ({ "{") (if_statement "if (*(char *)(param_1 + 2) == '\0') {\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 2) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 2) == '\0'" (pointer_expression "*(char *)(param_1 + 2)" (* "*") (cast_expression "(char *)(param_1 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;\n    }" ({ "{") (expression_statement "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;" (assignment_expression "*(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(param_2 + 4) | 0x40000000" (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (| "|") (number_literal "0x40000000"))) (; ";")) (} "}"))) (if_statement "if (*param_2 == -0x67) {\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }\n    else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }" (if "if") (parenthesized_expression "(*param_2 == -0x67)" (( "(") (binary_expression "*param_2 == -0x67" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (number_literal "-0x67")) () ")")) (compound_statement "{\n      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }\n      uVar2 = *(uint *)(param_2 + 4);\n      *param_2 = 'w';\n    }" ({ "{") (if_statement "if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }" (if "if") (parenthesized_expression "(*(char *)(*(int *)*param_1 + 0xa5) == '\0')" (( "(") (binary_expression "*(char *)(*(int *)*param_1 + 0xa5) == '\0'" (pointer_expression "*(char *)(*(int *)*param_1 + 0xa5)" (* "*") (cast_expression "(char *)(*(int *)*param_1 + 0xa5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)*param_1 + 0xa5)" (( "(") (binary_expression "*(int *)*param_1 + 0xa5" (pointer_expression "*(int *)*param_1" (* "*") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (+ "+") (number_literal "0xa5")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);\n        return 1;\n      }" ({ "{") (expression_statement "FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);" (call_expression "FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4])" (identifier "FUN_00049e28") (argument_list "((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4])" (( "(") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (, ",") (binary_expression "PTR_LAB_000f52cc + 0x768c" (identifier "PTR_LAB_000f52cc") (+ "+") (number_literal "0x768c")) (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = *(uint *)(param_2 + 4);" (assignment_expression "uVar2 = *(uint *)(param_2 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*param_2 = 'w';" (assignment_expression "*param_2 = 'w'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (char_literal "'w'" (' "'") (character "w") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n      uVar2 = *(uint *)(param_2 + 4);\n    }" (else "else") (compound_statement "{\n      uVar2 = *(uint *)(param_2 + 4);\n    }" ({ "{") (expression_statement "uVar2 = *(uint *)(param_2 + 4);" (assignment_expression "uVar2 = *(uint *)(param_2 + 4)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (if_statement "if ((uVar2 & 0x804000) != 0) break;" (if "if") (parenthesized_expression "((uVar2 & 0x804000) != 0)" (( "(") (binary_expression "(uVar2 & 0x804000) != 0" (parenthesized_expression "(uVar2 & 0x804000)" (( "(") (binary_expression "uVar2 & 0x804000" (identifier "uVar2") (& "&") (number_literal "0x804000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((uVar2 & 0x800) == 0) {\n      iVar1 = FUN_0004b130();\n    }\n    else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" (if "if") (parenthesized_expression "((uVar2 & 0x800) == 0)" (( "(") (binary_expression "(uVar2 & 0x800) == 0" (parenthesized_expression "(uVar2 & 0x800)" (( "(") (binary_expression "uVar2 & 0x800" (identifier "uVar2") (& "&") (number_literal "0x800")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = FUN_0004b130();\n    }" ({ "{") (expression_statement "iVar1 = FUN_0004b130();" (assignment_expression "iVar1 = FUN_0004b130()" (identifier "iVar1") (= "=") (call_expression "FUN_0004b130()" (identifier "FUN_0004b130") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" (else "else") (compound_statement "{\n      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));\n    }" ({ "{") (expression_statement "iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));" (assignment_expression "iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14))" (identifier "iVar1") (= "=") (call_expression "FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14))" (identifier "FUN_0004b204") (argument_list "(param_1,*(undefined4 *)(param_2 + 0x14))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (} "}")))) (if_statement "if ((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))\n    {\n      return 1;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))" (( "(") (binary_expression "(iVar1 != 0) || (iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0)" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0)" (( "(") (comma_expression "iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0" (assignment_expression "iVar1 = FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10))" (identifier "iVar1") (= "=") (call_expression "FUN_0004afa8(param_1,*(undefined4 *)(param_2 + 0x10))" (identifier "FUN_0004afa8") (argument_list "(param_1,*(undefined4 *)(param_2 + 0x10))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      return 1;\n    }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "param_2 = *(char **)(param_2 + 0xc);" (assignment_expression "param_2 = *(char **)(param_2 + 0xc)" (identifier "param_2") (= "=") (pointer_expression "*(char **)(param_2 + 0xc)" (* "*") (cast_expression "(char **)(param_2 + 0xc)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (param_2 == (char *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *pFix,type_2 *var_1)

{
  int var_7;
  type_3 var_4;
  
  if (var_1 == (type_2 *)0x0) {
    return 0;
  }
  while( true ) {
    if (pFix->bTemp == '\0') {
      var_1->flags = var_1->flags | 0x40000000;
    }
    if (var_1->op == 0x99) {
      if ((pFix->pParse->db->init).busy == '\0') {
        var_2(pFix->pParse,var_3 + 0x768c,pFix->zType);
        return 1;
      }
      var_4 = var_1->flags;
      var_1->op = 'w';
    }
    else {
      var_4 = var_1->flags;
    }
    if ((var_4 & 0x804000) != 0) break;
    if ((var_4 & 0x800) == 0) {
      var_7 = var_5(pFix,(var_1->x).pList);
    }
    else {
      var_7 = var_6(pFix,(type_4 *)(var_1->x).pList);
    }
    if ((var_7 != 0) || (var_7 = function_1(pFix,var_1->pRight), var_7 != 0)) {
      return 1;
    }
    var_1 = var_1->pLeft;
    if (var_1 == (type_2 *)0x0) {
      return 0;
    }
  }
  return 0;
}


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

undefined4 MASKED(undefined4 *param_1,char *param_2)

{
  int iVar1;
  uint uVar2;
  
  if (param_2 == (char *)0x0) {
    return 0;
  }
  while( true ) {
    if (*(char *)(param_1 + 2) == '\0') {
      *(uint *)(param_2 + 4) = *(uint *)(param_2 + 4) | 0x40000000;
    }
    if (*param_2 == -0x67) {
      if (*(char *)(*(int *)*param_1 + 0xa5) == '\0') {
        FUN_00049e28((int *)*param_1,PTR_LAB_000f52cc + 0x768c,param_1[4]);
        return 1;
      }
      uVar2 = *(uint *)(param_2 + 4);
      *param_2 = 'w';
    }
    else {
      uVar2 = *(uint *)(param_2 + 4);
    }
    if ((uVar2 & 0x804000) != 0) break;
    if ((uVar2 & 0x800) == 0) {
      iVar1 = FUN_0004b130();
    }
    else {
      iVar1 = FUN_0004b204(param_1,*(undefined4 *)(param_2 + 0x14));
    }
    if ((iVar1 != 0) || (iVar1 = MASKED(param_1,*(undefined4 *)(param_2 + 0x10)), iVar1 != 0))
    {
      return 1;
    }
    param_2 = *(char **)(param_2 + 0xc);
    if (param_2 == (char *)0x0) {
      return 0;
    }
  }
  return 0;
}

