	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aoecmd_ata_rsp                 ## -- Begin function aoecmd_ata_rsp
	.p2align	4, 0x90
_aoecmd_ata_rsp:                        ## @aoecmd_ata_rsp
	.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
	subq	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_get_unaligned
	movl	%eax, %edi
	callq	_be16_to_cpu
	movl	%eax, %r13d
	movl	(%r14), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_aoedev_by_aoeaddr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -200(%rbp)                ## 8-byte Spill
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_get_unaligned
	movl	%eax, %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_getframe
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movq	8(%rax), %r15
	movq	%rax, %rdi
	callq	_tsince_hr
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_calc_rttavg
	movq	8(%rbx), %rax
	decl	4(%rax)
	movq	_FFL_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.4:
	decl	(%rax)
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$128, %esi
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_aoechr_error
	jmp	LBB0_9
LBB0_6:
	movq	%r15, -192(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_getframe_deferred
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_tsince_hr
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_calc_rttavg
LBB0_5:
	movq	-184(%rbp), %r14                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_aoecmd_work
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ktcomplete
	xorl	%r15d, %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r13d, %edi
	callq	_tsince
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_calc_rttavg
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_aoedev_put
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_get_unaligned_be16
	movl	%eax, %r13d
	movl	(%r14), %r15d
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	callq	_get_unaligned_be32
	movl	%eax, %r10d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movl	12(%r14), %ebx
	movl	16(%r14), %r14d
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	movq	%r12, %rdi
	callq	_aoechr_error
	movq	-184(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_9
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aoecmd_ata_rsp: ata response for unknown device %d.%d\n"

	.comm	_FFL_PROBE,4,2                  ## @FFL_PROBE
L_.str.1:                               ## @.str.1
	.asciz	"%15s e%d.%d    tag=%08x@%08lx s=%pm d=%pm\n"

L_.str.2:                               ## @.str.2
	.asciz	"unexpected rsp"

	.comm	_jiffies,4,2                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aoecmd_ata_rsp                 ; -- Begin function aoecmd_ata_rsp
	.p2align	2
_aoecmd_ata_rsp:                        ; @aoecmd_ata_rsp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x25, [x0]
	add	x21, x25, #8
	mov	x0, x21
	bl	_get_unaligned
	bl	_be16_to_cpu
	mov	x22, x0
	ldr	w1, [x25]
	mov	w2, #0
	bl	_aoedev_by_aoeaddr
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_spin_lock_irqsave
	add	x23, x25, #4
	mov	x0, x23
	bl	_get_unaligned
	bl	_be32_to_cpu
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_getframe
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	ldr	x21, [x0, #8]
	bl	_tsince_hr
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_calc_rttavg
	ldr	x8, [x22, #8]
	ldr	w9, [x8, #4]
	sub	w9, w9, #1
	str	w9, [x8, #4]
	ldr	w9, [x22]
Lloh3:
	adrp	x10, _FFL_PROBE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FFL_PROBE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.3:
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_4:
	ldr	w8, [x25]
	stp	x22, x8, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #56
LBB0_5:
	mov	w1, #128
	bl	_snprintf
	add	x0, sp, #56
	bl	_aoechr_error
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	mov	x1, x24
	bl	_getframe_deferred
	cbz	x0, LBB0_11
; %bb.7:
	mov	x22, x0
	bl	_tsince_hr
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	bl	_calc_rttavg
LBB0_8:
	mov	x0, x20
	bl	_aoecmd_work
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x22
	mov	x1, x19
	bl	_ktcomplete
	mov	x19, #0
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_11:
	mov	x0, x24
	bl	_tsince
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	bl	_calc_rttavg
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_aoedev_put
	mov	x0, x21
	bl	_get_unaligned_be16
	mov	x20, x0
	ldr	w21, [x25]
	mov	x0, x23
	bl	_get_unaligned_be32
                                        ; kill: def $w0 killed $w0 def $x0
Lloh11:
	adrp	x8, _jiffies@GOTPAGE
Lloh12:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldp	w10, w9, [x25, #12]
	stp	x9, x10, [sp, #40]
	stp	x0, x8, [sp, #24]
Lloh14:
	adrp	x8, l_.str.2@PAGE
Lloh15:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	stp	x20, x21, [sp, #8]
	add	x0, sp, #56
	str	x8, [sp]
	b	LBB0_5
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aoecmd_ata_rsp: ata response for unknown device %d.%d\n"

	.comm	_FFL_PROBE,4,2                  ; @FFL_PROBE
l_.str.1:                               ; @.str.1
	.asciz	"%15s e%d.%d    tag=%08x@%08lx s=%pm d=%pm\n"

l_.str.2:                               ; @.str.2
	.asciz	"unexpected rsp"

	.comm	_jiffies,4,2                    ; @jiffies
.subsections_via_symbols
