	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmod                           ## -- Begin function fmod
	.p2align	4, 0x90
_fmod:                                  ## @fmod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	callq	___HI
	movl	%eax, %r14d
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	___LO
	movl	%eax, %ebx
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	___HI
	movl	%eax, %r15d
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	___LO
	movl	%r15d, %r10d
	andl	$2147483647, %r10d              ## imm = 0x7FFFFFFF
	movl	%r10d, %ecx
	orl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	movl	%r14d, %r9d
	andl	$2147483647, %r9d               ## imm = 0x7FFFFFFF
	cmpl	$2146435071, %r9d               ## imm = 0x7FEFFFFF
	ja	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	orl	%r10d, %ecx
	cmpl	$2146435073, %ecx               ## imm = 0x7FF00001
	jb	LBB0_4
LBB0_3:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	divsd	%xmm0, %xmm0
LBB0_46:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	%r10d, %r9d
	ja	LBB0_9
## %bb.5:
	jb	LBB0_6
## %bb.7:
	cmpl	%eax, %ebx
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jb	LBB0_46
## %bb.8:
	je	LBB0_45
LBB0_9:
	cmpl	$1048575, %r9d                  ## imm = 0xFFFFF
	ja	LBB0_17
## %bb.10:
	testl	%r9d, %r9d
	je	LBB0_11
## %bb.14:
	movl	%r14d, %ecx
	shll	$11, %ecx
	movl	$-1022, %edi                    ## imm = 0xFC02
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	decl	%edi
	addl	%ecx, %ecx
	jmp	LBB0_16
LBB0_17:
	movl	%r9d, %edi
	shrl	$20, %edi
	addl	$-1023, %edi                    ## imm = 0xFC01
LBB0_18:
	cmpl	$1048575, %r10d                 ## imm = 0xFFFFF
	ja	LBB0_26
## %bb.19:
	testl	%r10d, %r10d
	je	LBB0_20
## %bb.23:
	movl	%r15d, %ecx
	shll	$11, %ecx
	movl	$-1022, %edx                    ## imm = 0xFC02
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_25 Depth=1
	decl	%edx
	addl	%ecx, %ecx
	jmp	LBB0_25
LBB0_26:
	movl	%r10d, %edx
	shrl	$20, %edx
	addl	$-1023, %edx                    ## imm = 0xFC01
LBB0_27:
	cmpl	$-1022, %edi                    ## imm = 0xFC02
	jl	LBB0_29
## %bb.28:
	movl	%r14d, %r11d
	andl	$1048575, %r11d                 ## imm = 0xFFFFF
	orl	$1048576, %r11d                 ## imm = 0x100000
	cmpl	$-1022, %edx                    ## imm = 0xFC02
	jl	LBB0_34
	jmp	LBB0_33
LBB0_29:
	cmpl	$-1053, %edi                    ## imm = 0xFBE3
	jb	LBB0_31
## %bb.30:
	movb	$2, %r8b
	leal	30(%rdi), %ecx
	movl	%ebx, %r11d
                                        ## kill: def $cl killed $cl killed $ecx
	shrdl	%cl, %r9d, %r11d
	subb	%dil, %r8b
	movl	%r8d, %ecx
	shll	%cl, %ebx
	cmpl	$-1022, %edx                    ## imm = 0xFC02
	jge	LBB0_33
LBB0_34:
	cmpl	$-1053, %edx                    ## imm = 0xFBE3
	jb	LBB0_36
## %bb.35:
	movb	$2, %r8b
	leal	30(%rdx), %ecx
	movl	%eax, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shrdl	%cl, %r10d, %r15d
	subb	%dl, %r8b
	movl	%r8d, %ecx
	shll	%cl, %eax
	cmpl	%edx, %edi
	je	LBB0_44
	jmp	LBB0_38
