//
// ScrollableContentLayer::ensureScrollThumb from 0x140081310 to 0x140081418 (264 bytes)
//
// 40 xrefs:
// > CCTextInputNode::updateLabel @ 0x14005653e
// > ScrollableContentLayer::reloadVirtualRows @ 0x140082bd0
// > AccountReviewPopup::buildReportedRows @ 0x1400b5893
// > AccountReviewPopup::buildFilterRows @ 0x1400b719f
// > AccountReviewPopup::buildHistoryRows @ 0x1400b81ed
// > PagedListPopup::clearPageContent @ 0x1400c3705
// > SFXFolderPickerPopup::rebuildList @ 0x1400c5c4c
// > ReportQueuePopup::buildRows @ 0x1400c9446
// > AutoBackupPopup::buildRows @ 0x1400cb7f3
// > ThreadViewPopup::layoutComposeBar @ 0x1400e3ad0
// > ThreadViewPopup::layoutComposeBar @ 0x1400e3d6c
// > MemberListPopup::buildRows @ 0x1400ecde5
// > InvitesPopup::buildRows @ 0x1400f9104
// > DeathTrackerPopup::buildList @ 0x14010c17b
// > DeathHistogram::setData @ 0x1401121a9
// > DeathHistogram::setSurvival @ 0x140112b08
// > DeathHistogram::setSurvival @ 0x140112dc7
// > DeathHistogram::setAttemptLine @ 0x140114005
// > DeathHistogram::setAttemptLine @ 0x140114185
// > DeathHistogram::setProgression @ 0x1401143f2
// > DeathHistogram::setProgression @ 0x1401148c6
// > DropdownListPopup::init @ 0x140121adf
// > EmotePickerPopup::layoutEmoteGrid @ 0x14012434b
// > EditorCommandsPopup::layoutCommandButtons @ 0x14017da85
// > EditorWindowPopup::applyWindowSize @ 0x14017e7af
// > FindObjectPopup::onBuildWindowContent @ 0x14018099a
// > EditorSFXActionConfigLayer::refreshRows @ 0x140184782
// > EditorSoundConfigInfoLayer::buildSummary @ 0x140194d0a
// > sub_140194DC0 @ 0x140194e7e
// > EditorSoundsLayer::buildContentForTab @ 0x14019e057
// > EditorSoundsLayer::showTab @ 0x14019e3af
// > KeybindingsLayer::buildContentForTab @ 0x1403d775b
// > KeybindingsLayer::showTab @ 0x1403d7a85
// > NewsPopup::rebuildPage @ 0x14049e90c
// > NewsPopup::rebuildPage @ 0x14049f863
// > SetGroupIDLayer::updateGroupIDButtons @ 0x140592a7f
// > ScrollViewPopup::initPopup @ 0x140621ebf
// > ??> @ 0x14088b1a4
// > ??> @ 0x14088b1b4
// > ??> @ 0x1409120b0
//
// 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 11:25:55 +0000
//
void __fastcall ScrollableContentLayer::ensureScrollThumb(__int64 a1)
{
float v2; // xmm0_4
__int64 v3; // rcx
struct cocos2d::CCLayerColor *v4; // rax
struct cocos2d::CCLayerColor *v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
int v8; // [rsp+30h] [rbp+8h] BYREF
if ( !*(_BYTE *)(a1 + 568) )
{
v2 = *(float *)(a1 + 432);
v3 = *(_QWORD *)(a1 + 488);
if ( v2 <= *(float *)(a1 + 428) )
{
if ( v3 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
*(_QWORD *)(a1 + 488) = 0;
}
}
else if ( !v3 )
{
v8 = *(unsigned __int8 *)(a1 + 496)
| ((*(unsigned __int8 *)(a1 + 497) | (*(unsigned __int16 *)(a1 + 498) << 8)) << 8);
v4 = cocos2d::CCLayerColor::create((const struct cocos2d::_ccColor4B *)&v8);
*(_QWORD *)(a1 + 488) = v4;
v5 = v4;
v6 = *(_QWORD *)v4;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v8, 1.0, 1.0);
(*(void (__fastcall **)(struct cocos2d::CCLayerColor *, __int64))(v6 + 288))(v5, v7);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 488) + 432LL))(*(_QWORD *)(a1 + 488), 0);
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 488), 100);
}
}
}