//
// sub_100666A90 from 0x100666a90 to 0x100666acc (60 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:34:58 +0000
//
_QWORD *__fastcall sub_100666A90(_QWORD *a1, __int64 a2)
{
__int64 v2; // rsi
if ( (*(_BYTE *)(a2 + 104) & 1) != 0 )
{
sub_10001AD30(a1, *(const void **)(a2 + 120), *(_QWORD *)(a2 + 112));
}
else
{
v2 = a2 + 104;
a1[2] = *(_QWORD *)(v2 + 16);
*(_OWORD *)a1 = *(_OWORD *)v2;
}
return a1;
}