{"type": "func", "start": 3025146, "end": 3025234, "name": "BoomScrollLayer::removePage", "pseudocode": "// \n// BoomScrollLayer::removePage from 0x2e28fa to 0x2e2952 (88 bytes)\n// \n// 1 xrefs:\n// > BoomScrollLayer::removePageWithNumber @ 0x2e2978\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid BoomScrollLayer::removePage(BoomScrollLayer *a1, cocos2d::CCLayer *a2)\n{\n  unsigned int m_page; // r5\n  cocos2d::CCArray *m_pages; // r0\n  int v6; // r1\n\n  cocos2d::CCArray::removeObject(a1->m_pages, a2, 1);\n  a1->removeChild_0(a1, a2, 1);\n  BoomScrollLayer::updatePages(a1);\n  m_page = a1->m_page;\n  m_pages = a1->m_pages;\n  a1->m_slowPage = m_page;\n  if ( m_page <= cocos2d::CCArray::count(m_pages) - 1 )\n    v6 = a1->m_page;\n  else\n    v6 = cocos2d::CCArray::count(a1->m_pages) - 1;\n  a1->m_page = v6;\n  BoomScrollLayer::moveToPage(a1, v6);\n}", "assembly": "; \n; BoomScrollLayer::removePage from 0x2e28fa to 0x2e2952 (88 bytes)\n; \n; 1 xrefs:\n; > BoomScrollLayer::removePageWithNumber @ 0x2e2978\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R3-R5,LR}                                             ; +0x0, 0x2e28fa\nMOVS            R2, #1; bool                                           ; +0x2, 0x2e28fc\nMOV             R4, R0                                                 ; +0x4, 0x2e28fe\nLDR.W           R0, [R0,#0x168]; this                                  ; +0x6, 0x2e2900\nMOV             R5, R1                                                 ; +0xa, 0x2e2904\nBL              _ZN7cocos2d7CCArray12removeObjectEPNS_8CCObjectEb; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xc, 0x2e2906\nLDR             R3, [R4]                                               ; +0x10, 0x2e290a\nMOV             R1, R5                                                 ; +0x12, 0x2e290c\nMOVS            R2, #1                                                 ; +0x14, 0x2e290e\nMOV             R0, R4                                                 ; +0x16, 0x2e2910\nLDR.W           R3, [R3,#0x10C]                                        ; +0x18, 0x2e2912\nBLX             R3                                                     ; +0x1c, 0x2e2916\nMOV             R0, R4; this                                           ; +0x1e, 0x2e2918\nBL              _ZN15BoomScrollLayer11updatePagesEv; BoomScrollLayer::updatePages(void) ; +0x20, 0x2e291a\nLDR.W           R5, [R4,#0x1CC]                                        ; +0x24, 0x2e291e\nLDR.W           R0, [R4,#0x168]; this                                  ; +0x28, 0x2e2922\nSTR.W           R5, [R4,#0x140]                                        ; +0x2c, 0x2e2926\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x30, 0x2e292a\nSUBS            R0, #1                                                 ; +0x34, 0x2e292e\nCMP             R5, R0                                                 ; +0x36, 0x2e2930\nBLS             loc_2E2940                                             ; +0x38, 0x2e2932\nLDR.W           R0, [R4,#0x168]; this                                  ; +0x3a, 0x2e2934\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3e, 0x2e2938\nSUBS            R1, R0, #1                                             ; +0x42, 0x2e293c\nB               loc_2E2944                                             ; +0x44, 0x2e293e\nLDR.W           R1, [R4,#0x1CC]; int                                   ; +0x46, 0x2e2940\nSTR.W           R1, [R4,#0x1CC]                                        ; +0x4a, 0x2e2944\nMOV             R0, R4; this                                           ; +0x4e, 0x2e2948\nPOP.W           {R3-R5,LR}                                             ; +0x50, 0x2e294a\nB.W             _ZN15BoomScrollLayer10moveToPageEi; BoomScrollLayer::moveToPage(int) ; +0x54, 0x2e294e", "xrefs": ["BoomScrollLayer::removePageWithNumber @ 0x2e2978"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}