	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_adma_check_cpb
_nv_adma_check_cpb:                     ## @nv_adma_check_cpb
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movslq	%esi, %rsi
	movl	(%rax,%rsi,4), %r13d
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_VPRINTK
	movl	$1, %edi
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_NV_CPB_RESP_ATA_ERR@GOTPCREL(%rip), %rax
	movq	_NV_CPB_RESP_CMD_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NV_CPB_RESP_CPB_ERR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	xorl	%edi, %edi
	testl	%r13d, %ecx
	setne	%dil
LBB0_2:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_ata_ehi_clear_desc
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	___ata_ehi_push_desc
	movq	_NV_CPB_RESP_ATA_ERR@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_5:
	movq	_NV_CPB_RESP_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ata_qc_from_tag
	movq	%rax, %rbx
	leaq	L_.str.6(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_VPRINTK
	movl	%ebx, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	leaq	L_.str.7(%rip), %rdi
	movl	%r14d, %esi
	callq	_DPRINTK
	movq	%rbx, %rdi
	callq	_ata_qc_complete
	jmp	LBB0_16
LBB0_8:
	movq	_NV_CPB_RESP_CMD_ERR@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_13
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	callq	_ata_ehi_push_desc
	movq	_AC_ERR_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_ata_port_abort
	jmp	LBB0_15
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_12:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_ata_port_printk
	movq	_AC_ERR_HSM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	_ATA_EH_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_14
LBB0_13:
	movq	_NV_CPB_RESP_CPB_ERR@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	testl	%r13d, %r13d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	_AC_ERR_SYSTEM@GOTPCREL(%rip), %rbx
	cmoveq	_AC_ERR_OTHER@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	callq	_ata_ehi_push_desc
	movl	(%rbx), %eax
	orl	%eax, 4(%r15)
LBB0_14:
	movq	%r15, %rdi
	callq	_ata_port_freeze
LBB0_15:
	movl	$1, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CPB %d, flags=0x%x\n"

	.comm	_NV_CPB_RESP_ATA_ERR,4,2        ## @NV_CPB_RESP_ATA_ERR
	.comm	_NV_CPB_RESP_CMD_ERR,4,2        ## @NV_CPB_RESP_CMD_ERR
	.comm	_NV_CPB_RESP_CPB_ERR,4,2        ## @NV_CPB_RESP_CPB_ERR
L_.str.1:                               ## @.str.1
	.asciz	"CPB resp_flags 0x%x: "

L_.str.2:                               ## @.str.2
	.asciz	"ATA error"

	.comm	_AC_ERR_DEV,4,2                 ## @AC_ERR_DEV
L_.str.3:                               ## @.str.3
	.asciz	"CMD error"

L_.str.4:                               ## @.str.4
	.asciz	"CPB error"

	.comm	_AC_ERR_SYSTEM,4,2              ## @AC_ERR_SYSTEM
L_.str.5:                               ## @.str.5
	.asciz	"unknown"

	.comm	_AC_ERR_OTHER,4,2               ## @AC_ERR_OTHER
	.comm	_NV_CPB_RESP_DONE,4,2           ## @NV_CPB_RESP_DONE
L_.str.6:                               ## @.str.6
	.asciz	"CPB flags done, flags=0x%x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Completing qc from tag %d\n"

	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.8:                               ## @.str.8
	.asciz	"notifier for tag %d with no cmd?\n"

	.comm	_AC_ERR_HSM,4,2                 ## @AC_ERR_HSM
	.comm	_ATA_EH_RESET,4,2               ## @ATA_EH_RESET
	.no_dead_strip	_nv_adma_check_cpb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_adma_check_cpb
_nv_adma_check_cpb:                     ; @nv_adma_check_cpb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w21, [x8, w1, sxtw #2]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VPRINTK
	cbz	w22, LBB0_4
; %bb.1:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_ata_ehi_clear_desc
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	___ata_ehi_push_desc
Lloh4:
	adrp	x8, _NV_CPB_RESP_ATA_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NV_CPB_RESP_ATA_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _NV_CPB_RESP_ATA_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV_CPB_RESP_ATA_ERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NV_CPB_RESP_CMD_ERR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NV_CPB_RESP_CMD_ERR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _NV_CPB_RESP_CPB_ERR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NV_CPB_RESP_CPB_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w21
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_2
LBB0_5:
Lloh18:
	adrp	x8, _NV_CPB_RESP_DONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NV_CPB_RESP_DONE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w0, w8, w21
	bl	_likely
	cbz	x0, LBB0_15
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_ata_qc_from_tag
	mov	x22, x0
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x21
	bl	_VPRINTK
	mov	x0, x22
	bl	_likely
	cbz	x0, LBB0_11
; %bb.7:
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_DPRINTK
	mov	x0, x22
	bl	_ata_qc_complete
	mov	w0, #0
	b	LBB0_15
LBB0_8:
Lloh25:
	adrp	x8, _NV_CPB_RESP_CMD_ERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NV_CPB_RESP_CMD_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.9:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_ata_ehi_push_desc
Lloh30:
	adrp	x8, _AC_ERR_DEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AC_ERR_DEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_ata_port_abort
	b	LBB0_14
LBB0_11:
Lloh33:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x2, l_.str.8@PAGE
Lloh37:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ata_port_printk
Lloh38:
	adrp	x8, _AC_ERR_HSM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AC_ERR_HSM@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldp	w10, w9, [x19]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _ATA_EH_RESET@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ATA_EH_RESET@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w9, w8, [x19]
	b	LBB0_13
LBB0_12:
Lloh44:
	adrp	x8, _NV_CPB_RESP_CPB_ERR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NV_CPB_RESP_CPB_ERR@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, l_.str.4@PAGE
Lloh48:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh49:
	adrp	x10, l_.str.5@PAGE
Lloh50:
	add	x10, x10, l_.str.5@PAGEOFF
	tst	w8, w21
	csel	x1, x10, x9, eq
Lloh51:
	adrp	x8, _AC_ERR_OTHER@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AC_ERR_OTHER@GOTPAGEOFF]
Lloh53:
	adrp	x9, _AC_ERR_SYSTEM@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AC_ERR_SYSTEM@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	mov	x0, x19
	bl	_ata_ehi_push_desc
	ldr	w8, [x20]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_13:
	mov	x0, x19
	bl	_ata_port_freeze
LBB0_14:
	mov	w0, #1
LBB0_15:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CPB %d, flags=0x%x\n"

	.comm	_NV_CPB_RESP_ATA_ERR,4,2        ; @NV_CPB_RESP_ATA_ERR
	.comm	_NV_CPB_RESP_CMD_ERR,4,2        ; @NV_CPB_RESP_CMD_ERR
	.comm	_NV_CPB_RESP_CPB_ERR,4,2        ; @NV_CPB_RESP_CPB_ERR
l_.str.1:                               ; @.str.1
	.asciz	"CPB resp_flags 0x%x: "

l_.str.2:                               ; @.str.2
	.asciz	"ATA error"

	.comm	_AC_ERR_DEV,4,2                 ; @AC_ERR_DEV
l_.str.3:                               ; @.str.3
	.asciz	"CMD error"

l_.str.4:                               ; @.str.4
	.asciz	"CPB error"

	.comm	_AC_ERR_SYSTEM,4,2              ; @AC_ERR_SYSTEM
l_.str.5:                               ; @.str.5
	.asciz	"unknown"

	.comm	_AC_ERR_OTHER,4,2               ; @AC_ERR_OTHER
	.comm	_NV_CPB_RESP_DONE,4,2           ; @NV_CPB_RESP_DONE
l_.str.6:                               ; @.str.6
	.asciz	"CPB flags done, flags=0x%x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Completing qc from tag %d\n"

	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.8:                               ; @.str.8
	.asciz	"notifier for tag %d with no cmd?\n"

	.comm	_AC_ERR_HSM,4,2                 ; @AC_ERR_HSM
	.comm	_ATA_EH_RESET,4,2               ; @ATA_EH_RESET
	.no_dead_strip	_nv_adma_check_cpb
.subsections_via_symbols
