{"type": "func", "start": 5691792, "end": 5691880, "name": "BoomScrollLayer::getRelativePosForPage", "pseudocode": "// \n// BoomScrollLayer::getRelativePosForPage from 0x56d990 to 0x56d9e8 (88 bytes)\n// \n// 7 xrefs:\n// > BoomScrollLayer::setupDynamicScrolling @ 0x56da5c\n// > BoomScrollLayer::setupDynamicScrolling @ 0x56da90\n// > BoomScrollLayer::setupDynamicScrolling @ 0x56dac4\n// > BoomScrollLayer::repositionPagesLooped @ 0x56dca4\n// > BoomScrollLayer::repositionPagesLooped @ 0x56dcdc\n// > BoomScrollLayer::repositionPagesLooped @ 0x56dea8\n// > <???> @ 0x9eca0\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::getRelativePosForPage(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::getRelativePosForPage from 0x56d990 to 0x56d9e8 (88 bytes)\n; \n; 7 xrefs:\n; > BoomScrollLayer::setupDynamicScrolling @ 0x56da5c\n; > BoomScrollLayer::setupDynamicScrolling @ 0x56da90\n; > BoomScrollLayer::setupDynamicScrolling @ 0x56dac4\n; > BoomScrollLayer::repositionPagesLooped @ 0x56dca4\n; > BoomScrollLayer::repositionPagesLooped @ 0x56dcdc\n; > BoomScrollLayer::repositionPagesLooped @ 0x56dea8\n; > <???> @ 0x9eca0\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, 0x56d990\nMOV             X29, SP                                                ; +0x4, 0x56d994\nLDR             X2, [X0]                                               ; +0x8, 0x56d998\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x56d99c\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0x56d9a0\nMOV             X19, X8                                                ; +0x14, 0x56d9a4\nLDR             X2, [X2,#0x138]                                        ; +0x18, 0x56d9a8\nMOV             X20, X0                                                ; +0x1c, 0x56d9ac\nBLR             X2                                                     ; +0x20, 0x56d9b0\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x24, 0x56d9b4\nLDR             S1, [X20,#0x248]                                       ; +0x28, 0x56d9b8\nLDR             S0, [X0]                                               ; +0x2c, 0x56d9bc\nMOV             X0, X19; this                                          ; +0x30, 0x56d9c0\nSCVTF           S2, W1                                                 ; +0x34, 0x56d9c4\nFSUB            S0, S0, S1                                             ; +0x38, 0x56d9c8\nFMOV            S1, WZR; float                                         ; +0x3c, 0x56d9cc\nFMUL            S0, S2, S0; float                                      ; +0x40, 0x56d9d0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x44, 0x56d9d4\nMOV             X0, X19                                                ; +0x48, 0x56d9d8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x4c, 0x56d9dc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x50, 0x56d9e0\nRET                                                                    ; +0x54, 0x56d9e4", "xrefs": ["BoomScrollLayer::setupDynamicScrolling @ 0x56da5c", "BoomScrollLayer::setupDynamicScrolling @ 0x56da90", "BoomScrollLayer::setupDynamicScrolling @ 0x56dac4", "BoomScrollLayer::repositionPagesLooped @ 0x56dca4", "BoomScrollLayer::repositionPagesLooped @ 0x56dcdc", "BoomScrollLayer::repositionPagesLooped @ 0x56dea8", "<???> @ 0x9eca0"], "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"}