	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function floatformat_from_double
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
LCPI0_3:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_4:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x41f0000000000000              ## double 4294967296
LCPI0_2:
	.quad	0x43e0000000000000              ## double 9.2233720368547758E+18
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_floatformat_from_double
	.p2align	4, 0x90
_floatformat_from_double:               ## @floatformat_from_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	$56, %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	%rdi, %r15
	movsd	(%rsi), %xmm0                   ## xmm0 = mem[0],zero
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	(%rdi), %eax
	movq	_FLOATFORMAT_CHAR_BIT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_2
## %bb.1:
	movl	48(%r15), %esi
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	movl	$1, %r9d
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_put_field
	xorpd	%xmm1, %xmm1
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	xorpd	LCPI0_0(%rip), %xmm0
LBB0_2:
	ucomisd	%xmm1, %xmm0
	jne	LBB0_3
	jp	LBB0_3
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	ucomisd	%xmm0, %xmm0
	jp	LBB0_4
## %bb.5:
	movapd	%xmm0, %xmm1
	addsd	%xmm0, %xmm1
	ucomisd	%xmm0, %xmm1
	jne	LBB0_8
	jp	LBB0_8
## %bb.6:
	movl	48(%r15), %esi
	movl	(%r15), %edx
	movl	8(%r15), %ecx
	movl	12(%r15), %r8d
	movq	16(%r15), %r9
	movq	%r14, %rdi
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_field                      ## TAILCALL
LBB0_8:
	leaq	-68(%rbp), %rdi
	callq	_frexp
	movapd	%xmm0, -64(%rbp)                ## 16-byte Spill
	movl	-68(%rbp), %ebx
	movl	28(%r15), %r9d
	addl	%ebx, %r9d
	cmpl	$2, %r9d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_10
## %bb.9:
	decl	%r9d
	movl	48(%r15), %esi
	movl	(%r15), %edx
	movl	8(%r15), %ecx
	movl	12(%r15), %r8d
	movq	%r14, %rdi
	callq	_put_field
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_11
LBB0_10:
	movl	48(%r15), %esi
	movl	(%r15), %edx
	movl	8(%r15), %ecx
	movl	12(%r15), %r8d
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	callq	_put_field
	movl	28(%r15), %eax
	leal	(%rbx,%rax), %edi
	decl	%edi
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	callq	_ldexp
LBB0_11:
	movl	32(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_22
## %bb.12:
	movl	24(%r15), %r12d
	movl	%eax, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$32, %r13d
	movl	$32, %ebx
	cmovll	%r13d, %ebx
	mulsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %rcx
	movq	%rcx, %rdx
	sarq	$63, %rdx
	movapd	%xmm0, %xmm1
	subsd	LCPI0_2(%rip), %xmm1
	cvttsd2si	%xmm1, %r9
	andq	%rdx, %r9
	orq	%rcx, %r9
	movq	%r9, %xmm1
	punpckldq	LCPI0_3(%rip), %xmm1    ## xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
	subpd	LCPI0_4(%rip), %xmm1
	cmpl	%eax, %r13d
	movapd	%xmm0, -64(%rbp)                ## 16-byte Spill
	movapd	%xmm1, -96(%rbp)                ## 16-byte Spill
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	40(%r15), %rax
	movq	_floatformat_intbit_no@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	28(%r15), %eax
	addl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	$2, %eax
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	andl	$2147483647, %r9d               ## imm = 0x7FFFFFFF
	decl	%ebx
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$31, %ebx
	ja	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	leal	32(%rbx), %ecx
	negl	%ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %r9
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	$32, %ebx
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r15), %edx
	movl	48(%r15), %esi
	movq	%r14, %rdi
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_put_field
	subl	%ebx, %r13d
	movapd	-64(%rbp), %xmm0                ## 16-byte Reload
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movapd	-96(%rbp), %xmm2                ## 16-byte Reload
	movapd	%xmm2, %xmm1
	unpckhpd	%xmm2, %xmm1                    ## xmm1 = xmm1[1],xmm2[1]
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	addl	%r12d, %ebx
	movl	32(%r15), %eax
	movl	%ebx, %r12d
	jmp	LBB0_13
