//
// GameToolbox::worldClipRect from 0x3ccc28 to 0x3ccc9c (116 bytes)
//
// 3 xrefs:
// > BoomScrollLayer::touchInsideClip @ 0x3c13d0
// > CCScrollLayerExt::touchInsideClip @ 0x3c9076
// > GameToolbox::preVisitWithClippingRect @ 0x3cccd8
//
// 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:46:38 +0000
//
cocos2d::CCRect *__fastcall GameToolbox::worldClipRect(cocos2d::CCRect *a1, int a2, const cocos2d::CCRect *a3)
{
int v6; // r0
const cocos2d::CCPoint *v7; // r1
_BYTE v9[8]; // [sp+4h] [bp+0h] BYREF
_BYTE v10[8]; // [sp+Ch] [bp+8h] BYREF
v6 = (*(int (__fastcall **)(int))(*(_DWORD *)a2 + 96))(a2);
cocos2d::CCPoint::operator+(v9, v6, a3);
v7 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)a2 + 256))(a2);
if ( v7 )
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v10, v7);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, (const cocos2d::CCPoint *)v9);
cocos2d::CCPoint::operator=(a3, v10);
GameToolbox::contentScaleClipRect();
cocos2d::CCRect::CCRect(a1, a3);
return a1;
}