	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function rint
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x8000000000000000              ## double -0
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_4:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rint
	.p2align	4, 0x90
_rint:                                  ## @rint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movsd	%xmm0, -8(%rbp)                 ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movsd	-8(%rbp), %xmm0                 ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
LBB0_15:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_2:
	xorpd	%xmm0, %xmm0
	movsd	-8(%rbp), %xmm2                 ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	ucomisd	%xmm2, %xmm0
	jae	LBB0_3
## %bb.10:
	movsd	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm2, %xmm1
	ucomisd	%xmm1, %xmm0
	jae	LBB0_15
## %bb.11:
	movsd	LCPI0_4(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm2, %xmm0
	ucomisd	%xmm0, %xmm1
	movapd	%xmm2, %xmm0
	jne	LBB0_12
	jnp	LBB0_15
LBB0_12:
	xorps	%xmm0, %xmm0
	roundsd	$10, %xmm1, %xmm0
	ucomisd	%xmm1, %xmm0
	jne	LBB0_15
	jp	LBB0_15
## %bb.13:
	mulsd	LCPI0_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	roundsd	$10, %xmm1, %xmm0
	jmp	LBB0_14
LBB0_3:
	ucomisd	%xmm0, %xmm2
	jne	LBB0_5
	jp	LBB0_5
## %bb.4:
	movapd	%xmm2, %xmm0
	jmp	LBB0_15
LBB0_5:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	addsd	%xmm2, %xmm1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	jae	LBB0_6
## %bb.7:
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	addsd	%xmm2, %xmm0
	ucomisd	%xmm0, %xmm1
	movapd	%xmm2, %xmm0
	jne	LBB0_8
	jnp	LBB0_15
LBB0_8:
	xorps	%xmm0, %xmm0
	roundsd	$9, %xmm1, %xmm0
	ucomisd	%xmm1, %xmm0
	jne	LBB0_15
	jp	LBB0_15
## %bb.9:
	mulsd	LCPI0_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	roundsd	$9, %xmm1, %xmm0
LBB0_14:
	addsd	%xmm0, %xmm0
	jmp	LBB0_15
LBB0_6:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rint                           ; -- Begin function rint
	.p2align	2
_rint:                                  ; @rint
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-32]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
	fmov	d8, d0
	bl	_isnan
	cbz	x0, LBB0_3
LBB0_1:
	fmov	d0, d8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
LBB0_3:
	fcmp	d8, #0.0
	b.ls	LBB0_8
; %bb.4:
	fmov	d0, #-0.50000000
	fadd	d1, d8, d0
	movi	d0, #0000000000000000
	fcmp	d1, #0.0
	b.ls	LBB0_2
; %bb.5:
	fmov	d0, #-1.00000000
	fadd	d0, d8, d0
	fcmp	d1, d0
	fmov	d0, d8
	b.eq	LBB0_2
; %bb.6:
	frintp	d0, d1
	fcmp	d0, d1
	b.ne	LBB0_2
; %bb.7:
	fmov	d0, #0.50000000
	fmul	d0, d1, d0
	frintp	d0, d0
	b	LBB0_13
LBB0_8:
	b.eq	LBB0_1
; %bb.9:
	fmov	d0, #0.50000000
	fadd	d1, d8, d0
	fcmp	d1, #0.0
	b.ge	LBB0_14
; %bb.10:
	fmov	d0, #1.00000000
	fadd	d0, d8, d0
	fcmp	d1, d0
	fmov	d0, d8
	b.eq	LBB0_2
; %bb.11:
	frintm	d0, d1
	fcmp	d0, d1
	b.ne	LBB0_2
; %bb.12:
	fmov	d0, #0.50000000
	fmul	d0, d1, d0
	frintm	d0, d0
LBB0_13:
	fadd	d0, d0, d0
	b	LBB0_2
LBB0_14:
	mov	x8, #-9223372036854775808
	fmov	d0, x8
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
