//
// cocos2d::extension::CCScrollView::addChild from 0x180012fb0 to 0x180013038 (136 bytes)
//
// 4 xrefs:
// > ??> @ 0x18002ab78
// > ??> @ 0x18002b110
// > ??> @ 0x180032408
// > ??> @ 0x18004c404
//
// 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:15:40 +0000
//
void __fastcall cocos2d::extension::CCScrollView::addChild(
cocos2d::extension::CCScrollView *this,
struct cocos2d::CCNode *a2,
unsigned int a3,
unsigned int a4)
{
__int64 v8; // rbx
__int64 v9; // rax
struct cocos2d::CCNode *v10; // rcx
char v11; // [rsp+40h] [rbp+8h] BYREF
(*(void (__fastcall **)(struct cocos2d::CCNode *, _QWORD))(*(_QWORD *)a2 + 432LL))(a2, 0);
v8 = *(_QWORD *)a2;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, 0.0, 0.0);
(*(void (__fastcall **)(struct cocos2d::CCNode *, __int64))(v8 + 288))(a2, v9);
v10 = *((struct cocos2d::CCNode **)this + 56);
if ( v10 == a2 )
cocos2d::CCNode::addChild(this, a2, a3, a4);
else
(*(void (__fastcall **)(struct cocos2d::CCNode *, struct cocos2d::CCNode *, _QWORD, _QWORD))(*(_QWORD *)v10 + 448LL))(
v10,
a2,
a3,
a4);
}