//
// sub_100317C30 from 0x100317c30 to 0x100317c95 (101 bytes)
//
// 1 xrefs:
// > ??> @ 0x100910d88
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
LevelSettingsObject *__fastcall sub_100317C30(__m128 a1, __int64 a2, __int64 a3)
{
LevelSettingsObject *result; // rax
__m128 v4; // xmm0
float v5; // [rsp+0h] [rbp-20h]
v5 = a1.f32[0];
result = (LevelSettingsObject *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 64LL))(a3);
if ( (_DWORD)result == 26 )
{
v4 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, a1), (__m128)xmmword_1008150C0);
v4.f32[0] = v4.f32[0] + v5;
result = GameManager::sharedState()->m_levelEditorLayer->m_levelSettings;
result->m_nextFreeID = (int)fmaxf(_mm_round_ss(v4, v4, 11).f32[0], 0.0);
}
return result;
}