//
// sub_F88E4C from 0xf88e4c to 0xf88eb8 (108 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:13:54 +0000
//
void *__fastcall sub_F88E4C(size_t a1)
{
size_t v1; // x19
void *result; // x0
void (*new_handler)(void); // x0
_QWORD *exception; // x0
if ( a1 )
v1 = a1;
else
v1 = 1;
while ( 1 )
{
result = malloc(v1);
if ( result )
break;
new_handler = (void (*)(void))std::get_new_handler();
if ( !new_handler )
{
exception = _cxa_allocate_exception(8u);
*exception = off_1535EF0;
_cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::bad_alloc,
(void (*)(void *))std::bad_alloc::~bad_alloc);
}
new_handler();
}
return result;
}