//
// sub_1002B10F0 from 0x1002b10f0 to 0x1002b1212 (290 bytes)
//
// 0 xrefs:
//
// 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:28:01 +0000
//
__int64 __fastcall sub_1002B10F0(__int64 a1, __int64 a2, __int64 a3)
{
double v4; // xmm0_8
__int64 v5; // rax
_BYTE *v6; // r14
_BYTE *v7; // rdi
__int64 v8; // r14
char *v9; // rax
__int64 result; // rax
std::string v11; // [rsp+0h] [rbp-30h] BYREF
*(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];
v6 = *(_BYTE **)(v5 + 544);
v6[12448] = 1;
v6[12744] = 1;
cocos2d::ZipUtils::decompressString(&v11, (char *)(*(_QWORD *)(a1 + 504) + 1472LL), 0, 11);
GJBaseGameLayer::setupReplay((__int64)v6, (__int128 *)&v11);
if ( (*(_BYTE *)&v11.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v11.__r_.__value_.__l.__data_);
v7 = v6;
(*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)v6 + 1608LL))(v6, v4);
v6[12664] = 1;
v6[12450] = 1;
while ( *((_QWORD *)v6 + 1615) != *((_QWORD *)v6 + 1616) )
{
v7 = v6;
(*(void (__fastcall **)(_BYTE *, float))(*(_QWORD *)v6 + 40LL))(v6, 0.0041666669);
}
v6[12450] = 0;
v6[12448] = 0;
v6[12664] = 0;
v8 = cocos2d::CCDirector::sharedDirector(v7, &v11);
v9 = cocos2d::CCTransitionFade::create_1(*(_QWORD *)(a1 + 712), 0.5);
cocos2d::CCDirector::replaceScene(v8, v9);
result = cocos2d::CCObject::release(*(_QWORD *)(a1 + 712));
*(_QWORD *)(a1 + 712) = 0;
return result;
}