//
// cocos2d::extension::CCScrollView::addChild_2 from 0x1003f85f0 to 0x1003f867b (139 bytes)
//
// 2 xrefs:
// > ??> @ 0x100933338
// > ??> @ 0x100935780
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::extension::CCScrollView::addChild_2(
cocos2d::extension::CCScrollView *a1,
cocos2d::CCNode *a2,
int a3,
int a4)
{
__int64 v4; // rax
cocos2d::CCNode *m_pContainer; // rax
float v8[12]; // [rsp+0h] [rbp-30h] BYREF
*(_QWORD *)v8 = v4;
((void (__fastcall *)(cocos2d::CCNode *, _QWORD))a2->ignoreAnchorPointForPosition)(a2, 0);
sub_10028CBE0(v8, 0.0, 0.0);
((void (__fastcall *)(cocos2d::CCNode *, float *))a2->setAnchorPoint)(a2, v8);
m_pContainer = a1->m_pContainer;
if ( m_pContainer == a2 )
cocos2d::CCNode::addChild(a1, (int)a2, a3);
else
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCNode *, _QWORD, _QWORD))m_pContainer->addChild_1)(
a1->m_pContainer,
a2,
(unsigned int)a3,
(unsigned int)a4);
}