// // CCScrollLayerExt::ccTouchBegan from 0x3c84cc to 0x3c85de (274 bytes) // // 2 xrefs: // > `non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x3c85f4 // > TableView::ccTouchBegan @ 0x3ca94e // // 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:35 +0000 // int __fastcall CCScrollLayerExt::ccTouchBegan(int a1, int a2) { int v2; // r8 const void *i; // r0 const void *v6; // r9 void *v7; // r0 cocos2d::CCDirector *LocationInView; // r0 const cocos2d::CCPoint *v9; // r0 int v10; // r0 int v11; // r0 int v12; // r8 _BYTE v14[8]; // [sp+4h] [bp-1Ch] BYREF _BYTE v15[8]; // [sp+Ch] [bp-14h] BYREF _BYTE v16[8]; // [sp+14h] [bp-Ch] BYREF v2 = *(unsigned __int8 *)(a1 + 373); if ( *(_BYTE *)(a1 + 373) ) return 0; cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v15); for ( i = (const void *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 256))(a1); ; i = (const void *)(*(int (__fastcall **)(const void *))(*(_DWORD *)v6 + 256))(v6) ) { v6 = i; if ( !i ) break; v7 = _dynamic_cast( i, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper, -2); if ( v7 && !(*(int (__fastcall **)(void *, _BYTE *))(*(_DWORD *)v7 + 8))(v7, v15) ) return v2; } *(_DWORD *)(a1 + 320) = a2; LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v14); v9 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView); cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v15, v9); v10 = cocos2d::CCPoint::operator=(a1 + 324, v15); cocos2d::CCPoint::operator=(a1 + 332, v10); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v15, (const cocos2d::CCPoint *)a1); cocos2d::CCPoint::operator=(v14, v15); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v15); cocos2d::CCPoint::operator=(v15, &unk_D2A5A4); v11 = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 164))(a1); cocos2d::CCSize::operator=(v16, v11); if ( cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v15, (const cocos2d::CCPoint *)v14) ) { cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(a1 + 364)); cocos2d::CCTime::gettimeofdayCocos2d(a1 + 340, 0); v12 = *(unsigned __int8 *)(a1 + 373); *(_BYTE *)(a1 + 348) = 1; return v12 ^ 1; } return v2; }