//
// BoomScrollLayer::ccTouchCancelled from 0x140041fd0 to 0x1400420a2 (210 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407061c8
// > ??> @ 0x140884dd0
// > ??> @ 0x140884de0
// > ??> @ 0x14090f59c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:29 +0000
//
void __fastcall BoomScrollLayer::ccTouchCancelled(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
int v3; // edi
cocos2d::CCArray *v4; // rcx
float *v5; // rax
char v6; // [rsp+30h] [rbp+8h] BYREF
if ( !*(_BYTE *)(a1 + 144) && *(_QWORD *)(a1 + 152) == a2 )
{
v2 = a1 - 320;
v3 = *(_DWORD *)(a1 + 268);
*(_QWORD *)(a1 + 152) = 0;
if ( v3 >= 0 )
{
if ( *(_BYTE *)(v2 + 456) )
v4 = *(cocos2d::CCArray **)(v2 + 448);
else
v4 = *(cocos2d::CCArray **)(v2 + 480);
if ( v3 < (int)cocos2d::CCArray::count(v4) )
{
v5 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 320LL))(v2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v6, (float)(*v5 - *(float *)(v2 + 592)) * (float)-v3, 0.0);
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v2 + 504) + 184LL))(*(_QWORD *)(v2 + 504), &v6);
*(_DWORD *)(v2 + 424) = *(_DWORD *)(v2 + 588);
*(_DWORD *)(v2 + 588) = v3;
}
}
}
}