	.file	"extr_vic.c_vic_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to attach to domain: %d\n"
	.text
	.p2align 4
	.type	vic_init, @function
vic_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	host1x_to_drm_client@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	r14, rax
	call	iommu_group_get@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	rbp, rax
	call	dev_get_drvdata@PLT
	mov	rdi, r14
	mov	r15, QWORD PTR [rax]
	call	to_vic@PLT
	mov	r13, rax
	test	rbp, rbp
	je	.L2
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	jne	.L24
.L2:
	mov	edi, DWORD PTR 8[rbx]
	call	host1x_channel_request@PLT
	mov	DWORD PTR 0[r13], eax
	test	eax, eax
	jne	.L5
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L6:
	test	rbp, rbp
	je	.L1
	mov	rdi, QWORD PTR [r15]
	test	rdi, rdi
	jne	.L25
.L1:
	add	rsp, 8
	.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
.L5:
	.cfi_restore_state
	mov	r12, QWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, rbx
	call	host1x_syncpt_request@PLT
	mov	DWORD PTR [r12], eax
	mov	rax, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L7
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L8:
	mov	edi, DWORD PTR 0[r13]
	call	host1x_channel_put@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, rbp
	call	iommu_attach_group@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L26
	mov	rax, QWORD PTR [r15]
	mov	QWORD PTR 8[r13], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r14
	mov	rdi, r15
	call	tegra_drm_register_client@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L27
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, rbp
	call	iommu_detach_group@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	host1x_syncpt_free@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edi, DWORD PTR 16[r13]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vic_init, .-vic_init
	.comm	ENOMEM,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_vic.c_vic_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to attach to domain: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vic_init, %function
vic_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	bl	host1x_to_drm_client
	mov	r9, r0
	ldr	r0, [r4, #4]
	bl	iommu_group_get
	mov	r6, r0
	ldr	r0, [r4, #8]
	bl	dev_get_drvdata
	mov	r3, r0
	mov	r0, r9
	ldr	r7, [r3]
	bl	to_vic
	cmp	r6, #0
	mov	r8, r0
	beq	.L2
	ldr	r0, [r7]
	cmp	r0, #0
	bne	.L24
.L2:
	ldr	r0, [r4, #4]
	bl	host1x_channel_request
	cmp	r0, #0
	str	r0, [r8]
	bne	.L5
	ldr	r3, .L27
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L6:
	cmp	r6, #0
	beq	.L1
	ldr	r0, [r7]
	cmp	r0, #0
	bne	.L25
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r1, #0
	mov	r0, r4
	ldr	r5, [r4]
	bl	host1x_syncpt_request
	ldr	r3, [r4]
	str	r0, [r5]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L27
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L8:
	ldr	r0, [r8]
	bl	host1x_channel_put
	b	.L6
.L24:
	mov	r1, r6
	bl	iommu_attach_group
	subs	r5, r0, #0
	blt	.L26
	ldr	r3, [r7]
	str	r3, [r8, #4]
	b	.L2
.L7:
	mov	r1, r9
	mov	r0, r7
	bl	tegra_drm_register_client
	subs	r5, r0, #0
	movge	r5, #0
	bge	.L1
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	host1x_syncpt_free
	b	.L8
.L25:
	mov	r1, r6
	bl	iommu_detach_group
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	mov	r2, r5
	ldr	r0, [r8, #8]
	ldr	r1, .L27+4
	bl	dev_err
	b	.L1
.L28:
	.align	2
.L27:
	.word	ENOMEM
	.word	.LC0
	.size	vic_init, .-vic_init
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
