	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_barrier_exit              ## -- Begin function dmar_barrier_exit
	.p2align	4, 0x90
_dmar_barrier_exit:                     ## @dmar_barrier_exit
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_DMAR_ASSERT_LOCKED
	movq	_f_done@GOTPCREL(%rip), %r12
	movq	_f_inproc@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	(%r12), %ecx
	orl	%eax, %ecx
	andl	(%rbx), %ecx
	xorl	%edi, %edi
	cmpl	%eax, %ecx
	sete	%dil
	movslq	%r14d, %rsi
	callq	_KASSERT
	movl	(%rbx), %eax
	orl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	_f_wakeup@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_wakeup
	movl	(%r14), %ecx
	movl	(%rbx), %eax
LBB0_2:
	orl	(%r15), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMAR_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BARRIER_F,4,2                  ## @BARRIER_F
	.comm	_f_done,4,2                     ## @f_done
	.comm	_f_inproc,4,2                   ## @f_inproc
	.comm	_f_wakeup,4,2                   ## @f_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_barrier_exit              ; -- Begin function dmar_barrier_exit
	.p2align	2
_dmar_barrier_exit:                     ; @dmar_barrier_exit
	.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	x20, x1
	mov	x19, x0
	bl	_DMAR_ASSERT_LOCKED
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _f_done@GOTPAGE
Lloh1:
	ldr	x22, [x22, _f_done@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	adrp	x21, _f_inproc@GOTPAGE
Lloh3:
	ldr	x21, [x21, _f_inproc@GOTPAGEOFF]
	ldr	w10, [x21]
	orr	w9, w10, w9
	and	w8, w9, w8
	cmp	w8, w10
	cset	w0, eq
	sxtw	x1, w20
	bl	_KASSERT
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh4:
	adrp	x20, _f_wakeup@GOTPAGE
Lloh5:
	ldr	x20, [x20, _f_wakeup@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_wakeup
	ldr	w9, [x20]
	ldr	w8, [x19]
LBB0_2:
	ldr	w10, [x21]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x19]
	mov	x0, x19
	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	_DMAR_UNLOCK
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BARRIER_F,4,2                  ; @BARRIER_F
	.comm	_f_done,4,2                     ; @f_done
	.comm	_f_inproc,4,2                   ; @f_inproc
	.comm	_f_wakeup,4,2                   ; @f_wakeup
.subsections_via_symbols
