// // sub_1000A7908 from 0x1000a7908 to 0x1000a79f0 (232 bytes) // // 1 xrefs: // > sub_10009C054 @ 0x10009c1ec // // 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_1000A7908(__int64 a1, __int64 a2) { __int64 v3; // x0 __int64 result; // x0 __int64 v5; // x0 int v6; // w8 int v7; // w8 float v8; // s0 v3 = GameStatsManager::sharedState(a1); result = GameStatsManager::hasCompletedLevel(v3, a2); if ( (_DWORD)result && *(_DWORD *)(a2 + 948) - *(_DWORD *)(a2 + 952) >= 8 && *(_DWORD *)(a2 + 808) - *(_DWORD *)(a2 + 812) <= 49 && *(_DWORD *)(a2 + 820) - *(_DWORD *)(a2 + 824) <= 49 ) { v5 = GameStatsManager::sharedState(result); sub_1003CF0E8(v5, a2); *(_DWORD *)(a2 + 852) = 0; v6 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *(_DWORD *)(a2 + 856) = v6; *(_DWORD *)(a2 + 860) = v6; *(_DWORD *)(a2 + 872) = 0; v7 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *(_DWORD *)(a2 + 868) = v7; *(_DWORD *)(a2 + 864) = v7; *(_DWORD *)(a2 + 884) = 0; result = rand(); v8 = vcvts_n_f32_s32(result, 0x1Fu) * 1000.0; *(_DWORD *)(a2 + 880) = (int)v8; *(_DWORD *)(a2 + 876) = (int)v8; *(_DWORD *)(a2 + 1296) = 0; *(_DWORD *)(a2 + 1336) = 0; *(_BYTE *)(a2 + 849) = 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source