//
// sub_10093EE20 from 0x10093ee20 to 0x10093ef8c (364 bytes)
//
// 1 xrefs:
// > sub_10093E4A0 @ 0x10093e851
//
// 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:30 +0000
//
__int64 __fastcall sub_10093EE20(__int64 a1)
{
__int64 v2; // rdi
__int64 v3; // rdi
__int64 v4; // rdi
__int64 v6; // rsi
void *v7; // r14
_QWORD *v8; // rdi
__int64 v9; // rdi
__int64 v10; // rdi
__int64 v11; // rdi
void *v12[3]; // [rsp+0h] [rbp-40h] BYREF
_WORD v13[8]; // [rsp+18h] [rbp-28h] BYREF
void *v14; // [rsp+28h] [rbp-18h]
if ( *(_BYTE *)(a1 + 808) == 1 )
{
*(_BYTE *)(a1 + 808) = 0;
*(_DWORD *)(a1 + 676) = 0;
v2 = *(_QWORD *)(a1 + 920);
if ( v2 )
ButtonSprite::setString(v2, "Online");
v3 = *(_QWORD *)(a1 + 904);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 344LL))(v3, 0);
v4 = *(_QWORD *)(a1 + 912);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 344LL))(v4, 0);
sub_10095D090(a1);
return sub_10093F770(a1);
}
v6 = *(_QWORD *)(a1 + 896);
if ( v6 )
{
CCTextInputNode::getString(v12, v6);
if ( ((__int64)v12[0] & 1) == 0 )
{
if ( !(LOBYTE(v12[0]) >> 1) )
goto LABEL_16;
LABEL_14:
v8 = *(_QWORD **)(a1 + 896);
v13[0] = 0;
CCTextInputNode::setString(v8, (__int64)v13);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
goto LABEL_16;
}
v7 = v12[1];
operator delete(v12[2]);
if ( v7 )
goto LABEL_14;
}
LABEL_16:
std::string::assign((std::string *)(a1 + 872), "");
*(_BYTE *)(a1 + 808) = 1;
v9 = *(_QWORD *)(a1 + 920);
if ( v9 )
ButtonSprite::setString(v9, "Saved");
v10 = *(_QWORD *)(a1 + 904);
if ( v10 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 344LL))(v10, 1);
v11 = *(_QWORD *)(a1 + 912);
if ( v11 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 344LL))(v11, 1);
sub_10093F530(a1);
return sub_10095CDD0(a1, 0);
}