//
// sub_100068460 from 0x100068460 to 0x1000684b6 (86 bytes)
//
// 0 xrefs:
//
// 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
//
_DWORD *__fastcall sub_100068460(__int64 a1, int a2)
{
_DWORD *result; // rax
__int64 v3; // rdx
__int64 v4; // rcx
result = *(_DWORD **)(a1 + 512);
v3 = *(_QWORD *)(a1 + 520) - (_QWORD)result;
if ( !v3 )
return nullptr;
v4 = (0xAAAAAAAAAAAAAAABLL * (v3 >> 3) == 0) - 0x5555555555555555LL * (v3 >> 3);
while ( *result != a2 )
{
result += 6;
if ( !--v4 )
return nullptr;
}
return result;
}