//
// DeathMarkerSettingsPopup::onFrequencySlider from 0x76dd78 to 0x76de2a (178 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:59:13 +0000
//
Slider *__fastcall DeathMarkerSettingsPopup::onFrequencySlider(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)
{
Slider *result; // r0
GameManager *v4; // r0
int v5; // r5
GameManager *v6; // r0
int v7; // r3
result = *((Slider **)this + 179);
if ( result )
{
Slider::getValue(result);
if ( lroundf() > 4 || (Slider::getValue(*((Slider **)this + 179)), v4 = (GameManager *)lroundf(), (int)v4 > 0) )
{
Slider::getValue(*((Slider **)this + 179));
v4 = (GameManager *)lroundf();
if ( (int)v4 <= 4 )
{
Slider::getValue(*((Slider **)this + 179));
v4 = (GameManager *)lroundf();
v5 = (int)v4;
}
else
{
v5 = 5;
}
}
else
{
v5 = 0;
}
v6 = (GameManager *)GameManager::sharedState(v4);
GameManager::setIntGameVariable(v6, "0205", (const char *)(v5 + 1), v7);
return (Slider *)DeathMarkerSettingsPopup::updateFrequencyLabel(this, v5);
}
return result;
}