//
// sub_9F6670 from 0x9f6670 to 0x9f66c0 (80 bytes)
//
// 3 xrefs:
// > ??> @ 0xc77f78
// > ??> @ 0xc77f90
// > ??> @ 0xc77fa8
//
// 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:32 +0000
//
int __fastcall sub_9F6670(int a1, int *a2)
{
int v4; // r0
if ( a1 )
{
if ( a1 == 2 )
{
DSA_free(*a2);
*a2 = 0;
return 2;
}
else
{
return 1;
}
}
else
{
v4 = DSA_new(0);
*a2 = v4;
if ( v4 )
return 2;
else
return 0;
}
}