
Upsert * __regparm3
sqlite3UpsertNew(sqlite3 *db,ExprList *pTarget,Expr *pTargetWhere,ExprList *pSet,Expr *pWhere)

{
  Upsert *pUVar1;
  u64 in_stack_ffffffe4;
  
  if (db == (sqlite3 *)0x0) {
    pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4);
  }
  else {
    if (db->mallocFailed != '\0') goto LAB_000648c8;
    pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);
  }
  if (pUVar1 != (Upsert *)0x0) {
    pUVar1->pUpsertTarget = pTarget;
    pUVar1->pUpsertTargetWhere = pTargetWhere;
    pUVar1->pUpsertSet = pSet;
    pUVar1->pUpsertIdx = (Index *)0x0;
    pUVar1->pUpsertWhere = pWhere;
    return pUVar1;
  }
LAB_000648c8:
  if (pTarget != (ExprList *)0x0) {
    exprListDeleteNN(db,pTarget);
  }
  if (pTargetWhere != (Expr *)0x0) {
    sqlite3ExprDeleteNN(db,pTargetWhere);
  }
  if (pSet != (ExprList *)0x0) {
    exprListDeleteNN(db,pSet);
  }
  if (pWhere != (Expr *)0x0) {
    sqlite3ExprDeleteNN(db,pWhere);
  }
  return (Upsert *)0x0;
}



int * __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)

{
  int *piVar1;
  
  if (param_1 == 0) {
    piVar1 = (int *)FUN_00055780();
  }
  else {
    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;
    piVar1 = (int *)FUN_00055c10();
  }
  if (piVar1 != (int *)0x0) {
    *piVar1 = param_2;
    piVar1[1] = param_3;
    piVar1[2] = param_4;
    piVar1[4] = 0;
    piVar1[3] = param_5;
    return piVar1;
  }
LAB_000648c8:
  if (param_2 != 0) {
    FUN_00063e30();
  }
  if (param_3 != 0) {
    FUN_00063d60();
  }
  if (param_4 != 0) {
    FUN_00063e30();
  }
  if (param_5 != 0) {
    FUN_00063d60();
  }
  return (int *)0x0;
}


