//
// ParentalGateLayer::onDone from 0x100118514 to 0x100118600 (236 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008d2ee0
//
// 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 10:59:11 +0000
//
void __fastcall ParentalGateLayer::onDone(__int64 a1)
{
const char *v2; // x0
char *v3; // x0
__int64 v4; // x0
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v6; // [xsp+17h] [xbp-29h]
void *v7[2]; // [xsp+18h] [xbp-28h] BYREF
char v8; // [xsp+2Fh] [xbp-11h]
v2 = (const char *)(a1 + 720);
if ( *(char *)(a1 + 743) < 0 )
v2 = *(const char **)v2;
if ( atoi(v2) == *(_DWORD *)(a1 + 752) )
{
v3 = sub_1001138EC();
(*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 1312LL))(v3);
sub_10011DDB4(a1, 0);
}
else
{
sub_10011836C(a1);
sub_100009900(v7, "Wrong answer!");
sub_100009900(__p, "");
v4 = TextAlertPopup::create(v7, 150, __p, 0.8, 0.6);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 100);
if ( v6 < 0 )
operator delete(__p[0]);
if ( v8 < 0 )
operator delete(v7[0]);
}
}