//
// SetupTriggerPopup::show from 0x6761ee to 0x676244 (86 bytes)
//
// 4 xrefs:
// > ColorSelectPopup::show @ 0x4df0c6
// > SetupPulsePopup::show @ 0x5ec3f8
// > EmotePickerPopup::show @ 0x7787e6
// > EditorWindowPopup::show @ 0x78d2be
//
// 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:55:56 +0000
//
int __fastcall SetupTriggerPopup::show(cocos2d::CCScene **this)
{
int v2; // r0
cocos2d::CCScene *v3; // r5
int v4; // r0
v2 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this);
v3 = *(cocos2d::CCScene **)(v2 + 220);
if ( *(this + 113) )
{
v3 = *(this + 113);
}
else if ( !*(this + 116) )
{
if ( (int)cocos2d::CCScene::getHighestChildZ(*(cocos2d::CCScene **)(v2 + 220)) <= 104 )
v4 = 105;
else
v4 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
*(this + 116) = (cocos2d::CCScene *)v4;
}
if ( !*(this + 116) )
*(this + 116) = (cocos2d::CCScene *)(&dword_68 + 1);
return (*(int (__fastcall **)(cocos2d::CCScene *, cocos2d::CCScene **, _DWORD))(*(_DWORD *)v3 + 232))(
v3,
this,
*(this + 116));
}