// // GameStatsManager::isPathChestUnlocked from 0x7b67c8 to 0x7b694c (388 bytes) // // 2 xrefs: // > GJPathsLayer::onPath @ 0xa717d8 // > @ 0xc6c30 // // 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 // bool GameStatsManager::isPathChestUnlocked(GameStatsManager *a1, int a2) { char isSpecialChestUnlocked; // w22 char *v4; // x0 void *v5; // x0 unsigned int *v7; // x1 int v8; // w2 unsigned int *v9; // x1 int v10; // w2 __int64 v11; // [xsp+38h] [xbp+38h] BYREF char *v12; // [xsp+40h] [xbp+40h] BYREF GameStatsManager::getPathRewardKey(a1, a2, (__int64)&v11); sub_D18D28(&v12); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((__int64)a1, &v12); v4 = v12 - 24; if ( v12 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v7 = (unsigned int *)(v12 - 8); do v8 = __ldaxr(v7); while ( __stlxr(v8 - 1, v7) ); } else { v8 = *((_DWORD *)v12 - 2); *((_DWORD *)v12 - 2) = v8 - 1; } if ( v8 <= 0 ) operator delete(v4); } v5 = (void *)(v11 - 24); if ( (__int64 *)(v11 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v11 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *(_DWORD *)(v11 - 8); *(_DWORD *)(v11 - 8) = v10 - 1; } if ( v10 <= 0 ) operator delete(v5); } return isSpecialChestUnlocked; }
GD Web Decomp Icon

GD Web Decomp

Raw Source