{"type": "func", "start": 5690944, "end": 5691036, "name": "BoomScrollLayer::positionForPageWithNumber", "pseudocode": "// \n// BoomScrollLayer::positionForPageWithNumber from 0x56d640 to 0x56d69c (92 bytes)\n// \n// 5 xrefs:\n// > BoomScrollLayer::instantMoveToPage @ 0x56df50\n// > BoomScrollLayer::moveToPage @ 0x56e024\n// > BoomScrollLayer::selectPage @ 0x56e380\n// > BoomScrollLayer::ccTouchMoved @ 0x56e840\n// > <???> @ 0xbd4e0\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\ncocos2d::CCPoint BoomScrollLayer::positionForPageWithNumber(BoomScrollLayer *a1, int a2)\n{\n  cocos2d::CCPoint *v2; // x8\n  cocos2d::CCPoint *v3; // x19\n  const cocos2d::CCSize *v5; // x0\n  cocos2d::CCPoint result; // 0:s0.4,4:s1.4\n\n  v3 = v2;\n  v5 = a1->getContentSize(a1);\n  cocos2d::CCPoint::CCPoint(v3, (float)-a2 * (float)(v5->width - a1->m_pageOffset), 0.0);\n  return result;\n}", "assembly": "; \n; BoomScrollLayer::positionForPageWithNumber from 0x56d640 to 0x56d69c (92 bytes)\n; \n; 5 xrefs:\n; > BoomScrollLayer::instantMoveToPage @ 0x56df50\n; > BoomScrollLayer::moveToPage @ 0x56e024\n; > BoomScrollLayer::selectPage @ 0x56e380\n; > BoomScrollLayer::ccTouchMoved @ 0x56e840\n; > <???> @ 0xbd4e0\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_30]!                                ; +0x0, 0x56d640\nMOV             X29, SP                                                ; +0x4, 0x56d644\nLDR             X2, [X0]                                               ; +0x8, 0x56d648\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x56d64c\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0x56d650\nMOV             X19, X8                                                ; +0x14, 0x56d654\nLDR             X2, [X2,#0x138]                                        ; +0x18, 0x56d658\nMOV             X20, X0                                                ; +0x1c, 0x56d65c\nBLR             X2                                                     ; +0x20, 0x56d660\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x24, 0x56d664\nLDR             S1, [X20,#0x248]                                       ; +0x28, 0x56d668\nNEG             W1, W1                                                 ; +0x2c, 0x56d66c\nLDR             S0, [X0]                                               ; +0x30, 0x56d670\nMOV             X0, X19; this                                          ; +0x34, 0x56d674\nSCVTF           S2, W1                                                 ; +0x38, 0x56d678\nFSUB            S0, S0, S1                                             ; +0x3c, 0x56d67c\nFMOV            S1, WZR; float                                         ; +0x40, 0x56d680\nFMUL            S0, S2, S0; float                                      ; +0x44, 0x56d684\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x48, 0x56d688\nMOV             X0, X19                                                ; +0x4c, 0x56d68c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0x56d690\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0x56d694\nRET                                                                    ; +0x58, 0x56d698", "xrefs": ["BoomScrollLayer::instantMoveToPage @ 0x56df50", "BoomScrollLayer::moveToPage @ 0x56e024", "BoomScrollLayer::selectPage @ 0x56e380", "BoomScrollLayer::ccTouchMoved @ 0x56e840", "<???> @ 0xbd4e0"], "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"}