	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_ir_free_irte
_dmar_ir_free_irte:                     ## @dmar_ir_free_irte
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	(%rbx), %rsi
	xorl	%edi, %edi
	cmpq	%r14, %rsi
	seta	%dil
	callq	_KASSERT
	movq	16(%rbx), %rax
	leaq	(%rax,%r14,8), %r15
	leaq	(%rax,%r14,8), %rdi
	addq	$4, %rdi
	callq	_dmar_pte_clear
	movq	%r15, %rdi
	callq	_dmar_pte_clear
	movq	%rbx, %rdi
	callq	_DMAR_LOCK
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_dmar_qi_invalidate_iec
	movq	%rbx, %rdi
	callq	_DMAR_UNLOCK
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_vmem_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dmar_ir_free_irte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_ir_free_irte
_dmar_ir_free_irte:                     ; @dmar_ir_free_irte
	.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
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, ne
LBB0_2:
	mov	x1, x20
	bl	_KASSERT
	ldr	x1, [x20]
	cmp	x1, x19
	cset	w0, hi
	bl	_KASSERT
	ldr	x8, [x20, #16]
	add	x21, x8, x19, lsl #3
	add	x0, x21, #4
	bl	_dmar_pte_clear
	mov	x0, x21
	bl	_dmar_pte_clear
	mov	x0, x20
	bl	_DMAR_LOCK
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_dmar_qi_invalidate_iec
	mov	x0, x20
	bl	_DMAR_UNLOCK
	ldr	w0, [x20, #8]
	mov	x1, x19
	mov	w2, #1
	bl	_vmem_free
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dmar_ir_free_irte
.subsections_via_symbols
