//
// sub_997F80 from 0x997f80 to 0x997fea (106 bytes)
//
// 0 xrefs:
//
// 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:06:41 +0000
//
int __fastcall sub_997F80(int a1, int a2, int a3)
{
int v6; // [sp+8h] [bp-98h] BYREF
int v7; // [sp+Ch] [bp-94h]
_BYTE v8[16]; // [sp+10h] [bp-90h] BYREF
_BYTE v9[72]; // [sp+20h] [bp-80h] BYREF
_BYTE v10[40]; // [sp+68h] [bp-38h] BYREF
v7 = a3;
memset(v10, 0, 0x24u);
sub_998D86(v8, a1);
v6 = v7;
if ( sub_997FF4(0, a2, &v6, v9, v10) <= -1 )
return -1;
else
return sub_997FF4(v8, a2, &v6, v9, v10);
}