// // sub_9801E8 from 0x9801e8 to 0x98022c (68 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:06:07 +0000 // void *__fastcall sub_9801E8(size_t a1) { size_t v1; // r4 void *result; // r0 void (*new_handler)(void); // r0 _DWORD *exception; // r0 v1 = a1; if ( !a1 ) 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(4u); *exception = &off_D14D98; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::bad_alloc, (void (*)(void *))std::bad_alloc::~bad_alloc); } new_handler(); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source