//
// CreatorLayer::onMultiplayer from 0x100283140 to 0x1002833fd (701 bytes)
//
// 1 xrefs:
// > CreatorLayer::init @ 0x1002823fe
//
// 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:27:44 +0000
//
void __fastcall CreatorLayer::onMultiplayer(_DWORD *a1)
{
unsigned int v1; // r14d
const std::string::value_type *v2; // rsi
const std::string::value_type *v3; // rsi
__int64 v4; // rax
__int64 v5; // r14
int v6; // eax
int v7; // edx
__int128 v8; // [rsp+0h] [rbp-80h] BYREF
void *data; // [rsp+10h] [rbp-70h]
__int128 v10; // [rsp+20h] [rbp-60h] BYREF
void *__p; // [rsp+30h] [rbp-50h]
std::string v12; // [rsp+40h] [rbp-40h] BYREF
std::string v13; // [rsp+58h] [rbp-28h] BYREF
v13.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x40u);
v13.__r_.__value_.__r.__words[0] = 65;
v13.__r_.__value_.__l.__size_ = 60;
strcpy(v13.__r_.__value_.__l.__data_, "Versus mode has been delayed,\nbut it's in the works!");
v12.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)26;
strcpy(v12.__r_.__value_.__s.__data_, "The Keymaster");
v1 = 2;
switch ( a1[121] )
{
case 1:
v2 = "Yea... It's still delayed.";
goto LABEL_14;
case 2:
v3 = "I blame RobTop.";
goto LABEL_9;
case 3:
v2 = "Who else could we blame?\nWe're not even real.";
goto LABEL_14;
case 4:
std::string::assign(&v13, "Speak for yourself I'm real!");
v1 = 14;
std::string::assign(&v12, "Scratch");
break;
case 5:
v2 = "Yea, a real pain in the...";
goto LABEL_14;
case 6:
std::string::assign(&v13, "You're just mad because you don't have a shop.");
v1 = 26;
std::string::assign(&v12, "Scratch");
break;
case 7:
v1 = 4;
std::string::assign(&v13, "You have a shop?");
break;
case 8:
v3 = "I HAVE SAID TOO MUCH!\nQUICKLY TO THE CHOPPER!";
LABEL_9:
std::string::assign(&v13, v3);
v1 = 10;
std::string::assign(&v12, "Scratch");
break;
case 9:
v2 = "You don't have a chop...";
LABEL_14:
std::string::assign(&v13, v2);
break;
case 0xA:
std::string::assign(&v13, "...");
v1 = 52;
std::string::assign(&v12, "Scratch");
break;
case 0xB:
v1 = 17;
std::string::assign(&v13, ".....");
break;
default:
break;
}
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v8, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_);
}
else
{
data = v12.__r_.__value_.__l.__data_;
v8 = *(_OWORD *)&v12.__r_.__value_.__l.0;
}
if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v10, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_);
}
else
{
__p = v13.__r_.__value_.__l.__data_;
v10 = *(_OWORD *)&v13.__r_.__value_.__l.0;
}
v4 = DialogObject::create(&v8, &v10, v1, 0, 0xFFFFFF, 1.0);
v5 = DialogLayer::create(v4, 2);
if ( (v10 & 1) != 0 )
operator delete(__p);
if ( (v8 & 1) != 0 )
operator delete(data);
(*(void (__fastcall **)(_DWORD *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 100);
DialogLayer::updateChatPlacement(v5, 0);
DialogLayer::animateInRandomSide(v5);
v6 = a1[121];
v7 = 0;
if ( v6 < 11 )
v7 = v6 + 1;
a1[121] = v7;
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v12.__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v13.__r_.__value_.__l.__data_);
}