	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_setup_dma_ops            ## -- Begin function iommu_setup_dma_ops
	.p2align	4, 0x90
_iommu_setup_dma_ops:                   ## @iommu_setup_dma_ops
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_iommu_get_domain_for_dev
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rcx
	movq	_IOMMU_DOMAIN_DMA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	callq	_iommu_dma_init_domain
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_3:
	movq	_iommu_dma_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_DOMAIN_DMA,8,3           ## @IOMMU_DOMAIN_DMA
	.comm	_iommu_dma_ops,4,2              ## @iommu_dma_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set up IOMMU for device %s; retaining platform DMA ops\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_setup_dma_ops            ; -- Begin function iommu_setup_dma_ops
	.p2align	2
_iommu_setup_dma_ops:                   ; @iommu_setup_dma_ops
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iommu_get_domain_for_dev
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IOMMU_DOMAIN_DMA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IOMMU_DOMAIN_DMA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_iommu_dma_init_domain
	cbz	x0, LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_warn
LBB0_4:
Lloh5:
	adrp	x8, _iommu_dma_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iommu_dma_ops@GOTPAGEOFF]
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_DOMAIN_DMA,8,3           ; @IOMMU_DOMAIN_DMA
	.comm	_iommu_dma_ops,4,2              ; @iommu_dma_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set up IOMMU for device %s; retaining platform DMA ops\n"

.subsections_via_symbols
