//
// ScrollableContentLayer::ensureOwnedContentNode from 0x6e60e4 to 0x6e61ac (200 bytes)
//
// 3 xrefs:
// > ScrollableContentLayer::setSectionHeight @ 0x6e6204
// > ScrollableContentLayer::setVirtualRows @ 0x6e63b0
// > ??> @ 0x51310
//
// 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 12:51:43 +0000
//
void *__fastcall ScrollableContentLayer::ensureOwnedContentNode(ScrollableContentLayer *this)
{
const void *v2; // x0
void *result; // x0
cocos2d::CCNode *v4; // x20
__int64 v5; // x0
__int64 v6; // x2
v2 = *((const void **)this + 52);
if ( !v2
|| (result = _dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'SectionedContentNode,
0)) == nullptr )
{
v4 = (cocos2d::CCNode *)operator new(0x148u);
cocos2d::CCNode::CCNode(v4);
*((_QWORD *)v4 + 40) = 0;
*(_QWORD *)v4 = &off_1424840;
cocos2d::CCNode::init(v4);
cocos2d::CCObject::autorelease(v4);
*((_QWORD *)v4 + 40) = this;
v5 = *((_QWORD *)this + 52);
if ( v5 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5);
v6 = *(_QWORD *)this;
*((_QWORD *)this + 52) = v4;
(*(void (__fastcall **)(ScrollableContentLayer *, cocos2d::CCNode *))(v6 + 456))(this, v4);
return (void *)ScrollableContentLayer::applyContentPosition(this);
}
return result;
}