
char * __regparm3 sqlite3StrAccumFinish(StrAccum *p)

{
  char *pcVar1;
  
  pcVar1 = p->zText;
  if (pcVar1 == (char *)0x0) {
    return pcVar1;
  }
  pcVar1[p->nChar] = '\0';
  if ((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)) {
    pcVar1 = strAccumFinishRealloc(p);
    return pcVar1;
  }
  return p->zText;
}



int __regparm3 FUN_000287f0(int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (iVar1 == 0) {
    return iVar1;
  }
  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;
  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {
    iVar1 = FUN_00028780();
    return iVar1;
  }
  return *(int *)(param_1 + 4);
}


MOV EDX,EAX
MOV EAX,dword ptr [EAX + 0x4]
TEST EAX,EAX
JZ 0x00028818
MOV ECX,dword ptr [EDX + 0x10]
MOV byte ptr [EAX + ECX*0x1],0x0
MOV EAX,dword ptr [EDX + 0xc]
TEST EAX,EAX
JZ 0x0002880d
TEST byte ptr [EDX + 0x15],0x4
JZ 0x00028820
MOV EAX,dword ptr [EDX + 0x4]
RET
RET
MOV EAX,EDX
JMP 0x00028780
(translation_unit "int __regparm3 FUN_000287f0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}\n\n" (function_definition "int __regparm3 FUN_000287f0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000287f0(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 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (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 ;) })) (expression_statement "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0" (pointer_expression "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10))" * (cast_expression "(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + *(int *)(param_1 + 0x10))" ( (binary_expression "iVar1 + *(int *)(param_1 + 0x10)" identifier + (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) ;) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0))" ( (binary_expression "(*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0x15) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x15) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x15) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x15) & 4" (pointer_expression "*(byte *)(param_1 + 0x15)" * (cast_expression "(byte *)(param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_00028780();" (assignment_expression "iVar1 = FUN_00028780()" identifier = (call_expression "FUN_00028780()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return *(int *)(param_1 + 4);" return (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) })))
(translation_unit "char * __regparm3 sqlite3StrAccumFinish(StrAccum *p)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = p->zText;\n  if (pcVar1 == (char *)0x0) {\n    return pcVar1;\n  }\n  pcVar1[p->nChar] = '\0';\n  if ((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }\n  return p->zText;\n}\n\n" (function_definition "char * __regparm3 sqlite3StrAccumFinish(StrAccum *p)\n\n{\n  char *pcVar1;\n  \n  pcVar1 = p->zText;\n  if (pcVar1 == (char *)0x0) {\n    return pcVar1;\n  }\n  pcVar1[p->nChar] = '\0';\n  if ((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }\n  return p->zText;\n}" primitive_type (pointer_declarator "* __regparm3 sqlite3StrAccumFinish(StrAccum *p)" * (ERROR "__regparm3" identifier) (function_declarator "sqlite3StrAccumFinish(StrAccum *p)" identifier (parameter_list "(StrAccum *p)" ( (parameter_declaration "StrAccum *p" type_identifier (pointer_declarator "*p" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  \n  pcVar1 = p->zText;\n  if (pcVar1 == (char *)0x0) {\n    return pcVar1;\n  }\n  pcVar1[p->nChar] = '\0';\n  if ((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }\n  return p->zText;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (expression_statement "pcVar1 = p->zText;" (assignment_expression "pcVar1 = p->zText" identifier = (field_expression "p->zText" identifier -> field_identifier)) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n    return pcVar1;\n  }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pcVar1;\n  }" { (return_statement "return pcVar1;" return identifier ;) })) (expression_statement "pcVar1[p->nChar] = '\0';" (assignment_expression "pcVar1[p->nChar] = '\0'" (subscript_expression "pcVar1[p->nChar]" identifier [ (field_expression "p->nChar" identifier -> field_identifier) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }" if (parenthesized_expression "((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0))" ( (binary_expression "(p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)" (parenthesized_expression "(p->mxAlloc != 0)" ( (binary_expression "p->mxAlloc != 0" (field_expression "p->mxAlloc" identifier -> field_identifier) != number_literal) )) && (parenthesized_expression "((p->printfFlags & 4) == 0)" ( (binary_expression "(p->printfFlags & 4) == 0" (parenthesized_expression "(p->printfFlags & 4)" ( (binary_expression "p->printfFlags & 4" (field_expression "p->printfFlags" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }" { (expression_statement "pcVar1 = strAccumFinishRealloc(p);" (assignment_expression "pcVar1 = strAccumFinishRealloc(p)" identifier = (call_expression "strAccumFinishRealloc(p)" identifier (argument_list "(p)" ( identifier )))) ;) (return_statement "return pcVar1;" return identifier ;) })) (return_statement "return p->zText;" return (field_expression "p->zText" identifier -> field_identifier) ;) })))
(translation_unit "int __regparm3 FUN_000287f0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}\n\n" (function_definition "int __regparm3 FUN_000287f0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000287f0(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 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (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 ;) })) (expression_statement "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0" (pointer_expression "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10))" * (cast_expression "(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + *(int *)(param_1 + 0x10))" ( (binary_expression "iVar1 + *(int *)(param_1 + 0x10)" identifier + (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) ;) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0))" ( (binary_expression "(*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0x15) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x15) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x15) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x15) & 4" (pointer_expression "*(byte *)(param_1 + 0x15)" * (cast_expression "(byte *)(param_1 + 0x15)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x15)" ( (binary_expression "param_1 + 0x15" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_00028780();" (assignment_expression "iVar1 = FUN_00028780()" identifier = (call_expression "FUN_00028780()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return *(int *)(param_1 + 4);" return (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (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 IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = LIT) ;) (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) )) && (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 { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))
(function_definition "int __regparm3 FUN_000287f0(int param_1)\n\n{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000287f0(int param_1)" (identifier "FUN_000287f0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = *(int *)(param_1 + 4);\n  if (iVar1 == 0) {\n    return iVar1;\n  }\n  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;\n  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 4);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 4);" (assignment_expression "iVar1 = *(int *)(param_1 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (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") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0" (pointer_expression "*(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10))" (* "*") (cast_expression "(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + *(int *)(param_1 + 0x10))" (( "(") (binary_expression "iVar1 + *(int *)(param_1 + 0x10)" (identifier "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")) () ")"))))) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_1 + 0x15) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x15) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x15) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x15) & 4" (pointer_expression "*(byte *)(param_1 + 0x15)" (* "*") (cast_expression "(byte *)(param_1 + 0x15)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x15)" (( "(") (binary_expression "param_1 + 0x15" (identifier "param_1") (+ "+") (number_literal "0x15")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_00028780();\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_00028780();" (assignment_expression "iVar1 = FUN_00028780()" (identifier "iVar1") (= "=") (call_expression "FUN_00028780()" (identifier "FUN_00028780") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return *(int *)(param_1 + 4);" (return "return") (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}")))

char * __regparm3 function_1(type_1 *p)

{
  char *var_1;
  
  var_1 = p->zText;
  if (var_1 == (char *)0x0) {
    return var_1;
  }
  var_1[p->nChar] = '\0';
  if ((p->mxAlloc != 0) && ((p->printfFlags & 4) == 0)) {
    var_1 = var_2(p);
    return var_1;
  }
  return p->zText;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (identifier)))) (return_statement (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)))))))))

int __regparm3 MASKED(int param_1)

{
  int iVar1;
  
  iVar1 = *(int *)(param_1 + 4);
  if (iVar1 == 0) {
    return iVar1;
  }
  *(undefined1 *)(iVar1 + *(int *)(param_1 + 0x10)) = 0;
  if ((*(int *)(param_1 + 0xc) != 0) && ((*(byte *)(param_1 + 0x15) & 4) == 0)) {
    iVar1 = FUN_00028780();
    return iVar1;
  }
  return *(int *)(param_1 + 4);
}

