//
// PromoInterstitial::setup from 0x5455ec to 0x5457a4 (440 bytes)
//
// 1 xrefs:
// > PromoInterstitial::init @ 0x5457de
//
// 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:52:23 +0000
//
int __fastcall PromoInterstitial::setup(PromoInterstitial *this)
{
int *v2; // r0
char *v3; // r1
int v4; // r6
int (__fastcall *v5)(int, _DWORD *); // r7
cocos2d::CCDirector *v6; // r0
const char *v7; // r1
char *v8; // r0
int v9; // r0
int v10; // r10
int v11; // r0
cocos2d::CCMenu *v12; // r7
const char *v13; // r1
int v14; // r0
cocos2d::CCMenu *v15; // r9
int v16; // r0
int v17; // r0
const cocos2d::CCPoint *v18; // r10
int (__fastcall *v19)(cocos2d::CCMenu *, _BYTE *); // r6
void (__fastcall *v21)(cocos2d::CCMenu *, _BYTE *); // [sp+8h] [bp-4Ch]
cocos2d::CCPoint *v22; // [sp+Ch] [bp-48h]
float v23[2]; // [sp+14h] [bp-40h] BYREF
_BYTE v24[8]; // [sp+1Ch] [bp-38h] BYREF
_BYTE v25[8]; // [sp+24h] [bp-30h] BYREF
_BYTE v26[8]; // [sp+2Ch] [bp-28h] BYREF
_BYTE v27[8]; // [sp+34h] [bp-20h] BYREF
int (__fastcall *v28)(PromoInterstitial *, cocos2d::CCObject *); // [sp+3Ch] [bp-18h]
int v29; // [sp+40h] [bp-14h]
_DWORD v30[2]; // [sp+44h] [bp-10h] BYREF
v2 = (int *)((char *)this + 528);
if ( *((_BYTE *)v2 - 11) )
v3 = "market://details?id=com.robtopx.geometryjump";
else
v3 = "market://details?id=com.robtopx.geometryjumplite";
std::string::assign(v2, v3);
v4 = *((_DWORD *)this + 115);
v5 = *(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v4 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, 0.0, 0.0);
v6 = (cocos2d::CCDirector *)v5(v4, v30);
cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v23);
if ( *((_BYTE *)this + 517) )
v8 = "GJ_popup.png";
else
v8 = "GJ_popupSZ.png";
v9 = cocos2d::CCSprite::create((cocos2d::CCSprite *)v8, v7);
v28 = PromoInterstitial::onClick;
v29 = 0;
v10 = v9;
v11 = CCMenuItemSpriteExtra::create(v9, 0, (int)this, (int)PromoInterstitial::onClick, 0);
*(_BYTE *)(v11 + 320) = 0;
v12 = (cocos2d::CCMenu *)v11;
*(_BYTE *)(v11 + 321) = 1;
CCMenuItemSpriteExtra::setSizeMult(v11, 0.9);
v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v13);
v30[0] = PromoInterstitial::onClose;
v30[1] = 0;
v15 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v14, 0, (int)this, (int)PromoInterstitial::onClose, 0);
CCMenuItemSpriteExtra::setSizeMult((int)v15, 2.0);
v16 = cocos2d::CCMenu::create(v12, nullptr);
*((_DWORD *)this + 111) = v16;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v16, 1);
v17 = cocos2d::CCMenu::create(v15, nullptr);
*((_DWORD *)this + 130) = v17;
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v17, 2);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, v23[0] * 0.5, v23[1] * 0.5);
v21 = *(void (__fastcall **)(cocos2d::CCMenu *, _BYTE *))(*(_DWORD *)v12 + 92);
v22 = *((cocos2d::CCPoint **)this + 111);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v26, *((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v27, v22);
v21(v12, v27);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v27,
10.0 - (float)(*(float *)(v10 + 344) * 0.5),
(float)(*(float *)(v10 + 348) * 0.5) - 10.0);
cocos2d::CCPoint::operator+(v25, v24, v27);
v18 = *((const cocos2d::CCPoint **)this + 130);
v19 = *(int (__fastcall **)(cocos2d::CCMenu *, _BYTE *))(*(_DWORD *)v15 + 92);
cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v26, *((const cocos2d::CCPoint **)this + 115));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v27, v18);
return v19(v15, v27);
}