//
// LevelInfoLayer::numberInputClosed from 0x10002a860 to 0x10002a99c (316 bytes)
//
// 2 xrefs:
// > sub_10002A9D4 @ 0x10002a9d8
// > ??> @ 0x1007649e0
//
// 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
//
void __fastcall LevelInfoLayer::numberInputClosed(LevelInfoLayer *a1, NumberInputLayer *a2)
{
std::string *capacitym1; // x20
std::string *p_dst; // x0
int v5; // w21
int v6; // w0
cocos2d::CCObject *v7; // x1
int v8; // w8
__int64 v10; // x20
void *__p[2]; // [xsp+8h] [xbp-58h] BYREF
char v12; // [xsp+1Fh] [xbp-41h]
std::string __dst; // [xsp+20h] [xbp-40h] BYREF
if ( a2->m_inputString.m_data.m_short.shortStorage.__elems_[22] < 0 )
sub_1000097D0(&__dst, (void *)a2->m_inputString.m_data.m_long.capacitym1, a2->m_inputString.m_data.m_long.size);
else
__dst = a2->m_inputString;
if ( __dst.m_data.m_short.shortStorage.__elems_[22] < 0 )
{
capacitym1 = (std::string *)__dst.m_data.m_long.capacitym1;
p_dst = (std::string *)__dst.m_data.m_long.capacitym1;
}
else
{
capacitym1 = &__dst;
p_dst = &__dst;
}
v5 = atoi((const char *)p_dst) + 1000000;
v6 = atoi((const char *)capacitym1);
v8 = a1->m_level->m_password.random - a1->m_level->m_password.seed;
if ( v5 == v8 || v6 + 10000 == v8 )
{
LevelInfoLayer::confirmClone(a1, v7);
}
else
{
sub_100009900(__p, "Incorrect password!");
v10 = FLAlertLayer::create_1(0, "Error", __p, "OK", 0, 300.0);
if ( v12 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1288LL))(v10);
++a1->m_level->m_failedPasswordAttempts;
}
if ( __dst.m_data.m_short.shortStorage.__elems_[22] < 0 )
operator delete((void *)__dst.m_data.m_long.capacitym1);
}