// // SetupCoinLayer::init from 0xb760d8 to 0xb76450 (888 bytes) // // 2 xrefs: // > SetupCoinLayer::create @ 0xb76678 // > @ 0xb22b8 // // 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:02:23 +0000 // __int64 __fastcall SetupCoinLayer::init(SetupCoinLayer *this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v5; // w0 unsigned int v6; // w22 __int64 v8; // x2 __int64 v9; // x3 __int64 v10; // x4 __int64 v11; // x5 const char *v12; // x6 cocos2d::CCDirector *v13; // x0 cocos2d::CCDirector *v14; // x0 __int64 v15; // [xsp+98h] [xbp+68h] BYREF _BYTE v16[8]; // [xsp+A0h] [xbp+70h] BYREF _BYTE v17[8]; // [xsp+A8h] [xbp+78h] BYREF __int64 v18; // [xsp+B0h] [xbp+80h] BYREF cocos2d::CCDirector *v19[2]; // [xsp+B8h] [xbp+88h] BYREF void *v20; // [xsp+C8h] [xbp+98h] __int64 v21; // [xsp+D0h] [xbp+A0h] BYREF __int64 v22; // [xsp+D8h] [xbp+A8h] void *v23; // [xsp+E0h] [xbp+B0h] v5 = SetupTriggerPopup::init(this, a2, a3, 300.0, 220.0, 1u, 0.0); v6 = v5; if ( v5 ) { SetupTriggerPopup::preSetup(this); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Setup Coin", 0xAu); SetupTriggerPopup::addTitle((__int64)this, (__int64)&v21); if ( (v21 & 1) != 0 ) operator delete(v23); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "OK", 2u); SetupTriggerPopup::addCloseButton((__int64)this, (__int64)&v21, v8, v9, v10, v11, v12); if ( (v21 & 1) != 0 ) operator delete(v23); v19[0] = nullptr; v19[1] = nullptr; v20 = nullptr; std::string::__init((__int64 *)v19, "Help", 4u); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Target ID will be spawn triggered when collected.", 0x31u); SetupTriggerPopup::addHelpButton((__int64)this, (char *)v19, (char *)&v21, 1.0); if ( (v21 & 1) != 0 ) operator delete(v23); v13 = (cocos2d::CCDirector *)LOBYTE(v19[0]); if ( ((__int64)v19[0] & 1) != 0 ) operator delete(v20); v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13); cocos2d::CCDirector::getWinSize(&v15, v14); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, *(float *)&v15 * 0.5, *((float *)&v15 + 1) * 0.5); v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Target ID:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, 30.0); cocos2d::CCPoint::operator+(&v18, v16); IDNameInput::create(this, (char *)this + 544, 1, 51, &v21, &v18, 6, 0, 0.8, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); if ( a2 ) { if ( *((_DWORD *)a2 + 257) == 142 ) { v21 = 0; v22 = 0; v23 = nullptr; std::string::__init(&v21, "Unique ID:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, -30.0); cocos2d::CCPoint::operator+(&v18, v16); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCArray **)this, 12, (char *)&v21, (__int64)&v18, 1, 2, 10, 1, 0.8, 0.0, 9999.0, 0, 0, 0, 0, 0); if ( (v21 & 1) != 0 ) operator delete(v23); } } SetupTriggerPopup::postSetup(this); } return v6; }
GD Web Decomp Icon

GD Web Decomp

Raw Source