//
// DeathMarkerSettingsPopup::onTimescaleSlider from 0xca5dfc to 0xca5eec (240 bytes)
//
// 3 xrefs:
// > ??> @ 0xdceb8
// > DeathMarkerSettingsPopup::init @ 0xca689c
// > ??> @ 0x1546a00
//
// 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
//
__int64 __fastcall DeathMarkerSettingsPopup::onTimescaleSlider(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
float v3; // s8
GameManager *v4; // x0
int v5; // w20
GameManager *v6; // x0
if ( *(_QWORD *)(this + 1040) )
{
v2 = this;
if ( (int)llroundf(Slider::getValue(*(Slider **)(this + 1040)) * 15.0) <= 14 )
{
v5 = 50;
LODWORD(v4) = llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * 15.0);
if ( (int)v4 <= 0 )
goto LABEL_5;
v3 = 15.0;
LODWORD(v4) = llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * 15.0);
if ( (int)v4 > 14 )
{
LABEL_4:
v5 = 200;
LABEL_5:
v6 = (GameManager *)GameManager::sharedState(v4);
GameManager::setIntGameVariable(v6, "0211", v5);
return DeathMarkerSettingsPopup::updateTimescaleLabel(v2, v5);
}
}
else
{
v3 = 15.0;
LODWORD(v4) = llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * 15.0);
if ( (int)v4 > 14 )
goto LABEL_4;
}
v4 = (GameManager *)(10 * llroundf(Slider::getValue(*(Slider **)(v2 + 1040)) * v3));
v5 = (_DWORD)v4 + 50;
goto LABEL_5;
}
return this;
}