// // addStarsToMap from 0x4183b8 to 0x41846e (182 bytes) // // 2 xrefs: // > GameManager::recountUserStats @ 0x41ba20 // > GameManager::recountUserStats @ 0x41ba46 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:47:42 +0000 // int __fastcall addStarsToMap(int a1, unsigned __int8 *a2) { int v3; // r5 int v4; // r7 int v5; // r11 int v6; // r0 const char *v7; // r0 int v8; // r0 const char *v9; // r0 int v10; // r11 int v12; // [sp+Ch] [bp-18h] BYREF int v13; // [sp+10h] [bp-14h] BYREF int v14; // [sp+14h] [bp-10h] int v15; // [sp+18h] [bp-Ch] v13 = 0; v14 = 0; v15 = 0; sub_4173C4(a2, ",", &v13); v3 = 1; v4 = -1431655765 * ((v14 - v13) >> 2); while ( v3 < v4 ) { v5 = v13; v6 = v13 + 12 * v3 - 12; if ( (*(_BYTE *)v6 & 1) != 0 ) v7 = *(const char **)(v6 + 8); else v7 = (const char *)(v6 + 1); v12 = atoi(v7); v8 = v5 + 12 * v3; if ( (*(_BYTE *)v8 & 1) != 0 ) v9 = *(const char **)(v8 + 8); else v9 = (const char *)(v8 + 1); v10 = atoi(v9); if ( (unsigned int)(v10 - 1) <= 9 ) *std::unordered_map::operator[](a1, (unsigned int *)&v12) = v10; v3 += 2; } return std::__vector_base::~__vector_base((int)&v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source