	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function f80_to_double
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_f80_to_double
	.p2align	4, 0x90
_f80_to_double:                         ## @f80_to_double
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_f80_is_supported
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %r15
	shrq	$32, %r15
	movl	%r15d, -48(%rbp)
	movq	%r12, %rdi
	callq	_unbias
	movl	%eax, %ebx
	movq	_EXP_SPECIAL@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_9
## %bb.3:
	movq	_EXP64_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_12
LBB0_9:
	addl	$1023, %ebx                     ## imm = 0x3FF
	movq	_EXP64_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_4
## %bb.10:
	movq	_INFINITY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.11:
	xorps	LCPI0_0(%rip), %xmm0
	jmp	LBB0_12
LBB0_4:
	testl	%ebx, %ebx
	jg	LBB0_6
## %bb.5:
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	%r14, %rcx
	andq	%rax, %rcx
	sarl	%r14d
	negl	%ebx
	orq	%rcx, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_f80_shift_right
	movq	%rdx, %r14
	movq	%rdx, %r15
	shrq	$32, %r15
	movq	%rax, %rdi
	callq	_unbias
	movl	%eax, %ebx
	addl	$1023, %ebx                     ## imm = 0x3FF
LBB0_6:
	movl	%ebx, -64(%rbp)
	movl	%r14d, %edi
	movl	$11, %esi
	movl	%r15d, %edx
	callq	_u128_shift_right_round
	btq	$53, %rax
	jae	LBB0_8
## %bb.7:
	shrq	%rax
	incl	%ebx
	movl	%ebx, -64(%rbp)
LBB0_8:
	movq	%rax, -56(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	callq	_memcpy
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
LBB0_12:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,8,3                        ## @NAN
	.comm	_EXP_SPECIAL,8,3                ## @EXP_SPECIAL
	.comm	_EXP64_SPECIAL,4,2              ## @EXP64_SPECIAL
	.comm	_EXP64_MAX,4,2                  ## @EXP64_MAX
	.comm	_INFINITY,8,3                   ## @INFINITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f80_to_double                  ; -- Begin function f80_to_double
	.p2align	2
_f80_to_double:                         ; @f80_to_double
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_f80_is_supported
	cbz	w0, LBB0_3
; %bb.1:
	lsr	x21, x19, #32
	str	w21, [sp, #24]
	mov	x0, x20
	bl	_unbias
Lloh0:
	adrp	x8, _EXP_SPECIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXP_SPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EXP64_SPECIAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXP64_SPECIAL@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _NAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh8:
	ldr	d0, [x8]
	b	LBB0_11
LBB0_4:
	add	w22, w0, #1023
Lloh9:
	adrp	x8, _EXP64_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXP64_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _INFINITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INFINITY@GOTPAGEOFF]
Lloh14:
	ldr	d0, [x8]
	fneg	d1, d0
	cmp	w21, #0
	fcsel	d0, d0, d1, eq
	b	LBB0_11
LBB0_6:
	cmp	w22, #0
	b.gt	LBB0_8
; %bb.7:
	and	x8, x19, #0xffffffff00000000
	asr	w9, w19, #1
	neg	w2, w22
	orr	x1, x8, x9
	mov	x0, x20
	bl	_f80_shift_right
	mov	x19, x1
	lsr	x21, x1, #32
	bl	_unbias
	add	w22, w0, #1023
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_8:
	str	w22, [sp, #8]
	mov	x0, x19
	mov	w1, #11
	mov	x2, x21
	bl	_u128_shift_right_round
	tbz	x0, #53, LBB0_10
; %bb.9:
	lsr	x0, x0, #1
	add	w8, w22, #1
	str	w8, [sp, #8]
LBB0_10:
	str	x0, [sp, #16]
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #24
	bl	_memcpy
	ldr	d0, [sp]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,8,3                        ; @NAN
	.comm	_EXP_SPECIAL,8,3                ; @EXP_SPECIAL
	.comm	_EXP64_SPECIAL,4,2              ; @EXP64_SPECIAL
	.comm	_EXP64_MAX,4,2                  ; @EXP64_MAX
	.comm	_INFINITY,8,3                   ; @INFINITY
.subsections_via_symbols
