//
// ScrollableContentLayer::setSectionHeight from 0x140082290 to 0x1400822f5 (101 bytes)
//
// 2 xrefs:
// > SFXFolderPickerPopup::init @ 0x1400c48de
// > ??> @ 0x140912218
//
// 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
//
__int64 __fastcall ScrollableContentLayer::setSectionHeight(__int64 a1, float a2)
{
__int64 v3; // rcx
__int64 result; // rax
if ( a2 <= 0.0 || *(float *)(a1 + 520) > 0.0 )
{
*(float *)(a1 + 520) = a2;
}
else
{
v3 = *(_QWORD *)(a1 + 416);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 488LL))(v3);
result = ScrollableContentLayer::ensureOwnedContentNode(a1);
*(float *)(a1 + 520) = a2;
}
return result;
}