	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_ieee_double
_encode_ieee_double:                    ## @encode_ieee_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdx), %rcx
	movq	_SIGSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movslq	-4(%rcx,%rbx,4), %r8
	movl	8(%rdx), %esi
	shll	$31, %esi
	movq	_HOST_BITS_PER_LONG@GOTPCREL(%rip), %rax
	cmpl	$64, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r8, %rax
	shrq	$11, %rax
	movl	%eax, %r12d
	movl	$43, %ecx
	jmp	LBB0_3
LBB0_2:
	movslq	-8(%rcx,%rbx,4), %r12
	movq	%r8, %rax
	shlq	$21, %rax
	shrq	$11, %r12
	orq	%rax, %r12
	movl	$11, %ecx
LBB0_3:
	movq	%r8, %rbx
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rbx
	movslq	%esi, %r15
	movl	12(%rdx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_18
## %bb.4:
	andl	$1048575, %ebx                  ## imm = 0xFFFFF
	xorl	%r13d, %r13d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	movq	_SIG_MSB@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_15
## %bb.16:
	movq	%rdx, %rdi
	callq	_REAL_EXP
	cltq
	shlq	$20, %rax
	addq	$1071644672, %rax               ## imm = 0x3FE00000
	jmp	LBB0_17
LBB0_18:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_gcc_unreachable
	jmp	LBB0_19
LBB0_7:
	cmpl	$0, 4(%rdi)
	je	LBB0_13
## %bb.8:
	movl	16(%rdx), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmoveq	%rbx, %rax
	movl	(%rdi), %esi
	movl	%eax, %edi
	andl	$524287, %edi                   ## imm = 0x7FFFF
	orq	$524288, %rax                   ## imm = 0x80000
	cmpl	%esi, 20(%rdx)
	cmovneq	%rax, %rdi
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.9:
	testl	%esi, %esi
	jne	LBB0_11
## %bb.10:
	movl	$4294967295, %r13d              ## imm = 0xFFFFFFFF
	orq	$524287, %rdi                   ## imm = 0x7FFFF
	movq	%rdi, %rcx
	jmp	LBB0_12
LBB0_5:
	cmpl	$0, 8(%rdi)
	je	LBB0_13
## %bb.6:
	orq	$2146435072, %r15               ## imm = 0x7FF00000
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_13:
	movl	$4294967295, %r13d              ## imm = 0xFFFFFFFF
	orq	$2147483647, %r15               ## imm = 0x7FFFFFFF
	jmp	LBB0_19
LBB0_15:
	xorl	%eax, %eax
LBB0_17:
	orq	%r15, %rbx
	orq	%rax, %rbx
	movq	%rbx, %r15
	movq	%r12, %r13
	jmp	LBB0_19
LBB0_11:
	xorl	%r13d, %r13d
	testl	%ecx, %ecx
	cmoveq	%r12, %r13
	movq	%rdi, %rax
	orq	%r13, %rax
	movl	$262144, %ecx                   ## imm = 0x40000
	cmovneq	%rdi, %rcx
LBB0_12:
	orq	%r15, %rcx
	orq	$2146435072, %rcx               ## imm = 0x7FF00000
	movq	%rcx, %r15
LBB0_19:
	movq	_FLOAT_WORDS_BIG_ENDIAN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r15, %rax
	cmoveq	%r13, %rax
	cmoveq	%r15, %r13
	movq	%rax, (%r14)
	movq	%r13, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_SIGSZ,4,2                      ## @SIGSZ
	.comm	_SIG_MSB,4,2                    ## @SIG_MSB
	.comm	_HOST_BITS_PER_LONG,4,2         ## @HOST_BITS_PER_LONG
	.comm	_FLOAT_WORDS_BIG_ENDIAN,8,3     ## @FLOAT_WORDS_BIG_ENDIAN
	.no_dead_strip	_encode_ieee_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_ieee_double
_encode_ieee_double:                    ; @encode_ieee_double
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x9, _SIGSZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIGSZ@GOTPAGEOFF]
	ldr	x8, [x2]
