// // NewgroundsInfoLayer::init from 0x97e82c to 0x97efa4 (1912 bytes) // // 3 xrefs: // > NewgroundsInfoLayer::create @ 0x97f7cc // > @ 0x8d2e0 // > @ 0x1470170 // // 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:57:50 +0000 // __int64 __fastcall NewgroundsInfoLayer::init(cocos2d::CCNode **this) { unsigned __int8 v2; // w0 unsigned int v3; // w26 cocos2d::CCDirector *v4; // x0 __int64 v5; // x22 void (__fastcall *v6)(__int64, _BYTE *); // x24 void (__fastcall *v7)(__int64, _BYTE *); // x24 const char *v8; // x2 __int64 v9; // x22 void (__fastcall *v10)(__int64, _BYTE *); // x24 cocos2d::CCMenu *v11; // x0 __int64 v12; // x0 const char *v13; // x1 __int64 v14; // x0 __int64 v15; // x22 cocos2d::CCNode *v16; // x27 void (__fastcall *v17)(__int64, __int64 *); // x24 const char *v18; // x2 __int64 v19; // x22 void (__fastcall *v20)(__int64, _BYTE *); // x24 float v21; // s12 float v22; // s9 float v23; // s0 void (__fastcall *v24)(__int64, _BYTE *); // x24 const char *v25; // x2 __int64 v26; // x24 __int64 v27; // x0 __int64 (__fastcall *v28)(__int64); // x1 void (__fastcall *v29)(__int64, __int64 *); // x22 const char *v30; // x2 __int64 v31; // x22 void (__fastcall *v32)(__int64, _BYTE *); // x27 __int64 v33; // x0 __int64 (__fastcall *v34)(__int64); // x1 void (__fastcall *v35)(__int64, __int64 *); // x24 __int64 v36; // x27 const char *v37; // x6 __int64 v38; // x0 const char *v39; // x6 __int64 v40; // x0 cocos2d::CCObject *v41; // x28 const char *v42; // x6 __int64 v43; // x0 cocos2d::CCObject *v44; // x27 const char *v45; // x6 __int64 v46; // x0 cocos2d::CCObject *v47; // x24 cocos2d::CCArray *v48; // x0 cocos2d::CCArray *v49; // x22 cocos2d::CCNode *v50; // x24 const char *v51; // x1 __int64 v52; // x0 __int64 v53; // x22 cocos2d::CCNode *v54; // x24 void (__fastcall *v55)(__int64, __int64 *); // x20 CCMenuItemSpriteExtra *v57; // [xsp+98h] [xbp+98h] CCMenuItemSpriteExtra *v58; // [xsp+98h] [xbp+98h] cocos2d::CCObject *v59; // [xsp+98h] [xbp+98h] __int64 v60; // [xsp+A8h] [xbp+A8h] BYREF __int64 v61; // [xsp+B0h] [xbp+B0h] BYREF _BYTE v62[16]; // [xsp+B8h] [xbp+B8h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 75); v3 = v2; if ( v2 ) { *((_BYTE *)this + 596) = (unsigned __int8)&dword_0 + 1; v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)((char *)&dword_0 + 1)); cocos2d::CCDirector::getWinSize(&v60, v4); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v62, 0.0, 0.0, 80.0, 80.0); v5 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v62); v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v62, 440.0, 290.0); v6(v5, v62); (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v5, 0xFFFFFFFFLL); v7 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, *(float *)&v60 * 0.5, *((float *)&v60 + 1) * 0.5); v7(v5, v62); v9 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Newgrounds", "bigFont.fnt", v8); v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, *(float *)&v60 * 0.5, (float)((float)(*((float *)&v60 + 1) * 0.5) + 145.0) - 28.0); v10(v9, v62); v11 = (cocos2d::CCMenu *)(*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))( *(this + 73), v9); v12 = cocos2d::CCMenu::create(v11); *(this + 69) = (cocos2d::CCNode *)v12; (*(void (__fastcall **)(_QWORD, __int64, __int64))(*(_QWORD *)*(this + 73) + 464LL))(*(this + 73), v12, 10); v14 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v13); v15 = CCMenuItemSpriteExtra::create(v14, 0, (__int64)this, (__int64)NewgroundsInfoLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v15, 1.5); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v15); v16 = *(this + 69); v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v15 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)((float)(*(float *)&v60 * 0.5) + -220.0) + 10.0, (float)((float)(*((float *)&v60 + 1) * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace(&v61, v16, (const cocos2d::CCPoint *)v62); v17(v15, &v61); v19 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"1. Find a song on Newgrounds.com", "goldFont.fnt", v18); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v19 + 160LL))(v19, 0.65); v20 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v19 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5); v20(v19, v62); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v19); v21 = *(float *)&v60; v22 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 328LL))(v19); v23 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v19 + 168LL))(v19); v24 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v19 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)-(float)((float)((float)(v22 * 0.5) * v23) - (float)(v21 * 0.5)) - 2.0, (float)(*((float *)&v60 + 1) * 0.5) + 70.0); v24(v19, v62); v26 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"2. Save the song ID", "goldFont.fnt", v25); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v26 + 160LL))(v26, 0.65); v57 = *(CCMenuItemSpriteExtra **)(*(_QWORD *)v26 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5); ((void (__fastcall *)(__int64, _BYTE *))v57)(v26, v62); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v26); v27 = v19; v28 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 192LL); v29 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v26 + 184LL); v58 = (CCMenuItemSpriteExtra *)v28(v27); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, -30.0); cocos2d::CCPoint::operator+(&v61, v58); v29(v26, &v61); v31 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"3. Enter the ID in the search box", "goldFont.fnt", v30); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v31 + 160LL))(v31, 0.65); v32 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v31 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, 0.5); v32(v31, v62); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 73) + 456LL))(*(this + 73), v31); v33 = v26; v34 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v26 + 192LL); v35 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v31 + 184LL); v36 = v34(v33); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v62, 0.0, -30.0); cocos2d::CCPoint::operator+(&v61, v36); v35(v31, &v61); v38 = ButtonSprite::create( (ButtonSprite *)"Artists", (const char *)&qword_C8, 0, 0, 0.4, "bigFont.fnt", "GJ_button_02.png", v37, 25.0); v59 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v38, 0, (__int64)this, (__int64)NewgroundsInfoLayer::onArtists, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v59); CCMenuItemSpriteExtra::setSizeMult((__int64)v59, 1.1); v40 = ButtonSprite::create( (ButtonSprite *)"Newgrounds", (const char *)&qword_C8, 0, 0, 0.4, "bigFont.fnt", "GJ_button_01.png", v39, 25.0); v41 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v40, 0, (__int64)this, (__int64)NewgroundsInfoLayer::onNewgrounds, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v41); CCMenuItemSpriteExtra::setSizeMult((__int64)v41, 1.1); v43 = ButtonSprite::create( (ButtonSprite *)"Guidelines", (const char *)&qword_C8, 0, 0, 0.4, "bigFont.fnt", "GJ_button_05.png", v42, 25.0); v44 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v43, 0, (__int64)this, (__int64)NewgroundsInfoLayer::onGuidelines, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v44); CCMenuItemSpriteExtra::setSizeMult((__int64)v44, 1.1); v46 = ButtonSprite::create( (ButtonSprite *)"Support NG!", (const char *)&qword_C8, 0, 0, 0.4, "bigFont.fnt", "GJ_button_03.png", v45, 25.0); v47 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v46, 0, (__int64)this, (__int64)NewgroundsInfoLayer::onSupporter, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v47); v48 = (cocos2d::CCArray *)CCMenuItemSpriteExtra::setSizeMult((__int64)v47, 1.1); v49 = (cocos2d::CCArray *)cocos2d::CCArray::create(v48); cocos2d::CCArray::addObject(v49, v59); cocos2d::CCArray::addObject(v49, v41); cocos2d::CCArray::addObject(v49, v44); cocos2d::CCArray::addObject(v49, v47); v50 = *(this + 69); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, *(float *)&v60 * 0.5, (float)((float)(*((float *)&v60 + 1) * 0.5) + -145.0) + 40.0); cocos2d::CCNode::convertToNodeSpace(&v61, v50, (const cocos2d::CCPoint *)v62); GameToolbox::alignItemsHorisontally((__int64)v49, (__int64)&v61, 0, 8.0); v52 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_helpBtn2_001.png", v51); v53 = CCMenuItemSpriteExtra::create(v52, 0, (__int64)this, (__int64)NewgroundsInfoLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v53, 1.2); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v53); v54 = *(this + 69); v55 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v53 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v62, (float)((float)(*(float *)&v60 * 0.5) + 220.0) - 27.0, (float)((float)(*((float *)&v60 + 1) * 0.5) + 145.0) - 27.0); cocos2d::CCNode::convertToNodeSpace(&v61, v54, (const cocos2d::CCPoint *)v62); v55(v53, &v61); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source