//
// ScrollableContentLayer::ensureOwnedContentNode from 0x10096cf10 to 0x10096cfc1 (177 bytes)
//
// 2 xrefs:
// > sub_10096CEC0 @ 0x10096cef7
// > sub_10096D680 @ 0x10096d6a2
//
// 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 12:38:51 +0000
//
void __fastcall ScrollableContentLayer::ensureOwnedContentNode(_QWORD *a1)
{
const void *v2; // rdi
_QWORD *v3; // r14
__int64 v4; // rdi
v2 = (const void *)a1[52];
if ( !v2
|| !__dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'SectionedContentNode,
0) )
{
v3 = operator new(0x148u);
cocos2d::CCNode::CCNode((__int64)v3);
*v3 = off_100BCDF00;
v3[40] = 0;
cocos2d::CCNode::init();
cocos2d::CCObject::autorelease((__int64)v3);
v3[40] = a1;
v4 = a1[52];
if ( v4 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 520LL))(v4);
a1[52] = v3;
(*(void (__fastcall **)(_QWORD *, _QWORD *))(*a1 + 456LL))(a1, v3);
ScrollableContentLayer::applyContentPosition((__int64)a1);
}
}