//
// EditorSoundBrowserLayer::onSelectMode from 0x783434 to 0x783574 (320 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:30 +0000
//
char *__fastcall EditorSoundBrowserLayer::onSelectMode(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)
{
char *result; // r0
FLAlertLayer *v4; // r7
int v5; // r8
int v6; // r0
int v7; // r3
int v8[3]; // [sp+1Ch] [bp-34h] BYREF
int v9[3]; // [sp+28h] [bp-28h] BYREF
int v10[3]; // [sp+34h] [bp-1Ch] BYREF
int v11; // [sp+40h] [bp-10h] BYREF
int v12; // [sp+44h] [bp-Ch]
int v13; // [sp+48h] [bp-8h]
result = (char *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( (unsigned int)result <= 9 )
{
if ( result == byte_9 )
{
*((_DWORD *)this + 200) = 2;
std::string::basic_string(v8, (int)this + 768);
memset(v9, 0, sizeof(v9));
std::string::__init(v9, "Name or ID...", 0xDu);
memset(v10, 0, sizeof(v10));
std::string::__init(v10, "Search Sound Packs", 0x12u);
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, "Search", 6u);
v4 = SetTextPopup::create((int)v8, (int)v9, COERCE_FLOAT(60), (int)v10, (int)&v11, 0, 0.0, 0, 1, 0);
std::string::~string((int)&v11);
std::string::~string((int)v10);
std::string::~string((int)v9);
std::string::~string((int)v8);
v5 = *((_DWORD *)v4 + 131);
if ( v5 )
{
v11 = 0;
v12 = 0;
v13 = 0;
std::string::__init(&v11, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu);
CCTextInputNode::setAllowedChars(v5, (unsigned __int8 *)&v11);
std::string::~string((int)&v11);
}
*((_DWORD *)v4 + 142) = (char *)this + 724;
v6 = (*(int (__fastcall **)(EditorSoundBrowserLayer *))(*(_DWORD *)this + 52))(this);
v7 = *(_DWORD *)v4;
*((_DWORD *)v4 + 116) = v6 + 1;
return (char *)(*(int (__fastcall **)(FLAlertLayer *))(v7 + 656))(v4);
}
else
{
return (char *)EditorSoundBrowserLayer::setMode(this, (int)result);
}
}
return result;
}