//
// DropdownListPopup::onRowSelected from 0xcb687c to 0xcb68fc (128 bytes)
//
// 4 xrefs:
// > ??> @ 0xa98b8
// > DropdownListPopup::buildRows @ 0xcb7adc
// > DropdownListPopup::buildRows @ 0xcb7ca0
// > ??> @ 0x1544c68
//
// 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
//
DropdownListPopup *__fastcall DropdownListPopup::onRowSelected(DropdownListPopup *this, cocos2d::CCObject *a2)
{
DropdownListPopup *v2; // x20
__int64 v4; // x3
void (__fastcall *v5)(__int64, cocos2d::CCObject *); // x2
__int64 v6; // x0
if ( a2 )
{
v2 = this;
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
v4 = *((_QWORD *)v2 + 114);
if ( v4 )
{
v5 = *((void (__fastcall **)(__int64, cocos2d::CCObject *))v2 + 115);
v6 = *((_QWORD *)v2 + 116);
if ( v5 )
{
if ( (v6 & 1) == 0 )
{
v5(v4 + (v6 >> 1), a2);
return (DropdownListPopup *)DropdownListPopup::closeSelf(v2);
}
}
else if ( (v6 & 1) == 0 )
{
return (DropdownListPopup *)DropdownListPopup::closeSelf(v2);
}
(*(void (__fastcall **)(__int64, cocos2d::CCObject *))((char *)v5 + *(_QWORD *)(v4 + (v6 >> 1))))(
v4 + (v6 >> 1),
a2);
}
return (DropdownListPopup *)DropdownListPopup::closeSelf(v2);
}
return this;
}