
void sqlite3ErrorFinish(sqlite3 *db,int err_code)

{
  Mem *p;
  
  p = db->pErr;
  if (p != (Mem *)0x0) {
    if ((p->flags & 0x2400) == 0) {
      p->flags = 1;
    }
    else {
      vdbeMemClearExternAndSetNull(p);
    }
  }
  if ((err_code != 0xc0a) && ((err_code & 0xfbU) == 10)) {
    sqlite3SystemError(db,10);
    return;
  }
  return;
}



void FUN_0011c970(long param_1,uint param_2)

{
  long lVar1;
  
  lVar1 = *(long *)(param_1 + 0x168);
  if (lVar1 != 0) {
    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {
      *(undefined2 *)(lVar1 + 8) = 1;
    }
    else {
      FUN_00119fd0();
    }
  }
  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {
    FUN_0011c950(param_1);
    return;
  }
  return;
}


PUSH RBX
MOV RBX,RDI
SUB RSP,0x10
MOV RDI,qword ptr [RDI + 0x168]
TEST RDI,RDI
JZ 0x0011c995
TEST word ptr [RDI + 0x8],0x2400
JNZ 0x0011c9c0
MOV EAX,0x1
MOV word ptr [RDI + 0x8],AX
CMP ESI,0xc0a
JZ 0x0011c9b8
AND ESI,0xfb
CMP ESI,0xa
JNZ 0x0011c9b8
ADD RSP,0x10
MOV RDI,RBX
POP RBX
JMP 0x0011c950
ADD RSP,0x10
POP RBX
RET
MOV dword ptr [RSP + 0xc],ESI
CALL 0x00119fd0
MOV ESI,dword ptr [RSP + 0xc]
JMP 0x0011c995
(translation_unit "void FUN_0011c970(long param_1,uint param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0011c970(long param_1,uint param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0011c970(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x168);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x168)" identifier = (pointer_expression "*(long *)(param_1 + 0x168)" * (cast_expression "(long *)(param_1 + 0x168)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x168)" ( (binary_expression "param_1 + 0x168" identifier + number_literal) ))))) ;) (if_statement "if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }" { (if_statement "if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }" if (parenthesized_expression "((*(ushort *)(lVar1 + 8) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(lVar1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(lVar1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(lVar1 + 8) & 0x2400" (pointer_expression "*(ushort *)(lVar1 + 8)" * (cast_expression "(ushort *)(lVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }" { (expression_statement "*(undefined2 *)(lVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(lVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(lVar1 + 8)" * (cast_expression "(undefined2 *)(lVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_00119fd0();\n    }" else (compound_statement "{\n      FUN_00119fd0();\n    }" { (expression_statement "FUN_00119fd0();" (call_expression "FUN_00119fd0()" identifier (argument_list "()" ( ))) ;) }))) })) (if_statement "if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }" if (parenthesized_expression "((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10))" ( (binary_expression "(param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)" (parenthesized_expression "(param_2 != 0xc0a)" ( (binary_expression "param_2 != 0xc0a" identifier != number_literal) )) && (parenthesized_expression "((param_2 & 0xfb) == 10)" ( (binary_expression "(param_2 & 0xfb) == 10" (parenthesized_expression "(param_2 & 0xfb)" ( (binary_expression "param_2 & 0xfb" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    FUN_0011c950(param_1);\n    return;\n  }" { (expression_statement "FUN_0011c950(param_1);" (call_expression "FUN_0011c950(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3ErrorFinish(sqlite3 *db,int err_code)\n\n{\n  Mem *p;\n  \n  p = db->pErr;\n  if (p != (Mem *)0x0) {\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n  }\n  if ((err_code != 0xc0a) && ((err_code & 0xfbU) == 10)) {\n    sqlite3SystemError(db,10);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void sqlite3ErrorFinish(sqlite3 *db,int err_code)\n\n{\n  Mem *p;\n  \n  p = db->pErr;\n  if (p != (Mem *)0x0) {\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n  }\n  if ((err_code != 0xc0a) && ((err_code & 0xfbU) == 10)) {\n    sqlite3SystemError(db,10);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "sqlite3ErrorFinish(sqlite3 *db,int err_code)" identifier (parameter_list "(sqlite3 *db,int err_code)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int err_code" primitive_type identifier) ))) (compound_statement "{\n  Mem *p;\n  \n  p = db->pErr;\n  if (p != (Mem *)0x0) {\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n  }\n  if ((err_code != 0xc0a) && ((err_code & 0xfbU) == 10)) {\n    sqlite3SystemError(db,10);\n    return;\n  }\n  return;\n}" { (declaration "Mem *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "p = db->pErr;" (assignment_expression "p = db->pErr" identifier = (field_expression "db->pErr" identifier -> field_identifier)) ;) (if_statement "if (p != (Mem *)0x0) {\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n  }" if (parenthesized_expression "(p != (Mem *)0x0)" ( (binary_expression "p != (Mem *)0x0" identifier != (cast_expression "(Mem *)0x0" ( (type_descriptor "Mem *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }\n  }" { (if_statement "if ((p->flags & 0x2400) == 0) {\n      p->flags = 1;\n    }\n    else {\n      vdbeMemClearExternAndSetNull(p);\n    }" if (parenthesized_expression "((p->flags & 0x2400) == 0)" ( (binary_expression "(p->flags & 0x2400) == 0" (parenthesized_expression "(p->flags & 0x2400)" ( (binary_expression "p->flags & 0x2400" (field_expression "p->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      p->flags = 1;\n    }" { (expression_statement "p->flags = 1;" (assignment_expression "p->flags = 1" (field_expression "p->flags" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n      vdbeMemClearExternAndSetNull(p);\n    }" else (compound_statement "{\n      vdbeMemClearExternAndSetNull(p);\n    }" { (expression_statement "vdbeMemClearExternAndSetNull(p);" (call_expression "vdbeMemClearExternAndSetNull(p)" identifier (argument_list "(p)" ( identifier ))) ;) }))) })) (if_statement "if ((err_code != 0xc0a) && ((err_code & 0xfbU) == 10)) {\n    sqlite3SystemError(db,10);\n    return;\n  }" if (parenthesized_expression "((err_code != 0xc0a) && ((err_code & 0xfbU) == 10))" ( (binary_expression "(err_code != 0xc0a) && ((err_code & 0xfbU) == 10)" (parenthesized_expression "(err_code != 0xc0a)" ( (binary_expression "err_code != 0xc0a" identifier != number_literal) )) && (parenthesized_expression "((err_code & 0xfbU) == 10)" ( (binary_expression "(err_code & 0xfbU) == 10" (parenthesized_expression "(err_code & 0xfbU)" ( (binary_expression "err_code & 0xfbU" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    sqlite3SystemError(db,10);\n    return;\n  }" { (expression_statement "sqlite3SystemError(db,10);" (call_expression "sqlite3SystemError(db,10)" identifier (argument_list "(db,10)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0011c970(long param_1,uint param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0011c970(long param_1,uint param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0011c970(long param_1,uint param_2)" identifier (parameter_list "(long param_1,uint param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *(long *)(param_1 + 0x168);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x168)" identifier = (pointer_expression "*(long *)(param_1 + 0x168)" * (cast_expression "(long *)(param_1 + 0x168)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x168)" ( (binary_expression "param_1 + 0x168" identifier + number_literal) ))))) ;) (if_statement "if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }" { (if_statement "if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }" if (parenthesized_expression "((*(ushort *)(lVar1 + 8) & 0x2400) == 0)" ( (binary_expression "(*(ushort *)(lVar1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(lVar1 + 8) & 0x2400)" ( (binary_expression "*(ushort *)(lVar1 + 8) & 0x2400" (pointer_expression "*(ushort *)(lVar1 + 8)" * (cast_expression "(ushort *)(lVar1 + 8)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }" { (expression_statement "*(undefined2 *)(lVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(lVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(lVar1 + 8)" * (cast_expression "(undefined2 *)(lVar1 + 8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n      FUN_00119fd0();\n    }" else (compound_statement "{\n      FUN_00119fd0();\n    }" { (expression_statement "FUN_00119fd0();" (call_expression "FUN_00119fd0()" identifier (argument_list "()" ( ))) ;) }))) })) (if_statement "if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }" if (parenthesized_expression "((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10))" ( (binary_expression "(param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)" (parenthesized_expression "(param_2 != 0xc0a)" ( (binary_expression "param_2 != 0xc0a" identifier != number_literal) )) && (parenthesized_expression "((param_2 & 0xfb) == 10)" ( (binary_expression "(param_2 & 0xfb) == 10" (parenthesized_expression "(param_2 & 0xfb)" ( (binary_expression "param_2 & 0xfb" identifier & number_literal) )) == number_literal) ))) )) (compound_statement "{\n    FUN_0011c950(param_1);\n    return;\n  }" { (expression_statement "FUN_0011c950(param_1);" (call_expression "FUN_0011c950(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0011c970(long param_1,uint param_2)\n\n{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0011c970(long param_1,uint param_2)" (identifier "FUN_0011c970") (parameter_list "(long param_1,uint param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = *(long *)(param_1 + 0x168);\n  if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }\n  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = *(long *)(param_1 + 0x168);" (assignment_expression "lVar1 = *(long *)(param_1 + 0x168)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x168)" (* "*") (cast_expression "(long *)(param_1 + 0x168)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x168)" (( "(") (binary_expression "param_1 + 0x168" (identifier "param_1") (+ "+") (number_literal "0x168")) () ")"))))) (; ";")) (if_statement "if (lVar1 != 0) {\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }\n  }" ({ "{") (if_statement "if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }\n    else {\n      FUN_00119fd0();\n    }" (if "if") (parenthesized_expression "((*(ushort *)(lVar1 + 8) & 0x2400) == 0)" (( "(") (binary_expression "(*(ushort *)(lVar1 + 8) & 0x2400) == 0" (parenthesized_expression "(*(ushort *)(lVar1 + 8) & 0x2400)" (( "(") (binary_expression "*(ushort *)(lVar1 + 8) & 0x2400" (pointer_expression "*(ushort *)(lVar1 + 8)" (* "*") (cast_expression "(ushort *)(lVar1 + 8)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x2400")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined2 *)(lVar1 + 8) = 1;\n    }" ({ "{") (expression_statement "*(undefined2 *)(lVar1 + 8) = 1;" (assignment_expression "*(undefined2 *)(lVar1 + 8) = 1" (pointer_expression "*(undefined2 *)(lVar1 + 8)" (* "*") (cast_expression "(undefined2 *)(lVar1 + 8)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      FUN_00119fd0();\n    }" (else "else") (compound_statement "{\n      FUN_00119fd0();\n    }" ({ "{") (expression_statement "FUN_00119fd0();" (call_expression "FUN_00119fd0()" (identifier "FUN_00119fd0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {\n    FUN_0011c950(param_1);\n    return;\n  }" (if "if") (parenthesized_expression "((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10))" (( "(") (binary_expression "(param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)" (parenthesized_expression "(param_2 != 0xc0a)" (( "(") (binary_expression "param_2 != 0xc0a" (identifier "param_2") (!= "!=") (number_literal "0xc0a")) () ")")) (&& "&&") (parenthesized_expression "((param_2 & 0xfb) == 10)" (( "(") (binary_expression "(param_2 & 0xfb) == 10" (parenthesized_expression "(param_2 & 0xfb)" (( "(") (binary_expression "param_2 & 0xfb" (identifier "param_2") (& "&") (number_literal "0xfb")) () ")")) (== "==") (number_literal "10")) () ")"))) () ")")) (compound_statement "{\n    FUN_0011c950(param_1);\n    return;\n  }" ({ "{") (expression_statement "FUN_0011c950(param_1);" (call_expression "FUN_0011c950(param_1)" (identifier "FUN_0011c950") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *db,int var_3)

{
  type_2 *var_1;
  
  var_1 = db->pErr;
  if (var_1 != (type_2 *)0x0) {
    if ((var_1->flags & 0x2400) == 0) {
      var_1->flags = 1;
    }
    else {
      var_2(var_1);
    }
  }
  if ((var_3 != 0xc0a) && ((var_3 & 0xfbU) == 10)) {
    var_4(db,10);
    return;
  }
  return;
}


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

void MASKED(long param_1,uint param_2)

{
  long lVar1;
  
  lVar1 = *(long *)(param_1 + 0x168);
  if (lVar1 != 0) {
    if ((*(ushort *)(lVar1 + 8) & 0x2400) == 0) {
      *(undefined2 *)(lVar1 + 8) = 1;
    }
    else {
      FUN_00119fd0();
    }
  }
  if ((param_2 != 0xc0a) && ((param_2 & 0xfb) == 10)) {
    FUN_0011c950(param_1);
    return;
  }
  return;
}

