//
// ScrollableContentLayer::applyContentPosition from 0x6e569c to 0x6e5764 (200 bytes)
//
// 12 xrefs:
// > ScrollableContentLayer::init @ 0x6e580c
// > ScrollableContentLayer::setContentHeight @ 0x6e5a80
// > ScrollableContentLayer::setViewSize @ 0x6e5ad0
// > ScrollableContentLayer::scrollTo @ 0x6e5b00
// > ScrollableContentLayer::setHorizontal @ 0x6e5be8
// > ScrollableContentLayer::handleTouchMoved @ 0x6e5d14
// > ScrollableContentLayer::handleTouchMoved @ 0x6e5da8
// > ScrollableContentLayer::update @ 0x6e5fa0
// > ScrollableContentLayer::update @ 0x6e608c
// > ScrollableContentLayer::ensureOwnedContentNode @ 0x6e6194
// > ScrollableContentLayer::reloadVirtualRows @ 0x6e6344
// > ??> @ 0xf3610
//
// 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:43 +0000
//
__int64 __fastcall ScrollableContentLayer::applyContentPosition(ScrollableContentLayer *this)
{
__int64 v2; // x21
float v3; // s0
float v4; // s1
void (__fastcall *v5)(__int64, _BYTE *); // x22
_BYTE v7[8]; // [xsp+40h] [xbp+40h] BYREF
v2 = *((_QWORD *)this + 52);
if ( v2 )
{
if ( *((_BYTE *)this + 584) )
{
v4 = 0.0;
v3 = -*((float *)this + 109);
}
else
{
v3 = 0.0;
v4 = *((float *)this + 107) + *((float *)this + 109);
}
v5 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v7, v3, v4);
v5(v2, v7);
ScrollableContentLayer::updateScrollThumb(this);
ScrollableContentLayer::updateSectionVisibility((__int64)this);
ScrollableContentLayer::updateVirtualRows(this);
}
return _stack_chk_guard;
}