//
// sub_1008C7D90 from 0x1008c7d90 to 0x1008c7f0e (382 bytes)
//
// 1 xrefs:
// > DeathMarkerSettingsPopup::init @ 0x1008c7165
//
// 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_1008C7D90(__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; // rbx
char *v14; // rax
__int64 CString; // rax
v2 = *(_QWORD *)(a1 + 1040);
if ( v2 )
{
Value = Slider::getValue(v2);
Value.f32[0] = Value.f32[0] * 15.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] <= 14
&& (v5 = Slider::getValue(*(_QWORD *)(a1 + 1040)),
v5.f32[0] = v5.f32[0] * 15.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 = 50;
}
else
{
v7 = Slider::getValue(*(_QWORD *)(a1 + 1040));
v7.f32[0] = v7.f32[0] * 15.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 = 200;
if ( (int)_mm_round_ss((__m128)0LL, v8, 11).f32[0] <= 14 )
{
v10 = Slider::getValue(*(_QWORD *)(a1 + 1040));
v10.f32[0] = v10.f32[0] * 15.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 = 10 * (int)_mm_round_ss((__m128)0LL, v11, 11).f32[0] + 50;
}
}
v12 = GameManager::sharedState();
GameManager::setIntGameVariable(v12, "0211");
v13 = *(_QWORD *)(a1 + 1048);
if ( v13 )
{
v14 = sub_10088E820("%.1fx", (float)((float)v9 / 100.0));
CString = cocos2d::CCString::getCString((__int64)v14);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 928LL))(v13, CString);
}
}
}