{"type": "func", "start": 5368964736, "end": 5368964946, "name": "BoomScrollLayer::ccTouchCancelled", "pseudocode": "// \n// BoomScrollLayer::ccTouchCancelled from 0x14003e680 to 0x14003e752 (210 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14052b6a8\n// > <???> @ 0x140661d80\n// > <???> @ 0x140661d90\n// > <???> @ 0x1406c40a4\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 BoomScrollLayer::ccTouchCancelled(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCComponentContainer **p_m_pComponentContainer; // rbx\n  int m_pScheduler_high; // edi\n  cocos2d::CCArray *v5; // rcx\n  float *v6; // rax\n  cocos2d::CCPoint v7; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( !LOBYTE(a1->m_sAdditionalTransform.ty) && *(cocos2d::CCTouch **)&a1->m_sTransform.b == a2 )\n  {\n    p_m_pComponentContainer = &a1[-1].m_pComponentContainer;\n    m_pScheduler_high = HIDWORD(a1->m_pScheduler);\n    *(_QWORD *)&a1->m_sTransform.b = 0;\n    if ( m_pScheduler_high >= 0 )\n    {\n      if ( *((_BYTE *)p_m_pComponentContainer + 448) )\n        v5 = (cocos2d::CCArray *)p_m_pComponentContainer[55];\n      else\n        v5 = (cocos2d::CCArray *)p_m_pComponentContainer[59];\n      if ( m_pScheduler_high < (int)cocos2d::CCArray::count(v5) )\n      {\n        v6 = (float *)((__int64 (__fastcall *)(cocos2d::CCComponentContainer **))(*p_m_pComponentContainer)[12].m_pOwner)(p_m_pComponentContainer);\n        cocos2d::CCPoint::CCPoint(\n          &v7,\n          (float)(*v6 - *((float *)p_m_pComponentContainer + 146)) * (float)-m_pScheduler_high,\n          0.0);\n        p_m_pComponentContainer[62]->__vftable[3].add(p_m_pComponentContainer[62], (cocos2d::CCComponent *)&v7);\n        *((_DWORD *)p_m_pComponentContainer + 104) = *((_DWORD *)p_m_pComponentContainer + 145);\n        *((_DWORD *)p_m_pComponentContainer + 145) = m_pScheduler_high;\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchCancelled from 0x14003e680 to 0x14003e752 (210 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14052b6a8\n; > <???> @ 0x140661d80\n; > <???> @ 0x140661d90\n; > <???> @ 0x1406c40a4\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     rsp, 28h                                                       ; +0x0, 0x14003e680\ncmp     byte ptr [rcx+88h], 0                                          ; +0x4, 0x14003e684\njnz     loc_14003E74D                                                  ; +0xb, 0x14003e68b\ncmp     [rcx+90h], rdx                                                 ; +0x11, 0x14003e691\njnz     loc_14003E74D                                                  ; +0x18, 0x14003e698\nmov     [rsp+28h+arg_8], rbx                                           ; +0x1e, 0x14003e69e\nlea     rbx, [rcx-140h]                                                ; +0x23, 0x14003e6a3\nmov     [rsp+28h+var_8], rdi                                           ; +0x2a, 0x14003e6aa\nmov     edi, [rcx+104h]                                                ; +0x2f, 0x14003e6af\nmov     qword ptr [rcx+90h], 0                                         ; +0x35, 0x14003e6b5\ntest    edi, edi                                                       ; +0x40, 0x14003e6c0\njs      short loc_14003E743                                            ; +0x42, 0x14003e6c2\ncmp     byte ptr [rbx+1C0h], 0                                         ; +0x44, 0x14003e6c4\njz      short loc_14003E6D6                                            ; +0x4b, 0x14003e6cb\nmov     rcx, [rbx+1B8h]                                                ; +0x4d, 0x14003e6cd\njmp     short loc_14003E6DD                                            ; +0x54, 0x14003e6d4\nmov     rcx, [rbx+1D8h]                                                ; +0x56, 0x14003e6d6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5d, 0x14003e6dd\ncmp     edi, eax                                                       ; +0x63, 0x14003e6e3\njge     short loc_14003E743                                            ; +0x65, 0x14003e6e5\nmov     rax, [rbx]                                                     ; +0x67, 0x14003e6e7\nmov     rcx, rbx                                                       ; +0x6a, 0x14003e6ea\ncall    qword ptr [rax+130h]                                           ; +0x6d, 0x14003e6ed\nxorps   xmm2, xmm2                                                     ; +0x73, 0x14003e6f3\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x76, 0x14003e6f6\nmovss   xmm1, dword ptr [rax]                                          ; +0x7b, 0x14003e6fb\nmov     eax, edi                                                       ; +0x7f, 0x14003e6ff\nsubss   xmm1, dword ptr [rbx+248h]                                     ; +0x81, 0x14003e701\nneg     eax                                                            ; +0x89, 0x14003e709\nmovd    xmm0, eax                                                      ; +0x8b, 0x14003e70b\ncvtdq2ps xmm0, xmm0                                                    ; +0x8f, 0x14003e70f\nmulss   xmm1, xmm0                                                     ; +0x92, 0x14003e712\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x96, 0x14003e716\nmov     rcx, [rbx+1F0h]                                                ; +0x9c, 0x14003e71c\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xa3, 0x14003e723\nmov     rax, [rcx]                                                     ; +0xa8, 0x14003e728\ncall    qword ptr [rax+0B8h]                                           ; +0xab, 0x14003e72b\nmov     eax, [rbx+244h]                                                ; +0xb1, 0x14003e731\nmov     [rbx+1A0h], eax                                                ; +0xb7, 0x14003e737\nmov     [rbx+244h], edi                                                ; +0xbd, 0x14003e73d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc3, 0x14003e743\nmov     rdi, [rsp+28h+var_8]                                           ; +0xc8, 0x14003e748\nadd     rsp, 28h                                                       ; +0xcd, 0x14003e74d\nretn                                                                   ; +0xd1, 0x14003e751", "xrefs": ["<???> @ 0x14052b6a8", "<???> @ 0x140661d80", "<???> @ 0x140661d90", "<???> @ 0x1406c40a4"], "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"}