Lloh2:
	ldr	w10, [x9]
	sub	w9, w10, #1
	ldrsw	x9, [x8, w9, sxtw #2]
	ldr	w11, [x2, #8]
	lsl	w11, w11, #31
	sxtw	x20, w11
Lloh3:
	adrp	x11, _HOST_BITS_PER_LONG@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HOST_BITS_PER_LONG@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w11, #64
	b.ne	LBB0_2
; %bb.1:
	ubfx	x21, x9, #11, #32
	mov	w10, #43
	b	LBB0_3
LBB0_2:
	sub	w10, w10, #2
	ldrsw	x8, [x8, w10, sxtw #2]
	lsr	x8, x8, #11
	orr	x21, x8, x9, lsl #21
	mov	w10, #11
LBB0_3:
	ldr	w8, [x2, #12]
	sub	w11, w8, #128
	cmp	w11, #3
	b.hi	LBB0_7
; %bb.4:
	mov	x8, #0
	lsr	x10, x9, x10
	and	x22, x10, #0xfffff
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x12, LBB0_5
	ldrb	w13, [x10, x11]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_5:
Lloh8:
	adrp	x8, _SIG_MSB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIG_MSB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w9
	cbz	w8, LBB0_13
; %bb.6:
	mov	x0, x2
	bl	_REAL_EXP
	add	w8, w0, #1022
	sbfiz	x8, x8, #20, #32
	b	LBB0_14
LBB0_7:
	bl	_gcc_unreachable
	mov	x8, #0
	b	LBB0_18
LBB0_8:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_15
; %bb.9:
	ldp	w8, w9, [x2, #16]
	cmp	w8, #0
	csel	x11, x22, xzr, eq
	ldr	w10, [x0]
	and	x12, x11, #0x7ffff
	orr	x11, x11, #0x80000
	cmp	w9, w10
	csel	x9, x12, x11, eq
	cbz	w8, LBB0_16
; %bb.10:
	cbnz	w10, LBB0_16
; %bb.11:
	orr	x9, x9, #0x7ffff
	mov	w8, #-1
	b	LBB0_17
LBB0_12:
	ldr	w8, [x0, #8]
	orr	x9, x20, #0x7fffffff
	mov	w10, #-1
	orr	x11, x20, #0x7ff00000
	cmp	w8, #0
	csel	x20, x9, x11, eq
	csel	x8, x10, xzr, eq
	b	LBB0_18
LBB0_13:
	mov	x8, #0
LBB0_14:
	orr	x9, x22, x20
	orr	x20, x9, x8
	mov	x8, x21
	b	LBB0_18
LBB0_15:
	orr	x20, x20, #0x7fffffff
	mov	w8, #-1
	b	LBB0_18
LBB0_16:
	cmp	w8, #0
	csel	x8, x21, xzr, eq
	orr	x10, x9, x8
	mov	w11, #262144
	cmp	x10, #0
	csel	x9, x11, x9, eq
LBB0_17:
	orr	x9, x9, x20
	orr	x20, x9, #0x7ff00000
LBB0_18:
Lloh11:
	adrp	x9, _FLOAT_WORDS_BIG_ENDIAN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLOAT_WORDS_BIG_ENDIAN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, #0
	csel	x9, x8, x20, eq
	csel	x8, x20, x8, eq
	stp	x9, x8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_SIGSZ,4,2                      ; @SIGSZ
	.comm	_SIG_MSB,4,2                    ; @SIG_MSB
	.comm	_HOST_BITS_PER_LONG,4,2         ; @HOST_BITS_PER_LONG
	.comm	_FLOAT_WORDS_BIG_ENDIAN,8,3     ; @FLOAT_WORDS_BIG_ENDIAN
	.no_dead_strip	_encode_ieee_double
.subsections_via_symbols
