//
// std::__ndk1::get_temporary_buffer from 0xca0740 to 0xca07a8 (104 bytes)
//
// 3 xrefs:
// > DeathMarkerLayer::init @ 0xca51a0
// > DeathMarkerLayer::init @ 0xca51bc
// > ??> @ 0xab748
//
// 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:05:59 +0000
//
__int64 __fastcall std::get_temporary_buffer(__int64 a1)
{
__int64 v1; // x19
__int64 result; // x0
v1 = 0x1FFFFFFFFFFFFFFFLL;
if ( a1 <= 0x1FFFFFFFFFFFFFFFLL )
v1 = a1;
if ( v1 <= 0 )
return 0;
while ( 1 )
{
result = operator new(4 * v1, (const std::nothrow_t *)&std::nothrow);
if ( result )
break;
v1 >>= 1;
if ( !v1 )
return 0;
}
return result;
}