//
// ControlMenuTouch::addMenu from 0x6eea00 to 0x6eea34 (52 bytes)
//
// 5 xrefs:
// > GJRotationControl::init @ 0x6ef24c
// > GJRotationControl::init @ 0x6ef3f8
// > GJScaleControl::init @ 0x6ef518
// > GJScaleControl::init @ 0x6ef6bc
// > GJTransformControl::init @ 0x6efa44
//
// 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:57:34 +0000
//
void __fastcall ControlMenuTouch::addMenu(ControlMenuTouch *this, cocos2d::CCMenu *a2)
{
cocos2d::CCMenu **v3; // r3
cocos2d::CCMenu *v4; // [sp+4h] [bp-4h] BYREF
v4 = a2;
(*(void (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)a2 + 500))(a2, 0);
v3 = *((cocos2d::CCMenu ***)this + 1);
if ( v3 == *((cocos2d::CCMenu ***)this + 2) )
{
std::vector::__push_back_slow_path((int)this, &v4);
}
else
{
if ( v3 )
*v3 = v4;
*((_DWORD *)this + 1) += 4;
}
}