{"type": "func", "start": 4298704016, "end": 4298704229, "name": "BoomScrollLayer::ccTouchCancelled", "pseudocode": "// \n// BoomScrollLayer::ccTouchCancelled from 0x100390490 to 0x100390565 (213 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b2fc00\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 12:29:13 +0000\n// \n\nvoid __fastcall BoomScrollLayer::ccTouchCancelled(__int64 a1, __int64 a2)\n{\n  int v2; // r12d\n  __int64 v3; // rbx\n  float *v4; // rax\n  float v5; // [rsp-34h] [rbp-34h] BYREF\n  float v6; // [rsp-2Ch] [rbp-2Ch]\n\n  if ( !*(_BYTE *)(a1 + 464) && *(_QWORD *)(a1 + 472) == a2 )\n  {\n    *(_QWORD *)(a1 + 472) = 0;\n    v2 = *(_DWORD *)(a1 + 588);\n    if ( v2 >= 0 && (int)sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) > v2 )\n    {\n      v3 = *(_QWORD *)(a1 + 504);\n      v6 = (float)-v2;\n      v4 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n      sub_100278250(&v5, (float)(*v4 - *(float *)(a1 + 592)) * v6, 0.0);\n      (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v3 + 184LL))(v3, &v5);\n      *(_DWORD *)(a1 + 424) = *(_DWORD *)(a1 + 588);\n      *(_DWORD *)(a1 + 588) = v2;\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchCancelled from 0x100390490 to 0x100390565 (213 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b2fc00\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 12:29:13 +0000\n; \ncmp     byte ptr [rdi+1D0h], 0                                         ; +0x0, 0x100390490\njnz     short locret_1003904A2                                         ; +0x7, 0x100390497\ncmp     [rdi+1D8h], rsi                                                ; +0x9, 0x100390499\njz      short loc_1003904A3                                            ; +0x10, 0x1003904a0\nretn                                                                   ; +0x12, 0x1003904a2\npush    rbp                                                            ; +0x13, 0x1003904a3\nmov     rbp, rsp                                                       ; +0x14, 0x1003904a4\npush    r15                                                            ; +0x17, 0x1003904a7\npush    r14                                                            ; +0x19, 0x1003904a9\npush    r12                                                            ; +0x1b, 0x1003904ab\npush    rbx                                                            ; +0x1d, 0x1003904ad\nsub     rsp, 10h                                                       ; +0x1e, 0x1003904ae\nmov     qword ptr [rdi+1D8h], 0                                        ; +0x22, 0x1003904b2\nmov     r12d, [rdi+24Ch]                                               ; +0x2d, 0x1003904bd\ntest    r12d, r12d                                                     ; +0x34, 0x1003904c4\njs      loc_100390558                                                  ; +0x37, 0x1003904c7\nmovzx   eax, byte ptr [rdi+1C8h]                                       ; +0x3d, 0x1003904cd\nxor     eax, 1                                                         ; +0x44, 0x1003904d4\nshl     eax, 5                                                         ; +0x47, 0x1003904d7\nmov     rax, [rdi+rax+1C0h]                                            ; +0x4a, 0x1003904da\nmov     r14, rdi                                                       ; +0x52, 0x1003904e2\nmov     rdi, rax                                                       ; +0x55, 0x1003904e5\ncall    sub_1007FEF90                                                  ; +0x58, 0x1003904e8\ncmp     eax, r12d                                                      ; +0x5d, 0x1003904ed\njle     short loc_100390558                                            ; +0x60, 0x1003904f0\nmov     rbx, [r14+1F8h]                                                ; +0x62, 0x1003904f2\nmov     eax, r12d                                                      ; +0x69, 0x1003904f9\nneg     eax                                                            ; +0x6c, 0x1003904fc\ncvtsi2ss xmm0, eax                                                     ; +0x6e, 0x1003904fe\nmovss   dword ptr [rbp-24h], xmm0                                      ; +0x72, 0x100390502\nmov     rax, [r14]                                                     ; +0x77, 0x100390507\nmov     rdi, r14                                                       ; +0x7a, 0x10039050a\ncall    qword ptr [rax+148h]                                           ; +0x7d, 0x10039050d\nmovss   xmm0, dword ptr [rax]                                          ; +0x83, 0x100390513\nsubss   xmm0, dword ptr [r14+250h]                                     ; +0x87, 0x100390517\nmulss   xmm0, dword ptr [rbp-24h]                                      ; +0x90, 0x100390520\nlea     r15, [rbp-2Ch]                                                 ; +0x95, 0x100390525\nxorps   xmm1, xmm1                                                     ; +0x99, 0x100390529\nmov     rdi, r15                                                       ; +0x9c, 0x10039052c\ncall    sub_100278250                                                  ; +0x9f, 0x10039052f\nmov     rax, [rbx]                                                     ; +0xa4, 0x100390534\nmov     rdi, rbx                                                       ; +0xa7, 0x100390537\nmov     rsi, r15                                                       ; +0xaa, 0x10039053a\ncall    qword ptr [rax+0B8h]                                           ; +0xad, 0x10039053d\nmov     eax, [r14+24Ch]                                                ; +0xb3, 0x100390543\nmov     [r14+1A8h], eax                                                ; +0xba, 0x10039054a\nmov     [r14+24Ch], r12d                                               ; +0xc1, 0x100390551\nadd     rsp, 10h                                                       ; +0xc8, 0x100390558\npop     rbx                                                            ; +0xcc, 0x10039055c\npop     r12                                                            ; +0xcd, 0x10039055d\npop     r14                                                            ; +0xcf, 0x10039055f\npop     r15                                                            ; +0xd1, 0x100390561\npop     rbp                                                            ; +0xd3, 0x100390563\nretn                                                                   ; +0xd4, 0x100390564", "xrefs": ["<???> @ 0x100b2fc00"], "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"}