//
// ScrollableContentLayer::setContentHeight from 0x1005249fc to 0x100524a70 (116 bytes)
//
// 34 xrefs:
// > KeybindingsLayer::buildContentForTab @ 0x100024ea8
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100041ce0
// > SetGroupIDLayer::updateGroupIDButtons @ 0x100041d18
// > CCTextInputNode::updateLabel @ 0x1001fb6c0
// > sub_1004ACAD0 @ 0x1004acd74
// > sub_1004AD9B0 @ 0x1004adc94
// > sub_1004AD9B0 @ 0x1004adeac
// > sub_1004AE3D8 @ 0x1004ae568
// > sub_1004AE3D8 @ 0x1004af120
// > sub_1004AF290 @ 0x1004af458
// > sub_1004AF290 @ 0x1004af790
// > sub_1004BEB94 @ 0x1004bfc08
// > sub_1004C2E30 @ 0x1004c3200
// > EditorCommandsPopup::layoutCommandButtons @ 0x1004c59e8
// > EditorSFXActionConfigLayer::refreshRows @ 0x1004c6d44
// > sub_1004D1798 @ 0x1004d18f0
// > sub_1004D1798 @ 0x1004d1ba8
// > sub_1004D1798 @ 0x1004d1c38
// > EditorSoundsLayer::buildContentForTab @ 0x1004d80d0
// > EmotePickerPopup::layoutEmoteGrid @ 0x1004dba14
// > FindObjectPopup::onBuildWindowContent @ 0x1004dda68
// > sub_100507288 @ 0x100507914
// > InvitesPopup::buildRows @ 0x10050fef4
// > sub_100518264 @ 0x100518594
// > sub_100518264 @ 0x100519120
// > PagedListPopup::clearPageContent @ 0x10051b1d0
// > sub_100523800 @ 0x100524404
// > sub_100526DA8 @ 0x100527240
// > sub_100528E64 @ 0x100529750
// > sub_10053053C @ 0x100530e6c
// > sub_10053053C @ 0x100530ea4
// > sub_1005452FC @ 0x1005463bc
// > sub_1005467AC @ 0x1005477d0
// > sub_100547AA0 @ 0x100548e6c
//
// This function is hookable on this platform (idp: arm, 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:07:14 +0000
//
__int64 __fastcall ScrollableContentLayer::setContentHeight(__int64 a1, float a2)
{
float v3; // s1
float v4; // s2
__int64 v5; // x8
float v6; // s0
*(float *)(a1 + 432) = a2;
v3 = *(float *)(a1 + 436);
v4 = 0.0;
if ( v3 < 0.0 )
goto LABEL_7;
v5 = 428;
if ( *(_BYTE *)(a1 + 584) )
v5 = 424;
v6 = a2 - *(float *)(a1 + v5);
v4 = 0.0;
if ( v6 >= 0.0 )
v4 = v6;
if ( v3 > v4 )
{
LABEL_7:
*(float *)(a1 + 436) = v4;
*(_DWORD *)(a1 + 472) = 0;
}
ScrollableContentLayer::ensureScrollThumb(a1);
return ScrollableContentLayer::applyContentPosition(a1);
}