//
// DropdownListPopup::create from 0x1401213f0 to 0x1401215ac (444 bytes)
//
// 3 xrefs:
// > Dropdown::openList @ 0x140121229
// > IDNameInput::updateAutocomplete @ 0x1403c9dda
// > ??> @ 0x140916610
//
// 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:56 +0000
//
// Hidden C++ exception states: #wind=5
_QWORD *__fastcall DropdownListPopup::create(int a1, const struct cocos2d::CCPoint *a2, int a3, __int64 a4, __int64 a5)
{
_QWORD *v9; // r14
int v10; // eax
_QWORD *v12; // [rsp+30h] [rbp-28h] BYREF
v9 = operator new(0x3B8u);
v12 = v9;
FLAlertLayer::FLAlertLayer((__int64)v9);
*v9 = &DropdownListPopup::`vftable';
v9[40] = &DropdownListPopup::`vftable';
v9[41] = &DropdownListPopup::`vftable';
v9[42] = &DropdownListPopup::`vftable';
v9[43] = &DropdownListPopup::`vftable';
v9[44] = &DropdownListPopup::`vftable';
v9[51] = &DropdownListPopup::`vftable';
v9[54] = &DropdownListPopup::`vftable';
v9[68] = &DropdownListPopup::`vftable';
v9[83] = 0;
v9[84] = 0;
v9[85] = 0;
v9[86] = 0;
v9[87] = 0;
v9[88] = 0;
v9[89] = 0;
v9[90] = 0;
*((_BYTE *)v9 + 728) = 0;
sub_1401203B0((__int64)(v9 + 92));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v9 + 110));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v9 + 111));
cocos2d::CCRect::CCRect((cocos2d::CCRect *)(v9 + 113));
*((_BYTE *)v9 + 920) = 0;
v9[116] = 0;
v9[117] = 0;
v9[118] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a2);
if ( (unsigned __int8)DropdownListPopup::init((_DWORD)v9, a1, v10, a3, a4, a5) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
return v9;
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v9 + 8LL))(v9, 1);
return nullptr;
}
}