// // EditorSoundBrowserLayer::setMode from 0x14018ef50 to 0x14018f067 (279 bytes) // // 7 xrefs: // > EditorSoundBrowserLayer::init @ 0x14018ed81 // > EditorSoundBrowserLayer::onSelectMode @ 0x14018f294 // > EditorSoundBrowserLayer::setTextPopupClosed @ 0x1401903a1 // > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x14019896a // > @ 0x14089f314 // > @ 0x14089f348 // > @ 0x1409191cc // // 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:27:42 +0000 // __int64 __fastcall EditorSoundBrowserLayer::setMode(__int64 a1, int a2) { unsigned int v3; // ebp cocos2d::CCArray *v5; // rcx struct cocos2d::CCObject *v6; // rdi struct cocos2d::CCObject *v7; // rsi __int64 v8; // rdx __int64 v9; // rcx bool v10; // di v3 = 0; *(_DWORD *)(a1 + 1032) = a2; *(_DWORD *)(a1 + 1036) = 0; *(_DWORD *)(a1 + 1096) = 0; if ( *(_QWORD *)(a1 + 1168) ) { v5 = *(cocos2d::CCArray **)(a1 + 1176); if ( v5 ) { if ( cocos2d::CCArray::count(v5) ) { do { v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1168), v3); v7 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 1176), v3); LOBYTE(v8) = (*(unsigned int (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 56LL))(v6) == a2; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 336LL))(v7, v8); ++v3; } while ( v3 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 1176)) ); } } } v9 = *(_QWORD *)(a1 + 1072); v10 = *(_DWORD *)(a1 + 1032) == 1; if ( v9 ) { (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v9 + 336LL))(v9, v10); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 1072) + 936LL))(*(_QWORD *)(a1 + 1072), v10); } return EditorSoundBrowserLayer::loadCurrentPage(a1, 0, 0); }