{"type": "func", "start": 6443724768, "end": 6443724887, "name": "__remainder_piby2_fma3_bdl", "pseudocode": "// \n// __remainder_piby2_fma3_bdl from 0x180136fe0 to 0x180137057 (119 bytes)\n// \n// 2 xrefs:\n// > cosf @ 0x18012b3ce\n// > <???> @ 0x18020359c\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\n// local variable allocation has failed, the output may be wrong!\n__int64 __fastcall _remainder_piby2_fma3_bdl(double _XMM0_8)\n{\n  __asm\n  {\n    vmovapd xmm1, xmm0\n    vmovapd xmm4, cs:xmmword_180176150\n    vmovapd xmm2, cs:xmmword_180176170\n    vfmadd132sd xmm1, xmm2, cs:qword_180176130\n    vsubsd  xmm1, xmm1, xmm2\n    vcvttpd2dq xmm5, xmm1\n    vmovq   rax, xmm5\n    vmovapd xmm2, xmm1\n    vfnmadd132sd xmm2, xmm0, cs:qword_180176140\n    vmulsd  xmm3, xmm1, xmm4\n    vmovapd xmm0, xmm1\n    vfmsub213sd xmm0, xmm4, xmm3\n    vsubsd  xmm5, xmm2, xmm3\n    vsubsd  xmm4, xmm2, xmm5\n    vsubsd  xmm4, xmm4, xmm3\n    vfnmadd231sd xmm2, xmm1, qword ptr cs:xmmword_180176150\n    vsubsd  xmm5, xmm5, xmm2\n    vaddsd  xmm5, xmm5, xmm4\n    vsubsd  xmm5, xmm5, xmm0\n    vmovapd xmm0, xmm2\n    vfnmadd132sd xmm1, xmm5, cs:qword_180176160\n  }\n  return _RAX & 3;\n}", "assembly": "; \n; __remainder_piby2_fma3_bdl from 0x180136fe0 to 0x180137057 (119 bytes)\n; \n; 2 xrefs:\n; > cosf @ 0x18012b3ce\n; > <???> @ 0x18020359c\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\nvmovapd xmm1, xmm0                                                     ; +0x0, 0x180136fe0\nvmovapd xmm4, cs:xmmword_180176150                                     ; +0x4, 0x180136fe4\nvmovapd xmm2, cs:xmmword_180176170                                     ; +0xc, 0x180136fec\nvfmadd132sd xmm1, xmm2, cs:qword_180176130                             ; +0x14, 0x180136ff4\nvsubsd  xmm1, xmm1, xmm2                                               ; +0x1d, 0x180136ffd\nvcvttpd2dq xmm5, xmm1                                                  ; +0x21, 0x180137001\nvmovq   rax, xmm5                                                      ; +0x25, 0x180137005\nvmovapd xmm2, xmm1                                                     ; +0x2a, 0x18013700a\nvfnmadd132sd xmm2, xmm0, cs:qword_180176140                            ; +0x2e, 0x18013700e\nvmulsd  xmm3, xmm1, xmm4                                               ; +0x37, 0x180137017\nvmovapd xmm0, xmm1                                                     ; +0x3b, 0x18013701b\nvfmsub213sd xmm0, xmm4, xmm3                                           ; +0x3f, 0x18013701f\nvsubsd  xmm5, xmm2, xmm3                                               ; +0x44, 0x180137024\nvsubsd  xmm4, xmm2, xmm5                                               ; +0x48, 0x180137028\nvsubsd  xmm4, xmm4, xmm3                                               ; +0x4c, 0x18013702c\nvfnmadd231sd xmm2, xmm1, qword ptr cs:xmmword_180176150                ; +0x50, 0x180137030\nvsubsd  xmm5, xmm5, xmm2                                               ; +0x59, 0x180137039\nvaddsd  xmm5, xmm5, xmm4                                               ; +0x5d, 0x18013703d\nvsubsd  xmm5, xmm5, xmm0                                               ; +0x61, 0x180137041\nvmovapd xmm0, xmm2                                                     ; +0x65, 0x180137045\nvfnmadd132sd xmm1, xmm5, cs:qword_180176160                            ; +0x69, 0x180137049\nand     rax, 3                                                         ; +0x72, 0x180137052\nretn                                                                   ; +0x76, 0x180137056", "xrefs": ["cosf @ 0x18012b3ce", "<???> @ 0x18020359c"], "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"}