	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_flush_write_bufs          ## -- Begin function dmar_flush_write_bufs
	.p2align	4, 0x90
_dmar_flush_write_bufs:                 ## @dmar_flush_write_bufs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_DMAR_ASSERT_LOCKED
	movq	_DMAR_CAP_RWBF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	setne	%dil
	movslq	8(%rbx), %rsi
	callq	_KASSERT
	movq	_DMAR_GCMD_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DMAR_GCMD_WBF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_dmar_write4
	movq	_DMAR_GSTS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dmar_read4
	movq	_DMAR_GSTS_WBFS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	setne	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DMAR_WAIT_UNTIL                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_CAP_RWBF,4,2              ## @DMAR_CAP_RWBF
	.comm	_DMAR_GCMD_REG,4,2              ## @DMAR_GCMD_REG
	.comm	_DMAR_GCMD_WBF,4,2              ## @DMAR_GCMD_WBF
	.comm	_DMAR_GSTS_REG,4,2              ## @DMAR_GSTS_REG
	.comm	_DMAR_GSTS_WBFS,4,2             ## @DMAR_GSTS_WBFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_flush_write_bufs          ; -- Begin function dmar_flush_write_bufs
	.p2align	2
_dmar_flush_write_bufs:                 ; @dmar_flush_write_bufs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_DMAR_ASSERT_LOCKED
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _DMAR_CAP_RWBF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMAR_CAP_RWBF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	ldrsw	x1, [x19, #8]
	bl	_KASSERT
Lloh3:
	adrp	x8, _DMAR_GCMD_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMAR_GCMD_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x19, #4]
Lloh6:
	adrp	x9, _DMAR_GCMD_WBF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMAR_GCMD_WBF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_dmar_write4
Lloh9:
	adrp	x8, _DMAR_GSTS_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMAR_GSTS_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmar_read4
Lloh12:
	adrp	x8, _DMAR_GSTS_WBFS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMAR_GSTS_WBFS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DMAR_WAIT_UNTIL
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_CAP_RWBF,4,2              ; @DMAR_CAP_RWBF
	.comm	_DMAR_GCMD_REG,4,2              ; @DMAR_GCMD_REG
	.comm	_DMAR_GCMD_WBF,4,2              ; @DMAR_GCMD_WBF
	.comm	_DMAR_GSTS_REG,4,2              ; @DMAR_GSTS_REG
	.comm	_DMAR_GSTS_WBFS,4,2             ; @DMAR_GSTS_WBFS
.subsections_via_symbols
