	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function floatformat_to_double
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
LCPI0_3:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_floatformat_to_double
	.p2align	4, 0x90
_floatformat_to_double:                 ## @floatformat_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	44(%rdi), %esi
	movl	40(%rdi), %edx
	movl	(%rdi), %ecx
	movl	4(%rdi), %r8d
	movq	%rbx, %rdi
	callq	_get_field
	cmpq	8(%r12), %rax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mant_bits_set
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_INFINITY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_13
LBB0_5:
	movq	%rax, %r13
	movl	20(%r12), %ebx
	movl	24(%r12), %r14d
	movslq	28(%r12), %rax
	testq	%r13, %r13
	je	LBB0_6
## %bb.7:
	subq	%rax, %r13
	movq	32(%r12), %rax
	movq	_floatformat_intbit_no@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r13, %rdi
	callq	_ldexp
	jmp	LBB0_12
LBB0_2:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_13
LBB0_6:
	movl	$1, %r13d
	subq	%rax, %r13
	xorps	%xmm0, %xmm0
	jmp	LBB0_12
LBB0_9:
	incq	%r13
	xorps	%xmm0, %xmm0
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	%ebx, %edi
	movl	$32, %esi
	callq	_min
	movl	%eax, %r15d
	movl	40(%r12), %edx
	movl	44(%r12), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_get_field
	movq	%rax, %xmm1
	punpckldq	LCPI0_1(%rip), %xmm1    ## xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
	subpd	LCPI0_2(%rip), %xmm1
	movapd	%xmm1, %xmm0
	unpckhpd	%xmm1, %xmm0                    ## xmm0 = xmm0[1],xmm1[1]
	addsd	%xmm1, %xmm0
	movl	%r15d, %eax
	subq	%rax, %r13
	movq	%r13, %rdi
	callq	_ldexp
	movapd	-64(%rbp), %xmm1                ## 16-byte Reload
	addsd	%xmm0, %xmm1
	movapd	%xmm1, -64(%rbp)                ## 16-byte Spill
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	addl	%r15d, %r14d
	subl	%r15d, %ebx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jg	LBB0_11
LBB0_13:
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	44(%r12), %esi
	movl	16(%r12), %ecx
	movl	40(%r12), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %r8d
	callq	_get_field
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
	xorps	LCPI0_3(%rip), %xmm0
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
LBB0_16:
	movsd	%xmm0, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAN,8,3                        ## @NAN
	.comm	_INFINITY,8,3                   ## @INFINITY
	.comm	_floatformat_intbit_no,8,3      ## @floatformat_intbit_no
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_floatformat_to_double          ; -- Begin function floatformat_to_double
	.p2align	2
_floatformat_to_double:                 ; @floatformat_to_double
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w2, w1, [x0, #40]
	ldp	w3, w4, [x0]
	mov	x0, x20
	bl	_get_field
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_mant_bits_set
Lloh0:
	adrp	x8, _INFINITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITY@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NAN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NAN@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	d8, [x8]
	b	LBB0_9
LBB0_2:
	ldp	w22, w23, [x21, #20]
	ldrsw	x8, [x21, #28]
	cbz	x0, LBB0_5
; %bb.3:
	sub	x24, x0, x8
	ldr	x8, [x21, #32]
Lloh4:
	adrp	x9, _floatformat_intbit_no@GOTPAGE
Lloh5:
	ldr	x9, [x9, _floatformat_intbit_no@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	fmov	d0, #1.00000000
	mov	x0, x24
	bl	_ldexp
	fmov	d8, d0
	cmp	w22, #1
	b.ge	LBB0_8
	b	LBB0_9
LBB0_5:
	mov	w9, #1
	sub	x24, x9, x8
	b	LBB0_7
LBB0_6:
	add	x24, x24, #1
LBB0_7:
	movi	d8, #0000000000000000
	cmp	w22, #1
	b.lt	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #32
	bl	_min
	mov	x25, x0
	ldp	w2, w1, [x21, #40]
	mov	x0, x20
	mov	x3, x23
	mov	x4, x25
	bl	_get_field
	ucvtf	d0, x0
	sub	x24, x24, w25, uxtw
	mov	x0, x24
	bl	_ldexp
	fadd	d8, d8, d0
	add	w23, w25, w23
	sub	w22, w22, w25
	cmp	w22, #0
	b.gt	LBB0_8
LBB0_9:
	ldp	w2, w1, [x21, #40]
	ldr	w3, [x21, #16]
	mov	x0, x20
	mov	w4, #1
	bl	_get_field
	fneg	d0, d8
	cmp	x0, #0
	fcsel	d0, d8, d0, eq
	str	d0, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NAN,8,3                        ; @NAN
	.comm	_INFINITY,8,3                   ; @INFINITY
	.comm	_floatformat_intbit_no,8,3      ; @floatformat_intbit_no
.subsections_via_symbols
