//
// sub_1006A5F80 from 0x1006a5f80 to 0x1006a5feb (107 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b86338
//
// This function is hookable on this platform (idp: pc, 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 12:35:19 +0000
//
__int64 __fastcall sub_1006A5F80(__int64 a1)
{
__int64 v1; // rbx
char *v2; // rax
_QWORD *v3; // rdi
v1 = a1 - 336;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 - 336) + 1072LL))(a1 - 336, 0);
if ( *(_BYTE *)(a1 + 352) == 1 )
{
v2 = *(char **)(a1 + 360);
v3 = (_QWORD *)(*(_QWORD *)(a1 + 368) + *(_QWORD *)(a1 + 224));
if ( ((unsigned __int8)v2 & 1) != 0 )
v2 = *(char **)&v2[*v3 - 1];
((void (__fastcall *)(_QWORD *, __int64))v2)(v3, v1);
}
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 528LL))(v1, 1);
}