{"type": "func", "start": 6566540, "end": 6566588, "name": "AchievementManager::percentageForCount", "pseudocode": "// \n// AchievementManager::percentageForCount from 0x64328c to 0x6432bc (48 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0xbbb10\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:18 +0000\n// \n\n__int64 __fastcall AchievementManager::percentageForCount(AchievementManager *this, int a2, int a3)\n{\n  __int64 result; // x0\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 (unsigned int)(int)v4;\n  return result;\n}", "assembly": "; \n; AchievementManager::percentageForCount from 0x64328c to 0x6432bc (48 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0xbbb10\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:18 +0000\n; \nSCVTF           S0, W1                                                 ; +0x0, 0x64328c\nMOV             W0, #0x64 ; 'd'                                        ; +0x4, 0x643290\nSCVTF           S2, W2                                                 ; +0x8, 0x643294\nLDR             S1, =0x42C80000                                        ; +0xc, 0x643298\nFDIV            S0, S0, S2                                             ; +0x10, 0x64329c\nFMUL            S0, S0, S1                                             ; +0x14, 0x6432a0\nFRINTM          S0, S0                                                 ; +0x18, 0x6432a4\nFCMPE           S0, S1                                                 ; +0x1c, 0x6432a8\nB.MI            loc_6432B4                                             ; +0x20, 0x6432ac\nRET                                                                    ; +0x24, 0x6432b0\nFCVTZS          W0, S0                                                 ; +0x28, 0x6432b4\nRET                                                                    ; +0x2c, 0x6432b8", "xrefs": ["<???> @ 0xbbb10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}