//
// cocos2d::extension::CCScrollView::addChild_2 from 0x1003e57d0 to 0x1003e585b (139 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b3cf08
// > ??> @ 0x100b3f438
//
// 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:29:47 +0000
//
__int64 __fastcall cocos2d::extension::CCScrollView::addChild_2(
__int64 a1,
_DWORD *a2,
unsigned int a3,
unsigned int a4)
{
__int64 v4; // rax
_DWORD *v7; // rax
float v9[12]; // [rsp+0h] [rbp-30h] BYREF
*(_QWORD *)v9 = v4;
(*(void (__fastcall **)(_DWORD *, _QWORD))(*(_QWORD *)a2 + 440LL))(a2, 0);
sub_100278250(v9, 0.0, 0.0);
(*(void (__fastcall **)(_DWORD *, float *))(*(_QWORD *)a2 + 296LL))(a2, v9);
v7 = *(_DWORD **)(a1 + 440);
if ( v7 == a2 )
return cocos2d::CCNode::addChild(a1, a2, a3, a4);
else
return (*(__int64 (__fastcall **)(_QWORD, _DWORD *, _QWORD, _QWORD))(*(_QWORD *)v7 + 472LL))(
*(_QWORD *)(a1 + 440),
a2,
a3,
a4);
}