//
// EasingSelectPopup::refreshCellHighlight from 0x779d28 to 0x779e04 (220 bytes)
//
// 2 xrefs:
// > EasingSelectPopup::onCell @ 0x779f4e
// > EasingSelectPopup::init @ 0x77a356
//
// 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
//
cocos2d::CCArray *__fastcall EasingSelectPopup::refreshCellHighlight(EasingSelectPopup *this, int a2, int a3)
{
cocos2d::CCArray *result; // r0
int v5; // r7
signed int v6; // r4
cocos2d::CCArray *v7; // r11
int v8; // r0
int v9; // r1
__int16 v10; // r1
int v11; // r3
int (__fastcall *v12)(cocos2d::CCArray *, _DWORD *, _DWORD); // r2
_DWORD v13[3]; // [sp+0h] [bp-Ch] BYREF
v13[0] = this;
v13[1] = a2;
v13[2] = a3;
result = *((cocos2d::CCArray **)this + 178);
if ( result && *((_DWORD *)this + 185) )
{
if ( *((_DWORD *)this + 180) == 30 )
v5 = *((_DWORD *)result + 151);
else
v5 = (int)(*(float (__fastcall **)(cocos2d::CCArray *))(*(_DWORD *)result + 732))(result);
v6 = 0;
result = (cocos2d::CCArray *)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 185));
v7 = result;
while ( v6 < (int)v7 )
{
v8 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 185), v6);
if ( v8 )
{
if ( v6 == v5 )
v9 = 125;
else
v9 = 65;
(*(void (__fastcall **)(int, int))(*(_DWORD *)v8 + 456))(v8, v9);
}
result = *((cocos2d::CCArray **)this + 186);
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( v6 < (int)result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 186), v6);
if ( result )
{
v11 = *(_DWORD *)result;
if ( v6 == v5 )
LOBYTE(v13[0]) = 96;
else
v10 = -1;
v12 = *(int (__fastcall **)(cocos2d::CCArray *, _DWORD *, _DWORD))(v11 + 536);
if ( v6 == v5 )
{
*(_WORD *)((char *)v13 + 1) = 24831;
}
else
{
LOWORD(v13[0]) = v10;
BYTE2(v13[0]) = -1;
}
result = (cocos2d::CCArray *)v12(result, v13, v12);
}
}
}
++v6;
}
}
return result;
}