{"type": "func", "start": 5690312, "end": 5690644, "name": "BoomScrollLayer::updatePages", "pseudocode": "// \n// BoomScrollLayer::updatePages from 0x56d3c8 to 0x56d514 (332 bytes)\n// \n// 4 xrefs:\n// > BoomScrollLayer::addPage @ 0x56e480\n// > BoomScrollLayer::removePage @ 0x56e508\n// > BoomScrollLayer::init @ 0x56eb98\n// > <???> @ 0x5e140\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::updatePages(BoomScrollLayer *a1)\n{\n  unsigned int i; // w22\n  cocos2d::CCNode *v3; // x19\n  void (__fastcall *setAnchorPoint)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // x24\n  cocos2d::CCDirector *v6; // x0\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x24\n  const cocos2d::CCSize *v8; // x0\n  cocos2d::CCPoint v9; // [xsp+40h] [xbp+40h] BYREF\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  for ( i = 0; i < (unsigned int)cocos2d::CCArray::count(a1->m_pages); ++i )\n  {\n    v3 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_pages, i);\n    setAnchorPoint = v3->setAnchorPoint;\n    cocos2d::CCPoint::CCPoint(&v9, 0.0, 0.0);\n    setAnchorPoint(v3, &v9);\n    setContentSize = v3->setContentSize;\n    v6 = cocos2d::CCDirector::sharedDirector();\n    WinSize = cocos2d::CCDirector::getWinSize(v6);\n    ((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCPoint *, float, float))setContentSize)(\n      v3,\n      &v9,\n      WinSize.width,\n      WinSize.height);\n    setPosition = v3->setPosition;\n    v8 = a1->getContentSize(a1);\n    cocos2d::CCPoint::CCPoint(&v9, (float)(int)i * (float)(v8->width - a1->m_pageOffset), 0.0);\n    setPosition(v3, &v9);\n    if ( !v3->getParent(v3) )\n      a1->m_extendedLayer->addChild(a1->m_extendedLayer, v3);\n  }\n}", "assembly": "; \n; BoomScrollLayer::updatePages from 0x56d3c8 to 0x56d514 (332 bytes)\n; \n; 4 xrefs:\n; > BoomScrollLayer::addPage @ 0x56e480\n; > BoomScrollLayer::removePage @ 0x56e508\n; > BoomScrollLayer::init @ 0x56eb98\n; > <???> @ 0x5e140\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x56d3c8\nMOV             X29, SP                                                ; +0x4, 0x56d3cc\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x8, 0x56d3d0\nADRP            X23, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x56d3d4\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x56d3d8\nMOV             X21, X0                                                ; +0x14, 0x56d3dc\nMOV             W22, #0                                                ; +0x18, 0x56d3e0\nLDR             X0, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x56d3e4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x20, 0x56d3e8\nADD             X20, X29, #0x50+var_10                                 ; +0x24, 0x56d3ec\nLDR             X0, [X0]                                               ; +0x28, 0x56d3f0\nSTR             X0, [X29,#0x50+var_8]                                  ; +0x2c, 0x56d3f4\nLDR             X0, [X21,#0x1D8]; this                                 ; +0x30, 0x56d3f8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x34, 0x56d3fc\nCMP             W22, W0                                                ; +0x38, 0x56d400\nB.CS            loc_56D4C8                                             ; +0x3c, 0x56d404\nLDR             X0, [X21,#0x1D8]; this                                 ; +0x40, 0x56d408\nMOV             W1, W22; unsigned int                                  ; +0x44, 0x56d40c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x48, 0x56d410\nMOV             X19, X0                                                ; +0x4c, 0x56d414\nFMOV            S0, WZR; float                                         ; +0x50, 0x56d418\nMOV             X0, X20; this                                          ; +0x54, 0x56d41c\nLDR             X1, [X19]                                              ; +0x58, 0x56d420\nFMOV            S1, S0; float                                          ; +0x5c, 0x56d424\nLDR             X24, [X1,#0x118]                                       ; +0x60, 0x56d428\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x64, 0x56d42c\nMOV             X1, X20                                                ; +0x68, 0x56d430\nMOV             X0, X19                                                ; +0x6c, 0x56d434\nBLR             X24                                                    ; +0x70, 0x56d438\nLDR             X0, [X19]; this                                        ; +0x74, 0x56d43c\nLDR             X24, [X0,#0x130]                                       ; +0x78, 0x56d440\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x7c, 0x56d444\nMOV             X8, X20                                                ; +0x80, 0x56d448\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x84, 0x56d44c\nMOV             X0, X19                                                ; +0x88, 0x56d450\nMOV             X1, X20                                                ; +0x8c, 0x56d454\nBLR             X24                                                    ; +0x90, 0x56d458\nLDR             X1, [X21]                                              ; +0x94, 0x56d45c\nMOV             X0, X21                                                ; +0x98, 0x56d460\nLDR             X2, [X19]                                              ; +0x9c, 0x56d464\nLDR             X1, [X1,#0x138]                                        ; +0xa0, 0x56d468\nLDR             X24, [X2,#0xB8]                                        ; +0xa4, 0x56d46c\nBLR             X1                                                     ; +0xa8, 0x56d470\nLDR             S1, [X21,#0x248]                                       ; +0xac, 0x56d474\nLDR             S2, [X0]                                               ; +0xb0, 0x56d478\nMOV             X0, X20; this                                          ; +0xb4, 0x56d47c\nSCVTF           S0, W22                                                ; +0xb8, 0x56d480\nFSUB            S2, S2, S1                                             ; +0xbc, 0x56d484\nFMOV            S1, WZR; float                                         ; +0xc0, 0x56d488\nFMUL            S0, S0, S2; float                                      ; +0xc4, 0x56d48c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc8, 0x56d490\nMOV             X0, X19                                                ; +0xcc, 0x56d494\nMOV             X1, X20                                                ; +0xd0, 0x56d498\nBLR             X24                                                    ; +0xd4, 0x56d49c\nLDR             X1, [X19]                                              ; +0xd8, 0x56d4a0\nMOV             X0, X19                                                ; +0xdc, 0x56d4a4\nLDR             X1, [X1,#0x1F0]                                        ; +0xe0, 0x56d4a8\nBLR             X1                                                     ; +0xe4, 0x56d4ac\nCBZ             X0, loc_56D4F0                                         ; +0xe8, 0x56d4b0\nADD             W22, W22, #1                                           ; +0xec, 0x56d4b4\nLDR             X0, [X21,#0x1D8]; this                                 ; +0xf0, 0x56d4b8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xf4, 0x56d4bc\nCMP             W22, W0                                                ; +0xf8, 0x56d4c0\nB.CC            loc_56D408                                             ; +0xfc, 0x56d4c4\nLDR             X23, [X23,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x100, 0x56d4c8\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x104, 0x56d4cc\nLDR             X0, [X23]                                              ; +0x108, 0x56d4d0\nCMP             X1, X0                                                 ; +0x10c, 0x56d4d4\nB.NE            loc_56D510                                             ; +0x110, 0x56d4d8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x114, 0x56d4dc\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x118, 0x56d4e0\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0x11c, 0x56d4e4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x120, 0x56d4e8\nRET                                                                    ; +0x124, 0x56d4ec\nLDR             X2, [X21,#0x1F0]                                       ; +0x128, 0x56d4f0\nMOV             X1, X19                                                ; +0x12c, 0x56d4f4\nADD             W22, W22, #1                                           ; +0x130, 0x56d4f8\nMOV             X0, X2                                                 ; +0x134, 0x56d4fc\nLDR             X2, [X2]                                               ; +0x138, 0x56d500\nLDR             X2, [X2,#0x1B8]                                        ; +0x13c, 0x56d504\nBLR             X2                                                     ; +0x140, 0x56d508\nB               loc_56D4B8                                             ; +0x144, 0x56d50c\nBL              .__stack_chk_fail                                      ; +0x148, 0x56d510", "xrefs": ["BoomScrollLayer::addPage @ 0x56e480", "BoomScrollLayer::removePage @ 0x56e508", "BoomScrollLayer::init @ 0x56eb98", "<???> @ 0x5e140"], "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"}