//
// ScrollableContentLayer::updateSectionVisibility from 0x3f53fa to 0x3f54a6 (172 bytes)
//
// 1 xrefs:
// > ScrollableContentLayer::applyContentPosition @ 0x3f61be
//
// 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
//
float *__fastcall ScrollableContentLayer::updateSectionVisibility(float *this)
{
float v1; // s17
float v2; // s16
float *v3; // r4
int v4; // r8
float v5; // r0
float *v6; // r5
char *v7; // r7
int v8; // r6
int v9; // r6
v1 = *(this + 102);
if ( v1 > 0.0 && *((_DWORD *)this + 106) )
{
v2 = *(this + 84);
v3 = this + 105;
v4 = (int)floorf(v2 / v1) - 1;
v5 = floorf((float)(v2 + *(v3 - 23)) / v1);
v6 = *((float **)v3 - 1);
this = (float *)(int)v5;
v7 = (char *)this + 1;
while ( v6 != v3 )
{
v8 = *((_DWORD *)v6 + 4);
v9 = v8 >= v4 && v8 <= (int)v7;
if ( (*(int (__fastcall **)(_DWORD))(**((_DWORD **)v6 + 5) + 176))(*((_DWORD *)v6 + 5)) != v9 )
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)v6 + 5) + 172))(*((_DWORD *)v6 + 5), v9);
this = (float *)std::__tree_next *>(v6);
v6 = this;
}
}
return this;
}