//
// sub_1004193C0 from 0x1004193c0 to 0x10041950b (331 bytes)
//
// 6 xrefs:
// > cocos2d::extension::CCTableView::dCCTableView @ 0x1004195a5
// > sub_1004195B0 @ 0x1004195bc
// > sub_1004195D0 @ 0x1004195dc
// > sub_1004195F0 @ 0x1004195f9
// > sub_100419610 @ 0x100419623
// > sub_100419640 @ 0x100419653
//
// 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:30:12 +0000
//
__int64 __fastcall sub_1004193C0(_QWORD *a1)
{
_QWORD **v2; // r14
__int64 v3; // rdi
__int64 v4; // rdi
void *v5; // rdi
*a1 = off_100B3F260;
a1[40] = off_100B3F708;
a1[41] = &off_100B3F778;
a1[42] = off_100B3F790;
a1[43] = off_100B3F7B0;
a1[44] = off_100B3F7D8;
a1[71] = off_100B3F808;
v2 = (_QWORD **)a1[74];
if ( v2 )
{
sub_10001ADF0(a1[74], v2[1]);
operator delete(v2);
a1[74] = 0;
}
v3 = a1[78];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = a1[79];
if ( v4 )
cocos2d::CCObject::release(v4);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 0);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 1);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 2);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 3);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 4);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 5);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 6);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 7);
cocos2d::extension::CCScrollView::unregisterScriptHandler(a1, 8);
v5 = (void *)a1[75];
if ( v5 )
{
a1[76] = v5;
operator delete(v5);
}
return cocos2d::extension::CCScrollView::dCCScrollView(a1);
}