	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_domain_alloc_pgtbl             ## -- Begin function domain_alloc_pgtbl
	.p2align	4, 0x90
_domain_alloc_pgtbl:                    ## @domain_alloc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	_OBJT_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	16(%rbx), %edi
	callq	_pglvl_max_pages
	movl	%eax, %edi
	callq	_IDX_TO_OFF
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_vm_pager_allocate
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_DMAR_DOMAIN_PGLOCK
	movq	_DMAR_PGF_WAITOK@GOTPCREL(%rip), %rax
	movq	_DMAR_PGF_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	8(%rbx), %rdi
	movq	_DMAR_PGF_OBJL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%esi, %esi
	callq	_dmar_pgalloc
	movl	$1, (%rax)
	movq	%rbx, %rdi
	callq	_DMAR_DOMAIN_PGUNLOCK
	movl	(%rbx), %edi
	callq	_DMAR_LOCK
	movq	_DMAR_DOMAIN_PGTBL_INITED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	movl	(%rbx), %edi
	callq	_DMAR_UNLOCK
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_PHYS,4,2                  ## @OBJT_PHYS
	.comm	_DMAR_PGF_WAITOK,4,2            ## @DMAR_PGF_WAITOK
	.comm	_DMAR_PGF_ZERO,4,2              ## @DMAR_PGF_ZERO
	.comm	_DMAR_PGF_OBJL,4,2              ## @DMAR_PGF_OBJL
	.comm	_DMAR_DOMAIN_PGTBL_INITED,4,2   ## @DMAR_DOMAIN_PGTBL_INITED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_domain_alloc_pgtbl             ; -- Begin function domain_alloc_pgtbl
	.p2align	2
_domain_alloc_pgtbl:                    ; @domain_alloc_pgtbl
	.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
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, eq
	mov	x1, x19
	bl	_KASSERT
Lloh0:
	adrp	x8, _OBJT_PHYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJT_PHYS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x19, #16]
	bl	_pglvl_max_pages
	bl	_IDX_TO_OFF
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_vm_pager_allocate
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_DMAR_DOMAIN_PGLOCK
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _DMAR_PGF_WAITOK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMAR_PGF_WAITOK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DMAR_PGF_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DMAR_PGF_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _DMAR_PGF_OBJL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DMAR_PGF_OBJL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w1, #0
	bl	_dmar_pgalloc
	mov	w8, #1
	str	w8, [x0]
	mov	x0, x19
	bl	_DMAR_DOMAIN_PGUNLOCK
	ldr	w0, [x19]
	bl	_DMAR_LOCK
Lloh12:
	adrp	x8, _DMAR_DOMAIN_PGTBL_INITED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMAR_DOMAIN_PGTBL_INITED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldp	w0, w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	bl	_DMAR_UNLOCK
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.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	_OBJT_PHYS,4,2                  ; @OBJT_PHYS
	.comm	_DMAR_PGF_WAITOK,4,2            ; @DMAR_PGF_WAITOK
	.comm	_DMAR_PGF_ZERO,4,2              ; @DMAR_PGF_ZERO
	.comm	_DMAR_PGF_OBJL,4,2              ; @DMAR_PGF_OBJL
	.comm	_DMAR_DOMAIN_PGTBL_INITED,4,2   ; @DMAR_DOMAIN_PGTBL_INITED
.subsections_via_symbols
