{"type": "func", "start": 5580952, "end": 5581000, "name": "AchievementManager::percentageForCount", "pseudocode": "// \n// AchievementManager::percentageForCount from 0x552898 to 0x5528c8 (48 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x8dc48\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint AchievementManager::percentageForCount(AchievementManager *a1, int a2, int a3)\n{\n  int result; // w0\n  float v4; // s0\n\n  result = 100;\n  v4 = floorf((float)((float)a2 / (float)a3) * 100.0);\n  if ( v4 < 100.0 )\n    return (int)v4;\n  return result;\n}", "assembly": "; \n; AchievementManager::percentageForCount from 0x552898 to 0x5528c8 (48 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x8dc48\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSCVTF           S0, W1                                                 ; +0x0, 0x552898\nMOV             W0, #0x64 ; 'd'                                        ; +0x4, 0x55289c\nSCVTF           S2, W2                                                 ; +0x8, 0x5528a0\nLDR             S1, =0x42C80000                                        ; +0xc, 0x5528a4\nFDIV            S0, S0, S2                                             ; +0x10, 0x5528a8\nFMUL            S0, S0, S1                                             ; +0x14, 0x5528ac\nFRINTM          S0, S0                                                 ; +0x18, 0x5528b0\nFCMPE           S0, S1                                                 ; +0x1c, 0x5528b4\nB.MI            loc_5528C0                                             ; +0x20, 0x5528b8\nRET                                                                    ; +0x24, 0x5528bc\nFCVTZS          W0, S0                                                 ; +0x28, 0x5528c0\nRET                                                                    ; +0x2c, 0x5528c4", "xrefs": ["<???> @ 0x8dc48"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}