//
// GameToolbox::worldClipRect from 0x69bbec to 0x69bcb8 (204 bytes)
//
// 4 xrefs:
// > BoomScrollLayer::touchInsideClip @ 0x689418
// > CCScrollLayerExt::touchInsideClip @ 0x695a48
// > GameToolbox::preVisitWithClippingRect @ 0x69bd20
// > ??> @ 0x63b68
//
// 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 12:50:40 +0000
//
cocos2d::CCRect *__usercall GameToolbox::worldClipRect@(
__int64 a1@,
const cocos2d::CCRect *a2@,
cocos2d::CCRect *a3@)
{
__int64 v6; // x0
cocos2d::CCNode *v7; // x0
__int64 v9; // [xsp+48h] [xbp+48h] BYREF
__int64 v10; // [xsp+50h] [xbp+50h] BYREF
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 192LL))(a1);
cocos2d::CCPoint::operator+(&v9, v6, a2);
v7 = (cocos2d::CCNode *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);
if ( v7 )
cocos2d::CCNode::convertToWorldSpace(&v10, v7, (const cocos2d::CCPoint *)&v9);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v10, (const cocos2d::CCPoint *)&v9);
cocos2d::CCPoint::operator=(a2, &v10);
GameToolbox::contentScaleClipRect();
cocos2d::CCRect::CCRect(a3, a2);
return a3;
}