LBB0_31:
	movb	$-30, %cl
	subb	%dil, %cl
	shll	%cl, %ebx
	movl	%ebx, %r11d
	xorl	%ebx, %ebx
	cmpl	$-1022, %edx                    ## imm = 0xFC02
	jl	LBB0_34
LBB0_33:
	andl	$1048575, %r15d                 ## imm = 0xFFFFF
	orl	$1048576, %r15d                 ## imm = 0x100000
	cmpl	%edx, %edi
	je	LBB0_44
	jmp	LBB0_38
LBB0_36:
	movb	$-30, %cl
	subb	%dl, %cl
	shll	%cl, %eax
	movl	%eax, %r15d
	xorl	%eax, %eax
	cmpl	%edx, %edi
	jne	LBB0_38
LBB0_44:
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	movl	%r11d, %edx
	sbbl	%r15d, %edx
	cmovsl	%r11d, %edx
	cmovnsl	%eax, %ecx
	subl	%ecx, %ebx
	orl	%edx, %ebx
                                        ## implicit-def: $xmm0
	jne	LBB0_46
LBB0_45:
	movq	_Zero@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shrl	$31, %r14d
	movsd	(%rax,%r14,8), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_46
LBB0_38:
	subl	%edi, %edx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_39 Depth=1
	shldl	$1, %ebx, %r11d
LBB0_43:                                ##   in Loop: Header=BB0_39 Depth=1
	addl	%ebx, %ebx
	incl	%edx
	je	LBB0_44
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movl	%r11d, %ecx
	subl	%r15d, %ecx
	xorl	%esi, %esi
	movl	%ebx, %edi
	subl	%eax, %edi
	setb	%sil
	subl	%esi, %ecx
	js	LBB0_40
## %bb.41:                              ##   in Loop: Header=BB0_39 Depth=1
	movl	%ecx, %esi
	orl	%edi, %esi
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_39 Depth=1
	shldl	$1, %edi, %ecx
	movl	%ecx, %r11d
	movl	%edi, %ebx
	jmp	LBB0_43
LBB0_6:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_46
LBB0_11:
	movl	$-1043, %edi                    ## imm = 0xFBED
	testl	%ebx, %ebx
	jle	LBB0_18
## %bb.12:
	movl	%ebx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	decl	%edi
	addl	%ecx, %ecx
	testl	%ecx, %ecx
	jg	LBB0_13
	jmp	LBB0_18
LBB0_20:
	movl	$-1043, %edx                    ## imm = 0xFBED
	testl	%eax, %eax
	jle	LBB0_27
## %bb.21:
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	decl	%edx
	addl	%ecx, %ecx
	testl	%ecx, %ecx
	jg	LBB0_22
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_Zero,8,3                       ## @Zero
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmod                           ; -- Begin function fmod
	.p2align	2
_fmod:                                  ; @fmod
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	fmov	d9, d1
	fmov	d8, d0
	bl	___HI
	mov	x19, x0
	fmov	d0, d8
	bl	___LO
	mov	x21, x0
	fmov	d0, d9
	bl	___HI
	mov	x20, x0
	fmov	d0, d9
	bl	___LO
	and	w8, w20, #0x7fffffff
	orr	w9, w8, w0
	cbz	w9, LBB0_3
; %bb.1:
	and	w9, w19, #0x7fffffff
	lsr	w10, w9, #20
	cmp	w10, #2046
	b.hi	LBB0_3
; %bb.2:
	cmp	w0, #0
	cset	w11, ne
	orr	w11, w8, w11
	mov	w12, #1
	movk	w12, #32752, lsl #16
	cmp	w11, w12
	b.lo	LBB0_5
LBB0_3:
	fmul	d0, d8, d9
	fdiv	d8, d0, d0
LBB0_4:
	fmov	d0, d8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	w9, w8
	b.hi	LBB0_9
; %bb.6:
	b.lo	LBB0_4
; %bb.7:
	cmp	w21, w0
	b.lo	LBB0_4
; %bb.8:
	b.eq	LBB0_21
