	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_smmu_detach_dev
_tegra_smmu_detach_dev:                 ## @tegra_smmu_detach_dev
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_to_smmu_as
	movq	(%rbx), %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-72(%rbp), %r8
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_of_parse_phandle_with_args
	testl	%eax, %eax
	je	LBB0_1
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rbx
	leaq	L_.str.1(%rip), %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax
	movq	%r12, %rbx
	movl	%r14d, %r12d
	movl	(%rax), %r14d
	callq	_of_node_put
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %r14d
	movq	%rbx, %r12
	leaq	L_.str(%rip), %rbx
	callq	_tegra_smmu_disable
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	callq	_tegra_smmu_as_unprepare
	incl	%r14d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	leaq	-72(%rbp), %r8
	callq	_of_parse_phandle_with_args
	testl	%eax, %eax
	jne	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	movq	(%r13), %rax
	cmpq	(%rax), %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_of_node_put
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iommus"

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

	.no_dead_strip	_tegra_smmu_detach_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_smmu_detach_dev
_tegra_smmu_detach_dev:                 ; @tegra_smmu_detach_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	bl	_to_smmu_as
	mov	x19, x0
	ldr	x20, [x20]
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, sp
	mov	x0, x20
	mov	w3, #0
	bl	_of_parse_phandle_with_args
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	w22, #0
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp]
	ldr	w25, [x8]
	bl	_of_node_put
	ldr	w2, [x19]
	mov	x0, x21
	mov	x1, x25
	bl	_tegra_smmu_disable
	mov	x0, x21
	mov	x1, x19
	bl	_tegra_smmu_as_unprepare
	add	w22, w22, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x4, sp
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	bl	_of_parse_phandle_with_args
	cbnz	w0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_of_node_put
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iommus"

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

	.no_dead_strip	_tegra_smmu_detach_dev
.subsections_via_symbols
