//
// sub_10066DACC from 0x10066dacc to 0x10066db54 (136 bytes)
//
// 2 xrefs:
// > sub_1006575E0 @ 0x100657768
// > sub_1006575E0 @ 0x1006577fc
//
// 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_10066DACC(__int64 a1, _BYTE *a2, _DWORD *a3, int a4)
{
int v6; // w8
if ( !a2 )
goto LABEL_4;
v6 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL);
if ( v6 < a4 )
{
*a2 = v6;
memcpy(a2 + 1, (const void *)(*(_QWORD *)(a1 + 128) + 1056LL), *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL));
LABEL_4:
*a3 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 128) + 1120LL) + 1;
return 1;
}
sub_100706FB0(20, 298, 335, "t1_reneg.c", 122);
return 0;
}