//
// sub_9F49B8 from 0x9f49b8 to 0x9f4a08 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0xc77cc0
//
// 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:07:31 +0000
//
int __fastcall sub_9F49B8(int a1, int *a2)
{
int v4; // r0
if ( a1 )
{
if ( a1 == 2 )
{
DH_free(*a2);
*a2 = 0;
return 2;
}
else
{
return 1;
}
}
else
{
v4 = DH_new();
*a2 = v4;
if ( v4 )
return 2;
else
return 0;
}
}