//
// engine_load_dynamic_int from 0xe5d810 to 0xe5d8e4 (212 bytes)
//
// 2 xrefs:
// > sub_DB1A98 @ 0xdb1aa0
// > ??> @ 0xb9598
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_QWORD *engine_load_dynamic_int()
{
_QWORD *result; // x0
__int64 v1; // x19
result = (_QWORD *)ENGINE_new();
v1 = (__int64)result;
if ( result )
{
if ( (unsigned int)ENGINE_set_id(result, (__int64)"dynamic")
&& (unsigned int)ENGINE_set_name(v1, (__int64)"Dynamic engine loading support")
&& (unsigned int)ENGINE_set_init_function(v1, (__int64)sub_E5D000)
&& (unsigned int)ENGINE_set_finish_function(v1, (__int64)sub_E5D008)
&& (unsigned int)ENGINE_set_ctrl_function(v1, (__int64)sub_E5D098)
&& (unsigned int)ENGINE_set_flags(v1, 4)
&& (unsigned int)ENGINE_set_cmd_defns(v1, (__int64)&unk_1132FA8) )
{
ENGINE_add(v1);
ENGINE_free(v1);
return (_QWORD *)ERR_clear_error();
}
else
{
return (_QWORD *)ENGINE_free(v1);
}
}
return result;
}