	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_iommu_configure             ## -- Begin function of_iommu_configure
	.p2align	4, 0x90
_of_iommu_configure:                    ## @of_iommu_configure
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_dev_iommu_fwspec_get
	testq	%r15, %r15
	je	LBB0_18
## %bb.1:
	movq	_NO_IOMMU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_19
## %bb.3:
	movq	%r14, %rdi
	callq	_iommu_fwspec_free
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_is_pci
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, -56(%rbp)
	movq	%r14, -48(%rbp)
	movq	%r14, %rdi
	callq	_to_pci_dev
	movq	_of_pci_iommu_init@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-56(%rbp), %rdx
	movl	%eax, %edi
	callq	_pci_for_each_dma_alias
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_is_fsl_mc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_to_fsl_mc_device
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_of_fsl_mc_iommu_init
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_of_parse_phandle_with_args
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movl	$1, %ebx
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_of_iommu_xlate
	movl	%eax, %r12d
	movl	-56(%rbp), %edi
	callq	_of_node_put
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	movq	%r13, %r8
	callq	_of_parse_phandle_with_args
	incl	%ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	xorl	%r12d, %r12d
LBB0_13:
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jne	LBB0_14
## %bb.20:
	movq	%r14, %rdi
	callq	_dev_iommu_fwspec_get
	movq	(%rax), %rbx
	cmpq	$0, (%r14)
	je	LBB0_23
## %bb.21:
	movq	%r14, %rdi
	callq	_device_iommu_mapped
	testl	%eax, %eax
	je	LBB0_24
LBB0_23:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_24:
	movq	%r14, %rdi
	callq	_iommu_probe_device
	movl	%eax, %r12d
LBB0_14:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_16
## %bb.15:
	movl	%r12d, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_19
LBB0_16:
	testl	%r12d, %r12d
	jns	LBB0_19
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_dev_dbg
LBB0_18:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_IOMMU,4,2                   ## @NO_IOMMU
	.comm	_of_pci_iommu_init,4,2          ## @of_pci_iommu_init
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iommus"

L_.str.1:                               ## @.str.1
	.asciz	"#iommu-cells"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"Adding to IOMMU failed: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_iommu_configure             ; -- Begin function of_iommu_configure
	.p2align	2
_of_iommu_configure:                    ; @of_iommu_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	bl	_dev_iommu_fwspec_get
	cbz	x21, LBB0_23
; %bb.1:
Lloh0:
	adrp	x8, _NO_IOMMU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_IOMMU@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x22, [x0]
	cbnz	x22, LBB0_24
; %bb.3:
	mov	x0, x19
	bl	_iommu_fwspec_free
LBB0_4:
	mov	x0, x19
	bl	_dev_is_pci
	cbz	x0, LBB0_6
; %bb.5:
	stp	x21, x19, [sp]
	mov	x0, x19
	bl	_to_pci_dev
Lloh3:
	adrp	x8, _of_pci_iommu_init@GOTPAGE
Lloh4:
	ldr	x8, [x8, _of_pci_iommu_init@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_pci_for_each_dma_alias
	mov	x20, x0
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	bl	_dev_is_fsl_mc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_to_fsl_mc_device
	mov	x1, x21
	bl	_of_fsl_mc_iommu_init
	mov	x20, x0
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, sp
	mov	x0, x21
	mov	w3, #0
	bl	_of_parse_phandle_with_args
	cbnz	w0, LBB0_13
; %bb.9:
	mov	w22, #1
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_of_iommu_xlate
	mov	x20, x0
	ldr	w0, [sp]
	bl	_of_node_put
	cbnz	w20, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x4, sp
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	bl	_of_parse_phandle_with_args
	add	w22, w22, #1
	cbz	w0, LBB0_10
; %bb.12:
	mov	w20, #0
LBB0_13:
	cbz	w20, LBB0_15
; %bb.14:
	mov	x22, #0
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_dev_iommu_fwspec_get
	ldr	x22, [x0]
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_device_iommu_mapped
	cbz	w0, LBB0_18
LBB0_17:
	mov	w20, #0
	b	LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_iommu_probe_device
	mov	x20, x0
LBB0_19:
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x20
	bl	_ERR_PTR
	mov	x22, x0
	b	LBB0_24
LBB0_21:
	tbz	w20, #31, LBB0_24
; %bb.22:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_23:
	mov	x22, #0
LBB0_24:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_IOMMU,4,2                   ; @NO_IOMMU
	.comm	_of_pci_iommu_init,4,2          ; @of_pci_iommu_init
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iommus"

l_.str.1:                               ; @.str.1
	.asciz	"#iommu-cells"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"Adding to IOMMU failed: %d\n"

.subsections_via_symbols
