// // CCScrollLayerExt::ccTouchMoved from 0x3c8934 to 0x3c8a3a (262 bytes) // // 2 xrefs: // > `non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x3c8a44 // > TableView::ccTouchMoved @ 0x3caa78 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:46:36 +0000 // int __fastcall CCScrollLayerExt::ccTouchMoved(int a1, int a2) { cocos2d::CCDirector *LocationInView; // r0 const cocos2d::CCPoint *v5; // r0 int result; // r0 int v7; // r0 float v8; // s16 float v9; // r0 _BYTE v10[8]; // [sp+4h] [bp-10h] BYREF _DWORD v11[2]; // [sp+Ch] [bp-8h] BYREF int v12; // [sp+14h] [bp+0h] BYREF float v13; // [sp+18h] [bp+4h] *(_BYTE *)(a1 + 348) = 1; LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v10); v5 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView); cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)&v12, v5); result = cocos2d::CCPoint::operator=(v10, &v12); if ( a2 == *(_DWORD *)(a1 + 320) ) { cocos2d::CCPoint::operator-(v11, v10, a1 + 324); if ( *(_BYTE *)(a1 + 372) ) { v11[1] = 0; } else if ( *(_BYTE *)(a1 + 371) ) { v11[0] = 0; } v7 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 364) + 96))(*(_DWORD *)(a1 + 364)); cocos2d::CCPoint::operator+(&v12, v7, v11); v8 = CCScrollLayerExt::getMinY((CCScrollLayerExt *)a1) - *(float *)(a1 + 384); v9 = COERCE_FLOAT(CCScrollLayerExt::getMaxY((CCScrollLayerExt *)a1)); if ( v13 >= v8 ) { if ( v13 > (float)(v9 + *(float *)(a1 + 388)) ) v13 = v9 + *(float *)(a1 + 388); } else { v13 = v8; } (*(void (__fastcall **)(_DWORD, int *))(**(_DWORD **)(a1 + 364) + 92))(*(_DWORD *)(a1 + 364), &v12); *(_BYTE *)(a1 + 349) = 1; cocos2d::CCPoint::operator=(a1 + 324, v10); result = *(_DWORD *)(a1 + 360); if ( result ) return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 8))(result, a1); } return result; }