	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function getround
LCPI0_0:
	.quad	0xbff0000000000000              ## double -1
LCPI0_1:
	.quad	0x4008000000000000              ## double 3
LCPI0_2:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_3:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_getround:                              ## @getround
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, -8(%rbp)
	movsd	-8(%rbp), %xmm0                 ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -8(%rbp)
	cmpq	$0, -8(%rbp)
	js	LBB0_1
## %bb.2:
	movq	%rax, -8(%rbp)
	movq	_DBL_EPSILON@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	mulsd	LCPI0_2(%rip), %xmm1
	addsd	-8(%rbp), %xmm1
	ucomisd	LCPI0_3(%rip), %xmm1
	jne	LBB0_4
	jp	LBB0_4
## %bb.3:
	movq	_FE_TOWARDZERO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_FE_DOWNWARD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	-8(%rbp), %xmm0
	ucomisd	LCPI0_3(%rip), %xmm0
	jbe	LBB0_5
## %bb.6:
	movq	_FE_UPWARD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_FE_TONEAREST@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_DOWNWARD,4,2                ## @FE_DOWNWARD
	.comm	_DBL_EPSILON,8,3                ## @DBL_EPSILON
	.comm	_FE_TOWARDZERO,4,2              ## @FE_TOWARDZERO
	.comm	_FE_UPWARD,4,2                  ## @FE_UPWARD
	.comm	_FE_TONEAREST,4,2               ## @FE_TONEAREST
	.no_dead_strip	_getround
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getround
_getround:                              ; @getround
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	mov	x8, #4607182418800017408
	str	x8, [sp, #8]
	ldr	d0, [sp, #8]
	fmov	d1, #-1.00000000
	fadd	d0, d0, d1
	str	d0, [sp, #8]
	ldr	x9, [sp, #8]
	tbnz	x9, #63, LBB0_3
; %bb.1:
	str	x8, [sp, #8]
	ldr	d1, [sp, #8]
Lloh0:
	adrp	x8, _DBL_EPSILON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBL_EPSILON@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	fmov	d2, #3.00000000
	fmul	d3, d0, d2
	fmov	d2, #0.25000000
	fmul	d3, d3, d2
	fadd	d3, d1, d3
	fmov	d1, #1.00000000
	fcmp	d3, d1
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _FE_TOWARDZERO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_TOWARDZERO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _FE_DOWNWARD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FE_DOWNWARD@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	d3, [sp, #8]
	fmul	d0, d0, d2
	fadd	d0, d0, d3
Lloh7:
	adrp	x8, _FE_TONEAREST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FE_TONEAREST@GOTPAGEOFF]
Lloh9:
	adrp	x9, _FE_UPWARD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FE_UPWARD@GOTPAGEOFF]
	fcmp	d0, d1
	csel	x8, x9, x8, gt
LBB0_5:
	ldr	w0, [x8]
	add	sp, sp, #16
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_DOWNWARD,4,2                ; @FE_DOWNWARD
	.comm	_DBL_EPSILON,8,3                ; @DBL_EPSILON
	.comm	_FE_TOWARDZERO,4,2              ; @FE_TOWARDZERO
	.comm	_FE_UPWARD,4,2                  ; @FE_UPWARD
	.comm	_FE_TONEAREST,4,2               ; @FE_TONEAREST
	.no_dead_strip	_getround
.subsections_via_symbols
