//
// BoomScrollLayer::ccTouchMoved from 0x1400421b0 to 0x1400424ef (831 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407061b8
// > ??> @ 0x14090f5cc
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall BoomScrollLayer::ccTouchMoved(__int64 a1, struct cocos2d::CCObject *a2, __int64 a3)
{
__int64 v6; // rax
__int64 v7; // rax
cocos2d::CCSet *v8; // rbx
__int64 v9; // rax
__int64 v10; // rax
__int64 v11; // rax
cocos2d::CCTouchDispatcher *v12; // rax
cocos2d::CCTargetedTouchHandler *Handler; // rbx
cocos2d::CCSet *ClaimedTouches; // rax
cocos2d::CCSet *v15; // rax
void (__fastcall ***v16)(_QWORD, __int64); // rcx
float *v17; // rax
float v18; // xmm9_4
int v19; // edi
float *v20; // rax
float v21; // xmm7_4
cocos2d::CCArray *v22; // rcx
float v23; // xmm6_4
__int64 v24; // rax
float v25; // xmm7_4
__int64 v26; // rdi
__int64 v27; // rbx
__int64 v28; // rax
float v29; // [rsp+80h] [rbp+8h] BYREF
cocos2d::CCSet *v30; // [rsp+88h] [rbp+10h] BYREF
if ( *(struct cocos2d::CCObject **)(a1 + 152) == a2 && !*(_BYTE *)(a1 + 308) )
{
cocos2d::CCTouch::getLocationInView(a2, &v29);
v6 = cocos2d::CCDirector::sharedDirector();
v7 = cocos2d::CCDirector::convertToGL(v6, &v30, &v29);
cocos2d::CCPoint::operator=(&v29, v7);
if ( *(_DWORD *)(a1 + 140) == 1 )
goto LABEL_11;
if ( fabs(v29 - *(float *)(a1 + 108)) >= *(float *)(a1 + 236) )
{
cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 184), 2);
*(_BYTE *)(a1 + 232) = 0;
*(_DWORD *)(a1 + 140) = 1;
*(float *)(a1 + 108) = v29;
if ( *(_BYTE *)(a1 + 248) )
{
v8 = (cocos2d::CCSet *)operator new(0x40u);
v30 = v8;
cocos2d::CCSet::CCSet(v8);
*(_QWORD *)v8 = &cocos2d::CCSet::`vftable';
cocos2d::CCSet::addObject(v8, a2);
cocos2d::CCObject::autorelease(v8);
*(_BYTE *)(a1 + 144) = 1;
v9 = cocos2d::CCDirector::sharedDirector();
v10 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 144LL))(v9);
(*(void (__fastcall **)(__int64, cocos2d::CCSet *, __int64))(*(_QWORD *)(v10 + 56) + 24LL))(v10 + 56, v8, a3);
*(_BYTE *)(a1 + 144) = 0;
v11 = cocos2d::CCDirector::sharedDirector();
v12 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 144LL))(v11);
Handler = cocos2d::CCTouchDispatcher::findHandler(v12, (struct cocos2d::CCTouchDelegate *)a1);
ClaimedTouches = cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler);
if ( !cocos2d::CCSet::containsObject(ClaimedTouches, a2) )
{
v15 = cocos2d::CCTargetedTouchHandler::getClaimedTouches(Handler);
cocos2d::CCSet::addObject(v15, a2);
}
}
v16 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 224);
if ( v16 )
(**v16)(v16, a1 - 320);
}
if ( *(_DWORD *)(a1 + 140) == 1 )
{
LABEL_11:
v17 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 320LL))(a1 - 320);
v18 = (float)(v29 - (float)((float)(*v17 - *(float *)(a1 + 272)) * (float)*(int *)(a1 + 268)))
- *(float *)(a1 + 108);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, v18, 0.0);
v19 = BoomScrollLayer::pageNumberForPosition(a1 - 320);
v20 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 320LL))(a1 - 320);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, (float)(*v20 - *(float *)(a1 - 320 + 592)) * (float)-v19, 0.0);
v21 = v18 - *(float *)&v30;
if ( (v19 || v21 <= 0.0)
&& (!*(_BYTE *)(a1 + 136) ? (v22 = *(cocos2d::CCArray **)(a1 + 160)) : (v22 = *(cocos2d::CCArray **)(a1 + 128)),
v19 != cocos2d::CCArray::count(v22) - 1 || v21 >= 0.0) )
{
v25 = 0.0;
}
else
{
v23 = v21 * *(float *)(a1 + 244);
v24 = cocos2d::CCDirector::sharedDirector();
v25 = v21 - (float)(v23 / *(float *)cocos2d::CCDirector::getWinSize(v24, &v30));
}
v26 = **(_QWORD **)(a1 + 184);
v27 = *(_QWORD *)(a1 + 184);
v28 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v30, v18 - v25, 0.0);
(*(void (__fastcall **)(__int64, __int64))(v26 + 184))(v27, v28);
}
}
}