//
// ScrollableContentLayer::ensureOwnedContentNode from 0x3f68c4 to 0x3f6944 (128 bytes)
//
// 2 xrefs:
// > ScrollableContentLayer::setSectionHeight @ 0x3f6984
// > ScrollableContentLayer::setVirtualRows @ 0x3f6a8e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:17 +0000
//
void __fastcall ScrollableContentLayer::ensureOwnedContentNode(ScrollableContentLayer *this, int a2, int a3, int a4)
{
const void *v5; // r0
cocos2d::CCNode *v6; // r4
int v7; // r0
int v8; // r3
int v9; // r1
int v10; // r2
v5 = *((const void **)this + 80);
if ( !v5
|| !_dynamic_cast(
v5,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'SectionedContentNode,
0) )
{
v6 = (cocos2d::CCNode *)operator new(0x10Cu);
cocos2d::CCNode::CCNode(v6);
*(_DWORD *)v6 = &off_C8BE60;
*((_DWORD *)v6 + 66) = 0;
cocos2d::CCNode::init(v6);
cocos2d::CCObject::autorelease(v6);
*((_DWORD *)v6 + 66) = this;
v7 = *((_DWORD *)this + 80);
if ( v7 )
(*(void (__fastcall **)(int))(*(_DWORD *)v7 + 260))(v7);
v8 = *(_DWORD *)this;
*((_DWORD *)this + 80) = v6;
(*(void (__fastcall **)(ScrollableContentLayer *, cocos2d::CCNode *))(v8 + 228))(this, v6);
ScrollableContentLayer::applyContentPosition(this, v9, v10, a4);
}
}