//
// sub_100663E0C from 0x100663e0c to 0x100663ea8 (156 bytes)
//
// 2 xrefs:
// > sub_100658274 @ 0x1006585e4
// > sub_100658274 @ 0x100658650
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:11:00 +0000
//
__int64 __fastcall sub_100663E0C(__int64 a1, __int64 a2, _DWORD *a3, int a4)
{
__int64 v4; // x2
__int64 v5; // x4
if ( !a2 )
goto LABEL_6;
if ( a4 > 4 )
{
if ( !*(_QWORD *)(a1 + 656) )
{
v4 = 369;
v5 = 373;
goto LABEL_8;
}
*(_WORD *)a2 = 512;
*(_BYTE *)(a2 + 2) = BYTE1(*(_QWORD *)(*(_QWORD *)(a1 + 656) + 8LL));
*(_WORD *)(a2 + 3) = (unsigned __int8)*(_QWORD *)(*(_QWORD *)(a1 + 656) + 8LL);
LABEL_6:
*a3 = 5;
return 0;
}
v4 = 363;
v5 = 367;
LABEL_8:
sub_100706FB0(20, 308, v4, "d1_srtp.c", v5);
return 1;
}