	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f80_to_int                     ## -- Begin function f80_to_int
	.p2align	4, 0x90
_f80_to_int:                            ## @f80_to_int
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_f80_is_supported
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	$63, %edi
	callq	_bias
	cmpq	%rbx, %rax
	jge	LBB0_5
## %bb.2:
	shrq	$32, %r14
	jne	LBB0_6
## %bb.3:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_5:
	movl	$63, %edi
	callq	_bias
	subq	%rbx, %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_f80_shift_right
	movq	%rdx, %rcx
	shrq	$32, %rcx
	movl	%edx, %eax
	negl	%eax
	testq	%rcx, %rcx
	cmovel	%edx, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MIN,4,2                  ## @INT64_MIN
	.comm	_INT64_MAX,4,2                  ## @INT64_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f80_to_int                     ; -- Begin function f80_to_int
	.p2align	2
_f80_to_int:                            ; @f80_to_int
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [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 w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_f80_is_supported
	cbz	w0, LBB0_3
; %bb.1:
	mov	w0, #63
	bl	_bias
	cmp	x20, x0
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT64_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _INT64_MIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INT64_MIN@GOTPAGEOFF]
	lsr	x10, x19, #32
	cmp	x10, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _INT64_MIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT64_MIN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w0, #63
	bl	_bias
	sub	x2, x0, x20
	mov	x0, x20
	mov	x1, x19
	bl	_f80_shift_right
	lsr	x8, x1, #32
	cmp	x8, #0
	cneg	w0, w1, ne
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MIN,4,2                  ; @INT64_MIN
	.comm	_INT64_MAX,4,2                  ; @INT64_MAX
.subsections_via_symbols
