//
// sub_100547964 from 0x100547964 to 0x1005479ec (136 bytes)
//
// 2 xrefs:
// > sub_100531478 @ 0x100531600
// > sub_100531478 @ 0x100531694
//
// 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
//
__int64 __fastcall sub_100547964(__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_1005E0E48(20, 298, 335, "t1_reneg.c", 122);
return 0;
}