	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_scsi_error                 ## -- Begin function ata_scsi_error
	.p2align	4, 0x90
_ata_scsi_error:                        ## @ata_scsi_error
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ata_shost_to_port
	movq	%rax, %r14
	movq	_eh_work_q@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_LIST_HEAD
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTK
	movl	8(%rbx), %edi
	callq	_spin_lock_irqsave
	leaq	12(%rbx), %rdi
	movq	%r15, %rsi
	callq	_list_splice_init
	movl	8(%rbx), %edi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ata_scsi_cmd_error_handler
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ata_scsi_port_error_handler
	movl	$1, %edi
	cmpq	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_eh_work_q@GOTPCREL(%rip), %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_2:
	callq	_WARN_ON
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTK                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_eh_work_q,4,2                  ## @eh_work_q
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENTER\n"

L_.str.1:                               ## @.str.1
	.asciz	"EXIT\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_scsi_error                 ; -- Begin function ata_scsi_error
	.p2align	2
_ata_scsi_error:                        ; @ata_scsi_error
	.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
	bl	_ata_shost_to_port
	mov	x20, x0
Lloh0:
	adrp	x21, _eh_work_q@GOTPAGE
Lloh1:
	ldr	x21, [x21, _eh_work_q@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_LIST_HEAD
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTK
	ldr	w0, [x19, #8]
	bl	_spin_lock_irqsave
	add	x0, x19, #12
	mov	x1, x21
	bl	_list_splice_init
	ldr	w0, [x19, #8]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ata_scsi_cmd_error_handler
	mov	x0, x19
	mov	x1, x20
	bl	_ata_scsi_port_error_handler
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, _eh_work_q@GOTPAGE
Lloh5:
	ldr	x0, [x0, _eh_work_q@GOTPAGEOFF]
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
LBB0_3:
	bl	_WARN_ON
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	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	_DPRINTK
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_eh_work_q,4,2                  ; @eh_work_q
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENTER\n"

l_.str.1:                               ; @.str.1
	.asciz	"EXIT\n"

.subsections_via_symbols
