//
// SearchSFXPopup::create from 0x5846f8 to 0x5847d0 (216 bytes)
//
// 1 xrefs:
// > SFXBrowser::onSearch @ 0x5847fe
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SetTextPopup *__fastcall SearchSFXPopup::create(int a1, int a2, int a3)
{
SetTextPopup *v3; // r4
int v4; // r7
SetTextPopup_vtbl *v5; // r3
SetTextPopup *v6; // r0
_DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = a1;
v8[1] = a2;
v8[2] = a3;
v3 = (SetTextPopup *)operator new(0x204u);
FLAlertLayer::FLAlertLayer(v3);
v3->m_input = nullptr;
v3->m_disableDelegate = 0;
v3->m_value.m_data.m_data = (stl::StringData::Internal *)&unk_ACDDA8;
v3->m_cancelled = 0;
v3->m_delegate = nullptr;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetTextPopup_vtbl *)&off_A96E70;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&off_A97108;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_A97140;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&off_A9714C;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&off_A9715C;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&off_A9716C;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A97180;
v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&off_A971C0;
v3->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&off_A971D0;
sub_775C20(v8);
v4 = SearchSFXPopup::init(v3);
sub_774008(v8);
if ( v4 )
{
cocos2d::CCObject::autorelease(v3);
}
else
{
v5 = v3->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v6 = v3;
v3 = nullptr;
v5->~SetTextPopup_0(v6);
}
return v3;
}