//
// sub_100069930 from 0x100069930 to 0x1000699e2 (178 bytes)
//
// 1 xrefs:
// > ??> @ 0x100aba480
//
// 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:19:44 +0000
//
__int64 __fastcall sub_100069930(__int64 a1)
{
__int64 v1; // rbx
__int64 result; // rax
__int64 v3; // rdi
v1 = a1 - 408;
dword_100BE7A88 = 0;
result = *(unsigned __int8 *)(a1 + 52);
if ( *(_BYTE *)(a1 + 202) == 1 )
{
if ( (_BYTE)result && *(_QWORD *)(a1 + 168) )
{
result = *(_QWORD *)(a1 + 176);
if ( result )
result = (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)result + 32LL))(*(_QWORD *)(a1 + 176), v1);
*(_BYTE *)(a1 + 52) = 0;
}
}
else
{
if ( (_BYTE)result && *(_QWORD *)(a1 + 168) )
result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 1160LL))(a1 - 408, 0);
if ( *(_QWORD *)(a1 + 168) )
{
if ( *(_BYTE *)(a1 + 53) == 1 )
{
*(_BYTE *)(a1 + 53) = 0;
v3 = *(_QWORD *)(a1 + 176);
if ( v3 )
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 32LL))(v3, v1);
}
}
}
return result;
}