{"type": "func", "start": 3049232, "end": 3049332, "name": "CCScrollLayerExt::moveToTopWithOffset", "pseudocode": "// \n// CCScrollLayerExt::moveToTopWithOffset from 0x2e8710 to 0x2e8774 (100 bytes)\n// \n// 5 xrefs:\n// > BoomListView::setupList @ 0x2e1482\n// > CustomListView::setupList @ 0x3306be\n// > CustomListView::setupList @ 0x33071c\n// > CustomListView::setupList @ 0x33076c\n// > CustomListView::setupList @ 0x330832\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 CCScrollLayerExt::moveToTopWithOffset(CCScrollLayerExt *a1, float a2)\n{\n  CCContentLayer *m_contentLayer; // r6\n  void (__fastcall *setPosition)(CCContentLayer *__hidden, const cocos2d::CCPoint *); // r7\n  float v6; // r8\n  float MinY; // r0\n  cocos2d::CCPoint v8; // [sp+4h] [bp-Ch] BYREF\n\n  m_contentLayer = a1->m_contentLayer;\n  setPosition = m_contentLayer->setPosition;\n  v6 = *(float *)((int (__fastcall *)(CCContentLayer *, _DWORD))m_contentLayer->getPosition)(\n                   m_contentLayer,\n                   LODWORD(a2));\n  MinY = CCScrollLayerExt::getMinY(a1);\n  cocos2d::CCPoint::CCPoint(&v8, v6, MinY + a2);\n  setPosition(m_contentLayer, &v8);\n}", "assembly": "; \n; CCScrollLayerExt::moveToTopWithOffset from 0x2e8710 to 0x2e8774 (100 bytes)\n; \n; 5 xrefs:\n; > BoomListView::setupList @ 0x2e1482\n; > CustomListView::setupList @ 0x3306be\n; > CustomListView::setupList @ 0x33071c\n; > CustomListView::setupList @ 0x33076c\n; > CustomListView::setupList @ 0x330832\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x2e8710\nMOV             R5, R0                                                 ; +0x4, 0x2e8714\nLDR             R4, =(__stack_chk_guard_ptr - 0x2E8720)                ; +0x6, 0x2e8716\nVPUSH           {D8}                                                   ; +0x8, 0x2e8718\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x2e871c\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x2e871e\nLDR.W           R6, [R0,#0x168]                                        ; +0x10, 0x2e8720\nLDR             R3, [R4]                                               ; +0x14, 0x2e8724\nVMOV            S16, R1                                                ; +0x16, 0x2e8726\nSUB             SP, SP, #0x10                                          ; +0x1a, 0x2e872a\nMOV             R0, R6                                                 ; +0x1c, 0x2e872c\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1e, 0x2e872e\nLDR             R3, [R6]                                               ; +0x20, 0x2e8730\nLDR             R7, [R3,#0x5C]                                         ; +0x22, 0x2e8732\nLDR             R3, [R3,#0x60]                                         ; +0x24, 0x2e8734\nBLX             R3                                                     ; +0x26, 0x2e8736\nLDR.W           R8, [R0]                                               ; +0x28, 0x2e8738\nMOV             R0, R5; this                                           ; +0x2c, 0x2e873c\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x2e, 0x2e873e\nADD             R5, SP, #0x10+var_C                                    ; +0x32, 0x2e8742\nMOV             R1, R8; float                                          ; +0x34, 0x2e8744\nVMOV            S15, R0                                                ; +0x36, 0x2e8746\nMOV             R0, R5; this                                           ; +0x3a, 0x2e874a\nVADD.F32        S16, S15, S16                                          ; +0x3c, 0x2e874c\nVMOV            R2, S16; float                                         ; +0x40, 0x2e8750\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x44, 0x2e8754\nMOV             R0, R6                                                 ; +0x48, 0x2e8758\nMOV             R1, R5                                                 ; +0x4a, 0x2e875a\nBLX             R7                                                     ; +0x4c, 0x2e875c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x4e, 0x2e875e\nLDR             R3, [R4]                                               ; +0x50, 0x2e8760\nCMP             R2, R3                                                 ; +0x52, 0x2e8762\nBEQ             loc_2E876A                                             ; +0x54, 0x2e8764\nBLX             __stack_chk_fail                                       ; +0x56, 0x2e8766\nADD             SP, SP, #0x10                                          ; +0x5a, 0x2e876a\nVPOP            {D8}                                                   ; +0x5c, 0x2e876c\nPOP.W           {R4-R8,PC}                                             ; +0x60, 0x2e8770", "xrefs": ["BoomListView::setupList @ 0x2e1482", "CustomListView::setupList @ 0x3306be", "CustomListView::setupList @ 0x33071c", "CustomListView::setupList @ 0x33076c", "CustomListView::setupList @ 0x330832"], "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"}