{"type": "func", "start": 5369172240, "end": 5369172506, "name": "ScrollingLayer::ccTouchMoved", "pseudocode": "// \n// ScrollingLayer::ccTouchMoved from 0x140071110 to 0x14007121a (266 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140535e00\n// > <???> @ 0x140666c3c\n// > <???> @ 0x140666c4c\n// > <???> @ 0x1406c61b0\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 ScrollingLayer::ccTouchMoved(ScrollingLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  struct cocos2d::CCPoint v6; // rax\n  __int64 v7; // rax\n  float v8; // xmm0_4\n  float v9; // xmm1_4\n  float v10; // xmm0_4\n  cocos2d::CCPoint v11[3]; // [rsp+20h] [rbp-18h] BYREF\n  struct cocos2d::CCPoint v12; // [rsp+40h] [rbp+8h] BYREF\n  char v13; // [rsp+58h] [rbp+20h] BYREF\n  float v14; // [rsp+5Ch] [rbp+24h]\n\n  cocos2d::CCTouch::getLocationInView(a2);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n  v6 = cocos2d::CCDirector::convertToGL(v5, v11);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v12, v6);\n  if ( !cocos2d::CCPoint::equals(&v12) )\n  {\n    cocos2d::CCPoint::CCPoint(v11, 0.0, v12.y - *((float *)&a1->m_eGLServerState + 1));\n    v7 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_bRunning + 200LL))(*(_QWORD *)&a1->m_bRunning);\n    cocos2d::CCPoint::operator+(v7, &v13);\n    v8 = *((float *)&a1->m_pScheduler + 1);\n    v9 = v14;\n    if ( v8 > v14 )\n    {\n      v14 = *((float *)&a1->m_pScheduler + 1);\n      v9 = v8;\n    }\n    v10 = v8 + *(float *)&a1->m_pActionManager;\n    if ( v9 > v10 )\n      v14 = v10;\n    (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)&a1->m_bRunning + 184LL))(*(_QWORD *)&a1->m_bRunning, &v13);\n    cocos2d::CCPoint::operator=(&a1->m_eGLServerState, &v12);\n  }\n}", "assembly": "; \n; ScrollingLayer::ccTouchMoved from 0x140071110 to 0x14007121a (266 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140535e00\n; > <???> @ 0x140666c3c\n; > <???> @ 0x140666c4c\n; > <???> @ 0x1406c61b0\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\nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x140071110\npush    rdi                                                            ; +0x5, 0x140071115\nsub     rsp, 30h                                                       ; +0x6, 0x140071116\nmov     rax, rdx                                                       ; +0xa, 0x14007111a\nmov     rdi, rcx                                                       ; +0xd, 0x14007111d\nmov     rcx, rax                                                       ; +0x10, 0x140071120\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x13, 0x140071123\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x18, 0x140071128\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x1e, 0x14007112e\nmov     rcx, rax                                                       ; +0x24, 0x140071134\nlea     r8, [rsp+38h+arg_0]                                            ; +0x27, 0x140071137\nlea     rdx, [rsp+38h+var_18]                                          ; +0x2c, 0x14007113c\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x31, 0x140071141\nmov     rdx, rax                                                       ; +0x37, 0x140071147\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x3a, 0x14007114a\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x3f, 0x14007114f\nlea     rdx, [rdi+0F8h]                                                ; +0x45, 0x140071155\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x4c, 0x14007115c\ncall    cs:?equals@CCPoint@cocos2d@@QEBA_NAEBV12@@Z; cocos2d::CCPoint::equals(cocos2d::CCPoint const &) ; +0x51, 0x140071161\ntest    al, al                                                         ; +0x57, 0x140071167\njnz     loc_14007120F                                                  ; +0x59, 0x140071169\nmovss   xmm2, [rsp+38h+arg_4]                                          ; +0x5f, 0x14007116f\nlea     rcx, [rsp+38h+var_18]                                          ; +0x65, 0x140071175\nsubss   xmm2, dword ptr [rdi+0FCh]                                     ; +0x6a, 0x14007117a\nxorps   xmm1, xmm1                                                     ; +0x72, 0x140071182\nmov     [rsp+38h+arg_8], rbx                                           ; +0x75, 0x140071185\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x7a, 0x14007118a\nmov     rcx, [rdi+110h]                                                ; +0x80, 0x140071190\nmov     rbx, rax                                                       ; +0x87, 0x140071197\nmov     rdx, [rcx]                                                     ; +0x8a, 0x14007119a\ncall    qword ptr [rdx+0C8h]                                           ; +0x8d, 0x14007119d\nmov     r8, rbx                                                        ; +0x93, 0x1400711a3\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x96, 0x1400711a6\nmov     rcx, rax                                                       ; +0x9b, 0x1400711ab\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x9e, 0x1400711ae\nmovss   xmm0, dword ptr [rdi+104h]                                     ; +0xa4, 0x1400711b4\nmovss   xmm1, [rsp+38h+arg_1C]                                         ; +0xac, 0x1400711bc\ncomiss  xmm0, xmm1                                                     ; +0xb2, 0x1400711c2\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xb5, 0x1400711c5\njbe     short loc_1400711D5                                            ; +0xba, 0x1400711ca\nmovss   [rsp+38h+arg_1C], xmm0                                         ; +0xbc, 0x1400711cc\nmovaps  xmm1, xmm0                                                     ; +0xc2, 0x1400711d2\naddss   xmm0, dword ptr [rdi+108h]                                     ; +0xc5, 0x1400711d5\ncomiss  xmm1, xmm0                                                     ; +0xcd, 0x1400711dd\njbe     short loc_1400711E8                                            ; +0xd0, 0x1400711e0\nmovss   [rsp+38h+arg_1C], xmm0                                         ; +0xd2, 0x1400711e2\nmov     rcx, [rdi+110h]                                                ; +0xd8, 0x1400711e8\nlea     rdx, [rsp+38h+arg_18]                                          ; +0xdf, 0x1400711ef\nmov     rax, [rcx]                                                     ; +0xe4, 0x1400711f4\ncall    qword ptr [rax+0B8h]                                           ; +0xe7, 0x1400711f7\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xed, 0x1400711fd\nlea     rcx, [rdi+0F8h]                                                ; +0xf2, 0x140071202\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xf9, 0x140071209\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xff, 0x14007120f\nadd     rsp, 30h                                                       ; +0x104, 0x140071214\npop     rdi                                                            ; +0x108, 0x140071218\nretn                                                                   ; +0x109, 0x140071219", "xrefs": ["<???> @ 0x140535e00", "<???> @ 0x140666c3c", "<???> @ 0x140666c4c", "<???> @ 0x1406c61b0"], "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"}