
char * sqlite3StrAccumFinish(StrAccum *p)

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



undefined8 FUN_00140f7b(long param_1)

{
  undefined8 uVar1;
  
  if (*(long *)(param_1 + 8) != 0) {
    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;
    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {
      uVar1 = FUN_00140f2b();
      return uVar1;
    }
  }
  return *(undefined8 *)(param_1 + 8);
}


MOV RAX,qword ptr [RDI + 0x8]
TEST RAX,RAX
JZ 0x00140f97
MOV EDX,dword ptr [RDI + 0x18]
MOV byte ptr [RAX + RDX*0x1],0x0
CMP dword ptr [RDI + 0x14],0x0
JZ 0x00140f97
TEST byte ptr [RDI + 0x1d],0x4
JZ 0x00140f9c
MOV RAX,qword ptr [RDI + 0x8]
RET
SUB RSP,0x8
CALL 0x00140f2b
ADD RSP,0x8
RET
(translation_unit "undefined8 FUN_00140f7b(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}\n\n" (function_definition "undefined8 FUN_00140f7b(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}" type_identifier (function_declarator "FUN_00140f7b(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(long *)(param_1 + 8) != 0)" ( (binary_expression "*(long *)(param_1 + 8) != 0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }" { (expression_statement "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;" (assignment_expression "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0" (pointer_expression "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" * (cast_expression "(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" ( (binary_expression "*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "(ulong)*(uint *)(param_1 + 0x18)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )))) = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0x1d) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1d) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1d) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x1d) & 4" (pointer_expression "*(byte *)(param_1 + 0x1d)" * (cast_expression "(byte *)(param_1 + 0x1d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d)" ( (binary_expression "param_1 + 0x1d" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_00140f2b();" (assignment_expression "uVar1 = FUN_00140f2b()" identifier = (call_expression "FUN_00140f2b()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) })) (return_statement "return *(undefined8 *)(param_1 + 8);" return (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) })))
(translation_unit "char * sqlite3StrAccumFinish(StrAccum *p)\n\n{\n  char *pcVar1;\n  \n  if (((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)) &&\n     ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }\n  return p->zText;\n}\n\n" (function_definition "char * sqlite3StrAccumFinish(StrAccum *p)\n\n{\n  char *pcVar1;\n  \n  if (((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)) &&\n     ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }\n  return p->zText;\n}" primitive_type (pointer_declarator "* sqlite3StrAccumFinish(StrAccum *p)" * (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  if (((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)) &&\n     ((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) ;) (if_statement "if (((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)) &&\n     ((p->printfFlags & 4) == 0)) {\n    pcVar1 = strAccumFinishRealloc(p);\n    return pcVar1;\n  }" if (parenthesized_expression "(((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)) &&\n     ((p->printfFlags & 4) == 0))" ( (binary_expression "((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)) &&\n     ((p->printfFlags & 4) == 0)" (parenthesized_expression "((p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0))" ( (binary_expression "(p->zText != (char *)0x0) && (p->zText[p->nChar] = '\0', p->mxAlloc != 0)" (parenthesized_expression "(p->zText != (char *)0x0)" ( (binary_expression "p->zText != (char *)0x0" (field_expression "p->zText" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(p->zText[p->nChar] = '\0', p->mxAlloc != 0)" ( (comma_expression "p->zText[p->nChar] = '\0', p->mxAlloc != 0" (assignment_expression "p->zText[p->nChar] = '\0'" (subscript_expression "p->zText[p->nChar]" (field_expression "p->zText" identifier -> field_identifier) [ (field_expression "p->nChar" identifier -> field_identifier) ]) = (char_literal "'\0'" ' escape_sequence ')) , (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 "undefined8 FUN_00140f7b(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}\n\n" (function_definition "undefined8 FUN_00140f7b(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}" type_identifier (function_declarator "FUN_00140f7b(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (if_statement "if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }" if (parenthesized_expression "(*(long *)(param_1 + 8) != 0)" ( (binary_expression "*(long *)(param_1 + 8) != 0" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }" { (expression_statement "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;" (assignment_expression "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0" (pointer_expression "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" * (cast_expression "(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" ( (binary_expression "*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)" (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) + (binary_expression "(ulong)*(uint *)(param_1 + 0x18)" (parenthesized_expression "(ulong)" ( identifier )) * (cast_expression "(uint *)(param_1 + 0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) )))) = number_literal) ;) (if_statement "if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }" if (parenthesized_expression "((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0))" ( (binary_expression "(*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" ( (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" * (cast_expression "(int *)(param_1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0x1d) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1d) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1d) & 4)" ( (binary_expression "*(byte *)(param_1 + 0x1d) & 4" (pointer_expression "*(byte *)(param_1 + 0x1d)" * (cast_expression "(byte *)(param_1 + 0x1d)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d)" ( (binary_expression "param_1 + 0x1d" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }" { (expression_statement "uVar1 = FUN_00140f2b();" (assignment_expression "uVar1 = FUN_00140f2b()" identifier = (call_expression "FUN_00140f2b()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar1;" return identifier ;) })) })) (return_statement "return *(undefined8 *)(param_1 + 8);" return (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (parenthesized_expression ( IDENT )) * (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 "undefined8 FUN_00140f7b(long param_1)\n\n{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}" (type_identifier "undefined8") (function_declarator "FUN_00140f7b(long param_1)" (identifier "FUN_00140f7b") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined8 uVar1;\n  \n  if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }\n  return *(undefined8 *)(param_1 + 8);\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (if_statement "if (*(long *)(param_1 + 8) != 0) {\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 8) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 8) != 0" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;\n    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }\n  }" ({ "{") (expression_statement "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;" (assignment_expression "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0" (pointer_expression "*(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" (* "*") (cast_expression "(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18))" (( "(") (binary_expression "*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)" (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (+ "+") (binary_expression "(ulong)*(uint *)(param_1 + 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (cast_expression "(uint *)(param_1 + 0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)" (parenthesized_expression "(*(int *)(param_1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x14) != 0" (pointer_expression "*(int *)(param_1 + 0x14)" (* "*") (cast_expression "(int *)(param_1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_1 + 0x1d) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1d) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1d) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1d) & 4" (pointer_expression "*(byte *)(param_1 + 0x1d)" (* "*") (cast_expression "(byte *)(param_1 + 0x1d)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1d)" (( "(") (binary_expression "param_1 + 0x1d" (identifier "param_1") (+ "+") (number_literal "0x1d")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar1 = FUN_00140f2b();\n      return uVar1;\n    }" ({ "{") (expression_statement "uVar1 = FUN_00140f2b();" (assignment_expression "uVar1 = FUN_00140f2b()" (identifier "uVar1") (= "=") (call_expression "FUN_00140f2b()" (identifier "FUN_00140f2b") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (} "}"))) (return_statement "return *(undefined8 *)(param_1 + 8);" (return "return") (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}")))

char * function_1(type_1 *p)

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


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

undefined8 MASKED(long param_1)

{
  undefined8 uVar1;
  
  if (*(long *)(param_1 + 8) != 0) {
    *(undefined1 *)(*(long *)(param_1 + 8) + (ulong)*(uint *)(param_1 + 0x18)) = 0;
    if ((*(int *)(param_1 + 0x14) != 0) && ((*(byte *)(param_1 + 0x1d) & 4) == 0)) {
      uVar1 = FUN_00140f2b();
      return uVar1;
    }
  }
  return *(undefined8 *)(param_1 + 8);
}

