//
// Dropdown::onRowSelected from 0xcb65b8 to 0xcb6638 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0x5b798
// > Dropdown::openList @ 0xcb881c
// > ??> @ 0x15421f0
//
// 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:12 +0000
//
__int64 __fastcall Dropdown::onRowSelected(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
signed int v3; // w20
if ( a2 )
{
v2 = this;
this = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v3 = this;
if ( (this & 0x80000000) == 0 )
{
this = 0xAAAAAAAAAAAAAAAALL;
if ( v3 < (int)(-1431655765 * ((__int64)(*(_QWORD *)(v2 + 368) - *(_QWORD *)(v2 + 360)) >> 3)) )
{
*(_DWORD *)(v2 + 384) = v3;
Dropdown::refreshValueLabel(v2);
this = *(_QWORD *)(v2 + 352);
if ( this )
return (**(__int64 (__fastcall ***)(__int64, __int64, _QWORD))this)(this, v2, (unsigned int)v3);
}
}
}
return this;
}