//
// EasingSelectPopup::refreshRateVisual from 0x779e0c to 0x779edc (208 bytes)
//
// 2 xrefs:
// > EasingSelectPopup::onCell @ 0x779f58
// > EasingSelectPopup::init @ 0x77a46e
//
// 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:22 +0000
//
Slider *__fastcall EasingSelectPopup::refreshRateVisual(EasingSelectPopup *this, int a2, int a3)
{
Slider *result; // r0
int v5; // r1
GameToolbox *v6; // r0
char v7; // r3
int v8; // r0
unsigned int v9; // r0
Slider *v10; // r4
int v11; // r0
int Thumb; // r0
_DWORD v13[3]; // [sp+0h] [bp-Ch] BYREF
v13[0] = this;
v13[1] = a2;
v13[2] = a3;
result = *((Slider **)this + 178);
if ( result )
{
v5 = *((_DWORD *)this + 180);
if ( v5 == 30 )
v6 = *((GameToolbox **)result + 151);
else
v6 = (GameToolbox *)(int)(*(float (__fastcall **)(Slider *))(*(_DWORD *)result + 732))(result);
if ( GameToolbox::isRateEasing(v6, v5) )
{
v7 = -1;
LOWORD(v13[0]) = -1;
}
else
{
v7 = -81;
LOWORD(v13[0]) = -20561;
}
BYTE2(v13[0]) = v7;
v8 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 153), *((_DWORD *)this + 181));
if ( v8 )
(*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 536))(v8, v13);
v9 = cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 144), *((_DWORD *)this + 181));
if ( v9 )
CCTextInputNode::setLabelNormalColor(v9);
result = (Slider *)cocos2d::CCDictionary::objectForKey(
*((cocos2d::CCDictionary **)this + 145),
*((_DWORD *)this + 181));
v10 = result;
if ( result )
{
v11 = *((_DWORD *)result + 81);
if ( v11 )
(*(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 480))(v11, v13);
result = (Slider *)Slider::getThumb(v10);
if ( result )
{
Thumb = Slider::getThumb(v10);
return (Slider *)(*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)Thumb + 480))(Thumb, v13);
}
}
}
return result;
}