// // CustomSFXRowMenu::ccTouchBegan from 0xb5d764 to 0xb5d8a8 (324 bytes) // // 3 xrefs: // > `non-virtual thunk to'CustomSFXRowMenu::ccTouchBegan @ 0xb5d8ac // > @ 0x5f650 // > @ 0x14c3490 // // 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 13:02:10 +0000 // __int64 __fastcall CustomSFXRowMenu::ccTouchBegan(__int64 a1, cocos2d::CCTouch *a2) { int v2; // w24 const void *v4; // x19 cocos2d::CCNode *v5; // x20 __int64 v6; // x0 __int64 result; // x0 float v8; // [xsp+50h] [xbp+50h] __int64 v9; // [xsp+60h] [xbp+60h] BYREF __int64 v10[2]; // [xsp+68h] [xbp+68h] BYREF v2 = a1; v4 = (const void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( !v4 ) return (unsigned __int8)cocos2d::CCMenu::ccTouchBegan(v2, a2); while ( 1 ) { v5 = (cocos2d::CCNode *)_dynamic_cast( v4, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'CCScrollLayerExt, 0); if ( v5 ) break; v4 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v4 + 512LL))(v4); if ( !v4 ) return (unsigned __int8)cocos2d::CCMenu::ccTouchBegan(v2, a2); } cocos2d::CCTouch::getLocation(v10, a2); cocos2d::CCNode::convertToNodeSpace(&v9, v5, (const cocos2d::CCPoint *)v10); v8 = *(float *)(*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v5 + 328LL))(v5); v6 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)v5 + 328LL))(v5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v10, 0.0, 0.0, v8, *(float *)(v6 + 4)); result = (unsigned __int8)cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v10, (const cocos2d::CCPoint *)&v9); if ( (_BYTE)result ) return (unsigned __int8)cocos2d::CCMenu::ccTouchBegan(v2, a2); return result; }