//
// sub_100912E30 from 0x100912e30 to 0x100912f0f (223 bytes)
//
// 2 xrefs:
// > sub_10090B400 @ 0x10090b868
// > sub_100915250 @ 0x10091581a
//
// 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:38:10 +0000
//
__int64 __fastcall sub_100912E30(__int64 a1, int a2)
{
__int64 v2; // rax
__int128 *v3; // r14
__int64 v4; // rsi
__int64 v5; // r15
__int64 v6; // r12
_DWORD *v8; // [rsp+8h] [rbp-38h] BYREF
*(_OWORD *)(a1 + 16) = 0;
*(_OWORD *)a1 = 0;
*(_DWORD *)(a1 + 32) = 1065353216;
if ( *(_QWORD *)(GameManager::sharedState() + 552) )
{
if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 552) + 3272LL) )
{
v2 = GameManager::sharedState();
v3 = sub_1000D99F0(*(_QWORD *)(*(_QWORD *)(v2 + 552) + 3272LL), a2);
v4 = *(_QWORD *)v3;
if ( (int)((*((_QWORD *)v3 + 1) - *(_QWORD *)v3) >> 2) > 0 )
{
v5 = 0;
v6 = 0;
do
{
v8 = (_DWORD *)(v5 + v4);
*((_DWORD *)sub_10001C2C0((float *)a1, (int *)(v5 + v4), (__m128)0LL, (__int64)&unk_100A141B6, &v8) + 5) = v6++;
v4 = *(_QWORD *)v3;
v5 += 4;
}
while ( v6 < (int)((*((_QWORD *)v3 + 1) - *(_QWORD *)v3) >> 2) );
}
}
}
return a1;
}