	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fd_eject
_fd_eject:                              ## @fd_eject
	.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	%rdi, %r14
	movq	_ejecting@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_grab_drive
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	_EJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_swim3_action
	movl	$20, %ebx
	movq	_current@GOTPCREL(%rip), %r12
	movq	_DISK_IN@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RELAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_swim3_select
	movl	$1, %edi
	callq	_schedule_timeout_interruptible
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_swim3_readbit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_6:
	movq	_RELAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_swim3_select
	movl	$150, %edi
	callq	_udelay
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_release_drive
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ejecting,4,2                   ## @ejecting
	.comm	_EJECT,4,2                      ## @EJECT
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_RELAX,4,2                      ## @RELAX
	.comm	_DISK_IN,4,2                    ## @DISK_IN
	.no_dead_strip	_fd_eject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fd_eject
_fd_eject:                              ; @fd_eject
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _ejecting@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ejecting@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_grab_drive
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _EJECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EJECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_swim3_action
	mov	w20, #20
Lloh6:
	adrp	x22, _current@GOTPAGE
Lloh7:
	ldr	x22, [x22, _current@GOTPAGEOFF]
Lloh8:
	adrp	x21, _RELAX@GOTPAGE
Lloh9:
	ldr	x21, [x21, _RELAX@GOTPAGEOFF]
Lloh10:
	adrp	x23, _DISK_IN@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DISK_IN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_signal_pending
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_swim3_select
	mov	w0, #1
	bl	_schedule_timeout_interruptible
	ldr	w1, [x23]
	mov	x0, x19
	bl	_swim3_readbit
	cmp	x0, #0
	ccmp	w20, #1, #0, ne
	sub	w20, w20, #1
	b.hi	LBB0_2
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_swim3_select
	mov	w0, #150
	bl	_udelay
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_release_drive
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ejecting,4,2                   ; @ejecting
	.comm	_EJECT,4,2                      ; @EJECT
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_RELAX,4,2                      ; @RELAX
	.comm	_DISK_IN,4,2                    ; @DISK_IN
	.no_dead_strip	_fd_eject
.subsections_via_symbols
