	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_inv_iommu_pages
_build_inv_iommu_pages:                 ## @build_inv_iommu_pages
	.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
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%esi, %edi
	movq	%rdx, %rsi
	movl	%eax, %edx
	callq	_iommu_num_pages
	movl	%eax, %r15d
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_CMD_INV_IOMMU_ALL_PAGES_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	orl	%r13d, 4(%rax)
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
	movl	%ebx, %edi
	callq	_upper_32_bits
	movq	(%r12), %rcx
	movl	%eax, 12(%rcx)
	movq	_CMD_INV_IOMMU_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_CMD_SET_TYPE
	cmpl	$2, %r15d
	jl	LBB0_4
## %bb.3:
	movq	_CMD_INV_IOMMU_PAGES_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	orl	%eax, 8(%rcx)
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_CMD_INV_IOMMU_PAGES_PDE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	orl	%eax, 8(%rcx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_CMD_INV_IOMMU_ALL_PAGES_ADDRESS,4,2 ## @CMD_INV_IOMMU_ALL_PAGES_ADDRESS
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_CMD_INV_IOMMU_PAGES,4,2        ## @CMD_INV_IOMMU_PAGES
	.comm	_CMD_INV_IOMMU_PAGES_SIZE_MASK,4,2 ## @CMD_INV_IOMMU_PAGES_SIZE_MASK
	.comm	_CMD_INV_IOMMU_PAGES_PDE_MASK,4,2 ## @CMD_INV_IOMMU_PAGES_PDE_MASK
	.no_dead_strip	_build_inv_iommu_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_inv_iommu_pages
_build_inv_iommu_pages:                 ; @build_inv_iommu_pages
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x8, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_iommu_num_pages
	mov	x23, x0
Lloh3:
	adrp	x8, _CMD_INV_IOMMU_ALL_PAGES_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_INV_IOMMU_ALL_PAGES_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #1
	csel	w8, w8, w22, gt
Lloh6:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w22, w8, w9
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	orr	w9, w9, w21
	str	w9, [x8, #4]
	mov	x0, x22
	bl	_lower_32_bits
	ldr	x8, [x19]
	str	w0, [x8, #8]
	mov	x0, x22
	bl	_upper_32_bits
	ldr	x8, [x19]
	str	w0, [x8, #12]
Lloh9:
	adrp	x8, _CMD_INV_IOMMU_PAGES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_INV_IOMMU_PAGES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CMD_SET_TYPE
	cmp	w23, #2
	b.lt	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _CMD_INV_IOMMU_PAGES_SIZE_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_INV_IOMMU_PAGES_SIZE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
LBB0_2:
	cbz	w20, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _CMD_INV_IOMMU_PAGES_PDE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CMD_INV_IOMMU_PAGES_PDE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_CMD_INV_IOMMU_ALL_PAGES_ADDRESS,4,2 ; @CMD_INV_IOMMU_ALL_PAGES_ADDRESS
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_CMD_INV_IOMMU_PAGES,4,2        ; @CMD_INV_IOMMU_PAGES
	.comm	_CMD_INV_IOMMU_PAGES_SIZE_MASK,4,2 ; @CMD_INV_IOMMU_PAGES_SIZE_MASK
	.comm	_CMD_INV_IOMMU_PAGES_PDE_MASK,4,2 ; @CMD_INV_IOMMU_PAGES_PDE_MASK
	.no_dead_strip	_build_inv_iommu_pages
.subsections_via_symbols
