//
// sub_1008C7BF0 from 0x1008c7bf0 to 0x1008c7d4d (349 bytes)
//
// 1 xrefs:
// > DeathMarkerSettingsPopup::init @ 0x1008c6d9e
//
// 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:37:33 +0000
//
void __fastcall sub_1008C7BF0(__int64 a1)
{
__int64 v2; // rdi
__m128 Value; // xmm0
__m128 v4; // xmm1
__m128 v5; // xmm0
__m128 v6; // xmm1
__m128 v7; // xmm0
__m128 v8; // xmm1
int v9; // r14d
__m128 v10; // xmm0
__m128 v11; // xmm1
__int64 v12; // rax
__int64 v13; // rdi
int v14; // eax
__int64 v15; // rcx
v2 = *(_QWORD *)(a1 + 1024);
if ( v2 )
{
Value = Slider::getValue(v2);
Value.f32[0] = Value.f32[0] * 5.0;
v4 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, Value), (__m128)xmmword_100A03600);
v4.f32[0] = v4.f32[0] + Value.f32[0];
if ( (int)_mm_round_ss((__m128)0LL, v4, 11).f32[0] <= 4
&& (v5 = Slider::getValue(*(_QWORD *)(a1 + 1024)),
v5.f32[0] = v5.f32[0] * 5.0,
v6 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v5), (__m128)xmmword_100A03600),
v6.f32[0] = v6.f32[0] + v5.f32[0],
(int)_mm_round_ss((__m128)0LL, v6, 11).f32[0] <= 0) )
{
v9 = 0;
}
else
{
v7 = Slider::getValue(*(_QWORD *)(a1 + 1024));
v7.f32[0] = v7.f32[0] * 5.0;
v8 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v7), (__m128)xmmword_100A03600);
v8.f32[0] = v8.f32[0] + v7.f32[0];
v9 = 5;
if ( (int)_mm_round_ss((__m128)0LL, v8, 11).f32[0] <= 4 )
{
v10 = Slider::getValue(*(_QWORD *)(a1 + 1024));
v10.f32[0] = v10.f32[0] * 5.0;
v11 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v10), (__m128)xmmword_100A03600);
v11.f32[0] = v11.f32[0] + v10.f32[0];
v9 = (int)_mm_round_ss((__m128)0LL, v11, 11).f32[0];
}
}
v12 = GameManager::sharedState();
GameManager::setIntGameVariable(v12, "0205");
v13 = *(_QWORD *)(a1 + 1032);
if ( v13 )
{
v14 = 5;
if ( v9 < 5 )
v14 = v9;
v15 = 0;
if ( v14 > 0 )
v15 = (unsigned int)v14;
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v13 + 928LL))(v13, off_100BAFC10[v15]);
}
}
}