// // sub_1000A79F0 from 0x1000a79f0 to 0x1000a7ae8 (248 bytes) // // 4 xrefs: // > sub_10009C054 @ 0x10009c1f4 // > sub_1000A9110 @ 0x1000a925c // > sub_1000B9B2C @ 0x1000ba378 // > sub_1000B9B2C @ 0x1000ba614 // // 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 10:58:34 +0000 // __int64 __fastcall sub_1000A79F0(__int64 a1, _DWORD *a2) { int v3; // w20 int v4; // w21 __int64 v5; // x0 __int64 result; // x0 __int64 v7; // x0 float v8; // s0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x0 __int64 v12; // x0 v3 = a2[230]; v4 = a2[231]; v5 = GameStatsManager::sharedState(a1); if ( v3 <= v4 ) { result = GameStatsManager::hasCompletedLevel(v5, a2); if ( !(_DWORD)result ) goto LABEL_10; } else { result = GameStatsManager::hasCompletedDailyStars(v5, (unsigned int)(a2[230] - a2[231])); if ( (result & 1) == 0 ) goto LABEL_10; } a2[213] = 100; v7 = rand(); v8 = vcvts_n_f32_s32(v7, 0x1Fu) * 1000.0; a2[214] = (int)v8; a2[215] = (int)v8 + 100; if ( a2[233] - a2[234] == 1 ) { v9 = GameStatsManager::sharedState(v7); v7 = sub_1003CEDF4(v9, a2); } if ( a2[237] > a2[238] ) { v10 = GameStatsManager::sharedState(v7); v7 = sub_1003CEEC0(v10, a2); } v11 = GameStatsManager::sharedState(v7); result = sub_1003CFD70(v11, a2); LABEL_10: if ( a2[237] > a2[238] ) { v12 = GameStatsManager::sharedState(result); return sub_1003D0824(v12, a2); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source