	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_get_resv_regions
_arm_smmu_get_resv_regions:             ## @arm_smmu_get_resv_regions
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rax
	movq	_IOMMU_NOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_IOMMU_MMIO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_MSI_IOVA_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MSI_IOVA_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IOMMU_RESV_SW_MSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_iommu_alloc_resv_region
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iommu_dma_get_resv_regions     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_IOMMU_NOEXEC,4,2               ## @IOMMU_NOEXEC
	.comm	_IOMMU_MMIO,4,2                 ## @IOMMU_MMIO
	.comm	_MSI_IOVA_BASE,4,2              ## @MSI_IOVA_BASE
	.comm	_MSI_IOVA_LENGTH,4,2            ## @MSI_IOVA_LENGTH
	.comm	_IOMMU_RESV_SW_MSI,4,2          ## @IOMMU_RESV_SW_MSI
	.no_dead_strip	_arm_smmu_get_resv_regions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_get_resv_regions
_arm_smmu_get_resv_regions:             ; @arm_smmu_get_resv_regions
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IOMMU_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IOMMU_NOEXEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOMMU_NOEXEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IOMMU_MMIO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IOMMU_MMIO@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh9:
	adrp	x8, _MSI_IOVA_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSI_IOVA_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _MSI_IOVA_LENGTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSI_IOVA_LENGTH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _IOMMU_RESV_SW_MSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IOMMU_RESV_SW_MSI@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	bl	_iommu_alloc_resv_region
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_list_add_tail
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iommu_dma_get_resv_regions
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_IOMMU_NOEXEC,4,2               ; @IOMMU_NOEXEC
	.comm	_IOMMU_MMIO,4,2                 ; @IOMMU_MMIO
	.comm	_MSI_IOVA_BASE,4,2              ; @MSI_IOVA_BASE
	.comm	_MSI_IOVA_LENGTH,4,2            ; @MSI_IOVA_LENGTH
	.comm	_IOMMU_RESV_SW_MSI,4,2          ; @IOMMU_RESV_SW_MSI
	.no_dead_strip	_arm_smmu_get_resv_regions
.subsections_via_symbols
