	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qm_db_v2
_qm_db_v2:                              ## @qm_db_v2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r9d
	movq	_QM_DOORBELL_CMD_SQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_QM_DOORBELL_CMD_CQ@GOTPCREL(%rip), %r11
	movq	_QM_DOORBELL_SQ_CQ_BASE_V2@GOTPCREL(%rip), %r10
	movq	%r10, %rax
	cmpq	%rdx, (%r11)
	je	LBB0_2
## %bb.1:
	movq	_QM_DOORBELL_EQ_AEQ_BASE_V2@GOTPCREL(%rip), %rax
LBB0_2:
	cmpq	%rdx, %rcx
	cmoveq	%r10, %rax
	movq	_QM_DB_CMD_SHIFT_V2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_QM_DB_INDEX_SHIFT_V2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r9d
	orl	%esi, %edx
	movq	_QM_DB_PRIORITY_SHIFT_V2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	orl	%r9d, %r8d
	orl	%edx, %r8d
	movl	(%rdi), %esi
	addl	(%rax), %esi
	movl	%r8d, %edi
	popq	%rbp
	jmp	_writeq                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_DOORBELL_CMD_SQ,8,3         ## @QM_DOORBELL_CMD_SQ
	.comm	_QM_DOORBELL_CMD_CQ,8,3         ## @QM_DOORBELL_CMD_CQ
	.comm	_QM_DOORBELL_SQ_CQ_BASE_V2,4,2  ## @QM_DOORBELL_SQ_CQ_BASE_V2
	.comm	_QM_DOORBELL_EQ_AEQ_BASE_V2,4,2 ## @QM_DOORBELL_EQ_AEQ_BASE_V2
	.comm	_QM_DB_CMD_SHIFT_V2,4,2         ## @QM_DB_CMD_SHIFT_V2
	.comm	_QM_DB_RAND_SHIFT_V2,4,2        ## @QM_DB_RAND_SHIFT_V2
	.comm	_QM_DB_INDEX_SHIFT_V2,4,2       ## @QM_DB_INDEX_SHIFT_V2
	.comm	_QM_DB_PRIORITY_SHIFT_V2,4,2    ## @QM_DB_PRIORITY_SHIFT_V2
	.no_dead_strip	_qm_db_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qm_db_v2
_qm_db_v2:                              ; @qm_db_v2
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QM_DOORBELL_CMD_SQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QM_DOORBELL_CMD_SQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _QM_DOORBELL_CMD_CQ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _QM_DOORBELL_CMD_CQ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x10, x2
	ccmp	x9, x2, #4, ne
Lloh6:
	adrp	x9, _QM_DOORBELL_SQ_CQ_BASE_V2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _QM_DOORBELL_SQ_CQ_BASE_V2@GOTPAGEOFF]
Lloh8:
	adrp	x10, _QM_DOORBELL_EQ_AEQ_BASE_V2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _QM_DOORBELL_EQ_AEQ_BASE_V2@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _QM_DB_CMD_SHIFT_V2@GOTPAGE
Lloh11:
	ldr	x10, [x10, _QM_DB_CMD_SHIFT_V2@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	lsl	w10, w2, w10
Lloh13:
	adrp	x11, _QM_DB_INDEX_SHIFT_V2@GOTPAGE
Lloh14:
	ldr	x11, [x11, _QM_DB_INDEX_SHIFT_V2@GOTPAGEOFF]
	orr	w10, w10, w1
Lloh15:
	ldr	w11, [x11]
	lsl	w11, w3, w11
	orr	w10, w10, w11
Lloh16:
	adrp	x11, _QM_DB_PRIORITY_SHIFT_V2@GOTPAGE
Lloh17:
	ldr	x11, [x11, _QM_DB_PRIORITY_SHIFT_V2@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	lsl	w11, w4, w11
	orr	w0, w10, w11
	add	w1, w8, w9
	b	_writeq
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_DOORBELL_CMD_SQ,8,3         ; @QM_DOORBELL_CMD_SQ
	.comm	_QM_DOORBELL_CMD_CQ,8,3         ; @QM_DOORBELL_CMD_CQ
	.comm	_QM_DOORBELL_SQ_CQ_BASE_V2,4,2  ; @QM_DOORBELL_SQ_CQ_BASE_V2
	.comm	_QM_DOORBELL_EQ_AEQ_BASE_V2,4,2 ; @QM_DOORBELL_EQ_AEQ_BASE_V2
	.comm	_QM_DB_CMD_SHIFT_V2,4,2         ; @QM_DB_CMD_SHIFT_V2
	.comm	_QM_DB_RAND_SHIFT_V2,4,2        ; @QM_DB_RAND_SHIFT_V2
	.comm	_QM_DB_INDEX_SHIFT_V2,4,2       ; @QM_DB_INDEX_SHIFT_V2
	.comm	_QM_DB_PRIORITY_SHIFT_V2,4,2    ; @QM_DB_PRIORITY_SHIFT_V2
	.no_dead_strip	_qm_db_v2
.subsections_via_symbols
