//
// CreatorSettingsPopup::onDescription from 0xc976e0 to 0xc9799c (700 bytes)
//
// 5 xrefs:
// > ??> @ 0xcb770
// > CreatorSettingsPopup::init @ 0xc970e0
// > CreatorSettingsPopup::init @ 0xc97250
// > CreatorSettingsPopup::init @ 0xc973ac
// > ??> @ 0x1545f80
//
// 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 13:05:54 +0000
//
__int64 __fastcall CreatorSettingsPopup::onDescription(CreatorSettingsPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v4; // x1
EmoteSprite *v5; // x0
int v6; // w0
__int64 *v7; // x20
__int64 *v8; // x0
__int64 v9; // x1
__int64 v11; // [xsp+50h] [xbp+40h] BYREF
size_t v12; // [xsp+58h] [xbp+48h]
void *v13; // [xsp+60h] [xbp+50h]
__int64 v14; // [xsp+68h] [xbp+58h] BYREF
size_t v15; // [xsp+70h] [xbp+60h]
void *v16; // [xsp+78h] [xbp+68h]
__int64 v17[2]; // [xsp+80h] [xbp+70h] BYREF
void *v18; // [xsp+90h] [xbp+80h]
__int64 v19[2]; // [xsp+98h] [xbp+88h] BYREF
void *v20; // [xsp+A8h] [xbp+98h]
__int64 v21; // [xsp+B0h] [xbp+A0h] BYREF
__int64 v22; // [xsp+B8h] [xbp+A8h]
void *v23; // [xsp+C0h] [xbp+B0h]
v21 = 0;
v3 = *((_QWORD *)this + 130);
v22 = 0;
v23 = nullptr;
if ( (*(_BYTE *)(v3 + 368) & 1) != 0 )
{
std::string::__init(&v21, *(void **)(v3 + 384), *(_QWORD *)(v3 + 376));
}
else
{
v4 = *(_QWORD *)(v3 + 376);
v21 = *(_QWORD *)(v3 + 368);
v22 = v4;
v23 = *(void **)(v3 + 384);
}
LevelTools::base64DecodeString((__int64)&v21, &v11);
if ( (v21 & 1) != 0 )
operator delete(v23);
v14 = 0;
v15 = 0;
v16 = nullptr;
if ( (v11 & 1) != 0 )
{
std::string::__init(&v14, v13, v12);
}
else
{
v16 = v13;
v14 = v11;
v15 = v12;
}
v17[0] = 0;
v17[1] = 0;
v18 = nullptr;
std::string::__init(v17, "Description", 0xBu);
v19[0] = 0;
v19[1] = 0;
v20 = nullptr;
std::string::__init(v19, "Update Description", 0x12u);
v21 = 0;
v22 = 0;
v23 = nullptr;
v5 = (EmoteSprite *)std::string::__init(&v21, "Update", 6u);
v6 = EmoteSprite::maxEmotesComment(v5);
v7 = (__int64 *)SetTextPopup::create((char *)&v14, (char *)v17, 180, (char *)v19, (char *)&v21, 0, 0, 4, 0.0, v6);
if ( (v21 & 1) != 0 )
operator delete(v23);
if ( (v19[0] & 1) != 0 )
{
operator delete(v20);
if ( (v17[0] & 1) == 0 )
goto LABEL_11;
}
else if ( (v17[0] & 1) == 0 )
{
goto LABEL_11;
}
operator delete(v18);
LABEL_11:
if ( (v14 & 1) != 0 )
operator delete(v16);
v8 = (__int64 *)v7[84];
if ( v8 )
CCTextInputNode::setUnicodeText(v8, 1);
v9 = *v7;
v7[93] = (__int64)this + 1032;
(*(void (__fastcall **)(__int64 *))(v9 + 1312))(v7);
if ( (v11 & 1) != 0 )
operator delete(v13);
return _stack_chk_guard;
}