//
// sub_1009314B0 from 0x1009314b0 to 0x1009315d0 (288 bytes)
//
// 1 xrefs:
// > sub_100951350 @ 0x100951785
//
// 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:38:24 +0000
//
void __fastcall sub_1009314B0(__int64 a1, std::string *a2)
{
unsigned int v3; // eax
__int64 v4; // rax
__int64 v5; // rax
_DWORD *v6; // rdi
_QWORD *v7; // rax
if ( !*(_QWORD *)(a1 + 1040) && !*(_BYTE *)(a1 + 790) )
{
v3 = (unsigned int)a2->__r_.__value_.__l.0;
if ( (v3 & 1) != 0 )
{
if ( !a2->__r_.__value_.__l.__size_ )
return;
}
else if ( !(v3 >> 1) )
{
return;
}
v4 = GameLevelManager::sharedState();
if ( sub_100573460(v4, *(_DWORD *)(*(_QWORD *)(a1 + 752) + 56LL), a2, 0) )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 672;
v5 = GameLevelManager::sharedState();
GameLevelManager::makeTimeStamp(v5, "threadSearch");
std::string::operator=((std::string *)(a1 + 1112), a2);
v6 = *(_DWORD **)(a1 + 832);
if ( v6 )
{
cocos2d::CCObject::release(v6);
*(_QWORD *)(a1 + 832) = 0;
}
v7 = LoadingCircle::create();
*(_QWORD *)(a1 + 832) = v7;
v7[69] = *(_QWORD *)(a1 + 584);
*((_BYTE *)v7 + 560) = 0;
cocos2d::CCObject::retain((__int64)v7);
LoadingCircle::show(*(_QWORD *)(a1 + 832));
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 832) + 544LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 832) + 544LL),
a1 + 848);
}
}
}