//
// sub_100525E90 from 0x100525e90 to 0x100525f44 (180 bytes)
//
// 2 xrefs:
// > ScrollableContentLayer::ensureOwnedContentNode @ 0x100525e78
// > sub_1005263B4 @ 0x1005263dc
//
// 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
//
void *__fastcall sub_100525E90(_QWORD *a1)
{
const void *v2; // x0
void *result; // x0
_QWORD *v4; // x20
__int64 v5; // x0
v2 = (const void *)a1[52];
if ( !v2
|| (result = __dynamic_cast(
v2,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&off_1009A0630,
0)) == nullptr )
{
v4 = operator new(0x148u);
cocos2d::CCNode::CCNode((__int64)v4);
*v4 = &off_1009A0C58;
v4[40] = 0;
cocos2d::CCNode::init();
cocos2d::CCObject::autorelease((__int64)v4);
v4[40] = a1;
v5 = a1[52];
if ( v5 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 520LL))(v5);
a1[52] = v4;
(*(void (__fastcall **)(_QWORD *, _QWORD *))(*a1 + 456LL))(a1, v4);
return (void *)ScrollableContentLayer::applyContentPosition((__int64)a1);
}
return result;
}