//
// BoomScrollLayer::ccTouchCancelled from 0x1003a6ca0 to 0x1003a6d75 (213 bytes)
//
// 1 xrefs:
// > ??> @ 0x100927548
//
// 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 __fastcall BoomScrollLayer::ccTouchCancelled(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)
{
int m_page; // r12d
ExtendedLayer *m_extendedLayer; // rbx
float *v5; // rax
float v6; // [rsp-34h] [rbp-34h] BYREF
float v7; // [rsp-2Ch] [rbp-2Ch]
if ( !a1->m_ignoreTouchCancel && a1->m_touch == a2 )
{
a1->m_touch = nullptr;
m_page = a1->m_page;
if ( m_page >= 0 && (int)sub_100720070(*((_QWORD *)&a1->m_dynamicObjects + 4 * !a1->m_dynamic)) > m_page )
{
m_extendedLayer = a1->m_extendedLayer;
v7 = (float)-m_page;
v5 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1);
sub_10028CBE0(&v6, (float)(*v5 - a1->m_pageOffset) * v7, 0.0);
((void (__fastcall *)(ExtendedLayer *, float *))m_extendedLayer->setPosition)(m_extendedLayer, &v6);
a1->m_slowPage = a1->m_page;
a1->m_page = m_page;
}
}
}