	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_qi_emit
_dmar_qi_emit:                          ## @dmar_qi_emit
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_DMAR_ASSERT_LOCKED
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	movl	%r15d, (%rax,%rcx)
	movq	_DMAR_IQ_DESCR_SZ@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movslq	4(%rbx), %rsi
	xorl	%edi, %edi
	cmpl	%esi, %ecx
	setle	%dil
	callq	_KASSERT
	movslq	4(%rbx), %rax
	decq	%rax
	movslq	(%rbx), %rcx
	andq	%rax, %rcx
	movl	%ecx, (%rbx)
	movq	8(%rbx), %rax
	movl	%r14d, (%rax,%rcx)
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movslq	4(%rbx), %rsi
	xorl	%edi, %edi
	cmpl	%esi, %ecx
	setle	%dil
	callq	_KASSERT
	movl	4(%rbx), %eax
	decl	%eax
	andl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_IQ_DESCR_SZ,4,2           ## @DMAR_IQ_DESCR_SZ
	.no_dead_strip	_dmar_qi_emit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_qi_emit
_dmar_qi_emit:                          ; @dmar_qi_emit
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_DMAR_ASSERT_LOCKED
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	str	w20, [x8, x9]
Lloh0:
	adrp	x20, _DMAR_IQ_DESCR_SZ@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DMAR_IQ_DESCR_SZ@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldp	w9, w1, [x21]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	add	w8, w9, w8, asr #1
	str	w8, [x21]
	cmp	w8, w1
	cset	w0, le
	bl	_KASSERT
	ldpsw	x9, x8, [x21]
	sub	x8, x8, #1
	and	x8, x9, x8
	str	w8, [x21]
	ldr	x9, [x21, #8]
	str	w19, [x9, x8]
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w8, w8, lt
	ldp	w9, w1, [x21]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	add	w8, w9, w8, asr #1
	str	w8, [x21]
	cmp	w8, w1
	cset	w0, le
	bl	_KASSERT
	ldp	w9, w8, [x21]
	sub	w8, w8, #1
	and	w8, w9, w8
	str	w8, [x21]
	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	_DMAR_IQ_DESCR_SZ,4,2           ; @DMAR_IQ_DESCR_SZ
	.no_dead_strip	_dmar_qi_emit
.subsections_via_symbols
