//
// ScrollingLayer::getViewRect from 0x6c9b48 to 0x6c9c38 (240 bytes)
//
// 3 xrefs:
// > ScrollingLayer::ccTouchBegan @ 0x6c9cb8
// > ScrollingLayer::visit @ 0x6c9db4
// > ??> @ 0x7bbc8
//
// 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:22 +0000
//
cocos2d::CCRect *__usercall ScrollingLayer::getViewRect@(ScrollingLayer *this@, cocos2d::CCRect *a2@)
{
__int64 v4; // x0
float v5; // s0
__int64 v6; // x0
float v7; // s8
float v8; // s6
__int64 v10; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCNode::convertToWorldSpace(&v10, this, (const cocos2d::CCPoint *)&unk_155C218);
v4 = *((_QWORD *)this + 75);
if ( v4 )
{
v5 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v4 + 136LL))(v4);
v6 = *((_QWORD *)this + 75);
v7 = v5;
v8 = 1.0;
if ( v6 )
v8 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v6 + 152LL))(v6);
}
else
{
v7 = 1.0;
v8 = 1.0;
}
cocos2d::CCRect::CCRect(
a2,
(float)(*(float *)&v10 + (float)(v7 * *((float *)this + 136))) - (float)(v7 * (float)(*((float *)this + 138) * 0.5)),
(float)(*((float *)&v10 + 1) + (float)(v8 * *((float *)this + 137)))
- (float)(v8 * (float)(*((float *)this + 139) * 0.5)),
v7 * *((float *)this + 138),
v8 * *((float *)this + 139));
return a2;
}