	.file	"extr_amdgpu_vce.c_amdgpu_vce_ring_test_ib.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	amdgpu_vce_ring_test_ib
	.type	amdgpu_vce_ring_test_ib, @function
amdgpu_vce_ring_test_ib:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	cmp	QWORD PTR [rdi], rbp
	je	.L10
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	r12, 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	ecx, DWORD PTR AMDGPU_GEM_DOMAIN_VRAM[rip]
	mov	r13, rsi
	push	0
	.cfi_def_cfa_offset 96
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	xor	r9d, r9d
	mov	r8, r12
	mov	esi, 512
	call	amdgpu_bo_create_reserved@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L1
	mov	rdx, QWORD PTR 16[rsp]
	xor	ecx, ecx
	mov	esi, 1
	mov	rdi, rbp
	call	amdgpu_vce_get_create_msg@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L4
	lea	rcx, 8[rsp]
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rbp
	call	amdgpu_vce_get_destroy_msg@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L12
.L4:
	mov	rdi, QWORD PTR 8[rsp]
	call	dma_fence_put@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	amdgpu_bo_unreserve@PLT
	mov	rdi, r12
	call	amdgpu_bo_unref@PLT
	mov	eax, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR 8[rsp]
	xor	esi, esi
	mov	rdx, r13
	call	dma_fence_wait_timeout@PLT
	test	rax, rax
	jne	.L5
	mov	rbx, QWORD PTR ETIMEDOUT[rip]
	neg	rbx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	cmovle	rbx, rax
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	amdgpu_vce_ring_test_ib, .-amdgpu_vce_ring_test_ib
	.comm	PAGE_SIZE,4,4
	.comm	ETIMEDOUT,8,8
	.comm	AMDGPU_GEM_DOMAIN_VRAM,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_amdgpu_vce.c_amdgpu_vce_ring_test_ib.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	amdgpu_vce_ring_test_ib
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_vce_ring_test_ib, %function
amdgpu_vce_ring_test_ib:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r0, [r0]
	ldr	r2, .L12
	ldr	r7, [r0]
	sub	sp, sp, #36
	cmp	r7, ip
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	movne	r4, r3
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	beq	.L9
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r6, r1
	ldr	r2, .L12+4
	ldr	r1, .L12+8
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	add	r5, sp, #24
	ldr	r3, [r1]
	ldr	r2, [r2]
	mov	r1, #512
	str	r5, [sp]
	bl	amdgpu_bo_create_reserved
	subs	r4, r0, #0
	bne	.L1
	mov	r3, r4
	mov	r1, #1
	mov	r0, r7
	ldr	r2, [sp, #24]
	bl	amdgpu_vce_get_create_msg
	subs	r4, r0, #0
	bne	.L3
	mov	r2, #1
	mov	r0, r7
	mov	r1, r2
	add	r3, sp, #20
	bl	amdgpu_vce_get_destroy_msg
	subs	r4, r0, #0
	beq	.L11
.L3:
	ldr	r0, [sp, #20]
	bl	dma_fence_put
	ldr	r0, [sp, #24]
	bl	amdgpu_bo_unreserve
	mov	r0, r5
	bl	amdgpu_bo_unref
	b	.L1
.L11:
	mov	r1, r4
	mov	r2, r6
	ldr	r0, [sp, #20]
	bl	dma_fence_wait_timeout
	cmp	r0, #0
	ldreq	r3, .L12+12
	andne	r4, r0, r0, asr #31
	ldreq	r3, [r3]
	rsbeq	r4, r3, #0
	b	.L3
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	PAGE_SIZE
	.word	AMDGPU_GEM_DOMAIN_VRAM
	.word	ETIMEDOUT
	.size	amdgpu_vce_ring_test_ib, .-amdgpu_vce_ring_test_ib
	.comm	PAGE_SIZE,4,4
	.comm	ETIMEDOUT,4,4
	.comm	AMDGPU_GEM_DOMAIN_VRAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
