// // MyStuffPopup::init from 0x1002329f0 to 0x100232f5c (1388 bytes) // // 1 xrefs: // > MyStuffPopup::create @ 0x1002308fc // // 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 11:01:18 +0000 // __int64 __fastcall MyStuffPopup::init(__int64 a1, __int64 a2) { unsigned int inited; // w0 __int64 v5; // x19 __int64 v6; // x0 float v7; // s8 float v8; // s9 __int64 v9; // x21 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x21 __int64 v13; // x21 __int64 v14; // x21 __n128 v15; // q0 __int64 v16; // x22 __n128 v17; // q0 void *v18; // x0 __int64 v19; // x8 unsigned int v20; // w22 __int64 v21; // x21 __int64 v22; // x8 __int128 *v23; // x8 __int64 v24; // x8 __int128 *v25; // x8 __int64 v26; // x21 __int64 v27; // x8 __int128 *v28; // x8 __int64 v29; // x21 __int64 v30; // x8 __int128 *v31; // x8 __int64 v32; // x21 __int64 v33; // x21 __int64 v34; // x21 __int64 v35; // x25 float *v36; // x26 __int64 v37; // x23 unsigned int v38; // t1 unsigned int v39; // w8 const char *v40; // x0 __int64 v41; // x0 __int64 v42; // x24 __n128 v43; // q0 __int64 v44; // x20 __n128 v45; // q0 float v47; // [xsp+8h] [xbp-B8h] BYREF __int128 __dst; // [xsp+10h] [xbp-B0h] BYREF __int64 v49; // [xsp+20h] [xbp-A0h] __int64 v50; // [xsp+2Ch] [xbp-94h] BYREF float v51[5]; // [xsp+34h] [xbp-8Ch] BYREF inited = FLAlertLayer::init_1(a1, 75); if ( a2 ) v5 = inited; else v5 = 0; if ( (_DWORD)v5 == 1 ) { *(_QWORD *)(a1 + 664) = a2; cocos2d::CCObject::retain(a2); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6, &v50); v7 = *(float *)&v50 * 0.5; v8 = *((float *)&v50 + 1) * 0.5; sub_1000262CC((float *)&__dst, 0.0, 0.0, 80.0, 80.0); v9 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", &__dst); sub_1000262C4((float *)&__dst, 240.0, 100.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v9 + 320LL))(v9, &__dst); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))( *(_QWORD *)(a1 + 584), v9, 0xFFFFFFFFLL); sub_1000262BC((float *)&__dst, v7, v8); v10 = (*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v9 + 184LL))(v9, &__dst); v11 = cocos2d::CCMenu::create(v10); *(_QWORD *)(a1 + 552) = v11; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v11, 10); v12 = cocos2d::CCLabelBMFont::create_1("My Socials", "goldFont.fnt"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v12 + 160LL))(v12, 0.7); sub_1000262BC((float *)&__dst, v7, (float)(v8 + 50.0) + -22.0); (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v12 + 184LL))(v12, &__dst); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 584) + 464LL))(*(_QWORD *)(a1 + 584), v12, 5); v13 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_closeBtn_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.8); v14 = CCMenuItemSpriteExtra::create(v13, 0, a1, MyStuffPopup::onClose, 0); v15 = CCMenuItemSpriteExtra::setSizeMult(1.6); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))(*(_QWORD *)(a1 + 552), v14, v15); v16 = *(_QWORD *)(a1 + 552); sub_1000262BC(v51, (float)(v7 + -120.0) + 4.0, (float)(v8 + 50.0) + -4.0); cocos2d::CCNode::convertToNodeSpace(&__dst, v16, v51, v17); v18 = (void *)(*(__int64 (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v14 + 184LL))(v14, &__dst); v19 = *(_QWORD *)(a1 + 664); if ( *(char *)(v19 + 487) < 0 ) { v18 = sub_1000097D0(&__dst, *(void **)(v19 + 464), *(_QWORD *)(v19 + 472)); } else { __dst = *(_OWORD *)(v19 + 464); v49 = *(_QWORD *)(v19 + 480); } if ( SHIBYTE(v49) < 0 ) { v21 = *((_QWORD *)&__dst + 1); operator delete((void *)__dst); if ( v21 ) goto LABEL_10; } else if ( HIBYTE(v49) ) { LABEL_10: v51[0] = 0.0; v20 = 1; goto LABEL_13; } v20 = 0; LABEL_13: v22 = *(_QWORD *)(a1 + 664); if ( *(char *)(v22 + 511) < 0 ) { v18 = sub_1000097D0(&__dst, *(void **)(v22 + 488), *(_QWORD *)(v22 + 496)); } else { v23 = (__int128 *)(v22 + 488); __dst = *v23; v49 = *((_QWORD *)v23 + 2); } if ( SHIBYTE(v49) < 0 ) { v26 = *((_QWORD *)&__dst + 1); operator delete((void *)__dst); if ( !v26 ) { LABEL_19: v24 = *(_QWORD *)(a1 + 664); if ( *(char *)(v24 + 535) < 0 ) { v18 = sub_1000097D0(&__dst, *(void **)(v24 + 512), *(_QWORD *)(v24 + 520)); } else { v25 = (__int128 *)(v24 + 512); __dst = *v25; v49 = *((_QWORD *)v25 + 2); } if ( SHIBYTE(v49) < 0 ) { v29 = *((_QWORD *)&__dst + 1); operator delete((void *)__dst); if ( !v29 ) { LABEL_27: v27 = *(_QWORD *)(a1 + 664); if ( *(char *)(v27 + 607) < 0 ) { v18 = sub_1000097D0(&__dst, *(void **)(v27 + 584), *(_QWORD *)(v27 + 592)); } else { v28 = (__int128 *)(v27 + 584); __dst = *v28; v49 = *((_QWORD *)v28 + 2); } if ( SHIBYTE(v49) < 0 ) { v32 = *((_QWORD *)&__dst + 1); operator delete((void *)__dst); if ( !v32 ) { LABEL_35: v30 = *(_QWORD *)(a1 + 664); if ( *(char *)(v30 + 583) < 0 ) { v18 = sub_1000097D0(&__dst, *(void **)(v30 + 560), *(_QWORD *)(v30 + 568)); } else { v31 = (__int128 *)(v30 + 560); __dst = *v31; v49 = *((_QWORD *)v31 + 2); } if ( SHIBYTE(v49) < 0 ) { v34 = *((_QWORD *)&__dst + 1); operator delete((void *)__dst); if ( v34 ) goto LABEL_42; } else if ( HIBYTE(v49) ) { LABEL_42: LODWORD(v51[v20]) = 3; v33 = sub_1002E736C(v18); ++v20; goto LABEL_45; } v33 = sub_1002E736C(v18); if ( !v20 ) { LABEL_49: v44 = *(_QWORD *)(a1 + 552); sub_1000262BC(&v47, v7, v8 + -10.0); cocos2d::CCNode::convertToNodeSpace(&__dst, v44, &v47, v45); GameToolbox::alignItemsHorisontally(v33, (float32x2_t *)&__dst, 0, 9.0); return v5; } LABEL_45: v35 = v20; v36 = v51; do { v38 = *(_DWORD *)v36++; v37 = v38; v39 = v38 - 1; v40 = "gj_ytIcon_001.png"; if ( v38 - 1 <= 3 ) v40 = off_100901188[v39]; v41 = cocos2d::CCSprite::createWithSpriteFrameName(v40); v42 = CCMenuItemSpriteExtra::create(v41, 0, a1, MyStuffPopup::onSocialPage, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v42 + 72LL))(v42, v37); v43 = CCMenuItemSpriteExtra::setSizeMult(1.2); (*(void (__fastcall **)(_QWORD, __int64, __n128))(**(_QWORD **)(a1 + 552) + 456LL))( *(_QWORD *)(a1 + 552), v42, v43); sub_1002E74E0(v33, v42); --v35; } while ( v35 ); goto LABEL_49; } } else if ( !HIBYTE(v49) ) { goto LABEL_35; } LODWORD(v51[v20++]) = 4; goto LABEL_35; } } else if ( !HIBYTE(v49) ) { goto LABEL_27; } LODWORD(v51[v20++]) = 2; goto LABEL_27; } } else if ( !HIBYTE(v49) ) { goto LABEL_19; } LODWORD(v51[v20++]) = 1; goto LABEL_19; } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source