// // __remainder_piby2_fma3_bdl from 0x180136fe0 to 0x180137057 (119 bytes) // // 2 xrefs: // > cosf @ 0x18012b3ce // > @ 0x18020359c // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! __int64 __fastcall _remainder_piby2_fma3_bdl(double _XMM0_8) { __asm { vmovapd xmm1, xmm0 vmovapd xmm4, cs:xmmword_180176150 vmovapd xmm2, cs:xmmword_180176170 vfmadd132sd xmm1, xmm2, cs:qword_180176130 vsubsd xmm1, xmm1, xmm2 vcvttpd2dq xmm5, xmm1 vmovq rax, xmm5 vmovapd xmm2, xmm1 vfnmadd132sd xmm2, xmm0, cs:qword_180176140 vmulsd xmm3, xmm1, xmm4 vmovapd xmm0, xmm1 vfmsub213sd xmm0, xmm4, xmm3 vsubsd xmm5, xmm2, xmm3 vsubsd xmm4, xmm2, xmm5 vsubsd xmm4, xmm4, xmm3 vfnmadd231sd xmm2, xmm1, qword ptr cs:xmmword_180176150 vsubsd xmm5, xmm5, xmm2 vaddsd xmm5, xmm5, xmm4 vsubsd xmm5, xmm5, xmm0 vmovapd xmm0, xmm2 vfnmadd132sd xmm1, xmm5, cs:qword_180176160 } return _RAX & 3; }