{"type": "func", "start": 13407568, "end": 13407764, "name": "EditorSoundBrowserLayer::setMode", "pseudocode": "// \n// EditorSoundBrowserLayer::setMode from 0xcc9550 to 0xcc9614 (196 bytes)\n// \n// 7 xrefs:\n// > EditorSoundBrowserLayer::init @ 0xcca2e8\n// > EditorSoundBrowserLayer::init @ 0xcca344\n// > EditorSoundBrowserLayer::onSelectMode @ 0xcca814\n// > EditorSoundBrowserLayer::setTextPopupClosed @ 0xccabac\n// > EditorSoundBrowserLayer::setTextPopupClosed @ 0xccac9c\n// > EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0xccad34\n// > <???> @ 0x70120\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:06:22 +0000\n// \n\n__int64 __fastcall EditorSoundBrowserLayer::setMode(EditorSoundBrowserLayer *this, int a2)\n{\n  __int64 v4; // x0\n  cocos2d::CCArray *v5; // x0\n  unsigned int v6; // w19\n  __int64 v7; // x22\n  unsigned int v8; // w1\n  __int64 v9; // x21\n  __int64 v10; // x0\n  unsigned int (__fastcall *v11)(__int64); // x1\n  void (__fastcall *v12)(__int64, _BOOL8); // x22\n  _BOOL8 v13; // x1\n\n  v4 = *((_QWORD *)this + 146);\n  *((_DWORD *)this + 262) = a2;\n  *((_DWORD *)this + 263) = 0;\n  *((_DWORD *)this + 278) = 0;\n  if ( v4 )\n  {\n    v5 = *((cocos2d::CCArray **)this + 147);\n    if ( v5 )\n    {\n      v6 = 0;\n      while ( v6 < (unsigned int)cocos2d::CCArray::count(v5) )\n      {\n        v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 146), v6);\n        v8 = v6++;\n        v9 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 147), v8);\n        v10 = v7;\n        v11 = *(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v7 + 64LL);\n        v12 = *(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v9 + 344LL);\n        v13 = v11(v10) == a2;\n        v12(v9, v13);\n        v5 = *((cocos2d::CCArray **)this + 147);\n      }\n    }\n  }\n  EditorSoundBrowserLayer::updateFooterButtonVisibility((__int64)this);\n  return EditorSoundBrowserLayer::loadCurrentPage(this, 0, 0);\n}", "assembly": "; \n; EditorSoundBrowserLayer::setMode from 0xcc9550 to 0xcc9614 (196 bytes)\n; \n; 7 xrefs:\n; > EditorSoundBrowserLayer::init @ 0xcca2e8\n; > EditorSoundBrowserLayer::init @ 0xcca344\n; > EditorSoundBrowserLayer::onSelectMode @ 0xcca814\n; > EditorSoundBrowserLayer::setTextPopupClosed @ 0xccabac\n; > EditorSoundBrowserLayer::setTextPopupClosed @ 0xccac9c\n; > EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0xccad34\n; > <???> @ 0x70120\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:06:22 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xcc9550\nMOV             X29, SP                                                ; +0x4, 0xcc9554\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xcc9558\nSTR             X23, [SP,#0x40+var_10]                                 ; +0xc, 0xcc955c\nMOV             X20, X0                                                ; +0x10, 0xcc9560\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0xcc9564\nMOV             W23, W1                                                ; +0x18, 0xcc9568\nLDR             X0, [X0,#0x490]                                        ; +0x1c, 0xcc956c\nSTR             W1, [X20,#0x418]                                       ; +0x20, 0xcc9570\nSTR             WZR, [X20,#0x41C]                                      ; +0x24, 0xcc9574\nSTR             WZR, [X20,#0x458]                                      ; +0x28, 0xcc9578\nCBZ             X0, loc_CC95EC                                         ; +0x2c, 0xcc957c\nLDR             X0, [X20,#0x498]                                       ; +0x30, 0xcc9580\nCBZ             X0, loc_CC95EC                                         ; +0x34, 0xcc9584\nMOV             W19, #0                                                ; +0x38, 0xcc9588\nB               loc_CC95DC                                             ; +0x3c, 0xcc958c\nLDR             X0, [X20,#0x490]; this                                 ; +0x40, 0xcc9590\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0xcc9594\nMOV             X22, X0                                                ; +0x48, 0xcc9598\nLDR             X0, [X20,#0x498]; this                                 ; +0x4c, 0xcc959c\nMOV             W1, W19; unsigned int                                  ; +0x50, 0xcc95a0\nADD             W19, W19, #1                                           ; +0x54, 0xcc95a4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0xcc95a8\nMOV             X21, X0                                                ; +0x5c, 0xcc95ac\nLDR             X1, [X22]                                              ; +0x60, 0xcc95b0\nMOV             X0, X22                                                ; +0x64, 0xcc95b4\nLDR             X2, [X21]                                              ; +0x68, 0xcc95b8\nLDR             X1, [X1,#0x40]                                         ; +0x6c, 0xcc95bc\nLDR             X22, [X2,#0x158]                                       ; +0x70, 0xcc95c0\nBLR             X1                                                     ; +0x74, 0xcc95c4\nCMP             W0, W23                                                ; +0x78, 0xcc95c8\nCSET            W1, EQ                                                 ; +0x7c, 0xcc95cc\nMOV             X0, X21                                                ; +0x80, 0xcc95d0\nBLR             X22                                                    ; +0x84, 0xcc95d4\nLDR             X0, [X20,#0x498]; this                                 ; +0x88, 0xcc95d8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x8c, 0xcc95dc\nCMP             W19, W0                                                ; +0x90, 0xcc95e0\nMOV             W1, W19; unsigned int                                  ; +0x94, 0xcc95e4\nB.CC            loc_CC9590                                             ; +0x98, 0xcc95e8\nMOV             X0, X20; this                                          ; +0x9c, 0xcc95ec\nBL              _ZN23EditorSoundBrowserLayer28updateFooterButtonVisibilityEv; EditorSoundBrowserLayer::updateFooterButtonVisibility(void) ; +0xa0, 0xcc95f0\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xa4, 0xcc95f4\nMOV             X0, X20; this                                          ; +0xa8, 0xcc95f8\nMOV             W1, #0; bool                                           ; +0xac, 0xcc95fc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xb0, 0xcc9600\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb4, 0xcc9604\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb8, 0xcc9608\nMOV             W2, #0; bool                                           ; +0xbc, 0xcc960c\nB               _ZN23EditorSoundBrowserLayer15loadCurrentPageEbb; EditorSoundBrowserLayer::loadCurrentPage(bool,bool) ; +0xc0, 0xcc9610", "xrefs": ["EditorSoundBrowserLayer::init @ 0xcca2e8", "EditorSoundBrowserLayer::init @ 0xcca344", "EditorSoundBrowserLayer::onSelectMode @ 0xcca814", "EditorSoundBrowserLayer::setTextPopupClosed @ 0xccabac", "EditorSoundBrowserLayer::setTextPopupClosed @ 0xccac9c", "EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0xccad34", "<???> @ 0x70120"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}