//
// sub_100302CB0 from 0x100302cb0 to 0x100302d15 (101 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b189c8
//
// 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:28:33 +0000
//
__int64 __fastcall sub_100302CB0(__m128 a1, __int64 a2, __int64 a3)
{
__int64 result; // rax
__int64 v4; // rdx
__m128 v5; // xmm0
int v6; // ebx
__int64 v7; // rax
float v8; // [rsp+0h] [rbp-20h]
v8 = a1.f32[0];
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 64LL))(a3);
if ( (_DWORD)result == 26 )
{
v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a1), (__m128)xmmword_100A03600);
v5.f32[0] = v5.f32[0] + v8;
v6 = (int)fmaxf(_mm_round_ss(v5, v5, 11).f32[0], 0.0);
GameManager::sharedState(a3, a3, v4);
result = *(_QWORD *)(*(_QWORD *)(v7 + 552) + 3272LL);
*(_DWORD *)(result + 436) = v6;
}
return result;
}