//
// CreatorLayer::onAdventureMap from 0x140138140 to 0x1401382af (367 bytes)
//
// 3 xrefs:
// > CreatorLayer::dialogClosed @ 0x1401396f6
// > CreatorLayer::init @ 0x140135aab
// > ??> @ 0x14091718c
//
// This function is hookable on this platform (idp: pc, 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 11:27:05 +0000
//
// Hidden C++ exception states: #wind=2
__int64 CreatorLayer::onAdventureMap()
{
char *v0; // rbx
__int64 v1; // rax
__int64 (__fastcall *v2)(__int64); // rdx
char v4[14]; // [rsp+20h] [rbp-48h] BYREF
__int16 v5; // [rsp+2Eh] [rbp-3Ah]
__int64 v6; // [rsp+30h] [rbp-38h]
__int64 v7; // [rsp+38h] [rbp-30h]
char v8[40]; // [rsp+40h] [rbp-28h] BYREF
v6 = 12;
v7 = 15;
strcpy(v4, "mapPromo.png");
v4[13] = 0;
v5 = 0;
v0 = (char *)operator new(0x2B8u);
FLAlertLayer::FLAlertLayer((__int64)v0);
*(_QWORD *)v0 = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 40) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 41) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 42) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 43) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 44) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 51) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 54) = &GJPromoPopup::`vftable';
*((_QWORD *)v0 + 68) = &GJPromoPopup::`vftable';
*(_OWORD *)(v0 + 664) = 0;
*((_QWORD *)v0 + 85) = 0;
*((_QWORD *)v0 + 86) = 15;
v0[664] = 0;
v1 = sub_14003F4F0((__int64)v8, (__int64)v4);
if ( (unsigned __int8)GJPromoPopup::init(v0, v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
v0 = nullptr;
}
sub_14003D310((__int64)v4);
v2 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v0 + 1064LL);
if ( v2 == ChallengesPage::show )
return ChallengesPage::show((__int64)v0);
else
return v2((__int64)v0);
}