// // sub_10052A0E4 from 0x10052a0e4 to 0x10052a444 (864 bytes) // // 1 xrefs: // > sub_10052A058 @ 0x10052a094 // // 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:07:17 +0000 // __int64 __fastcall sub_10052A0E4(_DWORD *a1, int a2, __int64 a3, __int64 a4) { __int64 v8; // x20 double v9; // d0 __int64 v10; // x0 void *v11; // x0 void *v12; // x23 const char *v13; // x0 void *v14; // x0 const char *v15; // x0 void *v16; // x0 __int64 v17; // x0 void *v18; // x21 void *v19; // x21 char *v20; // x21 _QWORD *v21; // x0 __int64 v22; // x0 void *__p[2]; // [xsp+0h] [xbp-90h] BYREF char v25; // [xsp+17h] [xbp-79h] void *v26[2]; // [xsp+18h] [xbp-78h] BYREF char v27; // [xsp+2Fh] [xbp-61h] float v28[4]; // [xsp+30h] [xbp-60h] BYREF float v29; // [xsp+40h] [xbp-50h] BYREF __int64 v30; // [xsp+48h] [xbp-48h] BYREF v28[0] = -1.034e-25; v8 = cocos2d::CCLayerColor::initWithColor((__int64)a1, (__int64)v28); if ( (_DWORD)v8 ) { a1[168] = a2; (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 1168LL))(a1, 150); v9 = FLAlertLayer::incrementForcePrio(a1); *((_BYTE *)a1 + 596) = 1; (*(void (__fastcall **)(_DWORD *, __int64, double))(*(_QWORD *)a1 + 1000LL))(a1, 1, v9); (*(void (__fastcall **)(_DWORD *, __int64))(*(_QWORD *)a1 + 1072LL))(a1, 1); v10 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v10, &v30); sub_1000262BC(&v29, *(float *)&v30 * 0.5, *((float *)&v30 + 1) * 0.5); v11 = cocos2d::CCLayer::create(); *((_QWORD *)a1 + 73) = v11; (*(void (__fastcall **)(_DWORD *, void *))(*(_QWORD *)a1 + 456LL))(a1, v11); sub_1000262CC(v28, 0.0, 0.0, 80.0, 80.0); v12 = cocos2d::extension::CCScale9Sprite::create((__int64)"GJ_square01.png", (__int64)v28); (*(void (__fastcall **)(void *, float *))(*(_QWORD *)v12 + 184LL))(v12, &v29); (*(void (__fastcall **)(_QWORD, void *, __int64))(**((_QWORD **)a1 + 73) + 464LL))( *((_QWORD *)a1 + 73), v12, 4294967294LL); *((_QWORD *)a1 + 86) = v12; if ( *(char *)(a3 + 23) >= 0 ) v13 = (const char *)a3; else v13 = *(const char **)a3; v14 = cocos2d::CCLabelBMFont::create_1(v13, "bigFont.fnt"); *((_QWORD *)a1 + 87) = v14; cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v14, 310.0, 0.7, 0.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 73) + 456LL))( *((_QWORD *)a1 + 73), *((_QWORD *)a1 + 87)); if ( *(char *)(a4 + 23) >= 0 ) v15 = (const char *)a4; else v15 = *(const char **)a4; v16 = cocos2d::CCLabelBMFont::create_1(v15, "goldFont.fnt"); *((_QWORD *)a1 + 88) = v16; cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v16, 310.0, 0.6, 0.3); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)a1 + 73) + 456LL))( *((_QWORD *)a1 + 73), *((_QWORD *)a1 + 88)); v17 = cocos2d::CCMenu::create(); *((_QWORD *)a1 + 69) = v17; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)a1 + 73) + 464LL))(*((_QWORD *)a1 + 73), v17, 10); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)a1 + 69) + 184LL))(*((_QWORD *)a1 + 69), &unk_1009F8670); a1[160] = -1; v18 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_closeBtn_001.png"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v18 + 160LL))(v18, 0.8); v19 = CCMenuItemSpriteExtra::create((__int64)v18, 0, (__int64)a1, (__int64)sub_10052A478, 0); CCMenuItemSpriteExtra::setSizeMult((__int64)v19, 1.5); (*(void (__fastcall **)(_QWORD, void *))(**((_QWORD **)a1 + 69) + 456LL))(*((_QWORD *)a1 + 69), v19); *((_QWORD *)a1 + 89) = v19; sub_100009900(v26, "Song Usage"); sub_100009900( __p, "Blue arrow = Levels uploaded with this song.\n" "Star = Rated levels using this song.\n" "Green arrow = Total downloads for rated levels.\n" "Rated levels are grouped by difficulty and rating.\n" "Only a level's main song is counted."); v20 = InfoAlertButton::create((__int64)v26, (__int64)__p, 0.8); if ( v25 < 0 ) operator delete(__p[0]); if ( v27 < 0 ) operator delete(v26[0]); (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)a1 + 69) + 456LL))(*((_QWORD *)a1 + 69), v20); *((_QWORD *)a1 + 90) = v20; sub_10052A4B4(a1, 160.0); v21 = LoadingCircle::create(); *((_QWORD *)a1 + 85) = v21; v21[69] = *((_QWORD *)a1 + 73); *((_BYTE *)v21 + 560) = 0; cocos2d::CCObject::retain((__int64)v21); LoadingCircle::show(*((_QWORD *)a1 + 85)); (*(void (__fastcall **)(_QWORD, _DWORD *))(**(_QWORD **)(*((_QWORD *)a1 + 85) + 544LL) + 184LL))( *(_QWORD *)(*((_QWORD *)a1 + 85) + 544LL), a1 + 183); *(_QWORD *)(GameLevelManager::sharedState() + 1472) = a1 + 166; v22 = GameLevelManager::sharedState(); sub_1000C956C(v22, a1[168]); } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source