//
// ScrollableContentLayer::ensureOwnedContentNode from 0x140082300 to 0x1400823c0 (192 bytes)
//
// 13 xrefs:
// > ScrollableContentLayer::setSectionHeight @ 0x1400822ca
// > AccountReviewPopup::init @ 0x1400afbf0
// > ReportQueuePopup::init @ 0x1400c77d2
// > AutoBackupPopup::init @ 0x1400c9ad8
// > ThreadViewPopup::init @ 0x1400d9dcf
// > FriendPickerPopup::init @ 0x1400e70df
// > MemberListPopup::init @ 0x1400ebc3b
// > InvitesPopup::init @ 0x1400f6c8a
// > DeathTrackerPopup::buildList @ 0x1401099d7
// > DeathTrackerPopup::buildHistory @ 0x14010cc22
// > FriendsProfilePage::init @ 0x140214434
// > IDNameBrowserPopup::init @ 0x1403c20d9
// > ??> @ 0x140912224
//
// 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
//
// Hidden C++ exception states: #wind=1
void __fastcall ScrollableContentLayer::ensureOwnedContentNode(_QWORD *a1)
{
cocos2d::CCNode *v2; // rdi
__int64 v3; // rcx
if ( !_RTDynamicCast(
a1[52],
0,
&cocos2d::CCNode `RTTI Type Descriptor',
&SectionedContentNode `RTTI Type Descriptor',
0) )
{
v2 = (cocos2d::CCNode *)operator new(0x148u);
cocos2d::CCNode::CCNode(v2);
*(_QWORD *)v2 = &SectionedContentNode::`vftable';
*((_QWORD *)v2 + 40) = 0;
cocos2d::CCNode::init(v2);
cocos2d::CCObject::autorelease(v2);
*((_QWORD *)v2 + 40) = a1;
v3 = a1[52];
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 512LL))(v3);
a1[52] = v2;
(*(void (__fastcall **)(_QWORD *, cocos2d::CCNode *))(*a1 + 464LL))(a1, v2);
ScrollableContentLayer::applyContentPosition((__int64)a1);
}
}