	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_swncq_qc_from_dq
_nv_swncq_qc_from_dq:                   ## @nv_swncq_qc_from_dq
	.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
	movslq	(%rbx), %rax
	cmpl	4(%rbx), %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	8(%rbx), %rcx
	movq	_ATA_MAX_QUEUE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	decq	%rsi
	andq	%rax, %rsi
	movl	(%rcx,%rsi,4), %r15d
	movq	_ATA_TAG_POISON@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	leal	1(%rax), %edi
	movl	%edi, (%rbx)
	movslq	(%rdx), %rdx
	decq	%rdx
	andq	%rax, %rdx
	movl	%esi, (%rcx,%rdx,4)
	movl	16(%rbx), %eax
	xorl	%edi, %edi
	btl	%r15d, %eax
	setae	%dil
	callq	_WARN_ON
	movl	$-2, %eax
	movl	%r15d, %ecx
	roll	%cl, %eax
	andl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_qc_from_tag                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_MAX_QUEUE,4,2              ## @ATA_MAX_QUEUE
	.comm	_ATA_TAG_POISON,4,2             ## @ATA_TAG_POISON
	.no_dead_strip	_nv_swncq_qc_from_dq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_swncq_qc_from_dq
_nv_swncq_qc_from_dq:                   ; @nv_swncq_qc_from_dq
	.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
	ldr	x21, [x0]
	ldp	w8, w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, #0
	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
	ret
LBB0_2:
	mov	x19, x0
	ldr	x9, [x21, #8]
Lloh0:
	adrp	x10, _ATA_MAX_QUEUE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATA_MAX_QUEUE@GOTPAGEOFF]
	ldr	w11, [x10]
	sub	w11, w11, #1
	and	w11, w11, w8
	ldr	w20, [x9, w11, sxtw #2]
Lloh2:
	adrp	x11, _ATA_TAG_POISON@GOTPAGE
Lloh3:
	ldr	x11, [x11, _ATA_TAG_POISON@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	add	w12, w8, #1
	str	w12, [x21]
	ldr	w10, [x10]
	sub	w10, w10, #1
	and	w8, w10, w8
	str	w11, [x9, w8, sxtw #2]
	ldr	w8, [x21, #16]
	mov	w9, #1
	lsl	w22, w9, w20
	mvn	w8, w8
	lsr	w8, w8, w20
	and	w0, w8, #0x1
	bl	_WARN_ON
	ldr	w8, [x21, #16]
	bic	w8, w8, w22
	str	w8, [x21, #16]
	mov	x0, x19
	mov	x1, x20
	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	_ata_qc_from_tag
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_MAX_QUEUE,4,2              ; @ATA_MAX_QUEUE
	.comm	_ATA_TAG_POISON,4,2             ; @ATA_TAG_POISON
	.no_dead_strip	_nv_swncq_qc_from_dq
.subsections_via_symbols
