	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_info_to_prot
_dma_info_to_prot:                      ## @dma_info_to_prot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_IOMMU_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	movq	_DMA_ATTR_PRIVILEGED@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	movl	$0, %ecx
	testq	%rdx, (%r8)
	je	LBB0_4
## %bb.3:
	movq	_IOMMU_PRIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%esi, %ecx
	cmpl	$128, %edi
	je	LBB0_11
## %bb.5:
	cmpl	$129, %edi
	je	LBB0_8
## %bb.6:
	cmpl	$130, %edi
	jne	LBB0_10
## %bb.7:
	movq	_IOMMU_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_8:
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_IOMMU_READ@GOTPCREL(%rip), %rax
LBB0_9:
	orl	(%rax), %ecx
	movl	%ecx, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_CACHE,4,2                ## @IOMMU_CACHE
	.comm	_DMA_ATTR_PRIVILEGED,8,3        ## @DMA_ATTR_PRIVILEGED
	.comm	_IOMMU_PRIV,4,2                 ## @IOMMU_PRIV
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.no_dead_strip	_dma_info_to_prot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_info_to_prot
_dma_info_to_prot:                      ; @dma_info_to_prot
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IOMMU_CACHE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_CACHE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _DMA_ATTR_PRIVILEGED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_ATTR_PRIVILEGED@GOTPAGEOFF]
Lloh5:
	adrp	x10, _IOMMU_PRIV@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IOMMU_PRIV@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	w10, [x10]
	tst	x9, x2
	csel	w9, wzr, w10, eq
	orr	w9, w9, w8
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #0
	cmp	w0, #130
	b.ne	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _IOMMU_WRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IOMMU_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _IOMMU_WRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IOMMU_WRITE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
LBB0_7:
	orr	w8, w8, w9
LBB0_8:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_CACHE,4,2                ; @IOMMU_CACHE
	.comm	_DMA_ATTR_PRIVILEGED,8,3        ; @DMA_ATTR_PRIVILEGED
	.comm	_IOMMU_PRIV,4,2                 ; @IOMMU_PRIV
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.no_dead_strip	_dma_info_to_prot
.subsections_via_symbols
