//
// ScrollableContentLayer::worldClipRect from 0x6e22f4 to 0x6e23d0 (220 bytes)
//
// 3 xrefs:
// > ScrollableContentLayer::visit @ 0x6e23fc
// > ScrollableContentLayer::touchInsideClip @ 0x6e2460
// > ??> @ 0xe53a8
//
// 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:51:40 +0000
//
cocos2d::CCRect *__usercall ScrollableContentLayer::worldClipRect@(
ScrollableContentLayer *this@,
cocos2d::CCRect *a2@)
{
float v4; // s9
__int64 v6; // [xsp+40h] [xbp+40h] BYREF
__int64 v7; // [xsp+48h] [xbp+48h] BYREF
_BYTE v8[8]; // [xsp+50h] [xbp+50h] BYREF
v4 = 0.0;
if ( *((_BYTE *)this + 584) )
v4 = 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v4, 2.0);
cocos2d::CCNode::convertToWorldSpace(&v6, this, (const cocos2d::CCPoint *)v8);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, *((float *)this + 106) - v4, *((float *)this + 107) - 2.0);
cocos2d::CCNode::convertToWorldSpace(&v7, this, (const cocos2d::CCPoint *)v8);
cocos2d::CCRect::CCRect(
a2,
*(float *)&v6,
*((float *)&v6 + 1),
*(float *)&v7 - *(float *)&v6,
*((float *)&v7 + 1) - *((float *)&v6 + 1));
return a2;
}