//
// Dropdown::onRowSelected from 0x1008da790 to 0x1008da862 (210 bytes)
//
// 1 xrefs:
// > Dropdown::openList @ 0x1008da29f
//
// 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 12:37:43 +0000
//
void __fastcall Dropdown::onRowSelected(__int64 a1, __int64 a2)
{
int v3; // eax
__int64 v4; // rcx
__int64 v5; // rdi
__int64 v6; // rsi
int v7; // r14d
__int64 v8; // rsi
void (__fastcall ***v9)(_QWORD, __int64, _QWORD); // rdi
if ( a2 )
{
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( v3 >= 0 )
{
v4 = *(_QWORD *)(a1 + 360);
if ( v3 < (int)(-1431655765 * ((unsigned __int64)(*(_QWORD *)(a1 + 368) - v4) >> 3)) )
{
*(_DWORD *)(a1 + 384) = v3;
v5 = *(_QWORD *)(a1 + 400);
if ( v5 )
{
v6 = v4 + 24LL * (unsigned int)v3;
v7 = v3;
if ( (*(_BYTE *)v6 & 1) != 0 )
v8 = *(_QWORD *)(v6 + 16);
else
v8 = v6 + 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 928LL))(v5, v8);
cocos2d::CCLabelBMFont::limitLabelWidth(
*(_QWORD *)(a1 + 400),
*(float *)(a1 + 476) + -24.0,
(__m128)0x3EE66666u,
(__m128)0x3E4CCCCDu);
v3 = v7;
}
v9 = *(void (__fastcall ****)(_QWORD, __int64, _QWORD))(a1 + 352);
if ( v9 )
(**v9)(v9, a1, (unsigned int)v3);
}
}
}
}