{"type": "func", "start": 4298118764, "end": 4298118964, "name": "CCScrollLayerExt::scrollLayer", "pseudocode": "// \n// CCScrollLayerExt::scrollLayer from 0x10030166c to 0x100301734 (200 bytes)\n// \n// 2 xrefs:\n// > TableView::scrollWheel @ 0x1002ffddc\n// > sub_1002FFDE4 @ 0x1002ffdf0\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 __fastcall CCScrollLayerExt::scrollLayer(CCScrollLayerExt *a1, float a2)\n{\n  float32x2_t *v4; // x20\n  __n128 v5; // q0\n  __n128 v6; // q1\n  double v7; // d0\n  float v8; // s8\n  float m_scrollLimitBottom; // s0\n  float32x2_t v10; // [xsp+0h] [xbp-30h] BYREF\n  float32x2_t v11; // [xsp+8h] [xbp-28h] BYREF\n\n  v4 = (float32x2_t *)((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getPosition)(a1->m_contentLayer);\n  v5.n128_u32[0] = 0;\n  v6.n128_f32[0] = a2;\n  sub_100022980(v5, v6, &v10);\n  *(float32x2_t *)&v7 = sub_1000229DC(v4, &v10, &v11);\n  v8 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *, double))a1->getContentSize)(a1, v7) + 4);\n  m_scrollLimitBottom = (float)(v8\n                              - *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer)\n                                         + 4))\n                      - a1->m_scrollLimitTop;\n  if ( v11.f32[1] < m_scrollLimitBottom\n    || (m_scrollLimitBottom = a1->m_scrollLimitBottom, v11.f32[1] > m_scrollLimitBottom) )\n  {\n    v11.f32[1] = m_scrollLimitBottom;\n  }\n  ((void (__fastcall *)(CCContentLayer *, float32x2_t *))a1->m_contentLayer->setPosition)(a1->m_contentLayer, &v11);\n}", "assembly": "; \n; CCScrollLayerExt::scrollLayer from 0x10030166c to 0x100301734 (200 bytes)\n; \n; 2 xrefs:\n; > TableView::scrollWheel @ 0x1002ffddc\n; > sub_1002FFDE4 @ 0x1002ffdf0\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x10030166c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x100301670\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100301674\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100301678\nADD             X29, SP, #0x30                                         ; +0x10, 0x10030167c\nFMOV            S8, S0                                                 ; +0x14, 0x100301680\nMOV             X19, X0                                                ; +0x18, 0x100301684\nLDR             X0, [X0,#0x1E0]                                        ; +0x1c, 0x100301688\nLDR             X8, [X0]                                               ; +0x20, 0x10030168c\nLDR             X8, [X8,#0xC0]                                         ; +0x24, 0x100301690\nBLR             X8                                                     ; +0x28, 0x100301694\nMOV             X20, X0                                                ; +0x2c, 0x100301698\nMOV             X0, SP                                                 ; +0x30, 0x10030169c\nFMOV            S0, WZR                                                ; +0x34, 0x1003016a0\nFMOV            S1, S8                                                 ; +0x38, 0x1003016a4\nBL              sub_100022980                                          ; +0x3c, 0x1003016a8\nADD             X8, SP, #0x30+var_28                                   ; +0x40, 0x1003016ac\nMOV             X1, SP                                                 ; +0x44, 0x1003016b0\nMOV             X0, X20                                                ; +0x48, 0x1003016b4\nBL              sub_1000229DC                                          ; +0x4c, 0x1003016b8\nLDR             X8, [X19]                                              ; +0x50, 0x1003016bc\nLDR             X8, [X8,#0x138]                                        ; +0x54, 0x1003016c0\nMOV             X0, X19                                                ; +0x58, 0x1003016c4\nBLR             X8                                                     ; +0x5c, 0x1003016c8\nLDR             S8, [X0,#4]                                            ; +0x60, 0x1003016cc\nLDR             X0, [X19,#0x1E0]                                       ; +0x64, 0x1003016d0\nLDR             X8, [X0]                                               ; +0x68, 0x1003016d4\nLDR             X8, [X8,#0x138]                                        ; +0x6c, 0x1003016d8\nBLR             X8                                                     ; +0x70, 0x1003016dc\nLDR             S0, [X0,#4]                                            ; +0x74, 0x1003016e0\nFSUB            S0, S8, S0                                             ; +0x78, 0x1003016e4\nLDR             S1, [X19,#0x1F0]                                       ; +0x7c, 0x1003016e8\nFSUB            S0, S0, S1                                             ; +0x80, 0x1003016ec\nLDR             S1, [SP,#0x30+var_24]                                  ; +0x84, 0x1003016f0\nFCMP            S1, S0                                                 ; +0x88, 0x1003016f4\nB.MI            loc_100301708                                          ; +0x8c, 0x1003016f8\nLDR             S0, [X19,#0x1F4]                                       ; +0x90, 0x1003016fc\nFCMP            S1, S0                                                 ; +0x94, 0x100301700\nB.LE            loc_10030170C                                          ; +0x98, 0x100301704\nSTR             S0, [SP,#0x30+var_24]                                  ; +0x9c, 0x100301708\nLDR             X0, [X19,#0x1E0]                                       ; +0xa0, 0x10030170c\nLDR             X8, [X0]                                               ; +0xa4, 0x100301710\nLDR             X8, [X8,#0xB8]                                         ; +0xa8, 0x100301714\nADD             X1, SP, #0x30+var_28                                   ; +0xac, 0x100301718\nBLR             X8                                                     ; +0xb0, 0x10030171c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb4, 0x100301720\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb8, 0x100301724\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xbc, 0x100301728\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc0, 0x10030172c\nRET                                                                    ; +0xc4, 0x100301730", "xrefs": ["TableView::scrollWheel @ 0x1002ffddc", "sub_1002FFDE4 @ 0x1002ffdf0"], "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"}