//
// ScrollableContentLayer::ensureOwnedContentNode from 0x100525e34 to 0x100525e90 (92 bytes)
//
// 6 xrefs:
// > MemberListPopup::init @ 0x100506e64
// > InvitesPopup::init @ 0x10050e700
// > ReportQueuePopup::init @ 0x1005231c8
// > sub_100527F18 @ 0x10052875c
// > AutoBackupPopup::init @ 0x10052fbb4
// > AccountReviewPopup::init @ 0x1005411bc
//
// 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::ensureOwnedContentNode(__int64 result, float a2)
{
__int64 v3; // x19
__int64 v4; // x0
v3 = result;
if ( a2 > 0.0 && *(float *)(result + 520) <= 0.0 )
{
v4 = *(_QWORD *)(result + 416);
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 496LL))(v4);
result = sub_100525E90(v3);
}
*(float *)(v3 + 520) = a2;
return result;
}