//
// sub_9669C from 0x9669c to 0x966a2 (6 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
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);
}