// // GJRateLevelLayer::onCustomButton from 0x100246814 to 0x100246980 (364 bytes) // // 1 xrefs: // > @ 0x1009082b0 // // 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:26 +0000 // void __fastcall GJRateLevelLayer::onCustomButton(__int64 a1, __int64 a2) { int v3; // w0 __int64 *v4; // x20 __int64 v5; // x8 void *v6[2]; // [xsp+0h] [xbp-40h] BYREF char v7; // [xsp+17h] [xbp-29h] void *__p[2]; // [xsp+18h] [xbp-28h] BYREF char v9; // [xsp+2Fh] [xbp-11h] v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); if ( v3 != -4 ) { if ( v3 != -2 ) return; sub_100009900(__p, "Do you want to unrate this level?"); v4 = (__int64 *)FLAlertLayer::create_1(a1 + 1040, "Unrate Level", __p, "Cancel", "Unrate", 380.0); if ( v9 < 0 ) operator delete(__p[0]); ButtonSprite::updateBGImage(v4[77], (__int64)"GJ_button_06.png"); (*(void (__fastcall **)(__int64 *, __int64))(*v4 + 72))(v4, 4294967293LL); goto LABEL_6; } if ( (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 0xFFFFFFFFLL) >= 1 && *(int *)(a1 + 1112) >= 1 ) { GameLevelManager::sharedState(); if ( (unsigned int)sub_1000C97A8() ) { *(_QWORD *)(GameLevelManager::sharedState() + 1360) = a1 + 1024; v5 = *(_QWORD *)(a1 + 1096); if ( v5 ) *(_QWORD *)(v5 + 664) = 0; sub_100009900(v6, "Updating rank..."); v4 = (__int64 *)UploadActionPopup::create(a1 + 1016, v6); *(_QWORD *)(a1 + 1096) = v4; if ( v7 < 0 ) { operator delete(v6[0]); v4 = *(__int64 **)(a1 + 1096); } LABEL_6: (*(void (__fastcall **)(__int64 *))(*v4 + 1312))(v4); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source