//
// CreatorLayer::onMultiplayer from 0x1000db7f0 to 0x1000dbab0 (704 bytes)
//
// 1 xrefs:
// > CreatorLayer::init @ 0x1000dad50
//
// This function is hookable on this platform (idp: arm, 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 10:58:59 +0000
//
void __fastcall CreatorLayer::onMultiplayer(_DWORD *a1)
{
int v2; // w8
int v3; // w20
const std::string::value_type *v4; // x1
const std::string::value_type *v5; // x1
char *v6; // x0
__int64 v7; // x20
int v8; // w8
int v9; // w8
std::string __p; // [xsp+0h] [xbp-80h] BYREF
std::string __dst; // [xsp+20h] [xbp-60h] BYREF
std::string v12; // [xsp+40h] [xbp-40h] BYREF
std::string v13; // [xsp+58h] [xbp-28h] BYREF
sub_100009900(&v13, "Versus mode has been delayed,\nbut it's in the works!");
sub_100009900(&v12, "The Keymaster");
v2 = a1[121];
v3 = 2;
if ( v2 <= 5 )
{
if ( v2 <= 2 )
{
if ( v2 != 1 )
{
if ( v2 != 2 )
goto LABEL_26;
v4 = "I blame RobTop.";
goto LABEL_17;
}
v5 = "Yea... It's still delayed.";
}
else if ( v2 == 3 )
{
v5 = "Who else could we blame?\nWe're not even real.";
}
else
{
if ( v2 == 4 )
{
std::string::assign(&v13, "Speak for yourself I'm real!");
std::string::assign(&v12, "Scratch");
v3 = 14;
goto LABEL_26;
}
v5 = "Yea, a real pain in the...";
}
goto LABEL_25;
}
if ( v2 > 8 )
{
if ( v2 != 9 )
{
if ( v2 == 10 )
{
std::string::assign(&v13, "...");
std::string::assign(&v12, "Scratch");
v3 = 52;
}
else if ( v2 == 11 )
{
std::string::assign(&v13, ".....");
v3 = 17;
}
goto LABEL_26;
}
v5 = "You don't have a chop...";
LABEL_25:
std::string::assign(&v13, v5);
goto LABEL_26;
}
if ( v2 == 6 )
{
std::string::assign(&v13, "You're just mad because you don't have a shop.");
std::string::assign(&v12, "Scratch");
v3 = 26;
}
else
{
if ( v2 != 7 )
{
v4 = "I HAVE SAID TOO MUCH!\nQUICKLY TO THE CHOPPER!";
LABEL_17:
std::string::assign(&v13, v4);
std::string::assign(&v12, "Scratch");
v3 = 10;
goto LABEL_26;
}
std::string::assign(&v13, "You have a shop?");
v3 = 4;
}
LABEL_26:
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__dst, v12.__r_.__value_.__l.__data_, v12.__r_.__value_.__l.__size_);
else
__dst = v12;
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
sub_1000097D0(&__p, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_);
else
__p = v13;
v6 = DialogObject::create((__int64)&__dst, (__int64)&__p, v3, 0, 0xFFFFFF, 1.0);
v7 = DialogLayer::create((__int64)v6, 2);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
(*(void (__fastcall **)(_DWORD *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 100);
DialogLayer::updateChatPlacement(v7, 0);
DialogLayer::animateInRandomSide(v7);
v8 = a1[121];
if ( v8 <= 10 )
v9 = v8 + 1;
else
v9 = 0;
a1[121] = v9;
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v13.__r_.__value_.__l.__data_);
}