// // cocos2d::CCMenu::ccTouchBegan from 0x180058f70 to 0x180059040 (208 bytes) // // 3 xrefs: // > @ 0x1800f7110 // > @ 0x1801438a8 // > @ 0x1801b2a84 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // char __fastcall cocos2d::CCMenu::ccTouchBegan( cocos2d::CCMenu *this, struct cocos2d::CCTouch *a2, struct cocos2d::CCEvent *a3) { __int64 v5; // rbx struct cocos2d::CCMenuItem *v6; // rcx if ( !LODWORD(this->m_sAdditionalTransform.a) && *((_BYTE *)this - 34) && LOBYTE(this->m_obContentSize.height) ) { v5 = *((_QWORD *)this - 13); if ( v5 ) { while ( (*(unsigned __int8 (__fastcall **)(__int64, struct cocos2d::CCTouch *, struct cocos2d::CCEvent *))(*(_QWORD *)v5 + 328LL))( v5, a2, a3) ) { v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 488LL))(v5); if ( !v5 ) goto LABEL_7; } } else { LABEL_7: v6 = cocos2d::CCMenu::itemForTouch((cocos2d::CCMenu *)((char *)this - 320), a2, 0); if ( !v6 ) v6 = cocos2d::CCMenu::itemForTouch((cocos2d::CCMenu *)((char *)this - 320), a2, 1); *(_QWORD *)&this->m_sAdditionalTransform.b = v6; if ( v6 ) { LODWORD(this->m_sAdditionalTransform.a) = 1; ((void (__fastcall *)(struct cocos2d::CCMenuItem *))v6->selected)(v6); return 1; } } } return 0; }