//
// DropdownListPopup::onRowSelected from 0x140122610 to 0x14012269e (142 bytes)
//
// 3 xrefs:
// > DropdownListPopup::buildRows @ 0x140121ecc
// > DropdownListPopup::buildRows @ 0x14012210f
// > ??> @ 0x1409166c4
//
// 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:26:57 +0000
//
void __fastcall DropdownListPopup::onRowSelected(_QWORD *a1, cocos2d::CCObject *a2)
{
__int64 v4; // rcx
void (__fastcall *v5)(__int64, cocos2d::CCObject *); // rax
void (__fastcall ***v6)(_QWORD, _QWORD *); // rcx
__int64 v7; // rdx
if ( a2 )
{
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
v4 = a1[117];
if ( v4 )
{
v5 = (void (__fastcall *)(__int64, cocos2d::CCObject *))a1[118];
if ( v5 )
v5(v4, a2);
}
v6 = (void (__fastcall ***)(_QWORD, _QWORD *))a1[116];
if ( v6 )
{
a1[116] = 0;
(**v6)(v6, a1);
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v7);
}
}