//
// sub_10044F9C4 from 0x10044f9c4 to 0x10044fb68 (420 bytes)
//
// 2 xrefs:
// > sub_10044F7A8 @ 0x10044f80c
// > sub_10044F83C @ 0x10044f8a0
//
// 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 11:05:19 +0000
//
void __fastcall sub_10044F9C4(__int64 a1)
{
std::string *v2; // x0
int v3; // w8
int v4; // w20
const std::string::value_type *v5; // x1
const std::string::value_type *v6; // x1
const std::string::value_type *v7; // x1
char *v8; // x0
__int64 v9; // x20
int v10; // w8
int v11; // w8
void *__p[2]; // [xsp+0h] [xbp-60h] BYREF
__int64 v13; // [xsp+10h] [xbp-50h]
void *v14[2]; // [xsp+20h] [xbp-40h] BYREF
char v15; // [xsp+37h] [xbp-29h]
__int128 v16; // [xsp+38h] [xbp-28h] BYREF
__int64 v17; // [xsp+48h] [xbp-18h]
v2 = (std::string *)sub_100009900(&v16, "");
v3 = *(_DWORD *)(a1 + 716);
v4 = 37;
if ( v3 <= 2 )
{
if ( !v3 )
{
v5 = "You need a Music Customizer to change menu and practice music.";
goto LABEL_13;
}
if ( v3 != 1 )
{
if ( v3 != 2 )
goto LABEL_19;
v5 = "Find me when you can afford it.\nI need the Mana Orbs...";
goto LABEL_13;
}
v7 = "Lucky for you I have one in my shop.\nBut they are very expensive.";
}
else
{
if ( v3 <= 4 )
{
if ( v3 != 3 )
{
v5 = "... is something I would never say.";
LABEL_13:
std::string::assign(v2, v5);
goto LABEL_19;
}
v6 = "All this clicking makes me want to give you the item for free!";
goto LABEL_15;
}
if ( v3 != 5 )
{
if ( v3 != 6 )
goto LABEL_19;
v6 = "I am The Mechanic, not Santa Claus. I don't work for free.";
LABEL_15:
std::string::assign(v2, v6);
v4 = 39;
goto LABEL_19;
}
v7 = "You really are persistent, I will give you that.";
}
std::string::assign(v2, v7);
v4 = 38;
LABEL_19:
sub_100009900(v14, "The Mechanic");
if ( SHIBYTE(v17) < 0 )
{
sub_1000097D0(__p, (void *)v16, *((unsigned __int64 *)&v16 + 1));
}
else
{
*(_OWORD *)__p = v16;
v13 = v17;
}
v8 = DialogObject::create((__int64)v14, (__int64)__p, v4, 0, 0xFFFFFF, 1.0);
v9 = DialogLayer::create((__int64)v8, 4);
if ( SHIBYTE(v13) < 0 )
operator delete(__p[0]);
if ( v15 < 0 )
operator delete(v14[0]);
DialogLayer::addToMainScene(v9);
DialogLayer::updateChatPlacement(v9, 0);
sub_1000909DC(v9, 1);
v10 = *(_DWORD *)(a1 + 716);
if ( v10 <= 5 )
v11 = v10 + 1;
else
v11 = 0;
*(_DWORD *)(a1 + 716) = v11;
if ( SHIBYTE(v17) < 0 )
operator delete((void *)v16);
}