{"type": "func", "start": 6442547424, "end": 6442547482, "name": "sub_1800178E0", "pseudocode": "// \n// sub_1800178E0 from 0x1800178e0 to 0x18001791a (58 bytes)\n// \n// 1 xrefs:\n// > sub_180017B30 @ 0x180017f77\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:15:42 +0000\n// \n\n__int64 __fastcall sub_1800178E0(__int64 a1, double a2, double a3)\n{\n  if ( *(_BYTE *)(a1 + 204) )\n    return 1;\n  if ( a2 <= 0.0 )\n  {\n    *(_DWORD *)(a1 + 208) = 0;\n    return 0;\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 208) = (int)(a3 / a2 * 100.0);\n    return 0;\n  }\n}", "assembly": "; \n; sub_1800178E0 from 0x1800178e0 to 0x18001791a (58 bytes)\n; \n; 1 xrefs:\n; > sub_180017B30 @ 0x180017f77\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:15:42 +0000\n; \ncmp     byte ptr [rcx+0CCh], 0                                         ; +0x0, 0x1800178e0\njz      short loc_1800178EF                                            ; +0x7, 0x1800178e7\nmov     eax, 1                                                         ; +0x9, 0x1800178e9\nretn                                                                   ; +0xe, 0x1800178ee\nxorps   xmm0, xmm0                                                     ; +0xf, 0x1800178ef\ncomisd  xmm1, xmm0                                                     ; +0x12, 0x1800178f2\njbe     short loc_180017911                                            ; +0x16, 0x1800178f6\ndivsd   xmm2, xmm1                                                     ; +0x18, 0x1800178f8\nmulsd   xmm2, cs:qword_18002BC30                                       ; +0x1c, 0x1800178fc\ncvttsd2si eax, xmm2                                                    ; +0x24, 0x180017904\nmov     [rcx+0D0h], eax                                                ; +0x28, 0x180017908\nxor     eax, eax                                                       ; +0x2e, 0x18001790e\nretn                                                                   ; +0x30, 0x180017910\nxor     eax, eax                                                       ; +0x31, 0x180017911\nmov     [rcx+0D0h], eax                                                ; +0x33, 0x180017913\nretn                                                                   ; +0x39, 0x180017919", "xrefs": ["sub_180017B30 @ 0x180017f77"], "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"}