	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_fsl_mc_iommu_init
_of_fsl_mc_iommu_init:                  ## @of_fsl_mc_iommu_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movl	l___const.of_fsl_mc_iommu_init.iommu_spec+8(%rip), %ecx
	movl	%ecx, -24(%rbp)
	movq	l___const.of_fsl_mc_iommu_init.iommu_spec(%rip), %rcx
	movq	%rcx, -32(%rbp)
	movl	4(%rdi), %esi
	leaq	-28(%rbp), %r8
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %rdi
	xorl	%r9d, %r9d
	callq	_of_map_rid
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_4
## %bb.2:
	movq	_NO_IOMMU@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_of_iommu_xlate
	movl	%eax, %ebx
	movl	-28(%rbp), %edi
	callq	_of_node_put
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.of_fsl_mc_iommu_init.iommu_spec
l___const.of_fsl_mc_iommu_init.iommu_spec:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iommu-map"

L_.str.1:                               ## @.str.1
	.asciz	"iommu-map-mask"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NO_IOMMU,4,2                   ## @NO_IOMMU
	.no_dead_strip	_of_fsl_mc_iommu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_fsl_mc_iommu_init
_of_fsl_mc_iommu_init:                  ; @of_fsl_mc_iommu_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, l___const.of_fsl_mc_iommu_init.iommu_spec@PAGE
Lloh1:
	add	x9, x9, l___const.of_fsl_mc_iommu_init.iommu_spec@PAGEOFF
	ldr	x10, [x9]
	str	x10, [sp]
	ldr	w9, [x9, #8]
	str	w9, [sp, #8]
	ldr	w1, [x0, #4]
	mov	x9, sp
	orr	x4, x9, #0x4
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x8
	mov	w5, #0
	bl	_of_map_rid
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _NO_IOMMU@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NO_IOMMU@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmn	w0, w8
	csel	w19, w9, w0, eq
	b	LBB0_3
LBB0_2:
	mov	x1, sp
	mov	x0, x19
	bl	_of_iommu_xlate
	mov	x19, x0
	ldr	w0, [sp, #4]
	bl	_of_node_put
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.of_fsl_mc_iommu_init.iommu_spec
l___const.of_fsl_mc_iommu_init.iommu_spec:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iommu-map"

l_.str.1:                               ; @.str.1
	.asciz	"iommu-map-mask"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NO_IOMMU,4,2                   ; @NO_IOMMU
	.no_dead_strip	_of_fsl_mc_iommu_init
.subsections_via_symbols
