//
// ScrollableContentLayer::ensureScrollThumb from 0x10096b3f0 to 0x10096b4c9 (217 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:38:50 +0000
//
void __fastcall ScrollableContentLayer::ensureScrollThumb(__int64 a1)
{
__int64 v1; // rax
_QWORD *v3; // r14
float v4[2]; // [rsp+Ch] [rbp-24h] BYREF
_DWORD v5[7]; // [rsp+14h] [rbp-1Ch] BYREF
if ( !*(_BYTE *)(a1 + 584) )
{
v1 = *(_QWORD *)(a1 + 488);
if ( *(float *)(a1 + 432) <= *(float *)(a1 + 428) )
{
if ( v1 )
{
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)v1 + 520LL))(*(_QWORD *)(a1 + 488));
*(_QWORD *)(a1 + 488) = 0;
}
}
else if ( !v1 )
{
v5[0] = *(_DWORD *)(a1 + 496);
v3 = cocos2d::CCLayerColor::create_1((__int64)v5);
*(_QWORD *)(a1 + 488) = v3;
sub_100278250(v4, 1.0, 1.0);
(*(void (__fastcall **)(_QWORD *, float *))(*v3 + 296LL))(v3, v4);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 488) + 440LL))(*(_QWORD *)(a1 + 488), 0);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 488), 100);
}
}
}