//
// LevelInfoLayer::confirmMoveToTop from 0x1402ff1b0 to 0x1402ff2e4 (308 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::init @ 0x1402f9177
// > ??> @ 0x1406d4304
// > ??> @ 0x1406d4310
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void LevelInfoLayer::confirmMoveToTop(LevelInfoLayer *a1, cocos2d::CCObject *a2)
{
int v2; // ebx
__int64 v3; // rax
FLAlertLayer *v4; // rbx
__int128 v5; // [rsp+50h] [rbp-48h] BYREF
__int64 v6; // [rsp+60h] [rbp-38h]
__int64 v7; // [rsp+68h] [rbp-30h]
_BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF
if ( !a1->m_isBusy )
{
v2 = (_DWORD)a1 + 440;
if ( !a1 )
v2 = 0;
v5 = 0;
*(_QWORD *)&v5 = sub_14003AA10(0x30u);
v6 = 46;
v7 = 47;
strcpy((char *)v5, "Move this level to the top of the levels list?");
v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);
v4 = FLAlertLayer::create(
v2,
(int)"Move to Top",
v3,
(__int64)&unk_140547160,
(__int64)"YES",
1133903872,
0,
0,
1065353216);
sub_14003A830((__int64)&v5);
v4->setTag(v4, 11);
v4->show(v4);
}
}