//
// cocos2d::CCMenuItem::rect from 0x1003bea80 to 0x1003beac6 (70 bytes)
//
// 2 xrefs:
// > cocos2d::CCMenu::itemForTouch @ 0x100794b3c
// > cocos2d::CCMenu::itemForTouch @ 0x100794c0c
//
// 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
//
cocos2d::CCRect __fastcall cocos2d::CCMenuItem::rect(cocos2d::CCMenuItem *a1)
{
__int64 v1; // rsi
__m128 v2; // xmm2
__m128 v4; // xmm3
cocos2d::CCRect result; // 0:xmm0_8.8,8:xmm1_8.8
v2 = (__m128)*(unsigned int *)(v1 + 108);
result.origin = (cocos2d::CCPoint)*(unsigned int *)(v1 + 76);
result.origin.x = result.origin.x - (float)(*(float *)(v1 + 100) * v2.f32[0]);
result.size = (cocos2d::CCSize)*(unsigned int *)(v1 + 80);
v4 = (__m128)*(unsigned int *)(v1 + 112);
result.size.width = result.size.width - (float)(*(float *)(v1 + 104) * v4.f32[0]);
sub_10028CC00((__int64)a1, result.origin.x, result.size.width, v2, v4);
return result;
}