//
// sub_100386730 from 0x100386730 to 0x100386849 (281 bytes)
//
// 4 xrefs:
// > ChallengesPage::dChallengesPage @ 0x100386865
// > sub_100386870 @ 0x10038687c
// > sub_100386890 @ 0x100386899
// > sub_1003868B0 @ 0x1003868c3
//
// 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:10 +0000
//
__int64 __fastcall sub_100386730(_QWORD *a1, double a2)
{
__int64 v3; // rax
__int64 v4; // rdi
__int64 v5; // rdi
*a1 = off_100B2C040;
a1[40] = off_100B2C5B0;
a1[41] = &off_100B2C620;
a1[42] = off_100B2C638;
a1[43] = off_100B2C658;
a1[44] = off_100B2C680;
a1[51] = off_100B2C6B0;
a1[54] = off_100B2C730;
a1[68] = off_100B2C750;
a1[83] = &off_100B2C798;
a1[84] = off_100B2C7B0;
a1[85] = &off_100B2C7D0;
if ( *(_QWORD **)(GameLevelManager::sharedState(a2) + 1424) == a1 + 84 )
*(_QWORD *)(GameLevelManager::sharedState(a2) + 1424) = 0;
v3 = a1[90];
if ( v3 )
*(_QWORD *)(v3 + 408) = 0;
v4 = a1[91];
if ( v4 )
cocos2d::CCObject::release(v4);
v5 = a1[86];
if ( v5 )
cocos2d::CCObject::release(v5);
return sub_1004936F0(a1);
}