
i64 __regparm3 memIntValue(Mem *pMem)

{
  int in_GS_OFFSET;
  i64 value;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  value._0_4_ = 0;
  value._4_4_ = 0;
  sqlite3Atoi64(pMem->z,&value,pMem->n,pMem->enc);
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return CONCAT44(value._4_4_,(undefined4)value);
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



undefined8 __regparm3 FUN_00038de0(int param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00037600(*(undefined1 *)(param_1 + 10));
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}


PUSH EBX
MOV EBX,EAX
SUB ESP,0x18
MOV ECX,dword ptr [EBX + 0xc]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBX + 0x10]
MOVZX EBX,byte ptr [EBX + 0xa]
MOV dword ptr [ESP],0x0
MOV dword ptr [ESP + 0x4],0x0
MOV EDX,ESP
SUB ESP,0x4
PUSH EBX
CALL 0x00037600
POP EAX
POP EDX
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x4]
JNZ 0x00038e31
ADD ESP,0x18
POP EBX
RET
CALL 0x00116110
(translation_unit "undefined8 __regparm3 FUN_00038de0(int param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}\n\n" (function_definition "undefined8 __regparm3 FUN_00038de0(int param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00038de0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_00037600(*(undefined1 *)(param_1 + 10));" (call_expression "FUN_00037600(*(undefined1 *)(param_1 + 10))" identifier (argument_list "(*(undefined1 *)(param_1 + 10))" ( (pointer_expression "*(undefined1 *)(param_1 + 10)" * (cast_expression "(undefined1 *)(param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) comment (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "i64 __regparm3 memIntValue(Mem *pMem)\n\n{\n  int in_GS_OFFSET;\n  i64 value;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  value._0_4_ = 0;\n  value._4_4_ = 0;\n  sqlite3Atoi64(pMem->z,&value,pMem->n,pMem->enc);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CONCAT44(value._4_4_,(undefined4)value);\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (function_definition "i64 __regparm3 memIntValue(Mem *pMem)\n\n{\n  int in_GS_OFFSET;\n  i64 value;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  value._0_4_ = 0;\n  value._4_4_ = 0;\n  sqlite3Atoi64(pMem->z,&value,pMem->n,pMem->enc);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CONCAT44(value._4_4_,(undefined4)value);\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "memIntValue(Mem *pMem)" identifier (parameter_list "(Mem *pMem)" ( (parameter_declaration "Mem *pMem" type_identifier (pointer_declarator "*pMem" * identifier)) ))) (compound_statement "{\n  int in_GS_OFFSET;\n  i64 value;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  value._0_4_ = 0;\n  value._4_4_ = 0;\n  sqlite3Atoi64(pMem->z,&value,pMem->n,pMem->enc);\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CONCAT44(value._4_4_,(undefined4)value);\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "i64 value;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "value._0_4_ = 0;" (assignment_expression "value._0_4_ = 0" (field_expression "value._0_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "value._4_4_ = 0;" (assignment_expression "value._4_4_ = 0" (field_expression "value._4_4_" identifier . field_identifier) = number_literal) ;) (expression_statement "sqlite3Atoi64(pMem->z,&value,pMem->n,pMem->enc);" (call_expression "sqlite3Atoi64(pMem->z,&value,pMem->n,pMem->enc)" identifier (argument_list "(pMem->z,&value,pMem->n,pMem->enc)" ( (field_expression "pMem->z" identifier -> field_identifier) , (pointer_expression "&value" & identifier) , (field_expression "pMem->n" identifier -> field_identifier) , (field_expression "pMem->enc" identifier -> field_identifier) ))) ;) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CONCAT44(value._4_4_,(undefined4)value);\n  }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return CONCAT44(value._4_4_,(undefined4)value);\n  }" { (return_statement "return CONCAT44(value._4_4_,(undefined4)value);" return (call_expression "CONCAT44(value._4_4_,(undefined4)value)" identifier (argument_list "(value._4_4_,(undefined4)value)" ( (field_expression "value._4_4_" identifier . field_identifier) , (cast_expression "(undefined4)value" ( (type_descriptor "undefined4" type_identifier) ) identifier) ))) ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined8 __regparm3 FUN_00038de0(int param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_00116110();\n}\n\n" (function_definition "undefined8 __regparm3 FUN_00038de0(int param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_00116110();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00038de0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_00116110();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "FUN_00037600(*(undefined1 *)(param_1 + 10));" (call_expression "FUN_00037600(*(undefined1 *)(param_1 + 10))" identifier (argument_list "(*(undefined1 *)(param_1 + 10))" ( (pointer_expression "*(undefined1 *)(param_1 + 10)" * (cast_expression "(undefined1 *)(param_1 + 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 10)" ( (binary_expression "param_1 + 10" identifier + number_literal) )))) ))) ;) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 __regparm3 FUN_00038de0(int param_1)\n\n{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_00116110();\n}" (type_identifier "undefined8") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00038de0(int param_1)" (identifier "FUN_00038de0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  FUN_00037600(*(undefined1 *)(param_1 + 10));\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }\n                    \n  FUN_00116110();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "FUN_00037600(*(undefined1 *)(param_1 + 10));" (call_expression "FUN_00037600(*(undefined1 *)(param_1 + 10))" (identifier "FUN_00037600") (argument_list "(*(undefined1 *)(param_1 + 10))" (( "(") (pointer_expression "*(undefined1 *)(param_1 + 10)" (* "*") (cast_expression "(undefined1 *)(param_1 + 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")")))) () ")"))) (; ";")) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_00116110();" (call_expression "FUN_00116110()" (identifier "FUN_00116110") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

type_1 __regparm3 function_1(type_2 *pMem)

{
  int var_1;
  type_1 value;
  int var_3;
  
  var_3 = *(int *)(var_1 + 0x14);
  value._0_4_ = 0;
  value._4_4_ = 0;
  var_2(pMem->z,&value,pMem->n,pMem->enc);
  if (var_3 == *(int *)(var_1 + 0x14)) {
    return var_4(value._4_4_,(type_3)value);
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

undefined8 __regparm3 MASKED(int param_1)

{
  int iVar1;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  FUN_00037600(*(undefined1 *)(param_1 + 10));
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return 0;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00116110();
}

