// // EditorSoundBrowserLayer::onSelectMode from 0xcca7c4 to 0xccaa78 (692 bytes) // // 3 xrefs: // > @ 0xe78e0 // > EditorSoundBrowserLayer::init @ 0xcc9830 // > @ 0x1546fc8 // // This function is hookable on this platform (idp: arm, 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 13:06:23 +0000 // __int64 __fastcall EditorSoundBrowserLayer::onSelectMode(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2) { unsigned int v3; // w0 char v5; // w0 __int64 v6; // x0 __int64 v7; // x1 __int64 v8; // x21 __int64 v9; // x23 int v10; // w0 __int64 v11; // x1 __int64 v12; // [xsp+58h] [xbp+48h] BYREF __int64 v13; // [xsp+60h] [xbp+50h] void *v14; // [xsp+68h] [xbp+58h] __int64 v15[2]; // [xsp+70h] [xbp+60h] BYREF void *v16; // [xsp+80h] [xbp+70h] __int64 v17[2]; // [xsp+88h] [xbp+78h] BYREF void *v18; // [xsp+98h] [xbp+88h] __int64 v19; // [xsp+A0h] [xbp+90h] BYREF __int64 v20; // [xsp+A8h] [xbp+98h] void *v21; // [xsp+B0h] [xbp+A0h] v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); if ( v3 <= 9 ) { if ( v3 == 9 ) { v5 = *((_BYTE *)this + 1120); v12 = 0; *((_DWORD *)this + 296) = 2; v13 = 0; v14 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v12, *((void **)this + 142), *((_QWORD *)this + 141)); } else { v6 = *((_QWORD *)this + 140); v7 = *((_QWORD *)this + 141); v14 = *((void **)this + 142); v12 = v6; v13 = v7; } v15[0] = 0; v15[1] = 0; v16 = nullptr; std::string::__init(v15, "Name or ID...", 0xDu); v17[0] = 0; v17[1] = 0; v18 = nullptr; std::string::__init(v17, "Search Sound Packs", 0x12u); v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, "Search", 6u); v8 = SetTextPopup::create((char *)&v12, (char *)v15, 60, (char *)v17, (char *)&v19, 0, 0, 1, 0.0, 0); if ( (v19 & 1) != 0 ) operator delete(v21); if ( (v17[0] & 1) != 0 ) operator delete(v18); if ( (v15[0] & 1) != 0 ) operator delete(v16); if ( (v12 & 1) != 0 ) operator delete(v14); v9 = *(_QWORD *)(v8 + 672); if ( v9 ) { v19 = 0; v20 = 0; v21 = nullptr; std::string::__init(&v19, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu); CCTextInputNode::setAllowedChars(v9, (__int64)&v19); if ( (v19 & 1) != 0 ) operator delete(v21); } *(_QWORD *)(v8 + 744) = (char *)this + 1040; v10 = (*(__int64 (__fastcall **)(EditorSoundBrowserLayer *))(*(_QWORD *)this + 104LL))(this); v11 = *(_QWORD *)v8; *(_DWORD *)(v8 + 592) = v10 + 1; (*(void (__fastcall **)(__int64))(v11 + 1312))(v8); } else { EditorSoundBrowserLayer::setMode(this, v3); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source