	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_ops_domain_map
_dma_ops_domain_map:                    ## @dma_ops_domain_map
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %rbx
	xorl	%edi, %edi
	cmpq	%rdx, (%rsi)
	setb	%dil
	callq	_WARN_ON
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_dma_ops_get_pte
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	andl	%r12d, %r15d
	movq	_IOMMU_PTE_P@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_IOMMU_PTE_FC@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_IOMMU_PTE_IR@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_8
LBB0_1:
	movq	_bad_dma_address@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_9
LBB0_4:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_IOMMU_PTE_IW@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	jmp	LBB0_8
LBB0_6:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_IOMMU_PTE_IR@GOTPCREL(%rip), %rax
	movq	_IOMMU_PTE_IW@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
LBB0_8:
	movl	(%r14), %edi
	callq	_WARN_ON
	movl	%r15d, (%r14)
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_bad_dma_address,4,2            ## @bad_dma_address
	.comm	_IOMMU_PTE_P,4,2                ## @IOMMU_PTE_P
	.comm	_IOMMU_PTE_FC,4,2               ## @IOMMU_PTE_FC
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_IOMMU_PTE_IR,4,2               ## @IOMMU_PTE_IR
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_IOMMU_PTE_IW,4,2               ## @IOMMU_PTE_IW
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_dma_ops_domain_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_ops_domain_map
_dma_ops_domain_map:                    ; @dma_ops_domain_map
	.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	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x1]
	cmp	x8, x2
	cset	w0, lo
	bl	_WARN_ON
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_dma_ops_get_pte
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	and	w8, w23, w22
Lloh3:
	adrp	x9, _IOMMU_PTE_P@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOMMU_PTE_P@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IOMMU_PTE_FC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IOMMU_PTE_FC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w22, w8, w9
Lloh9:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _IOMMU_PTE_IR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IOMMU_PTE_IR@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh14:
	adrp	x8, _bad_dma_address@GOTPAGE
Lloh15:
	ldr	x8, [x8, _bad_dma_address@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	b	LBB0_8
LBB0_4:
Lloh17:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.5:
Lloh20:
	adrp	x8, _IOMMU_PTE_IW@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IOMMU_PTE_IW@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_7:
	ldr	w0, [x20]
	bl	_WARN_ON
	str	w22, [x20]
LBB0_8:
	mov	x0, x19
	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
LBB0_9:
Lloh22:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.10:
Lloh25:
	adrp	x8, _IOMMU_PTE_IR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IOMMU_PTE_IR@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _IOMMU_PTE_IW@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IOMMU_PTE_IW@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_bad_dma_address,4,2            ; @bad_dma_address
	.comm	_IOMMU_PTE_P,4,2                ; @IOMMU_PTE_P
	.comm	_IOMMU_PTE_FC,4,2               ; @IOMMU_PTE_FC
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_IOMMU_PTE_IR,4,2               ; @IOMMU_PTE_IR
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_IOMMU_PTE_IW,4,2               ; @IOMMU_PTE_IW
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_dma_ops_domain_map
.subsections_via_symbols
