{"type": "func", "start": 7874052, "end": 7874174, "name": "EditorSoundBrowserLayer::setMode", "pseudocode": "// \n// EditorSoundBrowserLayer::setMode from 0x782604 to 0x78267e (122 bytes)\n// \n// 4 xrefs:\n// > EditorSoundBrowserLayer::init @ 0x7830b6\n// > EditorSoundBrowserLayer::onSelectMode @ 0x783536\n// > EditorSoundBrowserLayer::setTextPopupClosed @ 0x7836fa\n// > EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0x783752\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:29 +0000\n// \n\n_DWORD *__fastcall EditorSoundBrowserLayer::setMode(EditorSoundBrowserLayer *this, int a2)\n{\n  unsigned int v3; // r5\n  int v4; // r3\n  int v7; // r0\n  unsigned int v8; // r1\n  int v9; // r8\n  int v10; // r7\n  void (__fastcall *v11)(int, bool); // r9\n  int v12; // r0\n\n  *((_DWORD *)this + 182) = a2;\n  v3 = 0;\n  v4 = *((_DWORD *)this + 198);\n  *((_DWORD *)this + 183) = 0;\n  *((_DWORD *)this + 191) = 0;\n  if ( v4 && *((_DWORD *)this + 199) )\n  {\n    while ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 199)) )\n    {\n      v7 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 198), v3);\n      v8 = v3++;\n      v9 = v7;\n      v10 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 199), v8);\n      v11 = *(void (__fastcall **)(int, bool))(*(_DWORD *)v10 + 172);\n      v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9);\n      v11(v10, v12 == a2);\n    }\n  }\n  EditorSoundBrowserLayer::updateFooterButtonVisibility(this);\n  return EditorSoundBrowserLayer::loadCurrentPage(this, 0, 0);\n}", "assembly": "; \n; EditorSoundBrowserLayer::setMode from 0x782604 to 0x78267e (122 bytes)\n; \n; 4 xrefs:\n; > EditorSoundBrowserLayer::init @ 0x7830b6\n; > EditorSoundBrowserLayer::onSelectMode @ 0x783536\n; > EditorSoundBrowserLayer::setTextPopupClosed @ 0x7836fa\n; > EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0x783752\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:59:29 +0000\n; \nPUSH.W          {R3-R9,LR}                                             ; +0x0, 0x782604\nMOV             R4, R0                                                 ; +0x4, 0x782608\nSTR.W           R1, [R4,#0x2D8]                                        ; +0x6, 0x78260a\nMOVS            R5, #0                                                 ; +0xa, 0x78260e\nLDR.W           R3, [R0,#0x318]                                        ; +0xc, 0x782610\nMOV             R6, R1                                                 ; +0x10, 0x782614\nSTR.W           R5, [R0,#0x2DC]                                        ; +0x12, 0x782616\nSTR.W           R5, [R0,#0x2FC]                                        ; +0x16, 0x78261a\nCBNZ            R3, loc_782634                                         ; +0x1a, 0x78261e\nMOV             R0, R4; this                                           ; +0x1c, 0x782620\nBL              _ZN23EditorSoundBrowserLayer28updateFooterButtonVisibilityEv; EditorSoundBrowserLayer::updateFooterButtonVisibility(void) ; +0x1e, 0x782622\nMOVS            R1, #0; bool                                           ; +0x22, 0x782626\nMOV             R0, R4; this                                           ; +0x24, 0x782628\nMOV             R2, R1; bool                                           ; +0x26, 0x78262a\nPOP.W           {R3-R9,LR}                                             ; +0x28, 0x78262c\nB.W             _ZN23EditorSoundBrowserLayer15loadCurrentPageEbb; EditorSoundBrowserLayer::loadCurrentPage(bool,bool) ; +0x2c, 0x782630\nLDR.W           R3, [R0,#0x31C]                                        ; +0x30, 0x782634\nCMP             R3, #0                                                 ; +0x34, 0x782638\nBEQ             loc_782620                                             ; +0x36, 0x78263a\nLDR.W           R0, [R4,#0x31C]; this                                  ; +0x38, 0x78263c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3c, 0x782640\nCMP             R5, R0                                                 ; +0x40, 0x782644\nBCS             loc_782620                                             ; +0x42, 0x782646\nMOV             R1, R5; unsigned int                                   ; +0x44, 0x782648\nLDR.W           R0, [R4,#0x318]; this                                  ; +0x46, 0x78264a\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a, 0x78264e\nMOV             R1, R5; unsigned int                                   ; +0x4e, 0x782652\nADDS            R5, #1                                                 ; +0x50, 0x782654\nMOV             R8, R0                                                 ; +0x52, 0x782656\nLDR.W           R0, [R4,#0x31C]; this                                  ; +0x54, 0x782658\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x58, 0x78265c\nLDR             R3, [R0]                                               ; +0x5c, 0x782660\nMOV             R7, R0                                                 ; +0x5e, 0x782662\nMOV             R0, R8                                                 ; +0x60, 0x782664\nLDR.W           R9, [R3,#0xAC]                                         ; +0x62, 0x782666\nLDR.W           R3, [R8]                                               ; +0x66, 0x78266a\nLDR             R3, [R3,#0x20]                                         ; +0x6a, 0x78266e\nBLX             R3                                                     ; +0x6c, 0x782670\nSUBS            R3, R0, R6                                             ; +0x6e, 0x782672\nMOV             R0, R7                                                 ; +0x70, 0x782674\nNEGS            R1, R3                                                 ; +0x72, 0x782676\nADCS            R1, R3                                                 ; +0x74, 0x782678\nBLX             R9                                                     ; +0x76, 0x78267a\nB               loc_78263C                                             ; +0x78, 0x78267c", "xrefs": ["EditorSoundBrowserLayer::init @ 0x7830b6", "EditorSoundBrowserLayer::onSelectMode @ 0x783536", "EditorSoundBrowserLayer::setTextPopupClosed @ 0x7836fa", "EditorSoundBrowserLayer::onConfigCopiedToMyLists @ 0x783752"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}