//
// sub_100873B40 from 0x100873b40 to 0x100873bcd (141 bytes)
//
// 2 xrefs:
// > ProfilePage::setupCommentsBrowser @ 0x10089f22c
// > sub_10092CE30 @ 0x10092cfc7
//
// 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:36:52 +0000
//
__int64 __fastcall sub_100873B40(__int64 a1)
{
__int64 v2; // rax
int v3; // r14d
__int64 v4; // rdi
v2 = cocos2d::CCDirector::sharedDirector();
v3 = *(_DWORD *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 160LL))(v2) + 128);
if ( *(_DWORD *)(a1 + 428) == 1 )
{
v4 = *(_QWORD *)(a1 + 432);
if ( v4 )
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1024LL))(v4);
*(_QWORD *)(a1 + 432) = 0;
}
*(_DWORD *)(a1 + 428) = 0;
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1000LL))(a1, 0);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1024LL))(a1, (unsigned int)(v3 - 1));
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1000LL))(a1, 1);
}