	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hd_times_out
_hd_times_out:                          ## @hd_times_out
	.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	_do_hd@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_hd_req@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	_hd_queue@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_spin_lock_irq
	movq	_reset@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	_MAX_ERRORS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_hd_end_request_cur
LBB0_3:
	xorl	%eax, %eax
	callq	_hd_request
	movq	(%r14), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_do_hd,8,3                      ## @do_hd
	.comm	_hd_req,8,3                     ## @hd_req
	.comm	_hd_queue,8,3                   ## @hd_queue
	.comm	_reset,4,2                      ## @reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: timeout\n"

	.comm	_MAX_ERRORS,8,3                 ## @MAX_ERRORS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_hd_times_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hd_times_out
_hd_times_out:                          ; @hd_times_out
	.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
Lloh0:
	adrp	x8, _do_hd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _do_hd@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x20, _hd_req@GOTPAGE
Lloh4:
	ldr	x20, [x20, _hd_req@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
Lloh5:
	adrp	x19, _hd_queue@GOTPAGE
Lloh6:
	ldr	x19, [x19, _hd_queue@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_spin_lock_irq
Lloh7:
	adrp	x8, _reset@GOTPAGE
Lloh8:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
	mov	w9, #1
Lloh9:
	str	w9, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	x8, [x20]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
Lloh12:
	adrp	x8, _MAX_ERRORS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_ERRORS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x9, x8
	b.lt	LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_hd_end_request_cur
LBB0_3:
	bl	_hd_request
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_do_hd,8,3                      ; @do_hd
	.comm	_hd_req,8,3                     ; @hd_req
	.comm	_hd_queue,8,3                   ; @hd_queue
	.comm	_reset,4,2                      ; @reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: timeout\n"

	.comm	_MAX_ERRORS,8,3                 ; @MAX_ERRORS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_hd_times_out
.subsections_via_symbols
