//
// operator new from 0x743e58 to 0x743e82 (42 bytes)
//
// 14 xrefs:
// > CCSpriteWithHue::create @ 0x3068ec
// > CCSpriteWithHue::create @ 0x30694e
// > CCSpriteWithHue::createWithTexture @ 0x3069b0
// > CCSpriteWithHue::createWithTexture @ 0x306a16
// > CCSpriteWithHue::createWithSpriteFrame @ 0x306a80
// > CCSpriteGrayscale::create @ 0x3070b0
// > CCSpriteGrayscale::create @ 0x30712e
// > CCSpriteGrayscale::createWithTexture @ 0x3071ac
// > CCSpriteGrayscale::createWithTexture @ 0x30722e
// > CCSpriteGrayscale::createWithSpriteFrame @ 0x3072b4
// > processTrace @ 0x379aa6
// > __cxa_thread_atexit @ 0x742cc4
// > __cxa_thread_atexit @ 0x742cf4
// > operator new[] @ 0x743eac
//
// 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
//
void (*__fastcall operator new(size_t a1, const std::nothrow_t *a2))(void)
{
size_t v2; // r4
void (*result)(void); // r0
if ( a1 )
v2 = a1;
else
v2 = 1;
for ( result = (void (*)(void))malloc(v2); !result; result = (void (*)(void))malloc(v2) )
{
result = (void (*)(void))std::get_new_handler();
if ( !result )
break;
result();
}
return result;
}