//
// NewThreadPopup::show from 0xc6bd60 to 0xc6bde8 (136 bytes)
//
// 2 xrefs:
// > ??> @ 0xa9180
// > ??> @ 0x14efb90
//
// 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 13:05:27 +0000
//
__int64 __fastcall NewThreadPopup::show(NewThreadPopup *this)
{
__int64 v1; // x0
NewThreadPopup *v2; // x1
cocos2d::CCScene *v3; // x19
cocos2d::CCScene *v4; // x0
int v5; // w2
ThreadOpenHelper *v6; // x0
int HighestChildZ; // w0
v1 = cocos2d::CCDirector::sharedDirector(this);
v2 = this;
v3 = *(cocos2d::CCScene **)(v1 + 272);
v4 = *((cocos2d::CCScene **)this + 71);
if ( v4 )
{
v5 = *((_DWORD *)this + 148);
}
else
{
HighestChildZ = cocos2d::CCScene::getHighestChildZ(v3);
v5 = 110;
v2 = this;
if ( HighestChildZ > 109 )
{
v5 = cocos2d::CCScene::getHighestChildZ(v3) + 1;
v2 = this;
}
*((_DWORD *)v2 + 148) = v5;
v4 = v3;
}
if ( !v5 )
*((_DWORD *)v2 + 148) = 110;
v6 = (ThreadOpenHelper *)(*(__int64 (__fastcall **)(cocos2d::CCScene *))(*(_QWORD *)v4 + 464LL))(v4);
return ThreadOpenHelper::showRulesOnce(v6);
}