{"type": "func", "start": 4298116508, "end": 4298116660, "name": "CCScrollLayerExt::moveToTop", "pseudocode": "// \n// CCScrollLayerExt::moveToTop from 0x100300d9c to 0x100300e34 (152 bytes)\n// \n// 5 xrefs:\n// > CustomListView::setupList @ 0x10010b6e4\n// > CustomListView::setupList @ 0x10010b8f0\n// > CustomListView::setupList @ 0x10010b974\n// > CustomListView::setupList @ 0x10010ba30\n// > BoomListView::setupList @ 0x1001d00e0\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::moveToTop(CCScrollLayerExt *a1)\n{\n  CCContentLayer *m_contentLayer; // x20\n  unsigned __int32 v3; // s8\n  float v4; // s9\n  __n128 v5; // q1\n  __n128 v6; // q0\n  int v7; // [xsp+8h] [xbp-28h] BYREF\n\n  m_contentLayer = a1->m_contentLayer;\n  v3 = *(_DWORD *)((__int64 (__fastcall *)(CCContentLayer *))m_contentLayer->getPosition)(m_contentLayer);\n  v4 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4);\n  v5.n128_f32[0] = (float)(v4\n                         - *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer)\n                                    + 4))\n                 - a1->m_scrollLimitTop;\n  v6.n128_u32[0] = v3;\n  sub_100022980(v6, v5, &v7);\n  ((void (__fastcall *)(CCContentLayer *, int *))m_contentLayer->setPosition)(m_contentLayer, &v7);\n}", "assembly": "; \n; CCScrollLayerExt::moveToTop from 0x100300d9c to 0x100300e34 (152 bytes)\n; \n; 5 xrefs:\n; > CustomListView::setupList @ 0x10010b6e4\n; > CustomListView::setupList @ 0x10010b8f0\n; > CustomListView::setupList @ 0x10010b974\n; > CustomListView::setupList @ 0x10010ba30\n; > BoomListView::setupList @ 0x1001d00e0\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, 0x100300d9c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x100300da0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100300da4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x100300da8\nADD             X29, SP, #0x30                                         ; +0x10, 0x100300dac\nMOV             X19, X0                                                ; +0x14, 0x100300db0\nLDR             X20, [X0,#0x1E0]                                       ; +0x18, 0x100300db4\nLDR             X8, [X20]                                              ; +0x1c, 0x100300db8\nLDR             X8, [X8,#0xC0]                                         ; +0x20, 0x100300dbc\nMOV             X0, X20                                                ; +0x24, 0x100300dc0\nBLR             X8                                                     ; +0x28, 0x100300dc4\nLDR             S8, [X0]                                               ; +0x2c, 0x100300dc8\nLDR             X8, [X19]                                              ; +0x30, 0x100300dcc\nLDR             X8, [X8,#0x138]                                        ; +0x34, 0x100300dd0\nMOV             X0, X19                                                ; +0x38, 0x100300dd4\nBLR             X8                                                     ; +0x3c, 0x100300dd8\nLDR             S9, [X0,#4]                                            ; +0x40, 0x100300ddc\nLDR             X0, [X19,#0x1E0]                                       ; +0x44, 0x100300de0\nLDR             X8, [X0]                                               ; +0x48, 0x100300de4\nLDR             X8, [X8,#0x138]                                        ; +0x4c, 0x100300de8\nBLR             X8                                                     ; +0x50, 0x100300dec\nLDR             S0, [X0,#4]                                            ; +0x54, 0x100300df0\nFSUB            S0, S9, S0                                             ; +0x58, 0x100300df4\nLDR             S1, [X19,#0x1F0]                                       ; +0x5c, 0x100300df8\nFSUB            S1, S0, S1                                             ; +0x60, 0x100300dfc\nADD             X0, SP, #0x30+var_28                                   ; +0x64, 0x100300e00\nFMOV            S0, S8                                                 ; +0x68, 0x100300e04\nBL              sub_100022980                                          ; +0x6c, 0x100300e08\nLDR             X8, [X20]                                              ; +0x70, 0x100300e0c\nLDR             X8, [X8,#0xB8]                                         ; +0x74, 0x100300e10\nADD             X1, SP, #0x30+var_28                                   ; +0x78, 0x100300e14\nMOV             X0, X20                                                ; +0x7c, 0x100300e18\nBLR             X8                                                     ; +0x80, 0x100300e1c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x84, 0x100300e20\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x88, 0x100300e24\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x8c, 0x100300e28\nADD             SP, SP, #0x40 ; '@'                                    ; +0x90, 0x100300e2c\nRET                                                                    ; +0x94, 0x100300e30", "xrefs": ["CustomListView::setupList @ 0x10010b6e4", "CustomListView::setupList @ 0x10010b8f0", "CustomListView::setupList @ 0x10010b974", "CustomListView::setupList @ 0x10010ba30", "BoomListView::setupList @ 0x1001d00e0"], "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"}