	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_eh_fastdrain_timerfn       ## -- Begin function ata_eh_fastdrain_timerfn
	.p2align	4, 0x90
_ata_eh_fastdrain_timerfn:              ## @ata_eh_fastdrain_timerfn
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_ata_eh_nr_in_flight
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	cmpl	(%r14), %eax
	jne	LBB0_8
## %bb.2:
	movq	_ATA_MAX_QUEUE@GOTPCREL(%rip), %r15
	cmpl	$1, (%r15)
	jne	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	callq	_ata_port_freeze
	jmp	LBB0_9
LBB0_8:
	movl	%eax, (%r14)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ATA_EH_FASTDRAIN_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ata_deadline
	leaq	8(%r14), %rdi
	movl	%eax, 8(%r14)
	callq	_add_timer
LBB0_9:
	movl	4(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
	movq	_AC_ERR_TIMEOUT@GOTPCREL(%rip), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movl	(%r15), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ata_qc_from_tag
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %ecx
	orl	%ecx, (%rax)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_MAX_QUEUE,4,2              ## @ATA_MAX_QUEUE
	.comm	_AC_ERR_TIMEOUT,4,2             ## @AC_ERR_TIMEOUT
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_ATA_EH_FASTDRAIN_INTERVAL,4,2  ## @ATA_EH_FASTDRAIN_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_eh_fastdrain_timerfn       ; -- Begin function ata_eh_fastdrain_timerfn
	.p2align	2
_ata_eh_fastdrain_timerfn:              ; @ata_eh_fastdrain_timerfn
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ata_eh_nr_in_flight
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x21, _ATA_MAX_QUEUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATA_MAX_QUEUE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_ata_port_freeze
	b	LBB0_5
LBB0_4:
	str	w0, [x19]
Lloh2:
	adrp	x8, _jiffies@GOTPAGE
Lloh3:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ATA_EH_FASTDRAIN_INTERVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATA_EH_FASTDRAIN_INTERVAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ata_deadline
	mov	x8, x19
	str	w0, [x8, #8]!
	mov	x0, x8
	bl	_add_timer
LBB0_5:
	ldr	w0, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_6:
	mov	w20, #0
Lloh8:
	adrp	x22, _AC_ERR_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x22, [x22, _AC_ERR_TIMEOUT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w20, #1
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w20, w8
	b.hs	LBB0_3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_ata_qc_from_tag
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_MAX_QUEUE,4,2              ; @ATA_MAX_QUEUE
	.comm	_AC_ERR_TIMEOUT,4,2             ; @AC_ERR_TIMEOUT
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_ATA_EH_FASTDRAIN_INTERVAL,4,2  ; @ATA_EH_FASTDRAIN_INTERVAL
.subsections_via_symbols
