// // GJGarageLayer::achievementForUnlock from 0x10036f8b0 to 0x10036f964 (180 bytes) // // 0 xrefs: // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __fastcall GJGarageLayer::achievementForUnlock(__int64 a1, unsigned int a2, unsigned int a3, double a4) { AchievementManager *v5; // rax AchievementManager *v6; // r14 char isAchievementAvailable; // r14 __int128 v9; // [rsp+0h] [rbp-50h] BYREF void *__p; // [rsp+10h] [rbp-40h] __int128 v11; // [rsp+20h] [rbp-30h] BYREF void *v12; // [rsp+30h] [rbp-20h] v5 = AchievementManager::sharedState(); AchievementManager::achievementForUnlock(&v11, v5, a2, a3); v6 = AchievementManager::sharedState(); if ( (v11 & 1) != 0 ) { sub_100006B70(&v9, v12, *((unsigned __int64 *)&v11 + 1), a4); } else { __p = v12; v9 = v11; } isAchievementAvailable = AchievementManager::isAchievementAvailable(v6, &v9); if ( (v9 & 1) != 0 ) operator delete(__p); if ( isAchievementAvailable ) { *(_QWORD *)(a1 + 16) = v12; *(_OWORD *)a1 = v11; } else { *(_WORD *)a1 = 0; if ( (v11 & 1) != 0 ) operator delete(v12); } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source