	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_swncq_qc_to_dq
_nv_swncq_qc_to_dq:                     ## @nv_swncq_qc_to_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	%rsi, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	subl	4(%rbx), %eax
	movq	_ATA_MAX_QUEUE@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%r14), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, 8(%rbx)
	movq	16(%rbx), %rax
	movslq	(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rbx)
	movslq	(%r15), %rsi
	decq	%rsi
	andq	%rdx, %rsi
	movl	%ecx, (%rax,%rsi,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_MAX_QUEUE,4,2              ## @ATA_MAX_QUEUE
	.no_dead_strip	_nv_swncq_qc_to_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_to_dq
_nv_swncq_qc_to_dq:                     ; @nv_swncq_qc_to_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
	mov	x19, x1
	ldr	x20, [x0]
	ldp	w8, w9, [x20]
Lloh0:
	adrp	x21, _ATA_MAX_QUEUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATA_MAX_QUEUE@GOTPAGEOFF]
	ldr	w10, [x21]
	sub	w8, w8, w9
	cmp	w8, w10
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w9, w9, w8
	ldr	w10, [x20, #8]
	orr	w9, w10, w9
	str	w9, [x20, #8]
	ldr	x9, [x20, #16]
	ldr	w10, [x20]
	add	w11, w10, #1
	str	w11, [x20]
	ldr	w11, [x21]
	sub	w11, w11, #1
	and	w10, w11, w10
	str	w8, [x9, w10, sxtw #2]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_MAX_QUEUE,4,2              ; @ATA_MAX_QUEUE
	.no_dead_strip	_nv_swncq_qc_to_dq
.subsections_via_symbols
