
/* WARNING: Unknown calling convention */

int sqlite3_create_collation_v2
              (sqlite3 *db,char *zName,int enc,void *pCtx,
              _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)

{
  uint uVar1;
  _func_int_void_ptr_int_void_ptr_int_void_ptr *unaff_EBX;
  _func_void_void_ptr *unaff_ESI;
  int unaff_EDI;
  void *in_stack_fffffff0;
  
  __x86_get_pc_thunk_di();
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(unaff_EDI + 0x107a06))(db->mutex);
  }
  uVar1 = createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,
                          unaff_ESI);
  if ((db->mallocFailed == '\0') && (uVar1 != 0xc0a)) {
    uVar1 = uVar1 & db->errMask;
  }
  else {
    uVar1 = apiOomError(db);
  }
  if (db->mutex != (sqlite3_mutex *)0x0) {
    (**(code **)(unaff_EDI + 0x107a0e))(db->mutex);
  }
  return uVar1;
}



uint FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6)

{
  uint uVar1;
  int unaff_EDI;
  
  FUN_00036ac5();
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));
  }
  uVar1 = FUN_000747c0(param_4,param_5,param_6);
  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {
    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);
  }
  else {
    uVar1 = FUN_00056090();
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));
  }
  return uVar1;
}


PUSH EDI
CALL 0x00036ac5
ADD EDI,0x1073f2
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX + 0xc]
TEST EAX,EAX
JZ 0x00074a56
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDI + 0x614]
ADD ESP,0x10
MOVZX ECX,byte ptr [ESP + 0x18]
SUB ESP,0x4
MOV EAX,EBX
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
PUSH dword ptr [ESP + 0x28]
MOV EDX,dword ptr [ESP + 0x24]
CALL 0x000747c0
ADD ESP,0x10
CMP byte ptr [EBX + 0x4d],0x0
JNZ 0x00074aa8
CMP EAX,0xc0a
JZ 0x00074aa8
AND EAX,dword ptr [EBX + 0x40]
MOV ESI,EAX
MOV EAX,dword ptr [EBX + 0xc]
TEST EAX,EAX
JZ 0x00074a9e
SUB ESP,0xc
PUSH EAX
CALL dword ptr [EDI + 0x61c]
ADD ESP,0x10
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
RET
MOV EAX,EBX
CALL 0x00056090
MOV ESI,EAX
JMP 0x00074a8a
(translation_unit "uint FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00036ac5();" (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a06))" ( (pointer_expression "**(code **)(unaff_EDI + 0x107a06)" * (pointer_expression "*(code **)(unaff_EDI + 0x107a06)" * (cast_expression "(code **)(unaff_EDI + 0x107a06)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x107a06)" ( (binary_expression "unaff_EDI + 0x107a06" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "uVar1 = FUN_000747c0(param_4,param_5,param_6);" (assignment_expression "uVar1 = FUN_000747c0(param_4,param_5,param_6)" identifier = (call_expression "FUN_000747c0(param_4,param_5,param_6)" identifier (argument_list "(param_4,param_5,param_6)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a))" ( (binary_expression "(*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)" (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 ')) )) && (parenthesized_expression "(uVar1 != 0xc0a)" ( (binary_expression "uVar1 != 0xc0a" identifier != number_literal) ))) )) (compound_statement "{\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }" { (expression_statement "uVar1 = uVar1 & *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = uVar1 & *(uint *)(param_1 + 0x40)" identifier = (binary_expression "uVar1 & *(uint *)(param_1 + 0x40)" identifier & (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))))) ;) }) (else_clause "else {\n    uVar1 = FUN_00056090();\n  }" else (compound_statement "{\n    uVar1 = FUN_00056090();\n  }" { (expression_statement "uVar1 = FUN_00056090();" (assignment_expression "uVar1 = FUN_00056090()" identifier = (call_expression "FUN_00056090()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a0e))" ( (pointer_expression "**(code **)(unaff_EDI + 0x107a0e)" * (pointer_expression "*(code **)(unaff_EDI + 0x107a0e)" * (cast_expression "(code **)(unaff_EDI + 0x107a0e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x107a0e)" ( (binary_expression "unaff_EDI + 0x107a0e" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sqlite3_create_collation_v2\n              (sqlite3 *db,char *zName,int enc,void *pCtx,\n              _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)\n\n{\n  uint uVar1;\n  _func_int_void_ptr_int_void_ptr_int_void_ptr *unaff_EBX;\n  _func_void_void_ptr *unaff_ESI;\n  int unaff_EDI;\n  void *in_stack_fffffff0;\n  \n  __x86_get_pc_thunk_di();\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a06))(db->mutex);\n  }\n  uVar1 = createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI);\n  if ((db->mallocFailed == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & db->errMask;\n  }\n  else {\n    uVar1 = apiOomError(db);\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(db->mutex);\n  }\n  return uVar1;\n}\n\n" comment (function_definition "int sqlite3_create_collation_v2\n              (sqlite3 *db,char *zName,int enc,void *pCtx,\n              _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)\n\n{\n  uint uVar1;\n  _func_int_void_ptr_int_void_ptr_int_void_ptr *unaff_EBX;\n  _func_void_void_ptr *unaff_ESI;\n  int unaff_EDI;\n  void *in_stack_fffffff0;\n  \n  __x86_get_pc_thunk_di();\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a06))(db->mutex);\n  }\n  uVar1 = createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI);\n  if ((db->mallocFailed == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & db->errMask;\n  }\n  else {\n    uVar1 = apiOomError(db);\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(db->mutex);\n  }\n  return uVar1;\n}" primitive_type (function_declarator "sqlite3_create_collation_v2\n              (sqlite3 *db,char *zName,int enc,void *pCtx,\n              _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)" identifier (parameter_list "(sqlite3 *db,char *zName,int enc,void *pCtx,\n              _func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare,_func_void_void_ptr *xDel)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "char *zName" primitive_type (pointer_declarator "*zName" * identifier)) , (parameter_declaration "int enc" primitive_type identifier) , (parameter_declaration "void *pCtx" primitive_type (pointer_declarator "*pCtx" * identifier)) , (parameter_declaration "_func_int_void_ptr_int_void_ptr_int_void_ptr *xCompare" type_identifier (pointer_declarator "*xCompare" * identifier)) , (parameter_declaration "_func_void_void_ptr *xDel" type_identifier (pointer_declarator "*xDel" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  _func_int_void_ptr_int_void_ptr_int_void_ptr *unaff_EBX;\n  _func_void_void_ptr *unaff_ESI;\n  int unaff_EDI;\n  void *in_stack_fffffff0;\n  \n  __x86_get_pc_thunk_di();\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a06))(db->mutex);\n  }\n  uVar1 = createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI);\n  if ((db->mallocFailed == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & db->errMask;\n  }\n  else {\n    uVar1 = apiOomError(db);\n  }\n  if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(db->mutex);\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "_func_int_void_ptr_int_void_ptr_int_void_ptr *unaff_EBX;" type_identifier (pointer_declarator "*unaff_EBX" * identifier) ;) (declaration "_func_void_void_ptr *unaff_ESI;" type_identifier (pointer_declarator "*unaff_ESI" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "void *in_stack_fffffff0;" primitive_type (pointer_declarator "*in_stack_fffffff0" * identifier) ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a06))(db->mutex);\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a06))(db->mutex);\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x107a06))(db->mutex);" (call_expression "(**(code **)(unaff_EDI + 0x107a06))(db->mutex)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a06))" ( (pointer_expression "**(code **)(unaff_EDI + 0x107a06)" * (pointer_expression "*(code **)(unaff_EDI + 0x107a06)" * (cast_expression "(code **)(unaff_EDI + 0x107a06)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x107a06)" ( (binary_expression "unaff_EDI + 0x107a06" identifier + number_literal) ))))) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) })) (expression_statement "uVar1 = createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI);" (assignment_expression "uVar1 = createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI)" identifier = (call_expression "createCollation((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI)" identifier (argument_list "((sqlite3 *)pCtx,(char *)xCompare,(u8)xDel,in_stack_fffffff0,unaff_EBX,\n                          unaff_ESI)" ( (cast_expression "(sqlite3 *)pCtx" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)xCompare" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(u8)xDel" ( (type_descriptor "u8" type_identifier) ) identifier) , identifier , identifier , identifier )))) ;) (if_statement "if ((db->mallocFailed == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & db->errMask;\n  }\n  else {\n    uVar1 = apiOomError(db);\n  }" if (parenthesized_expression "((db->mallocFailed == '\0') && (uVar1 != 0xc0a))" ( (binary_expression "(db->mallocFailed == '\0') && (uVar1 != 0xc0a)" (parenthesized_expression "(db->mallocFailed == '\0')" ( (binary_expression "db->mallocFailed == '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(uVar1 != 0xc0a)" ( (binary_expression "uVar1 != 0xc0a" identifier != number_literal) ))) )) (compound_statement "{\n    uVar1 = uVar1 & db->errMask;\n  }" { (expression_statement "uVar1 = uVar1 & db->errMask;" (assignment_expression "uVar1 = uVar1 & db->errMask" identifier = (binary_expression "uVar1 & db->errMask" identifier & (field_expression "db->errMask" identifier -> field_identifier))) ;) }) (else_clause "else {\n    uVar1 = apiOomError(db);\n  }" else (compound_statement "{\n    uVar1 = apiOomError(db);\n  }" { (expression_statement "uVar1 = apiOomError(db);" (assignment_expression "uVar1 = apiOomError(db)" identifier = (call_expression "apiOomError(db)" identifier (argument_list "(db)" ( identifier )))) ;) }))) (if_statement "if (db->mutex != (sqlite3_mutex *)0x0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(db->mutex);\n  }" if (parenthesized_expression "(db->mutex != (sqlite3_mutex *)0x0)" ( (binary_expression "db->mutex != (sqlite3_mutex *)0x0" (field_expression "db->mutex" identifier -> field_identifier) != (cast_expression "(sqlite3_mutex *)0x0" ( (type_descriptor "sqlite3_mutex *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a0e))(db->mutex);\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x107a0e))(db->mutex);" (call_expression "(**(code **)(unaff_EDI + 0x107a0e))(db->mutex)" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a0e))" ( (pointer_expression "**(code **)(unaff_EDI + 0x107a0e)" * (pointer_expression "*(code **)(unaff_EDI + 0x107a0e)" * (cast_expression "(code **)(unaff_EDI + 0x107a0e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x107a0e)" ( (binary_expression "unaff_EDI + 0x107a0e" identifier + number_literal) ))))) )) (argument_list "(db->mutex)" ( (field_expression "db->mutex" identifier -> field_identifier) ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}\n\n" (function_definition "uint FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_00036ac5();" (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( ))) ;) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a06))" ( (pointer_expression "**(code **)(unaff_EDI + 0x107a06)" * (pointer_expression "*(code **)(unaff_EDI + 0x107a06)" * (cast_expression "(code **)(unaff_EDI + 0x107a06)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x107a06)" ( (binary_expression "unaff_EDI + 0x107a06" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (expression_statement "uVar1 = FUN_000747c0(param_4,param_5,param_6);" (assignment_expression "uVar1 = FUN_000747c0(param_4,param_5,param_6)" identifier = (call_expression "FUN_000747c0(param_4,param_5,param_6)" identifier (argument_list "(param_4,param_5,param_6)" ( identifier , identifier , identifier )))) ;) (if_statement "if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a))" ( (binary_expression "(*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)" (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 ')) )) && (parenthesized_expression "(uVar1 != 0xc0a)" ( (binary_expression "uVar1 != 0xc0a" identifier != number_literal) ))) )) (compound_statement "{\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }" { (expression_statement "uVar1 = uVar1 & *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = uVar1 & *(uint *)(param_1 + 0x40)" identifier = (binary_expression "uVar1 & *(uint *)(param_1 + 0x40)" identifier & (pointer_expression "*(uint *)(param_1 + 0x40)" * (cast_expression "(uint *)(param_1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))))) ;) }) (else_clause "else {\n    uVar1 = FUN_00056090();\n  }" else (compound_statement "{\n    uVar1 = FUN_00056090();\n  }" { (expression_statement "uVar1 = FUN_00056090();" (assignment_expression "uVar1 = FUN_00056090()" identifier = (call_expression "FUN_00056090()" identifier (argument_list "()" ( )))) ;) }))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }" { (expression_statement "(**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a0e))" ( (pointer_expression "**(code **)(unaff_EDI + 0x107a0e)" * (pointer_expression "*(code **)(unaff_EDI + 0x107a0e)" * (cast_expression "(code **)(unaff_EDI + 0x107a0e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_EDI + 0x107a0e)" ( (binary_expression "unaff_EDI + 0x107a0e" identifier + number_literal) ))))) )) (argument_list "(*(int *)(param_1 + 0xc))" ( (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) ))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (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) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "uint FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)\n\n{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}" (type_identifier "uint") (function_declarator "FUN_00074a30(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" (identifier "FUN_00074a30") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n                 undefined4 param_5,undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int unaff_EDI;\n  \n  FUN_00036ac5();\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }\n  uVar1 = FUN_000747c0(param_4,param_5,param_6);\n  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }\n  if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }\n  return uVar1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_00036ac5();" (call_expression "FUN_00036ac5()" (identifier "FUN_00036ac5") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a06))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0x107a06)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0x107a06)" (* "*") (cast_expression "(code **)(unaff_EDI + 0x107a06)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x107a06)" (( "(") (binary_expression "unaff_EDI + 0x107a06" (identifier "unaff_EDI") (+ "+") (number_literal "0x107a06")) () ")"))))) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = FUN_000747c0(param_4,param_5,param_6);" (assignment_expression "uVar1 = FUN_000747c0(param_4,param_5,param_6)" (identifier "uVar1") (= "=") (call_expression "FUN_000747c0(param_4,param_5,param_6)" (identifier "FUN_000747c0") (argument_list "(param_4,param_5,param_6)" (( "(") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (if_statement "if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }\n  else {\n    uVar1 = FUN_00056090();\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a))" (( "(") (binary_expression "(*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)" (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") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(uVar1 != 0xc0a)" (( "(") (binary_expression "uVar1 != 0xc0a" (identifier "uVar1") (!= "!=") (number_literal "0xc0a")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);\n  }" ({ "{") (expression_statement "uVar1 = uVar1 & *(uint *)(param_1 + 0x40);" (assignment_expression "uVar1 = uVar1 & *(uint *)(param_1 + 0x40)" (identifier "uVar1") (= "=") (binary_expression "uVar1 & *(uint *)(param_1 + 0x40)" (identifier "uVar1") (& "&") (pointer_expression "*(uint *)(param_1 + 0x40)" (* "*") (cast_expression "(uint *)(param_1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = FUN_00056090();\n  }" (else "else") (compound_statement "{\n    uVar1 = FUN_00056090();\n  }" ({ "{") (expression_statement "uVar1 = FUN_00056090();" (assignment_expression "uVar1 = FUN_00056090()" (identifier "uVar1") (= "=") (call_expression "FUN_00056090()" (identifier "FUN_00056090") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (if_statement "if (*(int *)(param_1 + 0xc) != 0) {\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));\n  }" ({ "{") (expression_statement "(**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));" (call_expression "(**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc))" (parenthesized_expression "(**(code **)(unaff_EDI + 0x107a0e))" (( "(") (pointer_expression "**(code **)(unaff_EDI + 0x107a0e)" (* "*") (pointer_expression "*(code **)(unaff_EDI + 0x107a0e)" (* "*") (cast_expression "(code **)(unaff_EDI + 0x107a0e)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(unaff_EDI + 0x107a0e)" (( "(") (binary_expression "unaff_EDI + 0x107a0e" (identifier "unaff_EDI") (+ "+") (number_literal "0x107a0e")) () ")"))))) () ")")) (argument_list "(*(int *)(param_1 + 0xc))" (( "(") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1
              (type_1 *db,char *zName,int enc,void *pCtx,
              type_2 *xCompare,type_3 *xDel)

{
  type_4 var_4;
  type_2 *unaff_EBX;
  type_3 *unaff_ESI;
  int var_2;
  void *in_stack_fffffff0;
  
  var_1();
  if (db->mutex != (type_5 *)0x0) {
    (**(type_6 **)(var_2 + 0x107a06))(db->mutex);
  }
  var_4 = var_3((type_1 *)pCtx,(char *)xCompare,(type_7)xDel,in_stack_fffffff0,unaff_EBX,
                          unaff_ESI);
  if ((db->mallocFailed == '\0') && (var_4 != 0xc0a)) {
    var_4 = var_4 & db->errMask;
  }
  else {
    var_4 = var_5(db);
  }
  if (db->mutex != (type_5 *)0x0) {
    (**(type_6 **)(var_2 + 0x107a0e))(db->mutex);
  }
  return var_4;
}


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

uint MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
                 undefined4 param_5,undefined4 param_6)

{
  uint uVar1;
  int unaff_EDI;
  
  FUN_00036ac5();
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x107a06))(*(int *)(param_1 + 0xc));
  }
  uVar1 = FUN_000747c0(param_4,param_5,param_6);
  if ((*(char *)(param_1 + 0x4d) == '\0') && (uVar1 != 0xc0a)) {
    uVar1 = uVar1 & *(uint *)(param_1 + 0x40);
  }
  else {
    uVar1 = FUN_00056090();
  }
  if (*(int *)(param_1 + 0xc) != 0) {
    (**(code **)(unaff_EDI + 0x107a0e))(*(int *)(param_1 + 0xc));
  }
  return uVar1;
}

