{"type": "func", "start": 5368979408, "end": 5368979618, "name": "BoomScrollLayer::ccTouchCancelled", "pseudocode": "// \n// BoomScrollLayer::ccTouchCancelled from 0x140041fd0 to 0x1400420a2 (210 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1407061c8\n// > <???> @ 0x140884dd0\n// > <???> @ 0x140884de0\n// > <???> @ 0x14090f59c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:25:29 +0000\n// \n\nvoid __fastcall BoomScrollLayer::ccTouchCancelled(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rbx\n  int v3; // edi\n  cocos2d::CCArray *v4; // rcx\n  float *v5; // rax\n  char v6; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 144) && *(_QWORD *)(a1 + 152) == a2 )\n  {\n    v2 = a1 - 320;\n    v3 = *(_DWORD *)(a1 + 268);\n    *(_QWORD *)(a1 + 152) = 0;\n    if ( v3 >= 0 )\n    {\n      if ( *(_BYTE *)(v2 + 456) )\n        v4 = *(cocos2d::CCArray **)(v2 + 448);\n      else\n        v4 = *(cocos2d::CCArray **)(v2 + 480);\n      if ( v3 < (int)cocos2d::CCArray::count(v4) )\n      {\n        v5 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 320LL))(v2);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (float)(*v5 - *(float *)(v2 + 592)) * (float)-v3, 0.0);\n        (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v2 + 504) + 184LL))(*(_QWORD *)(v2 + 504), &v6);\n        *(_DWORD *)(v2 + 424) = *(_DWORD *)(v2 + 588);\n        *(_DWORD *)(v2 + 588) = v3;\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchCancelled from 0x140041fd0 to 0x1400420a2 (210 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1407061c8\n; > <???> @ 0x140884dd0\n; > <???> @ 0x140884de0\n; > <???> @ 0x14090f59c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:25:29 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x140041fd0\ncmp     byte ptr [rcx+90h], 0                                          ; +0x4, 0x140041fd4\njnz     loc_14004209D                                                  ; +0xb, 0x140041fdb\ncmp     [rcx+98h], rdx                                                 ; +0x11, 0x140041fe1\njnz     loc_14004209D                                                  ; +0x18, 0x140041fe8\nmov     [rsp+28h+arg_8], rbx                                           ; +0x1e, 0x140041fee\nlea     rbx, [rcx-140h]                                                ; +0x23, 0x140041ff3\nmov     [rsp+28h+var_8], rdi                                           ; +0x2a, 0x140041ffa\nmov     edi, [rcx+10Ch]                                                ; +0x2f, 0x140041fff\nmov     qword ptr [rcx+98h], 0                                         ; +0x35, 0x140042005\ntest    edi, edi                                                       ; +0x40, 0x140042010\njs      short loc_140042093                                            ; +0x42, 0x140042012\ncmp     byte ptr [rbx+1C8h], 0                                         ; +0x44, 0x140042014\njz      short loc_140042026                                            ; +0x4b, 0x14004201b\nmov     rcx, [rbx+1C0h]                                                ; +0x4d, 0x14004201d\njmp     short loc_14004202D                                            ; +0x54, 0x140042024\nmov     rcx, [rbx+1E0h]                                                ; +0x56, 0x140042026\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5d, 0x14004202d\ncmp     edi, eax                                                       ; +0x63, 0x140042033\njge     short loc_140042093                                            ; +0x65, 0x140042035\nmov     rax, [rbx]                                                     ; +0x67, 0x140042037\nmov     rcx, rbx                                                       ; +0x6a, 0x14004203a\ncall    qword ptr [rax+140h]                                           ; +0x6d, 0x14004203d\nxorps   xmm2, xmm2                                                     ; +0x73, 0x140042043\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x76, 0x140042046\nmovss   xmm1, dword ptr [rax]                                          ; +0x7b, 0x14004204b\nmov     eax, edi                                                       ; +0x7f, 0x14004204f\nsubss   xmm1, dword ptr [rbx+250h]                                     ; +0x81, 0x140042051\nneg     eax                                                            ; +0x89, 0x140042059\nmovd    xmm0, eax                                                      ; +0x8b, 0x14004205b\ncvtdq2ps xmm0, xmm0                                                    ; +0x8f, 0x14004205f\nmulss   xmm1, xmm0                                                     ; +0x92, 0x140042062\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x96, 0x140042066\nmov     rcx, [rbx+1F8h]                                                ; +0x9c, 0x14004206c\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xa3, 0x140042073\nmov     rax, [rcx]                                                     ; +0xa8, 0x140042078\ncall    qword ptr [rax+0B8h]                                           ; +0xab, 0x14004207b\nmov     eax, [rbx+24Ch]                                                ; +0xb1, 0x140042081\nmov     [rbx+1A8h], eax                                                ; +0xb7, 0x140042087\nmov     [rbx+24Ch], edi                                                ; +0xbd, 0x14004208d\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xc3, 0x140042093\nmov     rdi, [rsp+28h+var_8]                                           ; +0xc8, 0x140042098\nadd     rsp, 28h                                                       ; +0xcd, 0x14004209d\nretn                                                                   ; +0xd1, 0x1400420a1", "xrefs": ["<???> @ 0x1407061c8", "<???> @ 0x140884dd0", "<???> @ 0x140884de0", "<???> @ 0x14090f59c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}