//
// DeathMarkerSettingsPopup::onTimescaleSlider from 0x76de78 to 0x76df30 (184 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::onTimescaleSlider(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)
{
Slider *result; // r0
int v4; // r0
const char *v5; // r4
GameManager *v6; // r0
int v7; // r3
result = *((Slider **)this + 181);
if ( result )
{
Slider::getValue(result);
if ( lroundf() > 14 || (Slider::getValue(*((Slider **)this + 181)), lroundf() > 0) )
{
Slider::getValue(*((Slider **)this + 181));
if ( lroundf() <= 14 )
{
Slider::getValue(*((Slider **)this + 181));
v4 = lroundf();
}
else
{
v4 = 15;
}
}
else
{
v4 = 0;
}
v5 = (const char *)(10 * v4);
v6 = (GameManager *)GameManager::sharedState((GameManager *)v4);
v5 += 50;
GameManager::setIntGameVariable(v6, "0211", v5, v7);
return (Slider *)DeathMarkerSettingsPopup::updateTimescaleLabel((int)this, v5);
}
return result;
}