//
// CreatorLayer::onAdventureMap from 0x7db8f8 to 0x7db9ac (180 bytes)
//
// 4 xrefs:
// > CreatorLayer::dialogClosed @ 0x7db9e8
// > ??> @ 0x8c020
// > CreatorLayer::init @ 0x7dd48c
// > ??> @ 0x1543b08
//
// 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 12:54:23 +0000
//
__int64 __fastcall CreatorLayer::onAdventureMap(CreatorLayer *this, cocos2d::CCObject *a2)
{
__int64 v2; // x20
char v4; // [xsp+20h] [xbp+20h] BYREF
char v5[13]; // [xsp+21h] [xbp+21h] BYREF
__int16 v6; // [xsp+2Eh] [xbp+2Eh]
void *v7; // [xsp+30h] [xbp+30h]
v5[12] = 0;
v6 = 0;
v7 = nullptr;
strcpy(v5, "mapPromo.pn");
v4 = 24;
v2 = GJPromoPopup::create(&v4);
if ( (v4 & 1) != 0 )
operator delete(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
return _stack_chk_guard;
}