LBB0_9:
	cbnz	w10, LBB0_13
; %bb.10:
	cbz	w9, LBB0_28
; %bb.11:
	lsl	w11, w19, #11
	mov	w10, #-1022
	cmp	w11, #1
	b.lt	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w10, w10, #1
	lsl	w11, w11, #1
	cmp	w11, #0
	b.gt	LBB0_12
	b	LBB0_14
LBB0_13:
	sub	w10, w10, #1023
LBB0_14:
	lsr	w11, w8, #20
	cbnz	w11, LBB0_18
; %bb.15:
	cbz	w8, LBB0_31
; %bb.16:
	lsl	w12, w20, #11
	mov	w11, #-1022
	cmp	w12, #1
	b.lt	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	sub	w11, w11, #1
	lsl	w12, w12, #1
	cmp	w12, #0
	b.gt	LBB0_17
	b	LBB0_19
LBB0_18:
	sub	w11, w11, #1023
LBB0_19:
	mov	w13, #-1054
	sub	w12, w13, w10
	lsl	w12, w21, w12
	mov	w14, #-1022
	sub	w15, w14, w10
	lsl	w9, w9, w15
	add	w16, w10, #1054
	lsr	w16, w21, w16
	orr	w9, w9, w16
	lsl	w15, w21, w15
	cmn	w10, #1053
	csel	w9, w12, w9, lo
	csel	w12, wzr, w15, lo
	mov	w15, #1048576
	mov	w16, #1048576
	bfxil	w16, w19, #0, #20
	cmn	w10, #1022
	csel	w9, w9, w16, lt
	csel	w12, w12, w21, lt
	sub	w13, w13, w11
	lsl	w13, w0, w13
	sub	w14, w14, w11
	lsl	w8, w8, w14
	add	w16, w11, #1054
	lsr	w16, w0, w16
	orr	w8, w8, w16
	lsl	w14, w0, w14
	cmn	w11, #1053
	csel	w8, w13, w8, lo
	csel	w14, wzr, w14, lo
	bfxil	w15, w20, #0, #20
	cmn	w11, #1022
	csel	w13, w8, w15, lt
	csel	w8, w14, w0, lt
	cmp	w10, w11
	b.ne	LBB0_22
LBB0_20:
	cmp	w12, w8
	cset	w10, lo
	sub	w11, w9, w13
	sub	w10, w11, w10
	cmp	w10, #0
	csel	w9, w10, w9, ge
	bic	w8, w8, w10, asr #31
	sub	w8, w12, w8
	orr	w8, w8, w9
                                        ; implicit-def: $d8
	cbnz	w8, LBB0_4
LBB0_21:
Lloh0:
	adrp	x8, _Zero@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Zero@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	w9, w19, #31
	ldr	d8, [x8, w9, uxtw #3]
	b	LBB0_4
LBB0_22:
	sub	w10, w11, w10
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	extr	w9, w9, w12, #31
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	lsl	w12, w12, #1
	adds	w10, w10, #1
	b.hs	LBB0_20
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	subs	w11, w12, w8
	cset	w14, lo
	sub	w15, w9, w13
	subs	w14, w15, w14
	b.mi	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	orr	w9, w14, w11
	cbz	w9, LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	extr	w9, w14, w11, #31
	mov	x12, x11
	b	LBB0_24
LBB0_28:
	mov	w10, #-1043
	cmp	w21, #1
	b.lt	LBB0_14
; %bb.29:
	mov	x11, x21
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	sub	w10, w10, #1
	lsl	w11, w11, #1
	cmp	w11, #0
	b.gt	LBB0_30
	b	LBB0_14
LBB0_31:
	mov	w11, #-1043
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.32:
	mov	x12, x0
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	sub	w11, w11, #1
	lsl	w12, w12, #1
	cmp	w12, #0
	b.gt	LBB0_33
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Zero,8,3                       ; @Zero
.subsections_via_symbols
