//
// sub_100930F70 from 0x100930f70 to 0x10093110a (410 bytes)
//
// 3 xrefs:
// > sub_10092F710 @ 0x10092f717
// > sub_100930F60 @ 0x100930f65
// > ThreadViewPopup::threadMessagesFailed @ 0x1009361fb
//
// 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_100930F70(__int64 a1)
{
__int64 v2; // rax
int v3; // esi
char v4; // r14
__int64 v5; // rax
unsigned int v6; // ecx
char v7; // al
int v8; // edx
__int64 v9; // rdi
int v10; // r14d
_QWORD *v11; // rax
_DWORD *v12; // rdi
_QWORD *v13; // rax
unsigned __int8 v14[16]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
if ( !*(_QWORD *)(a1 + 1040) && !*(_BYTE *)(a1 + 790) )
{
v2 = GameLevelManager::sharedState();
v3 = *(_DWORD *)(*(_QWORD *)(a1 + 752) + 56LL);
*(_WORD *)v14 = 0;
v4 = sub_100572E00(v2, v3, 0, 0, -1, 0, v14);
if ( (v14[0] & 1) != 0 )
operator delete(__p);
if ( v4 )
{
*(_QWORD *)(GameLevelManager::sharedState() + 1264) = a1 + 672;
*(_BYTE *)(a1 + 1168) = 0;
*(_BYTE *)(a1 + 789) = 0;
*(_DWORD *)(a1 + 784) = 0;
*(_OWORD *)(a1 + 1176) = 0;
v5 = *(_QWORD *)(a1 + 752);
if ( *(_BYTE *)(v5 + 264) != 1
|| (v6 = *(_DWORD *)(v5 + 268) - 2, v6 >= 6)
|| (v7 = 1, v8 = 45, !_bittest(&v8, v6)) )
{
v7 = *(_BYTE *)(a1 + 790);
}
v9 = *(_QWORD *)(a1 + 912);
if ( v9 )
{
v10 = (unsigned __int8)v7 ^ 1;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 1056LL))(v9, (unsigned __int8)v7 ^ 1u);
v11 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 912) + 1072LL))(*(_QWORD *)(a1 + 912));
ButtonSprite::setColor(v11, -v10 | 0x7D7D7D);
}
v12 = *(_DWORD **)(a1 + 832);
if ( v12 )
{
cocos2d::CCObject::release(v12);
*(_QWORD *)(a1 + 832) = 0;
}
v13 = LoadingCircle::create();
*(_QWORD *)(a1 + 832) = v13;
v13[69] = *(_QWORD *)(a1 + 584);
*((_BYTE *)v13 + 560) = 0;
cocos2d::CCObject::retain((__int64)v13);
LoadingCircle::show(*(_QWORD *)(a1 + 832));
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(*(_QWORD *)(a1 + 832) + 544LL) + 184LL))(
*(_QWORD *)(*(_QWORD *)(a1 + 832) + 544LL),
a1 + 848);
}
}
}