	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function domain_unmap_clear_pte
_domain_unmap_clear_pte:                ## @domain_unmap_clear_pte
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%r8, %rdi
	callq	_dmar_pte_clear
	movl	4(%r13), %edi
	movq	%rbx, %rsi
	callq	_dmar_flush_pte_to_ram
	movq	(%r15), %rdi
	callq	_sf_buf_page
	movq	%rax, %rbx
	cmpl	$0, 16(%rbp)
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	callq	_dmar_unmap_pgtbl
	movq	$0, (%r15)
LBB0_2:
	decq	(%rbx)
	je	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	movslq	%r12d, %r15
	addl	$-1, %r12d
	setb	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	movq	%r15, %rsi
	callq	_KASSERT
	movl	(%r13), %edi
	movq	8(%rbx), %rsi
	movl	%r14d, %edx
	callq	_dmar_pgfree
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_domain_free_pgtbl_pde          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_domain_unmap_clear_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function domain_unmap_clear_pte
_domain_unmap_clear_pte:                ; @domain_unmap_clear_pte
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x6
	mov	x24, x5
	mov	x23, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x4
	bl	_dmar_pte_clear
	ldr	w0, [x21, #4]
	mov	x1, x23
	bl	_dmar_flush_pte_to_ram
	ldr	x0, [x24]
	bl	_sf_buf_page
	mov	x23, x0
	cbz	w25, LBB0_2
; %bb.1:
	ldr	x0, [x24]
	bl	_dmar_unmap_pgtbl
	str	xzr, [x24]
LBB0_2:
	ldr	x8, [x23]
	subs	x8, x8, #1
	str	x8, [x23]
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	subs	w24, w22, #1
	cset	w0, hs
	sxtw	x22, w22
	mov	x1, x22
	bl	_KASSERT
	ldr	x8, [x23, #8]
	cmp	x8, #0
	cset	w0, ne
	mov	x1, x22
	bl	_KASSERT
	ldr	w0, [x21]
	ldr	x1, [x23, #8]
	mov	x2, x19
	bl	_dmar_pgfree
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_domain_free_pgtbl_pde
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_domain_unmap_clear_pte
.subsections_via_symbols
