{"type": "func", "start": 13413724, "end": 13413848, "name": "EditorSoundBrowserLayer::onNextPage", "pseudocode": "// \n// EditorSoundBrowserLayer::onNextPage from 0xccad5c to 0xccadd8 (124 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x4b2f8\n// > EditorSoundBrowserLayer::init @ 0xcc9f20\n// > <???> @ 0x1541808\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:23 +0000\n// \n\n__int64 __fastcall EditorSoundBrowserLayer::onNextPage(EditorSoundBrowserLayer *this, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *v3; // x0\n  __int64 result; // x0\n\n  if ( *((_DWORD *)this + 262) <= 1u )\n  {\n    result = (unsigned int)(*((_DWORD *)this + 263) + 1);\n    if ( *((_DWORD *)this + 278) > 10 * (int)result )\n      goto LABEL_5;\n  }\n  else\n  {\n    v3 = *((cocos2d::CCArray **)this + 138);\n    if ( !v3 || (result = cocos2d::CCArray::count(v3), (int)result > 9) )\n    {\n      LODWORD(result) = *((_DWORD *)this + 263) + 1;\nLABEL_5:\n      *((_DWORD *)this + 263) = result;\n      return EditorSoundBrowserLayer::loadCurrentPage(this, 0, 0);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorSoundBrowserLayer::onNextPage from 0xccad5c to 0xccadd8 (124 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x4b2f8\n; > EditorSoundBrowserLayer::init @ 0xcc9f20\n; > <???> @ 0x1541808\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:23 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xccad5c\nMOV             X29, SP                                                ; +0x4, 0xccad60\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xccad64\nMOV             X19, X0                                                ; +0xc, 0xccad68\nLDR             W0, [X0,#0x418]                                        ; +0x10, 0xccad6c\nCMP             W0, #1                                                 ; +0x14, 0xccad70\nB.LS            loc_CCADB0                                             ; +0x18, 0xccad74\nLDR             X0, [X19,#0x450]; this                                 ; +0x1c, 0xccad78\nCBZ             X0, loc_CCAD8C                                         ; +0x20, 0xccad7c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x24, 0xccad80\nCMP             W0, #9                                                 ; +0x28, 0xccad84\nB.LE            loc_CCADCC                                             ; +0x2c, 0xccad88\nLDR             W0, [X19,#0x41C]                                       ; +0x30, 0xccad8c\nADD             W0, W0, #1                                             ; +0x34, 0xccad90\nSTR             W0, [X19,#0x41C]                                       ; +0x38, 0xccad94\nMOV             X0, X19; this                                          ; +0x3c, 0xccad98\nMOV             W1, #0; bool                                           ; +0x40, 0xccad9c\nMOV             W2, #0; bool                                           ; +0x44, 0xccada0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0xccada4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0xccada8\nB               _ZN23EditorSoundBrowserLayer15loadCurrentPageEbb; EditorSoundBrowserLayer::loadCurrentPage(bool,bool) ; +0x50, 0xccadac\nLDR             W0, [X19,#0x41C]                                       ; +0x54, 0xccadb0\nLDR             W2, [X19,#0x458]                                       ; +0x58, 0xccadb4\nADD             W0, W0, #1                                             ; +0x5c, 0xccadb8\nLSL             W1, W0, #3                                             ; +0x60, 0xccadbc\nADD             W1, W1, W0,LSL#1                                       ; +0x64, 0xccadc0\nCMP             W2, W1                                                 ; +0x68, 0xccadc4\nB.GT            loc_CCAD94                                             ; +0x6c, 0xccadc8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0xccadcc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0xccadd0\nRET                                                                    ; +0x78, 0xccadd4", "xrefs": ["<???> @ 0x4b2f8", "EditorSoundBrowserLayer::init @ 0xcc9f20", "<???> @ 0x1541808"], "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"}