//
// ScrollableContentLayer::ensureScrollThumb from 0x3f4930 to 0x3f49ee (190 bytes)
//
// 3 xrefs:
// > ScrollableContentLayer::setContentHeight @ 0x3f640e
// > ScrollableContentLayer::setViewSize @ 0x3f643e
// > ScrollableContentLayer::reloadVirtualRows @ 0x3f6a64
//
// 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
//
int __fastcall ScrollableContentLayer::ensureScrollThumb(int this)
{
int v1; // r7
_DWORD *v2; // r4
int v3; // r5
char v4; // r1
char v5; // r2
char v6; // r3
char v7; // r0
int v8; // r0
int v9; // r8
void (__fastcall *v10)(int, _BYTE *); // r9
_BYTE v11[8]; // [sp+4h] [bp-10h] BYREF
v1 = *(unsigned __int8 *)(this + 444);
v2 = (_DWORD *)this;
if ( !*(_BYTE *)(this + 444) )
{
v3 = *(_DWORD *)(this + 380);
if ( *(float *)(this + 332) <= *(float *)(this + 328) )
{
if ( v3 )
{
this = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)v3 + 260))(*(_DWORD *)(this + 380));
v2[95] = v1;
}
}
else if ( !v3 )
{
v4 = *(_BYTE *)(this + 385);
v5 = *(_BYTE *)(this + 386);
v6 = *(_BYTE *)(this + 387);
v7 = *(_BYTE *)(this + 384);
v11[1] = v4;
v11[2] = v5;
v11[0] = v7;
v11[3] = v6;
v8 = cocos2d::CCLayerColor::create(v11);
v2[95] = v8;
v9 = v8;
v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v8 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, 1.0, 1.0);
v10(v9, v11);
(*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)v2[95] + 220))(v2[95], 0);
return (*(int (__fastcall **)(_DWORD *, _DWORD, int))(*v2 + 232))(v2, v2[95], 100);
}
}
return this;
}