	.file	"extr_tegra-smmu.c_tegra_smmu_add_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"#iommu-cells"
.LC1:
	.string	"iommus"
	.text
	.p2align 4
	.type	tegra_smmu_add_device, @function
tegra_smmu_add_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 4[rsp]
	call	tegra_smmu_find@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L14
	mov	edi, DWORD PTR 4[rsp]
	add	ebx, 1
	call	of_node_put@PLT
.L2:
	mov	r8, r12
	mov	ecx, ebx
	mov	rdx, r13
	mov	rdi, r14
	lea	rsi, .LC1[rip]
	call	of_parse_phandle_with_args@PLT
	test	rax, rax
	je	.L7
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdx, r12
	mov	rdi, rax
	mov	rsi, r15
	call	tegra_smmu_configure@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	r12d, eax
	call	of_node_put@PLT
	test	r12d, r12d
	js	.L1
	mov	QWORD PTR [r15], rbp
	mov	rdi, rbp
	mov	rsi, r15
	call	iommu_device_link@PLT
	mov	rdi, r15
	call	iommu_group_get_for_dev@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	mov	rdi, rbp
	xor	r12d, r12d
	call	iommu_group_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tegra_smmu_add_device, .-tegra_smmu_add_device
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tegra-smmu.c_tegra_smmu_add_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"#iommu-cells\000"
	.align	2
.LC1:
	.ascii	"iommus\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_smmu_add_device, %function
tegra_smmu_add_device:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L17
	sub	sp, sp, #16
	mov	r10, r0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, #0
	ldr	r9, [r0, #4]
	ldr	r8, .L17+4
	ldr	r7, .L17+8
	add	r6, sp, #8
	b	.L2
.L7:
	ldr	r0, [sp, #8]
	bl	tegra_smmu_find
	subs	r4, r0, #0
	bne	.L14
	ldr	r0, [sp, #8]
	bl	of_node_put
	add	r5, r5, #1
.L2:
	mov	r3, r5
	mov	r2, r8
	mov	r1, r7
	mov	r0, r9
	str	r6, [sp]
	bl	of_parse_phandle_with_args
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L17+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r2, r6
	mov	r1, r10
	bl	tegra_smmu_configure
	mov	r5, r0
	ldr	r0, [sp, #8]
	bl	of_node_put
	cmp	r5, #0
	blt	.L1
	mov	r1, r10
	mov	r0, r4
	str	r4, [r10]
	bl	iommu_device_link
	mov	r0, r10
	bl	iommu_group_get_for_dev
	mov	r4, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L16
	mov	r0, r4
	bl	iommu_group_put
	b	.L1
.L16:
	mov	r0, r4
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	ENODEV
	.size	tegra_smmu_add_device, .-tegra_smmu_add_device
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
