//
// EasingSelectPopup::refreshRateVisual from 0x140176840 to 0x140176998 (344 bytes)
//
// 3 xrefs:
// > EasingSelectPopup::init @ 0x1401765d6
// > EasingSelectPopup::onCell @ 0x14017682e
// > ??> @ 0x140918578
//
// This function is hookable on this platform (idp: pc, 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 11:27:33 +0000
//
void __fastcall EasingSelectPopup::refreshRateVisual(__int64 a1)
{
_DWORD *v2; // rcx
int v3; // eax
char v4; // cl
__int64 v5; // rdx
cocos2d::CCDictionary *v6; // rcx
struct cocos2d::CCObject *v7; // rax
struct cocos2d::CCObject *v8; // rax
struct cocos2d::CCObject *v9; // rax
struct cocos2d::CCObject *v10; // rbx
__int64 v11; // rcx
__int64 v12; // rcx
__int16 v13; // [rsp+30h] [rbp+8h] BYREF
char v14; // [rsp+32h] [rbp+Ah]
__int16 v15; // [rsp+38h] [rbp+10h]
v2 = *(_DWORD **)(a1 + 1000);
if ( v2 )
{
if ( *(_DWORD *)(a1 + 1012) == 30 )
v3 = v2[204];
else
v3 = (int)(*(float (__fastcall **)(_DWORD *))(*(_QWORD *)v2 + 1168LL))(v2);
switch ( v3 )
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
v15 = -1;
v4 = -1;
break;
default:
v15 = -20561;
v4 = -81;
break;
}
v5 = *(int *)(a1 + 1016);
v14 = v4;
v6 = *(cocos2d::CCDictionary **)(a1 + 824);
v13 = v15;
v7 = cocos2d::CCDictionary::objectForKey(v6, v5);
if ( v7 )
(**((void (__fastcall ***)(__int64, __int16 *))v7 + 46))((__int64)v7 + 368, &v13);
v8 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 760), *(int *)(a1 + 1016));
if ( v8 )
{
*(_WORD *)((char *)v8 + 575) = v13;
*((_BYTE *)v8 + 577) = v14;
CCTextInputNode::refreshLabel((__int64)v8);
}
v9 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 768), *(int *)(a1 + 1016));
v10 = v9;
if ( v9 )
{
v11 = *((_QWORD *)v9 + 53);
if ( v11 )
(**(void (__fastcall ***)(__int64, __int16 *))(v11 + 320))(v11 + 320, &v13);
v12 = *(_QWORD *)(*((_QWORD *)v10 + 51) + 456LL);
if ( v12 )
(**(void (__fastcall ***)(__int64, __int16 *))(v12 + 320))(v12 + 320, &v13);
}
}
}