//
// sub_10066DC48 from 0x10066dc48 to 0x10066dd04 (188 bytes)
//
// 2 xrefs:
// > sub_100658274 @ 0x100658370
// > sub_100658274 @ 0x100658404
//
// 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:05 +0000
//
__int64 __fastcall sub_10066DC48(__int64 a1, _BYTE *a2, _DWORD *a3, int a4)
{
int v7; // w8
if ( !a2 )
goto LABEL_4;
v7 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1185LL) + *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL);
if ( v7 < a4 )
{
*a2 = v7;
memcpy(a2 + 1, (const void *)(*(_QWORD *)(a1 + 128) + 1056LL), *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL));
memcpy(
&a2[*(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL) + 1],
(const void *)(*(_QWORD *)(a1 + 128) + 1121LL),
*(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1185LL));
LABEL_4:
*a3 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL)
+ *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1185LL)
+ 1;
return 1;
}
sub_100706FB0(20, 299, 335, "t1_reneg.c", 202);
return 0;
}