	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_domain_free_pgtbl              ## -- Begin function domain_free_pgtbl
	.p2align	4, 0x90
_domain_free_pgtbl:                     ## @domain_free_pgtbl
	.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	%rdi, %rbx
	movq	8(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	callq	_DMAR_DOMAIN_ASSERT_PGLOCKED
	movq	$0, 8(%rbx)
	movq	_DMAR_DOMAIN_IDMAP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.10:
	movq	%r14, %rdi
	callq	_put_idmap_pgtbl
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	16(%rbx), %rax
	movq	_DMAR_ECAP_PT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.3:
	movq	_DMAR_DOMAIN_IDMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	testl	%eax, (%rbx)
	setne	%dil
	jmp	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vm_page_lookup
	testq	%rax, %rax
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax)
	movq	%rax, %rdi
	callq	_vm_page_next
	testq	%rax, %rax
	jne	LBB0_7
LBB0_9:
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_object_deallocate           ## TAILCALL
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_KASSERT                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_ECAP_PT,4,2               ## @DMAR_ECAP_PT
	.comm	_DMAR_DOMAIN_IDMAP,4,2          ## @DMAR_DOMAIN_IDMAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_domain_free_pgtbl              ; -- Begin function domain_free_pgtbl
	.p2align	2
_domain_free_pgtbl:                     ; @domain_free_pgtbl
	.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, x0
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_DMAR_DOMAIN_ASSERT_PGLOCKED
	str	xzr, [x20, #8]
	ldr	w8, [x20]
Lloh0:
	adrp	x21, _DMAR_DOMAIN_IDMAP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMAR_DOMAIN_IDMAP@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_put_idmap_pgtbl
	ldr	w8, [x21]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	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
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _DMAR_ECAP_PT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMAR_ECAP_PT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _DMAR_DOMAIN_IDMAP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DMAR_DOMAIN_IDMAP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_VM_OBJECT_ASSERT_WLOCKED
	mov	x0, x19
	mov	w1, #0
	bl	_vm_page_lookup
	cbz	x0, LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x0]
	bl	_vm_page_next
	cbnz	x0, LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_VM_OBJECT_WUNLOCK
	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	_vm_object_deallocate
LBB0_8:
	mov	w0, #0
LBB0_9:
	mov	x1, x20
	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	_KASSERT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_ECAP_PT,4,2               ; @DMAR_ECAP_PT
	.comm	_DMAR_DOMAIN_IDMAP,4,2          ; @DMAR_DOMAIN_IDMAP
.subsections_via_symbols
