//
// sub_9669C from 0x9669c to 0x966a2 (6 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 11:41:28 +0000
//
int __fastcall sub_9669C(int *a1, int a2, const void *a3, int a4)
{
int v4; // r4
int v6; // r0
v6 = *a1;
if ( a2 == 2 )
{
if ( a3 )
a3 = &dword_1C + 3;
}
else
{
if ( a2 != 1 )
goto LABEL_7;
if ( !a3 )
{
a3 = nullptr;
return sub_9660C(v6, a2, (int)a3);
}
if ( a4 == 128 )
{
v4 = v6;
qmemcpy((void *)(v6 + 3380), a3, 0x80u);
a3 = nullptr;
*(_BYTE *)(v4 + 3378) = 1;
v6 = 257;
*(_WORD *)(v4 + 3376) = 257;
}
else
{
LABEL_7:
a3 = &dword_1C + 3;
}
}
return sub_9660C(v6, a2, (int)a3);
}