	.file	"extr_cik.c_cik_vce_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed VCE (%d) init.\n"
	.text
	.p2align 4
	.type	cik_vce_init, @function
cik_vce_init:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 8[rdi], 0
	jne	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	radeon_vce_init@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR TN_RING_TYPE_VCE1_INDEX[rip]
	mov	rdi, rbp
	lea	rsi, [rax+rdx*8]
	mov	edx, 4096
	mov	QWORD PTR [rsi], 0
	call	r600_ring_init@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR TN_RING_TYPE_VCE2_INDEX[rip]
	mov	rdi, rbp
	lea	rsi, [rax+rdx*8]
	mov	edx, 4096
	mov	QWORD PTR [rsi], 0
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	r600_ring_init@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	QWORD PTR 8[rbp], 0
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cik_vce_init, .-cik_vce_init
	.comm	TN_RING_TYPE_VCE2_INDEX,8,8
	.comm	TN_RING_TYPE_VCE1_INDEX,8,8
	.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_cik.c_cik_vce_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed VCE (%d) init.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cik_vce_init, %function
cik_vce_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	radeon_vce_init
	subs	r5, r0, #0
	bne	.L12
	ldr	r2, .L13
	ldr	r3, [r4]
	ldr	r1, [r2]
	mov	r0, r4
	str	r5, [r3, r1, lsl #2]
	mov	r2, #4096
	add	r1, r3, r1, lsl #2
	bl	r600_ring_init
	ldr	r2, .L13+4
	ldr	r3, [r4]
	ldr	r1, [r2]
	mov	r0, r4
	str	r5, [r3, r1, lsl #2]
	mov	r2, #4096
	pop	{r4, r5, r6, lr}
	add	r1, r3, r1, lsl #2
	b	r600_ring_init
.L12:
	mov	r2, r5
	ldr	r1, .L13+8
	ldr	r0, [r4, #8]
	bl	dev_err
	mov	r3, #0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	TN_RING_TYPE_VCE1_INDEX
	.word	TN_RING_TYPE_VCE2_INDEX
	.word	.LC0
	.size	cik_vce_init, .-cik_vce_init
	.comm	TN_RING_TYPE_VCE2_INDEX,4,4
	.comm	TN_RING_TYPE_VCE1_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
