//
// ScrollableContentLayer::worldClipRect from 0x3f4e18 to 0x3f4eca (178 bytes)
//
// 2 xrefs:
// > ScrollableContentLayer::visit @ 0x3f4eea
// > ScrollableContentLayer::touchInsideClip @ 0x3f4f2c
//
// 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:47:16 +0000
//
ScrollableContentLayer *__fastcall ScrollableContentLayer::worldClipRect(ScrollableContentLayer *this, int a2)
{
float v4; // s16
float v6; // [sp+Ch] [bp-20h] BYREF
float v7; // [sp+10h] [bp-1Ch]
float v8[2]; // [sp+14h] [bp-18h] BYREF
_BYTE v9[8]; // [sp+1Ch] [bp-10h] BYREF
v4 = 0.0;
if ( *(_BYTE *)(a2 + 444) )
v4 = 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, v4, 2.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)&v6, (const cocos2d::CCPoint *)a2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, *(float *)(a2 + 324) - v4, *(float *)(a2 + 328) - 2.0);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v8, (const cocos2d::CCPoint *)a2);
cocos2d::CCRect::CCRect(this, v6, v7, v8[0] - v6, v8[1] - v7);
return this;
}