// // CCScrollLayerExt::ccTouchBegan from 0x694a08 to 0x694bb8 (432 bytes) // // 4 xrefs: // > `non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x694bbc // > TableView::ccTouchBegan @ 0x6983d8 // > @ 0x46d20 // > @ 0x1418680 // // This function is hookable on this platform (idp: arm, 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 12:50:37 +0000 // __int64 __fastcall CCScrollLayerExt::ccTouchBegan(_QWORD *a1, cocos2d::CCTouch *this) { __int64 result; // x0 const void *v5; // x19 void *v6; // x0 cocos2d::CCDirector *LocationInView; // x0 cocos2d::CCDirector *v8; // x0 __int64 v9; // x0 long double v10; // q0 __int64 v11; // x0 int v12; // w0 __int64 v13; // [xsp+50h] [xbp+50h] BYREF __int64 v14; // [xsp+58h] [xbp+58h] BYREF __int64 v15; // [xsp+60h] [xbp+60h] BYREF result = 0; if ( !*((_BYTE *)a1 + 501) ) { cocos2d::CCTouch::getLocation(&v14, this); v5 = (const void *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 512LL))(a1); if ( v5 ) { while ( 1 ) { v6 = _dynamic_cast( v5, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCTouchClipper, -2); if ( v6 ) { result = (*(unsigned __int8 (__fastcall **)(void *, __int64 *))(*(_QWORD *)v6 + 16LL))(v6, &v14); if ( !(_BYTE)result ) break; } v5 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v5 + 512LL))(v5); if ( !v5 ) goto LABEL_7; } } else { LABEL_7: a1[52] = this; LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v13, this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView); cocos2d::CCDirector::convertToGL(&v14, v8, (const cocos2d::CCPoint *)&v13); cocos2d::CCPoint::operator=(a1 + 53, &v14); cocos2d::CCPoint::operator=(a1 + 54, v9); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)(a1 + 53)); cocos2d::CCPoint::operator=(&v13, &v14); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v14); *(__n128 *)&v10 = cocos2d::CCPoint::operator=(&v14, &unk_155A948); v11 = (*(__int64 (__fastcall **)(_QWORD *, long double))(*a1 + 328LL))(a1, v10); cocos2d::CCSize::operator=(&v15, v11); result = (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)&v14, (const cocos2d::CCPoint *)&v13); if ( (_BYTE)result ) { cocos2d::CCNode::stopAllActions((cocos2d::CCNode *)a1[61]); cocos2d::CCTime::gettimeofdayCocos2d(a1 + 55, 0); v12 = *((unsigned __int8 *)a1 + 501); *((_BYTE *)a1 + 456) = 1; return v12 ^ 1u; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source