{"type": "func", "start": 4303766256, "end": 4303766300, "name": "AchievementManager::percentageForCount", "pseudocode": "// \n// AchievementManager::percentageForCount from 0x1008642f0 to 0x10086431c (44 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: pc, 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:36:42 +0000\n// \n\n__int64 __fastcall AchievementManager::percentageForCount(__m128 a1, __int64 a2, int a3, int a4)\n{\n  a1.f32[0] = (float)((float)a3 / (float)a4) * 100.0;\n  return (unsigned int)(int)fminf(_mm_round_ss(a1, a1, 9).f32[0], 100.0);\n}", "assembly": "; \n; AchievementManager::percentageForCount from 0x1008642f0 to 0x10086431c (44 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: pc, 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:36:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008642f0\nmov     rbp, rsp                                                       ; +0x1, 0x1008642f1\ncvtsi2ss xmm0, esi                                                     ; +0x4, 0x1008642f4\ncvtsi2ss xmm1, edx                                                     ; +0x8, 0x1008642f8\ndivss   xmm0, xmm1                                                     ; +0xc, 0x1008642fc\nmovss   xmm1, cs:dword_100A03584                                       ; +0x10, 0x100864300\nmulss   xmm0, xmm1                                                     ; +0x18, 0x100864308\nroundss xmm0, xmm0, 9                                                  ; +0x1c, 0x10086430c\nminss   xmm0, xmm1                                                     ; +0x22, 0x100864312\ncvttss2si eax, xmm0                                                    ; +0x26, 0x100864316\npop     rbp                                                            ; +0x2a, 0x10086431a\nretn                                                                   ; +0x2b, 0x10086431b", "xrefs": [], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}