{"type": "func", "start": 4298118408, "end": 4298118756, "name": "CCScrollLayerExt::ccTouchMoved", "pseudocode": "// \n// CCScrollLayerExt::ccTouchMoved from 0x100301508 to 0x100301664 (348 bytes)\n// \n// 3 xrefs:\n// > TableView::ccTouchMoved @ 0x1002ffd30\n// > sub_100301664 @ 0x100301668\n// > <???> @ 0x1007eb990\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::ccTouchMoved(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v5; // x0\n  __n128 v6; // q0\n  float32x2_t *v7; // x0\n  double v8; // d0\n  float v9; // s8\n  float v10; // s0\n  double v11; // d0\n  CCScrollLayerExtDelegate *m_delegate; // x0\n  float32x2_t v13; // [xsp+8h] [xbp-38h] BYREF\n  float32x2_t v14; // [xsp+10h] [xbp-30h] BYREF\n  float32x2_t v15; // [xsp+18h] [xbp-28h] BYREF\n\n  a1->m_touchDown = 1;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL(v5, (const cocos2d::CCPoint *)&v15);\n  sub_1000229D0(&v15, (double *)&v14);\n  if ( a1->m_touch == a2 )\n  {\n    v6.n128_u64[0] = (unsigned __int64)sub_1000229F0(&v15, (float32x2_t *)&a1->m_touchPosition, &v14);\n    if ( a1->m_disableVertical )\n    {\n      v14.i32[1] = 0;\n    }\n    else if ( a1->m_disableHorizontal )\n    {\n      v14.i32[0] = 0;\n    }\n    v7 = (float32x2_t *)((__int64 (__fastcall *)(CCContentLayer *, __n128))a1->m_contentLayer->getPosition)(\n                          a1->m_contentLayer,\n                          v6);\n    *(float32x2_t *)&v8 = sub_1000229DC(v7, &v14, &v13);\n    v9 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *, double))a1->getContentSize)(a1, v8) + 4);\n    v10 = (float)((float)(v9\n                        - *(float *)(((__int64 (__fastcall *)(CCContentLayer *))a1->m_contentLayer->getContentSize)(a1->m_contentLayer)\n                                   + 4))\n                - a1->m_scrollLimitTop)\n        - a1->m_peekLimitTop;\n    if ( v13.f32[1] < v10 || (v10 = a1->m_scrollLimitBottom + a1->m_peekLimitBottom, v13.f32[1] > v10) )\n      v13.f32[1] = v10;\n    ((void (__fastcall *)(CCContentLayer *, float32x2_t *))a1->m_contentLayer->setPosition)(a1->m_contentLayer, &v13);\n    a1->m_notAtEndOfScroll = 1;\n    v11 = sub_1000229D0(&a1->m_touchPosition, (double *)&v15);\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(CCScrollLayerExtDelegate *, CCScrollLayerExt *, double))m_delegate->scrollViewTouchMoving)(\n        m_delegate,\n        a1,\n        v11);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchMoved from 0x100301508 to 0x100301664 (348 bytes)\n; \n; 3 xrefs:\n; > TableView::ccTouchMoved @ 0x1002ffd30\n; > sub_100301664 @ 0x100301668\n; > <???> @ 0x1007eb990\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, 0x100301508\nSTP             D9, D8, [SP,#0x40+var_20]                              ; +0x4, 0x10030150c\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100301510\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100301514\nADD             X29, SP, #0x40                                         ; +0x10, 0x100301518\nMOV             X20, X1                                                ; +0x14, 0x10030151c\nMOV             X19, X0                                                ; +0x18, 0x100301520\nMOV             W8, #1                                                 ; +0x1c, 0x100301524\nSTRB            W8, [X0,#0x1C0]                                        ; +0x20, 0x100301528\nADD             X8, SP, #0x40+var_28                                   ; +0x24, 0x10030152c\nMOV             X0, X1                                                 ; +0x28, 0x100301530\nBL              cocos2d__CCTouch__getLocationInView                    ; +0x2c, 0x100301534\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x30, 0x100301538\nADD             X8, SP, #0x40+var_30                                   ; +0x34, 0x10030153c\nADD             X1, SP, #0x40+var_28                                   ; +0x38, 0x100301540\nBL              cocos2d__CCDirector__convertToGL                       ; +0x3c, 0x100301544\nADD             X0, SP, #0x40+var_28                                   ; +0x40, 0x100301548\nADD             X1, SP, #0x40+var_30                                   ; +0x44, 0x10030154c\nBL              sub_1000229D0                                          ; +0x48, 0x100301550\nLDR             X8, [X19,#0x198]                                       ; +0x4c, 0x100301554\nCMP             X8, X20                                                ; +0x50, 0x100301558\nB.NE            loc_100301650                                          ; +0x54, 0x10030155c\nADD             X8, SP, #0x40+var_30                                   ; +0x58, 0x100301560\nADD             X0, SP, #0x40+var_28                                   ; +0x5c, 0x100301564\nADD             X1, X19, #0x1A0                                        ; +0x60, 0x100301568\nBL              sub_1000229F0                                          ; +0x64, 0x10030156c\nLDRB            W8, [X19,#0x1EC]                                       ; +0x68, 0x100301570\nCMP             W8, #1                                                 ; +0x6c, 0x100301574\nB.NE            loc_100301584                                          ; +0x70, 0x100301578\nSTR             WZR, [SP,#0x40+var_2C]                                 ; +0x74, 0x10030157c\nB               loc_100301594                                          ; +0x78, 0x100301580\nLDRB            W8, [X19,#0x1EB]                                       ; +0x7c, 0x100301584\nCMP             W8, #1                                                 ; +0x80, 0x100301588\nB.NE            loc_100301594                                          ; +0x84, 0x10030158c\nSTR             WZR, [SP,#0x40+var_30]                                 ; +0x88, 0x100301590\nLDR             X0, [X19,#0x1E0]                                       ; +0x8c, 0x100301594\nLDR             X8, [X0]                                               ; +0x90, 0x100301598\nLDR             X8, [X8,#0xC0]                                         ; +0x94, 0x10030159c\nBLR             X8                                                     ; +0x98, 0x1003015a0\nADD             X8, SP, #0x40+var_38                                   ; +0x9c, 0x1003015a4\nADD             X1, SP, #0x40+var_30                                   ; +0xa0, 0x1003015a8\nBL              sub_1000229DC                                          ; +0xa4, 0x1003015ac\nLDR             X8, [X19]                                              ; +0xa8, 0x1003015b0\nLDR             X8, [X8,#0x138]                                        ; +0xac, 0x1003015b4\nMOV             X0, X19                                                ; +0xb0, 0x1003015b8\nBLR             X8                                                     ; +0xb4, 0x1003015bc\nLDR             S8, [X0,#4]                                            ; +0xb8, 0x1003015c0\nLDR             X0, [X19,#0x1E0]                                       ; +0xbc, 0x1003015c4\nLDR             X8, [X0]                                               ; +0xc0, 0x1003015c8\nLDR             X8, [X8,#0x138]                                        ; +0xc4, 0x1003015cc\nBLR             X8                                                     ; +0xc8, 0x1003015d0\nLDR             S0, [X0,#4]                                            ; +0xcc, 0x1003015d4\nFSUB            S0, S8, S0                                             ; +0xd0, 0x1003015d8\nLDR             S1, [X19,#0x1F0]                                       ; +0xd4, 0x1003015dc\nFSUB            S0, S0, S1                                             ; +0xd8, 0x1003015e0\nLDR             S1, [X19,#0x1F8]                                       ; +0xdc, 0x1003015e4\nFSUB            S0, S0, S1                                             ; +0xe0, 0x1003015e8\nLDR             S1, [SP,#0x40+var_34]                                  ; +0xe4, 0x1003015ec\nFCMP            S1, S0                                                 ; +0xe8, 0x1003015f0\nB.MI            loc_10030160C                                          ; +0xec, 0x1003015f4\nLDR             S0, [X19,#0x1F4]                                       ; +0xf0, 0x1003015f8\nLDR             S2, [X19,#0x1FC]                                       ; +0xf4, 0x1003015fc\nFADD            S0, S0, S2                                             ; +0xf8, 0x100301600\nFCMP            S1, S0                                                 ; +0xfc, 0x100301604\nB.LE            loc_100301610                                          ; +0x100, 0x100301608\nSTR             S0, [SP,#0x40+var_34]                                  ; +0x104, 0x10030160c\nLDR             X0, [X19,#0x1E0]                                       ; +0x108, 0x100301610\nLDR             X8, [X0]                                               ; +0x10c, 0x100301614\nLDR             X8, [X8,#0xB8]                                         ; +0x110, 0x100301618\nADD             X1, SP, #0x40+var_38                                   ; +0x114, 0x10030161c\nBLR             X8                                                     ; +0x118, 0x100301620\nMOV             W8, #1                                                 ; +0x11c, 0x100301624\nSTRB            W8, [X19,#0x1C1]                                       ; +0x120, 0x100301628\nADD             X0, X19, #0x1A0                                        ; +0x124, 0x10030162c\nADD             X1, SP, #0x40+var_28                                   ; +0x128, 0x100301630\nBL              sub_1000229D0                                          ; +0x12c, 0x100301634\nLDR             X0, [X19,#0x1D8]                                       ; +0x130, 0x100301638\nCBZ             X0, loc_100301650                                      ; +0x134, 0x10030163c\nLDR             X8, [X0]                                               ; +0x138, 0x100301640\nLDR             X8, [X8,#0x10]                                         ; +0x13c, 0x100301644\nMOV             X1, X19                                                ; +0x140, 0x100301648\nBLR             X8                                                     ; +0x144, 0x10030164c\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x148, 0x100301650\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x14c, 0x100301654\nLDP             D9, D8, [SP,#0x40+var_20]                              ; +0x150, 0x100301658\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x154, 0x10030165c\nRET                                                                    ; +0x158, 0x100301660", "xrefs": ["TableView::ccTouchMoved @ 0x1002ffd30", "sub_100301664 @ 0x100301668", "<???> @ 0x1007eb990"], "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"}