PUSH EBP
MOV EBP,ECX
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EBX,EAX
SUB ESP,0xc
TEST EAX,EAX
JZ 0x00064910
CMP byte ptr [EAX + 0x4d],0x0
JNZ 0x000648c8
MOV EDX,0x24
XOR ECX,ECX
CALL 0x00055c10
MOV EDI,EAX
TEST EDI,EDI
JZ 0x000648c8
MOV EAX,dword ptr [ESP + 0x20]
MOV dword ptr [EDI],ESI
MOV dword ptr [EDI + 0x4],EBP
MOV dword ptr [EDI + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x24]
MOV dword ptr [EDI + 0x10],0x0
MOV dword ptr [EDI + 0xc],EAX
ADD ESP,0xc
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST ESI,ESI
JZ 0x000648d5
MOV EDX,ESI
MOV EAX,EBX
CALL 0x00063e30
TEST EBP,EBP
JZ 0x000648e2
MOV EDX,EBP
MOV EAX,EBX
CALL 0x00063d60
MOV EDX,dword ptr [ESP + 0x20]
TEST EDX,EDX
JZ 0x000648f5
MOV EDX,dword ptr [ESP + 0x20]
MOV EAX,EBX
CALL 0x00063e30
MOV EAX,dword ptr [ESP + 0x24]
XOR EDI,EDI
TEST EAX,EAX
JZ 0x000648b7
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,EBX
CALL 0x00063d60
JMP 0x000648b7
MOV EAX,0x24
XOR EDX,EDX
CALL 0x00055780
MOV EDI,EAX
JMP 0x00064899
(translation_unit "int * __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)\n\n{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)\n\n{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar1 = (int *)FUN_00055780();\n  }" { (expression_statement "piVar1 = (int *)FUN_00055780();" (assignment_expression "piVar1 = (int *)FUN_00055780()" identifier = (cast_expression "(int *)FUN_00055780()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055780()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" else (compound_statement "{\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" { (if_statement "if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;" if (parenthesized_expression "(*(char *)(param_1 + 0x4d) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) != '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000648c8;" goto statement_identifier ;)) (expression_statement "piVar1 = (int *)FUN_00055c10();" (assignment_expression "piVar1 = (int *)FUN_00055c10()" identifier = (cast_expression "(int *)FUN_00055c10()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055c10()" identifier (argument_list "()" ( ))))) ;) }))) (if_statement "if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }" { (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = param_3;" (assignment_expression "piVar1[1] = param_3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = param_4;" (assignment_expression "piVar1[2] = param_4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = param_5;" (assignment_expression "piVar1[3] = param_5" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return piVar1;" return identifier ;) })) (labeled_statement "LAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }" statement_identifier : (if_statement "if (param_2 != 0) {\n    FUN_00063e30();\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063e30();\n  }" { (expression_statement "FUN_00063e30();" (call_expression "FUN_00063e30()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (param_3 != 0) {\n    FUN_00063d60();\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063d60();\n  }" { (expression_statement "FUN_00063d60();" (call_expression "FUN_00063d60()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_4 != 0) {\n    FUN_00063e30();\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063e30();\n  }" { (expression_statement "FUN_00063e30();" (call_expression "FUN_00063e30()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_5 != 0) {\n    FUN_00063d60();\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063d60();\n  }" { (expression_statement "FUN_00063d60();" (call_expression "FUN_00063d60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "Upsert * __regparm3\nsqlite3UpsertNew(sqlite3 *db,ExprList *pTarget,Expr *pTargetWhere,ExprList *pSet,Expr *pWhere)\n\n{\n  Upsert *pUVar1;\n  u64 in_stack_ffffffe4;\n  \n  if (db == (sqlite3 *)0x0) {\n    pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4);\n  }\n  else {\n    if (db->mallocFailed != '\0') goto LAB_000648c8;\n    pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);\n  }\n  if (pUVar1 != (Upsert *)0x0) {\n    pUVar1->pUpsertTarget = pTarget;\n    pUVar1->pUpsertTargetWhere = pTargetWhere;\n    pUVar1->pUpsertSet = pSet;\n    pUVar1->pUpsertIdx = (Index *)0x0;\n    pUVar1->pUpsertWhere = pWhere;\n    return pUVar1;\n  }\nLAB_000648c8:\n  if (pTarget != (ExprList *)0x0) {\n    exprListDeleteNN(db,pTarget);\n  }\n  if (pTargetWhere != (Expr *)0x0) {\n    sqlite3ExprDeleteNN(db,pTargetWhere);\n  }\n  if (pSet != (ExprList *)0x0) {\n    exprListDeleteNN(db,pSet);\n  }\n  if (pWhere != (Expr *)0x0) {\n    sqlite3ExprDeleteNN(db,pWhere);\n  }\n  return (Upsert *)0x0;\n}\n\n" (ERROR "Upsert * __regparm3\nsqlite3UpsertNew(sqlite3 *db,ExprList *pTarget,Expr *pTargetWhere,ExprList *pSet,Expr *pWhere)" (binary_expression "Upsert * __regparm3\nsqlite3UpsertNew(sqlite3 *db,ExprList *pTarget,Expr *pTargetWhere,ExprList *pSet,Expr *pWhere)" identifier * (ERROR "__regparm3" identifier) (call_expression "sqlite3UpsertNew(sqlite3 *db,ExprList *pTarget,Expr *pTargetWhere,ExprList *pSet,Expr *pWhere)" identifier (argument_list "(sqlite3 *db,ExprList *pTarget,Expr *pTargetWhere,ExprList *pSet,Expr *pWhere)" ( (binary_expression "sqlite3 *db" identifier * identifier) , (binary_expression "ExprList *pTarget" identifier * identifier) , (binary_expression "Expr *pTargetWhere" identifier * identifier) , (binary_expression "ExprList *pSet" identifier * identifier) , (binary_expression "Expr *pWhere" identifier * identifier) ))))) (compound_statement "{\n  Upsert *pUVar1;\n  u64 in_stack_ffffffe4;\n  \n  if (db == (sqlite3 *)0x0) {\n    pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4);\n  }\n  else {\n    if (db->mallocFailed != '\0') goto LAB_000648c8;\n    pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);\n  }\n  if (pUVar1 != (Upsert *)0x0) {\n    pUVar1->pUpsertTarget = pTarget;\n    pUVar1->pUpsertTargetWhere = pTargetWhere;\n    pUVar1->pUpsertSet = pSet;\n    pUVar1->pUpsertIdx = (Index *)0x0;\n    pUVar1->pUpsertWhere = pWhere;\n    return pUVar1;\n  }\nLAB_000648c8:\n  if (pTarget != (ExprList *)0x0) {\n    exprListDeleteNN(db,pTarget);\n  }\n  if (pTargetWhere != (Expr *)0x0) {\n    sqlite3ExprDeleteNN(db,pTargetWhere);\n  }\n  if (pSet != (ExprList *)0x0) {\n    exprListDeleteNN(db,pSet);\n  }\n  if (pWhere != (Expr *)0x0) {\n    sqlite3ExprDeleteNN(db,pWhere);\n  }\n  return (Upsert *)0x0;\n}" { (declaration "Upsert *pUVar1;" type_identifier (pointer_declarator "*pUVar1" * identifier) ;) (declaration "u64 in_stack_ffffffe4;" type_identifier identifier ;) (if_statement "if (db == (sqlite3 *)0x0) {\n    pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4);\n  }\n  else {\n    if (db->mallocFailed != '\0') goto LAB_000648c8;\n    pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);\n  }" if (parenthesized_expression "(db == (sqlite3 *)0x0)" ( (binary_expression "db == (sqlite3 *)0x0" identifier == (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4);\n  }" { (expression_statement "pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4);" (assignment_expression "pUVar1 = (Upsert *)sqlite3Malloc(in_stack_ffffffe4)" identifier = (cast_expression "(Upsert *)sqlite3Malloc(in_stack_ffffffe4)" ( (type_descriptor "Upsert *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3Malloc(in_stack_ffffffe4)" identifier (argument_list "(in_stack_ffffffe4)" ( identifier ))))) ;) }) (else_clause "else {\n    if (db->mallocFailed != '\0') goto LAB_000648c8;\n    pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);\n  }" else (compound_statement "{\n    if (db->mallocFailed != '\0') goto LAB_000648c8;\n    pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);\n  }" { (if_statement "if (db->mallocFailed != '\0') goto LAB_000648c8;" if (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000648c8;" goto statement_identifier ;)) (expression_statement "pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4);" (assignment_expression "pUVar1 = (Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4)" identifier = (cast_expression "(Upsert *)dbMallocRawFinish(db,in_stack_ffffffe4)" ( (type_descriptor "Upsert *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db,in_stack_ffffffe4)" identifier (argument_list "(db,in_stack_ffffffe4)" ( identifier , identifier ))))) ;) }))) (if_statement "if (pUVar1 != (Upsert *)0x0) {\n    pUVar1->pUpsertTarget = pTarget;\n    pUVar1->pUpsertTargetWhere = pTargetWhere;\n    pUVar1->pUpsertSet = pSet;\n    pUVar1->pUpsertIdx = (Index *)0x0;\n    pUVar1->pUpsertWhere = pWhere;\n    return pUVar1;\n  }" if (parenthesized_expression "(pUVar1 != (Upsert *)0x0)" ( (binary_expression "pUVar1 != (Upsert *)0x0" identifier != (cast_expression "(Upsert *)0x0" ( (type_descriptor "Upsert *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pUVar1->pUpsertTarget = pTarget;\n    pUVar1->pUpsertTargetWhere = pTargetWhere;\n    pUVar1->pUpsertSet = pSet;\n    pUVar1->pUpsertIdx = (Index *)0x0;\n    pUVar1->pUpsertWhere = pWhere;\n    return pUVar1;\n  }" { (expression_statement "pUVar1->pUpsertTarget = pTarget;" (assignment_expression "pUVar1->pUpsertTarget = pTarget" (field_expression "pUVar1->pUpsertTarget" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar1->pUpsertTargetWhere = pTargetWhere;" (assignment_expression "pUVar1->pUpsertTargetWhere = pTargetWhere" (field_expression "pUVar1->pUpsertTargetWhere" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar1->pUpsertSet = pSet;" (assignment_expression "pUVar1->pUpsertSet = pSet" (field_expression "pUVar1->pUpsertSet" identifier -> field_identifier) = identifier) ;) (expression_statement "pUVar1->pUpsertIdx = (Index *)0x0;" (assignment_expression "pUVar1->pUpsertIdx = (Index *)0x0" (field_expression "pUVar1->pUpsertIdx" identifier -> field_identifier) = (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pUVar1->pUpsertWhere = pWhere;" (assignment_expression "pUVar1->pUpsertWhere = pWhere" (field_expression "pUVar1->pUpsertWhere" identifier -> field_identifier) = identifier) ;) (return_statement "return pUVar1;" return identifier ;) })) (labeled_statement "LAB_000648c8:\n  if (pTarget != (ExprList *)0x0) {\n    exprListDeleteNN(db,pTarget);\n  }" statement_identifier : (if_statement "if (pTarget != (ExprList *)0x0) {\n    exprListDeleteNN(db,pTarget);\n  }" if (parenthesized_expression "(pTarget != (ExprList *)0x0)" ( (binary_expression "pTarget != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    exprListDeleteNN(db,pTarget);\n  }" { (expression_statement "exprListDeleteNN(db,pTarget);" (call_expression "exprListDeleteNN(db,pTarget)" identifier (argument_list "(db,pTarget)" ( identifier , identifier ))) ;) }))) (if_statement "if (pTargetWhere != (Expr *)0x0) {\n    sqlite3ExprDeleteNN(db,pTargetWhere);\n  }" if (parenthesized_expression "(pTargetWhere != (Expr *)0x0)" ( (binary_expression "pTargetWhere != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3ExprDeleteNN(db,pTargetWhere);\n  }" { (expression_statement "sqlite3ExprDeleteNN(db,pTargetWhere);" (call_expression "sqlite3ExprDeleteNN(db,pTargetWhere)" identifier (argument_list "(db,pTargetWhere)" ( identifier , identifier ))) ;) })) (if_statement "if (pSet != (ExprList *)0x0) {\n    exprListDeleteNN(db,pSet);\n  }" if (parenthesized_expression "(pSet != (ExprList *)0x0)" ( (binary_expression "pSet != (ExprList *)0x0" identifier != (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    exprListDeleteNN(db,pSet);\n  }" { (expression_statement "exprListDeleteNN(db,pSet);" (call_expression "exprListDeleteNN(db,pSet)" identifier (argument_list "(db,pSet)" ( identifier , identifier ))) ;) })) (if_statement "if (pWhere != (Expr *)0x0) {\n    sqlite3ExprDeleteNN(db,pWhere);\n  }" if (parenthesized_expression "(pWhere != (Expr *)0x0)" ( (binary_expression "pWhere != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sqlite3ExprDeleteNN(db,pWhere);\n  }" { (expression_statement "sqlite3ExprDeleteNN(db,pWhere);" (call_expression "sqlite3ExprDeleteNN(db,pWhere)" identifier (argument_list "(db,pWhere)" ( identifier , identifier ))) ;) })) (return_statement "return (Upsert *)0x0;" return (cast_expression "(Upsert *)0x0" ( (type_descriptor "Upsert *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int * __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)\n\n{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)\n\n{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (if_statement "if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    piVar1 = (int *)FUN_00055780();\n  }" { (expression_statement "piVar1 = (int *)FUN_00055780();" (assignment_expression "piVar1 = (int *)FUN_00055780()" identifier = (cast_expression "(int *)FUN_00055780()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055780()" identifier (argument_list "()" ( ))))) ;) }) (else_clause "else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" else (compound_statement "{\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" { (if_statement "if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;" if (parenthesized_expression "(*(char *)(param_1 + 0x4d) != '\0')" ( (binary_expression "*(char *)(param_1 + 0x4d) != '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" * (cast_expression "(char *)(param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4d)" ( (binary_expression "param_1 + 0x4d" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000648c8;" goto statement_identifier ;)) (expression_statement "piVar1 = (int *)FUN_00055c10();" (assignment_expression "piVar1 = (int *)FUN_00055c10()" identifier = (cast_expression "(int *)FUN_00055c10()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00055c10()" identifier (argument_list "()" ( ))))) ;) }))) (if_statement "if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }" if (parenthesized_expression "(piVar1 != (int *)0x0)" ( (binary_expression "piVar1 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }" { (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[1] = param_3;" (assignment_expression "piVar1[1] = param_3" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[2] = param_4;" (assignment_expression "piVar1[2] = param_4" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[3] = param_5;" (assignment_expression "piVar1[3] = param_5" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return piVar1;" return identifier ;) })) (labeled_statement "LAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }" statement_identifier : (if_statement "if (param_2 != 0) {\n    FUN_00063e30();\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063e30();\n  }" { (expression_statement "FUN_00063e30();" (call_expression "FUN_00063e30()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (param_3 != 0) {\n    FUN_00063d60();\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063d60();\n  }" { (expression_statement "FUN_00063d60();" (call_expression "FUN_00063d60()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_4 != 0) {\n    FUN_00063e30();\n  }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063e30();\n  }" { (expression_statement "FUN_00063e30();" (call_expression "FUN_00063e30()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_5 != 0) {\n    FUN_00063d60();\n  }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_00063d60();\n  }" { (expression_statement "FUN_00063d60();" (call_expression "FUN_00063d60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }) (else_clause else (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 ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)\n\n{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* __regparm3 FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00064870(int param_1,int param_2,int param_3,int param_4,int param_5)" (identifier "FUN_00064870") (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")")))) (compound_statement "{\n  int *piVar1;\n  \n  if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }\n  if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }\nLAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }\n  if (param_3 != 0) {\n    FUN_00063d60();\n  }\n  if (param_4 != 0) {\n    FUN_00063e30();\n  }\n  if (param_5 != 0) {\n    FUN_00063d60();\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (if_statement "if (param_1 == 0) {\n    piVar1 = (int *)FUN_00055780();\n  }\n  else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    piVar1 = (int *)FUN_00055780();\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_00055780();" (assignment_expression "piVar1 = (int *)FUN_00055780()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00055780()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00055780()" (identifier "FUN_00055780") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" (else "else") (compound_statement "{\n    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;\n    piVar1 = (int *)FUN_00055c10();\n  }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x4d) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x4d) != '\0'" (pointer_expression "*(char *)(param_1 + 0x4d)" (* "*") (cast_expression "(char *)(param_1 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4d)" (( "(") (binary_expression "param_1 + 0x4d" (identifier "param_1") (+ "+") (number_literal "0x4d")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000648c8;" (goto "goto") (statement_identifier "LAB_000648c8") (; ";"))) (expression_statement "piVar1 = (int *)FUN_00055c10();" (assignment_expression "piVar1 = (int *)FUN_00055c10()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_00055c10()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00055c10()" (identifier "FUN_00055c10") (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")))) (if_statement "if (piVar1 != (int *)0x0) {\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }" (if "if") (parenthesized_expression "(piVar1 != (int *)0x0)" (( "(") (binary_expression "piVar1 != (int *)0x0" (identifier "piVar1") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *piVar1 = param_2;\n    piVar1[1] = param_3;\n    piVar1[2] = param_4;\n    piVar1[4] = 0;\n    piVar1[3] = param_5;\n    return piVar1;\n  }" ({ "{") (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1[1] = param_3;" (assignment_expression "piVar1[1] = param_3" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar1[2] = param_4;" (assignment_expression "piVar1[2] = param_4" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[3] = param_5;" (assignment_expression "piVar1[3] = param_5" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_5")) (; ";")) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (labeled_statement "LAB_000648c8:\n  if (param_2 != 0) {\n    FUN_00063e30();\n  }" (statement_identifier "LAB_000648c8") (: ":") (if_statement "if (param_2 != 0) {\n    FUN_00063e30();\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00063e30();\n  }" ({ "{") (expression_statement "FUN_00063e30();" (call_expression "FUN_00063e30()" (identifier "FUN_00063e30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (param_3 != 0) {\n    FUN_00063d60();\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00063d60();\n  }" ({ "{") (expression_statement "FUN_00063d60();" (call_expression "FUN_00063d60()" (identifier "FUN_00063d60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_4 != 0) {\n    FUN_00063e30();\n  }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00063e30();\n  }" ({ "{") (expression_statement "FUN_00063e30();" (call_expression "FUN_00063e30()" (identifier "FUN_00063e30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_5 != 0) {\n    FUN_00063d60();\n  }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00063d60();\n  }" ({ "{") (expression_statement "FUN_00063d60();" (call_expression "FUN_00063d60()" (identifier "FUN_00063d60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * __regparm3
sqlite3UpsertNew(type_3 *var_1,type_5 *var_5,type_6 *var_7,type_5 *var_9,type_6 *var_10)

{
  type_1 *var_4;
  type_2 in_stack_ffffffe4;
  
  if (var_1 == (type_3 *)0x0) {
    var_4 = (type_1 *)var_2(in_stack_ffffffe4);
  }
  else {
    if (var_1->mallocFailed != '\0') goto LAB_000648c8;
    var_4 = (type_1 *)var_3(var_1,in_stack_ffffffe4);
  }
  if (var_4 != (type_1 *)0x0) {
    var_4->pUpsertTarget = var_5;
    var_4->pUpsertTargetWhere = var_7;
    var_4->pUpsertSet = var_9;
    var_4->pUpsertIdx = (type_4 *)0x0;
    var_4->pUpsertWhere = var_10;
    return var_4;
  }
LAB_000648c8:
  if (var_5 != (type_5 *)0x0) {
    var_6(var_1,var_5);
  }
  if (var_7 != (type_6 *)0x0) {
    var_8(var_1,var_7);
  }
  if (var_9 != (type_5 *)0x0) {
    var_6(var_1,var_9);
  }
  if (var_10 != (type_6 *)0x0) {
    var_8(var_1,var_10);
  }
  return (type_1 *)0x0;
}


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

int * __regparm3 MASKED(int param_1,int param_2,int param_3,int param_4,int param_5)

{
  int *piVar1;
  
  if (param_1 == 0) {
    piVar1 = (int *)FUN_00055780();
  }
  else {
    if (*(char *)(param_1 + 0x4d) != '\0') goto LAB_000648c8;
    piVar1 = (int *)FUN_00055c10();
  }
  if (piVar1 != (int *)0x0) {
    *piVar1 = param_2;
    piVar1[1] = param_3;
    piVar1[2] = param_4;
    piVar1[4] = 0;
    piVar1[3] = param_5;
    return piVar1;
  }
LAB_000648c8:
  if (param_2 != 0) {
    FUN_00063e30();
  }
  if (param_3 != 0) {
    FUN_00063d60();
  }
  if (param_4 != 0) {
    FUN_00063e30();
  }
  if (param_5 != 0) {
    FUN_00063d60();
  }
  return (int *)0x0;
}

