//
// DeathMarkerSettingsPopup::onFrequencySlider from 0xca5ccc to 0xca5da4 (216 bytes)
//
// 3 xrefs:
// > ??> @ 0x70f60
// > DeathMarkerSettingsPopup::init @ 0xca660c
// > ??> @ 0x1542d40
//
// This function is hookable on this platform (idp: arm, 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 13:06:02 +0000
//
Slider **__fastcall DeathMarkerSettingsPopup::onFrequencySlider(Slider **this, cocos2d::CCObject *a2)
{
Slider **v2; // x19
GameManager *v3; // x0
int v4; // w2
int v5; // w20
GameManager *v6; // x0
unsigned int v7; // [xsp+38h] [xbp+38h]
if ( *(this + 128) )
{
v2 = this;
if ( (int)llroundf(Slider::getValue(*(this + 128)) * 5.0) > 4
|| (LODWORD(v3) = llroundf(Slider::getValue(v2[128]) * 5.0), (int)v3 > 0) )
{
LODWORD(v3) = llroundf(Slider::getValue(v2[128]) * 5.0);
if ( (int)v3 <= 4 )
{
v5 = llroundf(Slider::getValue(v2[128]) * 5.0);
v4 = v5 + 1;
}
else
{
v4 = 6;
v5 = 5;
}
}
else
{
v4 = 1;
v5 = 0;
}
v7 = v4;
v6 = (GameManager *)GameManager::sharedState(v3);
GameManager::setIntGameVariable(v6, "0205", v7);
return (Slider **)DeathMarkerSettingsPopup::updateFrequencyLabel((DeathMarkerSettingsPopup *)v2, v5);
}
return this;
}