
void sqlite3_result_text64
               (sqlite3_context *pCtx,char *z,sqlite3_uint64 n,_func_void_void_ptr *xDel,uchar enc)

{
  if (enc == '\x04') {
    enc = '\x02';
  }
  if (n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)) {
    invokeValueDestructor(z,xDel,pCtx);
    return;
  }
  setResultStrOrError(pCtx,z,(uint)n,enc,xDel);
  return;
}



void FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)

{
  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {
    FUN_000462a0();
    return;
  }
  FUN_00046360();
  return;
}


PUSH EDI
MOV EDI,0x2
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x24]
MOV ECX,dword ptr [ESP + 0x18]
MOV EAX,dword ptr [ESP + 0x10]
CMP BL,0x4
MOV ESI,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x20]
CMOVZ EBX,EDI
MOV EDI,0x7fffffff
CMP EDI,ECX
MOV EDI,0x0
SBB EDI,dword ptr [ESP + 0x1c]
JNC 0x00046d80
POP EBX
MOV ECX,EAX
MOV EAX,ESI
POP ESI
POP EDI
JMP 0x000462a0
MOVZX EBX,BL
MOV dword ptr [ESP + 0x14],EDX
MOV EDX,ESI
MOV dword ptr [ESP + 0x10],EBX
POP EBX
POP ESI
POP EDI
JMP 0x00046360
(translation_unit "void FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)\n\n{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}\n\n" (function_definition "void FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)\n\n{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}" primitive_type (function_declarator "FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}" { (if_statement "if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }" if (parenthesized_expression "(param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3))" ( (binary_expression "param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)" (binary_expression "param_4 != 0" identifier != number_literal) || (binary_expression "(uint)-param_4 < (uint)(0x7fffffff < param_3)" (binary_expression "(uint)-param_4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(0x7fffffff < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x7fffffff < param_3)" ( (binary_expression "0x7fffffff < param_3" number_literal < identifier) ))))) )) (compound_statement "{\n    FUN_000462a0();\n    return;\n  }" { (expression_statement "FUN_000462a0();" (call_expression "FUN_000462a0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00046360();" (call_expression "FUN_00046360()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void sqlite3_result_text64\n               (sqlite3_context *pCtx,char *z,sqlite3_uint64 n,_func_void_void_ptr *xDel,uchar enc)\n\n{\n  if (enc == '\x04') {\n    enc = '\x02';\n  }\n  if (n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)) {\n    invokeValueDestructor(z,xDel,pCtx);\n    return;\n  }\n  setResultStrOrError(pCtx,z,(uint)n,enc,xDel);\n  return;\n}\n\n" (function_definition "void sqlite3_result_text64\n               (sqlite3_context *pCtx,char *z,sqlite3_uint64 n,_func_void_void_ptr *xDel,uchar enc)\n\n{\n  if (enc == '\x04') {\n    enc = '\x02';\n  }\n  if (n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)) {\n    invokeValueDestructor(z,xDel,pCtx);\n    return;\n  }\n  setResultStrOrError(pCtx,z,(uint)n,enc,xDel);\n  return;\n}" primitive_type (function_declarator "sqlite3_result_text64\n               (sqlite3_context *pCtx,char *z,sqlite3_uint64 n,_func_void_void_ptr *xDel,uchar enc)" identifier (parameter_list "(sqlite3_context *pCtx,char *z,sqlite3_uint64 n,_func_void_void_ptr *xDel,uchar enc)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "char *z" primitive_type (pointer_declarator "*z" * identifier)) , (parameter_declaration "sqlite3_uint64 n" type_identifier identifier) , (parameter_declaration "_func_void_void_ptr *xDel" type_identifier (pointer_declarator "*xDel" * identifier)) , (parameter_declaration "uchar enc" type_identifier identifier) ))) (compound_statement "{\n  if (enc == '\x04') {\n    enc = '\x02';\n  }\n  if (n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)) {\n    invokeValueDestructor(z,xDel,pCtx);\n    return;\n  }\n  setResultStrOrError(pCtx,z,(uint)n,enc,xDel);\n  return;\n}" { (if_statement "if (enc == '\x04') {\n    enc = '\x02';\n  }" if (parenthesized_expression "(enc == '\x04')" ( (binary_expression "enc == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) (compound_statement "{\n    enc = '\x02';\n  }" { (expression_statement "enc = '\x02';" (assignment_expression "enc = '\x02'" identifier = (char_literal "'\x02'" ' escape_sequence ')) ;) })) (if_statement "if (n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)) {\n    invokeValueDestructor(z,xDel,pCtx);\n    return;\n  }" if (parenthesized_expression "(n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n))" ( (binary_expression "n._4_4_ != 0 || (uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)" (binary_expression "n._4_4_ != 0" (field_expression "n._4_4_" identifier . field_identifier) != number_literal) || (binary_expression "(uint)-n._4_4_ < (uint)(0x7fffffff < (uint)n)" (binary_expression "(uint)-n._4_4_" (parenthesized_expression "(uint)" ( identifier )) - (field_expression "n._4_4_" identifier . field_identifier)) < (call_expression "(uint)(0x7fffffff < (uint)n)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x7fffffff < (uint)n)" ( (binary_expression "0x7fffffff < (uint)n" number_literal < (cast_expression "(uint)n" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) )) (compound_statement "{\n    invokeValueDestructor(z,xDel,pCtx);\n    return;\n  }" { (expression_statement "invokeValueDestructor(z,xDel,pCtx);" (call_expression "invokeValueDestructor(z,xDel,pCtx)" identifier (argument_list "(z,xDel,pCtx)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "setResultStrOrError(pCtx,z,(uint)n,enc,xDel);" (call_expression "setResultStrOrError(pCtx,z,(uint)n,enc,xDel)" identifier (argument_list "(pCtx,z,(uint)n,enc,xDel)" ( identifier , identifier , (cast_expression "(uint)n" ( (type_descriptor "uint" type_identifier) ) identifier) , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)\n\n{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}\n\n" (function_definition "void FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)\n\n{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}" primitive_type (function_declarator "FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}" { (if_statement "if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }" if (parenthesized_expression "(param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3))" ( (binary_expression "param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)" (binary_expression "param_4 != 0" identifier != number_literal) || (binary_expression "(uint)-param_4 < (uint)(0x7fffffff < param_3)" (binary_expression "(uint)-param_4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(0x7fffffff < param_3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x7fffffff < param_3)" ( (binary_expression "0x7fffffff < param_3" number_literal < identifier) ))))) )) (compound_statement "{\n    FUN_000462a0();\n    return;\n  }" { (expression_statement "FUN_000462a0();" (call_expression "FUN_000462a0()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_00046360();" (call_expression "FUN_00046360()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)\n\n{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00046d40(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)" (identifier "FUN_00046d40") (parameter_list "(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }\n  FUN_00046360();\n  return;\n}" ({ "{") (if_statement "if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {\n    FUN_000462a0();\n    return;\n  }" (if "if") (parenthesized_expression "(param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3))" (( "(") (binary_expression "param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)" (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(uint)-param_4 < (uint)(0x7fffffff < param_3)" (binary_expression "(uint)-param_4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "param_4")) (< "<") (call_expression "(uint)(0x7fffffff < param_3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x7fffffff < param_3)" (( "(") (binary_expression "0x7fffffff < param_3" (number_literal "0x7fffffff") (< "<") (identifier "param_3")) () ")"))))) () ")")) (compound_statement "{\n    FUN_000462a0();\n    return;\n  }" ({ "{") (expression_statement "FUN_000462a0();" (call_expression "FUN_000462a0()" (identifier "FUN_000462a0") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00046360();" (call_expression "FUN_00046360()" (identifier "FUN_00046360") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1
               (type_1 *pCtx,char *z,type_2 n,type_3 *xDel,type_4 var_1)

{
  if (var_1 == '\x04') {
    var_1 = '\x02';
  }
  if (n._4_4_ != 0 || (type_5)-n._4_4_ < (type_5)(0x7fffffff < (type_5)n)) {
    var_2(z,xDel,pCtx);
    return;
  }
  var_3(pCtx,z,(type_5)n,var_1,xDel);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (identifier))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

void MASKED(undefined4 param_1,undefined4 param_2,uint param_3,int param_4)

{
  if (param_4 != 0 || (uint)-param_4 < (uint)(0x7fffffff < param_3)) {
    FUN_000462a0();
    return;
  }
  FUN_00046360();
  return;
}

