//
// sub_8597B0 from 0x8597b0 to 0x8597c2 (18 bytes)
//
// 2 xrefs:
// > sub_8597C4 @ 0x8597ca
// > sub_8597D0 @ 0x8597de
//
// 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:02:38 +0000
//
void *__fastcall sub_8597B0(void *a1, size_t a2)
{
if ( a2 )
return j_realloc(a1, a2);
if ( a1 )
free(a1);
return nullptr;
}