//
// LevelInfoLayer::numberInputClosed from 0x49b34c to 0x49b434 (232 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::numberInputClosed @ 0x49b44c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:49:45 +0000
//
int __fastcall LevelInfoLayer::numberInputClosed(LevelInfoLayer *this, NumberInputLayer *a2)
{
int v3; // r5
char *v4; // r0
int v5; // r6
char *v6; // r0
int v7; // r0
int v8; // r3
int *v10; // r5
int v11[2]; // [sp+Ch] [bp-1Ch] BYREF
char *v12; // [sp+14h] [bp-14h]
int v13[3]; // [sp+18h] [bp-10h] BYREF
std::string::basic_string(v11, (int)a2 + 552);
v3 = v11[0] & 1;
if ( v3 )
v4 = v12;
else
v4 = (char *)v11 + 1;
v5 = atoi(v4) + 1000000;
if ( v3 )
v6 = v12;
else
v6 = (char *)v11 + 1;
v7 = atoi(v6);
v8 = *(_DWORD *)(*((_DWORD *)this + 91) + 804) - *(_DWORD *)(*((_DWORD *)this + 91) + 808);
if ( v5 == v8 || v7 + 10000 == v8 )
{
LevelInfoLayer::confirmClone((int)this, nullptr);
}
else
{
memset(v13, 0, sizeof(v13));
std::string::__init(v13, "Incorrect password!", 0x13u);
v10 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (int)v13, (ButtonSprite *)"OK", nullptr, 300.0);
std::string::~string((int)v13);
(*(void (__fastcall **)(int *))(*v10 + 656))(v10);
++*(_DWORD *)(*((_DWORD *)this + 91) + 828);
}
return std::string::~string((int)v11);
}