// // NewgroundsInfoLayer::init from 0x57b064 to 0x57b604 (1440 bytes) // // 1 xrefs: // > NewgroundsInfoLayer::create @ 0x57b6e6 // // 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:49 +0000 // GameManager *__fastcall NewgroundsInfoLayer::init(const cocos2d::CCPoint **this) { GameManager *v2; // r0 int v3; // r5 void (__fastcall *v4)(int, _BYTE *); // r7 void (__fastcall *v5)(int, _BYTE *); // r7 int v6; // r5 void (__fastcall *v7)(int, _BYTE *); // r7 cocos2d::CCMenu *v8; // r0 const cocos2d::CCPoint *v9; // r0 const char *v10; // r1 int v11; // r0 int v12; // r7 const cocos2d::CCPoint *v13; // r11 void (__fastcall *v14)(int, _BYTE *); // r10 const char *v15; // r2 int v16; // r7 void (__fastcall *v17)(int, _BYTE *); // r10 float v18; // s18 float v19; // s20 float v20; // r0 void (__fastcall *v21)(int, _BYTE *); // r10 const char *v22; // r2 int v23; // r10 int v24; // r7 const char *v25; // r2 int v26; // r7 void (__fastcall *v27)(int, _BYTE *); // r11 void (__fastcall *v28)(int, _BYTE *); // r11 int v29; // r10 ButtonSprite *v30; // r0 ButtonSprite *v31; // r0 cocos2d::CCObject *v32; // r11 ButtonSprite *v33; // r0 cocos2d::CCObject *v34; // r10 ButtonSprite *v35; // r0 cocos2d::CCArray *v36; // r0 cocos2d::CCArray *v37; // r7 const cocos2d::CCPoint *v38; // r10 const char *v39; // r1 int v40; // r0 int v41; // r5 const cocos2d::CCPoint *v42; // r6 void (__fastcall *v43)(int, _BYTE *); // r7 float v45; // [sp+10h] [bp-74h] float v46; // [sp+10h] [bp-74h] float v47; // [sp+10h] [bp-74h] float v48; // [sp+10h] [bp-74h] cocos2d::CCObject *v49; // [sp+14h] [bp-70h] CCMenuItemSpriteExtra *v50; // [sp+18h] [bp-6Ch] CCMenuItemSpriteExtra *v51; // [sp+18h] [bp-6Ch] cocos2d::CCObject *v52; // [sp+18h] [bp-6Ch] GameManager *v53; // [sp+1Ch] [bp-68h] float v54; // [sp+2Ch] [bp-58h] BYREF float v55; // [sp+30h] [bp-54h] int (__fastcall *v56)(NewgroundsInfoLayer *, cocos2d::CCObject *); // [sp+34h] [bp-50h] int v57; // [sp+38h] [bp-4Ch] int (__fastcall *v58)(NewgroundsInfoLayer *, cocos2d::CCObject *); // [sp+3Ch] [bp-48h] int v59; // [sp+40h] [bp-44h] int (__fastcall *v60)(NewgroundsInfoLayer *, cocos2d::CCObject *); // [sp+44h] [bp-40h] int v61; // [sp+48h] [bp-3Ch] int (__fastcall *v62)(NewgroundsInfoLayer *, cocos2d::CCObject *); // [sp+4Ch] [bp-38h] int v63; // [sp+50h] [bp-34h] int (__fastcall *v64)(NewgroundsInfoLayer *, cocos2d::CCObject *); // [sp+54h] [bp-30h] int v65; // [sp+58h] [bp-2Ch] _DWORD (*v66)(NewgroundsInfoLayer *__hidden, cocos2d::CCObject *); // [sp+5Ch] [bp-28h] int v67; // [sp+60h] [bp-24h] _BYTE v68[8]; // [sp+64h] [bp-20h] BYREF _BYTE v69[16]; // [sp+6Ch] [bp-18h] BYREF v2 = FLAlertLayer::init((FLAlertLayer *)this, 75); v53 = v2; if ( v2 ) { *((_BYTE *)this + 468) = 1; cocos2d::CCDirector::sharedDirector(v2); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v54); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v69, 0.0, 0.0, 80.0, 80.0); v3 = cocos2d::extension::CCScale9Sprite::create("GJ_square02.png", v69); v4 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v69, 440.0, 290.0); v4(v3, v69); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v3, -1); v5 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, v54 * 0.5, v55 * 0.5); v5(v3, v69); v6 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Newgrounds", "bigFont.fnt", "Newgrounds"); v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, v54 * 0.5, (float)((float)(v55 * 0.5) + 145.0) - 28.0); v7(v6, v69); v8 = (cocos2d::CCMenu *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v6); v9 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v8); *(this + 111) = v9; (*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(*(_DWORD *)*(this + 115) + 232))( *(this + 115), v9, 10); v11 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_closeBtn_001.png", v10); v57 = 0; v56 = NewgroundsInfoLayer::onClose; v12 = CCMenuItemSpriteExtra::create(v11, 0, (int)this, (int)NewgroundsInfoLayer::onClose, 0); CCMenuItemSpriteExtra::setSizeMult(v12, 1.5); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v12); v13 = *(this + 111); v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v69, (float)((float)(v54 * 0.5) - 220.0) + 10.0, (float)((float)(v55 * 0.5) + 145.0) - 10.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v68, v13); v14(v12, v68); v16 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"1. Find a song on Newgrounds.com", "goldFont.fnt", v15); (*(void (__fastcall **)(int, int))(*(_DWORD *)v16 + 80))(v16, 1059481190); v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 0.0, 0.5); v17(v16, v69); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v16); v18 = v54; v19 = *(float *)(*(int (__fastcall **)(int))(*(_DWORD *)v16 + 164))(v16); v20 = (*(float (__fastcall **)(int))(*(_DWORD *)v16 + 84))(v16); v21 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v69, (float)((float)(v18 * 0.5) - (float)((float)(v19 * 0.5) * v20)) - 2.0, (float)(v55 * 0.5) + 70.0); v21(v16, v69); v23 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"2. Save the song ID", "goldFont.fnt", v22); (*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 80))(v23, 1059481190); v50 = *(CCMenuItemSpriteExtra **)(*(_DWORD *)v23 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 0.0, 0.5); ((void (__fastcall *)(int, _BYTE *))v50)(v23, v69); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v23); v51 = *(CCMenuItemSpriteExtra **)(*(_DWORD *)v23 + 92); v24 = (*(int (__fastcall **)(int))(*(_DWORD *)v16 + 96))(v16); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 0.0, -30.0); cocos2d::CCPoint::operator+(v68, v24, v69); ((void (__fastcall *)(int, _BYTE *))v51)(v23, v68); v26 = cocos2d::CCLabelBMFont::create( (cocos2d::CCLabelBMFont *)"3. Enter the ID in the search box", "goldFont.fnt", v25); (*(void (__fastcall **)(int, int))(*(_DWORD *)v26 + 80))(v26, 1059481190); v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 0.0, 0.5); v27(v26, v69); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 115) + 228))(*(this + 115), v26); v28 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 92); v29 = (*(int (__fastcall **)(int))(*(_DWORD *)v23 + 96))(v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, 0.0, -30.0); cocos2d::CCPoint::operator+(v68, v29, v69); v28(v26, v68); v30 = ButtonSprite::create( (ButtonSprite *)"Artists", (const char *)&dword_C8, 0, 0.4, 0, "bigFont.fnt", "GJ_button_02.png", (const char *)0x41C80000, v45); v59 = 0; v58 = NewgroundsInfoLayer::onArtists; v52 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v30, 0, (int)this, (int)NewgroundsInfoLayer::onArtists, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v52); CCMenuItemSpriteExtra::setSizeMult((int)v52, 1.1); v31 = ButtonSprite::create( (ButtonSprite *)"Newgrounds", (const char *)&dword_C8, 0, 0.4, 0, "bigFont.fnt", "GJ_button_01.png", (const char *)0x41C80000, v46); v61 = 0; v60 = NewgroundsInfoLayer::onNewgrounds; v32 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v31, 0, (int)this, (int)NewgroundsInfoLayer::onNewgrounds, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v32); CCMenuItemSpriteExtra::setSizeMult((int)v32, 1.1); v33 = ButtonSprite::create( (ButtonSprite *)"Guidelines", (const char *)&dword_C8, 0, 0.4, 0, "bigFont.fnt", "GJ_button_05.png", (const char *)0x41C80000, v47); v63 = 0; v62 = NewgroundsInfoLayer::onGuidelines; v34 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v33, 0, (int)this, (int)NewgroundsInfoLayer::onGuidelines, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v34); CCMenuItemSpriteExtra::setSizeMult((int)v34, 1.1); v35 = ButtonSprite::create( (ButtonSprite *)"Support NG!", (const char *)&dword_C8, 0, 0.4, 0, "bigFont.fnt", "GJ_button_03.png", (const char *)0x41C80000, v48); v65 = 0; v64 = NewgroundsInfoLayer::onSupporter; v49 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v35, 0, (int)this, (int)NewgroundsInfoLayer::onSupporter, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v49); v36 = (cocos2d::CCArray *)CCMenuItemSpriteExtra::setSizeMult((int)v49, 1.1); v37 = (cocos2d::CCArray *)cocos2d::CCArray::create(v36); cocos2d::CCArray::addObject(v37, v52); cocos2d::CCArray::addObject(v37, v32); cocos2d::CCArray::addObject(v37, v34); cocos2d::CCArray::addObject(v37, v49); v38 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v69, v54 * 0.5, (float)((float)(v55 * 0.5) - 145.0) + 40.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v68, v38); GameToolbox::alignItemsHorisontally(*(float *)&v37, 8.0, (int)v68, 0); v40 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_helpBtn2_001.png", v39); v67 = 0; v66 = NewgroundsInfoLayer::onInfo; v41 = CCMenuItemSpriteExtra::create(v40, 0, (int)this, (int)NewgroundsInfoLayer::onInfo, 0); CCMenuItemSpriteExtra::setSizeMult(v41, 1.2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v41); v42 = *(this + 111); v43 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v41 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v69, (float)((float)(v54 * 0.5) + 220.0) - 27.0, (float)((float)(v55 * 0.5) + 145.0) - 27.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v68, v42); v43(v41, v68); } return v53; }
GD Web Decomp Icon

GD Web Decomp

Raw Source