LBB0_4:
	movl	48(%r15), %esi
	movl	(%r15), %edx
	movl	8(%r15), %ecx
	movl	12(%r15), %r8d
	movq	16(%r15), %r9
	movq	%r14, %rdi
	callq	_put_field
	movl	48(%r15), %esi
	movl	(%r15), %edx
	movl	24(%r15), %ecx
	movl	$1, %r9d
	movq	%r14, %rdi
	movl	$32, %r8d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOATFORMAT_CHAR_BIT,4,2       ## @FLOATFORMAT_CHAR_BIT
	.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_from_double        ; -- Begin function floatformat_from_double
	.p2align	2
_floatformat_from_double:               ; @floatformat_from_double
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x2
	mov	x20, x0
	ldr	d8, [x1]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FLOATFORMAT_CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLOATFORMAT_CHAR_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w2, w8, w9
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	fcmp	d8, #0.0
	b.pl	LBB0_2
; %bb.1:
	ldr	w1, [x20, #48]
	ldp	w2, w3, [x20]
	mov	x0, x19
	mov	w4, #1
	mov	w5, #1
	bl	_put_field
	fneg	d8, d8
LBB0_2:
	fcmp	d8, #0.0
	b.ne	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	fcmp	d8, d8
	b.vs	LBB0_20
; %bb.5:
	fadd	d0, d8, d8
	fcmp	d0, d8
	b.ne	LBB0_8
; %bb.6:
	ldr	w1, [x20, #48]
	ldr	w2, [x20]
	ldp	w3, w4, [x20, #8]
	ldr	x5, [x20, #16]
	mov	x0, x19
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_put_field
LBB0_8:
	add	x0, sp, #12
	fmov	d0, d8
	bl	_frexp
	fmov	d8, d0
	ldr	w23, [sp, #12]
	ldr	w8, [x20, #28]
	add	w8, w8, w23
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
	sub	w5, w8, #1
	ldr	w1, [x20, #48]
	ldr	w2, [x20]
	ldp	w3, w4, [x20, #8]
	mov	x0, x19
	bl	_put_field
	b	LBB0_11
LBB0_10:
	ldr	w1, [x20, #48]
	ldr	w2, [x20]
	ldp	w3, w4, [x20, #8]
	mov	x0, x19
	mov	x5, #0
	bl	_put_field
	ldr	w8, [x20, #28]
	add	w8, w23, w8
	sub	w0, w8, #1
	fmov	d0, d8
	bl	_ldexp
	fmov	d8, d0
LBB0_11:
	ldr	w8, [x20, #32]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.12:
	ldr	w21, [x20, #24]
	mov	w24, #32
	mov	x25, #4751297606875873280
Lloh3:
	adrp	x26, _floatformat_intbit_no@GOTPAGE
Lloh4:
	ldr	x26, [x26, _floatformat_intbit_no@GOTPAGEOFF]
	mov	x27, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w27, #32
	csel	w9, w27, w24, lt
	fcvtzu	x10, d8, #32
	cmp	w27, w8
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #40]
	ldr	x11, [x26]
	cmp	x8, x11
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20, #28]
	add	w8, w8, w23
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	and	x5, x10, #0x7fffffff
	sub	w22, w9, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	sub	w8, w24, w9
	lsr	x8, x10, x8
	cmp	w9, #31
	csel	w22, w24, w9, hi
	csel	x5, x10, x8, hi
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w1, [x20, #48]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x22
	bl	_put_field
	sub	w27, w27, w22
	cmp	w27, #1
	b.lt	LBB0_3
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=1
	fmov	d0, x25
	fmul	d0, d8, d0
	fcvtzu	d1, d0
	ucvtf	d1, d1
	fsub	d8, d0, d1
	add	w21, w22, w21
	ldr	w8, [x20, #32]
	b	LBB0_13
LBB0_20:
	ldr	w1, [x20, #48]
	ldr	w2, [x20]
	ldp	w3, w4, [x20, #8]
	ldr	x5, [x20, #16]
	mov	x0, x19
	bl	_put_field
	ldr	w1, [x20, #48]
	ldr	w2, [x20]
	ldr	w3, [x20, #24]
	mov	x0, x19
	mov	w4, #32
	mov	w5, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOATFORMAT_CHAR_BIT,4,2       ; @FLOATFORMAT_CHAR_BIT
	.comm	_floatformat_intbit_no,8,3      ; @floatformat_intbit_no
.subsections_via_symbols
