	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nexttoward                     ## -- Begin function nexttoward
	.p2align	4, 0x90
_nexttoward:                            ## @nexttoward
	.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	$104, %rsp
	.cfi_offset %rbx, -24
	fldt	16(%rbp)
	fld	%st(0)
	fstpt	-108(%rbp)                      ## 10-byte Folded Spill
	fstpt	-96(%rbp)
	movq	-96(%rbp), %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	callq	_EXTRACT_WORDS
	fldt	-108(%rbp)                      ## 10-byte Folded Reload
	fld	%st(0)
	fstpt	-32(%rbp)
	cmpl	$32767, %ebx                    ## imm = 0x7FFF
	jne	LBB0_3
## %bb.1:
	shrq	$32, %rbx
	movq	_LDBL_NBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ebx, %eax
	orl	-24(%rbp), %eax
	je	LBB0_3
## %bb.2:
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -80(%rbp)
	faddl	-80(%rbp)
	fstpl	-72(%rbp)
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
	jmp	LBB0_9
LBB0_3:
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, -64(%rbp)
	fldl	-64(%rbp)
	fucompi	%st(1), %st
	jne	LBB0_5
	jp	LBB0_5
## %bb.4:
	fstpl	-56(%rbp)
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	fstp	%st(0)
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_8
	jp	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_INSERT_WORDS
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)
	movsd	-48(%rbp), %xmm1                ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jne	LBB0_9
	jp	LBB0_9
## %bb.7:
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	jmp	LBB0_9
LBB0_8:
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)
	movsd	-48(%rbp), %xmm1                ## xmm1 = mem[0],zero
	callq	_INSERT_WORDS
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LDBL_NBIT,4,2                  ## @LDBL_NBIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nexttoward                     ; -- Begin function nexttoward
	.p2align	2
_nexttoward:                            ; @nexttoward
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	d9, d8, [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 b8, -24
	.cfi_offset b9, -32
	fmov	d9, d1
	fmov	d8, d0
	bl	_EXTRACT_WORDS
	fmov	x8, d9
	mov	w9, #32767
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	fadd	d9, d8, d9
	b	LBB0_3
LBB0_2:
	fcmp	d8, d9
	b.ne	LBB0_4
LBB0_3:
	fmov	d0, d9
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	fcmp	d8, #0.0
	b.ne	LBB0_7
; %bb.5:
	fmov	d0, d8
	mov	w0, #0
	mov	w1, #1
	bl	_INSERT_WORDS
	fmul	d0, d8, d8
	str	d0, [sp, #8]
	ldr	d0, [sp, #8]
	fcmp	d0, d8
	fmov	d9, d8
	b.ne	LBB0_3
; %bb.6:
	ldr	d9, [sp, #8]
	b	LBB0_3
LBB0_7:
	fmul	d0, d8, d8
	str	d0, [sp, #8]
	ldr	d0, [sp, #8]
	fmov	d0, d8
	bl	_INSERT_WORDS
	fmov	d9, d8
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.comm	_LDBL_NBIT,4,2                  ; @LDBL_NBIT
.subsections_via_symbols
