	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_modfl                          ## -- Begin function modfl
	.p2align	4, 0x90
_modfl:                                 ## @modfl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	fldt	16(%rbp)
	fld	%st(0)
	fstpt	-64(%rbp)
	movl	-64(%rbp), %eax
	fld	%st(0)
	fstpt	-48(%rbp)
	movq	_LDBL_MAX_EXP@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	leal	1(%rax), %ecx
	movq	_HIBITS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	%esi, %ecx
	jge	LBB0_3
## %bb.1:
	cmpl	$-2, %eax
	jg	LBB0_7
## %bb.2:
	movq	_zero@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	shlq	$4, %rcx
	fldt	(%rax,%rcx)
	fstpt	(%rbx)
	jmp	LBB0_9
LBB0_3:
	movq	_LDBL_MANT_DIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	decl	%esi
	subl	%ecx, %esi
	jle	LBB0_4
## %bb.6:
	fstpt	-20(%rbp)                       ## 10-byte Folded Spill
	callq	_GETFRAC
	fldt	-20(%rbp)                       ## 10-byte Folded Reload
	fld	%st(0)
	fstpt	(%rbx)
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_5
LBB0_7:
	subl	%eax, %esi
	addl	$-2, %esi
	fstpt	-20(%rbp)                       ## 10-byte Folded Spill
	callq	_GETFRAC
	fldt	-20(%rbp)                       ## 10-byte Folded Reload
	fld	%st(0)
	fstpt	(%rbx)
LBB0_8:
	fsub	%st, %st(0)
	jmp	LBB0_9
LBB0_4:
	fld	%st(0)
	fstpt	(%rbx)
	fucomi	%st(0), %st
	jp	LBB0_9
LBB0_5:
	fstp	%st(0)
	movq	_zero@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-40(%rbp), %rcx
	shlq	$4, %rcx
	fldt	(%rax,%rcx)
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDBL_MAX_EXP,4,2               ## @LDBL_MAX_EXP
	.comm	_HIBITS,4,2                     ## @HIBITS
	.comm	_zero,8,3                       ## @zero
	.comm	_LDBL_MANT_DIG,4,2              ## @LDBL_MANT_DIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_modfl                          ; -- Begin function modfl
	.p2align	2
_modfl:                                 ; @modfl
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x0
	fmov	d8, d0
	fmov	x8, d8
Lloh0:
	adrp	x9, _LDBL_MAX_EXP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LDBL_MAX_EXP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w8, w8, w9
	add	w9, w8, #1
Lloh3:
	adrp	x10, _HIBITS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HIBITS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_3
; %bb.1:
	cmn	w8, #2
	b.gt	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _zero@GOTPAGE
Lloh7:
	ldr	x8, [x8, _zero@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	d0, [x8]
	str	d0, [x19]
	b	LBB0_9
LBB0_3:
Lloh9:
	adrp	x8, _LDBL_MANT_DIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDBL_MANT_DIG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w8, w8, #1
	subs	w1, w8, w9
	b.le	LBB0_7
; %bb.4:
	bl	_GETFRAC
	str	d8, [x19]
	cbnz	w0, LBB0_6
	b	LBB0_8
LBB0_5:
	sub	w8, w10, w8
	sub	w1, w8, #2
	bl	_GETFRAC
	str	d8, [x19]
LBB0_6:
	fsub	d8, d8, d8
	b	LBB0_9
LBB0_7:
	str	d8, [x19]
	fcmp	d8, d8
	b.vs	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _zero@GOTPAGE
Lloh13:
	ldr	x8, [x8, _zero@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	d8, [x8]
LBB0_9:
	fmov	d0, d8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LDBL_MAX_EXP,4,2               ; @LDBL_MAX_EXP
	.comm	_HIBITS,4,2                     ; @HIBITS
	.comm	_zero,8,3                       ; @zero
	.comm	_LDBL_MANT_DIG,4,2              ; @LDBL_MANT_DIG
.subsections_via_symbols
