//
// ScrollableContentLayer::applyContentPosition from 0x3f6164 to 0x3f61da (118 bytes)
//
// 10 xrefs:
// > ScrollableContentLayer::init @ 0x3f6240
// > ScrollableContentLayer::setContentHeight @ 0x3f6418
// > ScrollableContentLayer::setViewSize @ 0x3f6448
// > ScrollableContentLayer::scrollTo @ 0x3f6464
// > ScrollableContentLayer::setHorizontal @ 0x3f648e
// > ScrollableContentLayer::handleTouchMoved @ 0x3f6590
// > ScrollableContentLayer::handleTouchMoved @ 0x3f6654
// > ScrollableContentLayer::update @ 0x3f685c
// > ScrollableContentLayer::ensureOwnedContentNode @ 0x3f6934
// > ScrollableContentLayer::reloadVirtualRows @ 0x3f6a72
//
// 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:17 +0000
//
void __fastcall ScrollableContentLayer::applyContentPosition(ScrollableContentLayer *this, int a2, int a3, int a4)
{
int v5; // r6
float v6; // s15
void (__fastcall *v7)(int, _DWORD *); // r8
float v8; // r2
float v9; // r1
int v10; // r1
_DWORD v11[3]; // [sp+4h] [bp-Ch] BYREF
v11[0] = a2;
v11[1] = a3;
v11[2] = a4;
v5 = *((_DWORD *)this + 80);
if ( v5 )
{
v6 = *((float *)this + 84);
v7 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v5 + 92);
if ( *((_BYTE *)this + 444) )
{
v8 = 0.0;
v9 = -v6;
}
else
{
v9 = 0.0;
v8 = *((float *)this + 82) + v6;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9, v8);
v7(v5, v11);
ScrollableContentLayer::updateScrollThumb(this);
ScrollableContentLayer::updateSectionVisibility((float *)this);
ScrollableContentLayer::updateVirtualRows(this, v10);
}
}