	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_inv_iotlb_pages
_build_inv_iotlb_pages:                 ## @build_inv_iotlb_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	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %edi
	movq	%r8, %rsi
	callq	_iommu_num_pages
	movl	%eax, %r14d
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_CMD_INV_IOMMU_ALL_PAGES_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r15), %rax
	shll	$24, %ebx
	orl	%r12d, %ebx
	movl	%ebx, (%rax)
	movl	%r12d, 4(%rax)
	movl	%r13d, %edi
	callq	_lower_32_bits
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	%r13d, %edi
	callq	_upper_32_bits
	movq	(%r15), %rcx
	movl	%eax, 12(%rcx)
	movq	_CMD_INV_IOTLB_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CMD_SET_TYPE
	cmpl	$2, %r14d
	jl	LBB0_4
## %bb.3:
	movq	_CMD_INV_IOMMU_PAGES_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	orl	%eax, 8(%rcx)
LBB0_4:
	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_IOTLB_PAGES,4,2        ## @CMD_INV_IOTLB_PAGES
	.comm	_CMD_INV_IOMMU_PAGES_SIZE_MASK,4,2 ## @CMD_INV_IOMMU_PAGES_SIZE_MASK
	.no_dead_strip	_build_inv_iotlb_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_iotlb_pages
_build_inv_iotlb_pages:                 ; @build_inv_iotlb_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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x3
	mov	x1, x4
	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, w20, gt
Lloh6:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w20, w8, w9
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19]
	orr	w9, w22, w21, lsl #24
	stp	w9, w22, [x8]
	mov	x0, x20
	bl	_lower_32_bits
	ldr	x8, [x19]
	str	w0, [x8, #8]
	mov	x0, x20
	bl	_upper_32_bits
	ldr	x8, [x19]
	str	w0, [x8, #12]
Lloh9:
	adrp	x8, _CMD_INV_IOTLB_PAGES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_INV_IOTLB_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:
	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
	.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_IOTLB_PAGES,4,2        ; @CMD_INV_IOTLB_PAGES
	.comm	_CMD_INV_IOMMU_PAGES_SIZE_MASK,4,2 ; @CMD_INV_IOMMU_PAGES_SIZE_MASK
	.no_dead_strip	_build_inv_iotlb_pages
.subsections_via_symbols
