{"type": "func", "start": 4298116340, "end": 4298116508, "name": "CCScrollLayerExt::moveToTopWithOffset", "pseudocode": "// \n// CCScrollLayerExt::moveToTopWithOffset from 0x100300cf4 to 0x100300d9c (168 bytes)\n// \n// 5 xrefs:\n// > CustomListView::setupList @ 0x10010b6cc\n// > CustomListView::setupList @ 0x10010b8e8\n// > CustomListView::setupList @ 0x10010b96c\n// > CustomListView::setupList @ 0x10010ba28\n// > BoomListView::setupList @ 0x1001d00d4\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::moveToTopWithOffset(CCScrollLayerExt *a1, float a2)\n{\n  CCContentLayer *m_contentLayer; // x20\n  unsigned __int32 v5; // s9\n  float v6; // s10\n  __n128 v7; // q1\n  __n128 v8; // q0\n  int v9; // [xsp+8h] [xbp-38h] BYREF\n\n  m_contentLayer = a1->m_contentLayer;\n  v5 = *(_DWORD *)((__int64 (__fastcall *)(CCContentLayer *))m_contentLayer->getPosition)(m_contentLayer);\n  v6 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4);\n  v7.n128_f32[0] = (float)((float)(v6\n                                 - *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer)\n                                            + 4))\n                         - a1->m_scrollLimitTop)\n                 + a2;\n  v8.n128_u32[0] = v5;\n  sub_100022980(v8, v7, &v9);\n  ((void (__fastcall *)(CCContentLayer *, int *))m_contentLayer->setPosition)(m_contentLayer, &v9);\n}", "assembly": "; \n; CCScrollLayerExt::moveToTopWithOffset from 0x100300cf4 to 0x100300d9c (168 bytes)\n; \n; 5 xrefs:\n; > CustomListView::setupList @ 0x10010b6cc\n; > CustomListView::setupList @ 0x10010b8e8\n; > CustomListView::setupList @ 0x10010b96c\n; > CustomListView::setupList @ 0x10010ba28\n; > BoomListView::setupList @ 0x1001d00d4\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, #0x50                                          ; +0x0, 0x100300cf4\nSTP             D11, D10, [SP,#0x40+var_30]                            ; +0x4, 0x100300cf8\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x8, 0x100300cfc\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x100300d00\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x100300d04\nADD             X29, SP, #0x40                                         ; +0x14, 0x100300d08\nFMOV            S8, S0                                                 ; +0x18, 0x100300d0c\nMOV             X19, X0                                                ; +0x1c, 0x100300d10\nLDR             X20, [X0,#0x1E0]                                       ; +0x20, 0x100300d14\nLDR             X8, [X20]                                              ; +0x24, 0x100300d18\nLDR             X8, [X8,#0xC0]                                         ; +0x28, 0x100300d1c\nMOV             X0, X20                                                ; +0x2c, 0x100300d20\nBLR             X8                                                     ; +0x30, 0x100300d24\nLDR             S9, [X0]                                               ; +0x34, 0x100300d28\nLDR             X8, [X19]                                              ; +0x38, 0x100300d2c\nLDR             X8, [X8,#0x138]                                        ; +0x3c, 0x100300d30\nMOV             X0, X19                                                ; +0x40, 0x100300d34\nBLR             X8                                                     ; +0x44, 0x100300d38\nLDR             S10, [X0,#4]                                           ; +0x48, 0x100300d3c\nLDR             X0, [X19,#0x1E0]                                       ; +0x4c, 0x100300d40\nLDR             X8, [X0]                                               ; +0x50, 0x100300d44\nLDR             X8, [X8,#0x138]                                        ; +0x54, 0x100300d48\nBLR             X8                                                     ; +0x58, 0x100300d4c\nLDR             S0, [X0,#4]                                            ; +0x5c, 0x100300d50\nFSUB            S0, S10, S0                                            ; +0x60, 0x100300d54\nLDR             S1, [X19,#0x1F0]                                       ; +0x64, 0x100300d58\nFSUB            S0, S0, S1                                             ; +0x68, 0x100300d5c\nFADD            S1, S0, S8                                             ; +0x6c, 0x100300d60\nADD             X0, SP, #0x40+var_38                                   ; +0x70, 0x100300d64\nFMOV            S0, S9                                                 ; +0x74, 0x100300d68\nBL              sub_100022980                                          ; +0x78, 0x100300d6c\nLDR             X8, [X20]                                              ; +0x7c, 0x100300d70\nLDR             X8, [X8,#0xB8]                                         ; +0x80, 0x100300d74\nADD             X1, SP, #0x40+var_38                                   ; +0x84, 0x100300d78\nMOV             X0, X20                                                ; +0x88, 0x100300d7c\nBLR             X8                                                     ; +0x8c, 0x100300d80\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x90, 0x100300d84\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x94, 0x100300d88\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0x98, 0x100300d8c\nLDP             D11, D10, [SP,#0x40+var_30]                            ; +0x9c, 0x100300d90\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xa0, 0x100300d94\nRET                                                                    ; +0xa4, 0x100300d98", "xrefs": ["CustomListView::setupList @ 0x10010b6cc", "CustomListView::setupList @ 0x10010b8e8", "CustomListView::setupList @ 0x10010b96c", "CustomListView::setupList @ 0x10010ba28", "BoomListView::setupList @ 0x1001d00d4"], "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"}