//
// BoomScrollLayer::ccTouchCancelled from 0x14003e680 to 0x14003e752 (210 bytes)
//
// 4 xrefs:
// > ??> @ 0x14052b6a8
// > ??> @ 0x140661d80
// > ??> @ 0x140661d90
// > ??> @ 0x1406c40a4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void BoomScrollLayer::ccTouchCancelled(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
cocos2d::CCComponentContainer **p_m_pComponentContainer; // rbx
int m_pScheduler_high; // edi
cocos2d::CCArray *v5; // rcx
float *v6; // rax
cocos2d::CCPoint v7; // [rsp+30h] [rbp+8h] BYREF
if ( !LOBYTE(a1->m_sAdditionalTransform.ty) && *(cocos2d::CCTouch **)&a1->m_sTransform.b == a2 )
{
p_m_pComponentContainer = &a1[-1].m_pComponentContainer;
m_pScheduler_high = HIDWORD(a1->m_pScheduler);
*(_QWORD *)&a1->m_sTransform.b = 0;
if ( m_pScheduler_high >= 0 )
{
if ( *((_BYTE *)p_m_pComponentContainer + 448) )
v5 = (cocos2d::CCArray *)p_m_pComponentContainer[55];
else
v5 = (cocos2d::CCArray *)p_m_pComponentContainer[59];
if ( m_pScheduler_high < (int)cocos2d::CCArray::count(v5) )
{
v6 = (float *)((__int64 (__fastcall *)(cocos2d::CCComponentContainer **))(*p_m_pComponentContainer)[12].m_pOwner)(p_m_pComponentContainer);
cocos2d::CCPoint::CCPoint(
&v7,
(float)(*v6 - *((float *)p_m_pComponentContainer + 146)) * (float)-m_pScheduler_high,
0.0);
p_m_pComponentContainer[62]->__vftable[3].add(p_m_pComponentContainer[62], (cocos2d::CCComponent *)&v7);
*((_DWORD *)p_m_pComponentContainer + 104) = *((_DWORD *)p_m_pComponentContainer + 145);
*((_DWORD *)p_m_pComponentContainer + 145) = m_pScheduler_high;
}
}
}
}