	.file	"extr_s5p_mfc_opr_v5.c_s5p_mfc_try_run_v5.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Entering suspend so do not schedule any jobs\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Couldn't lock HW\n"
.LC2:
	.string	"Failed to unlock hardware\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"No ctx is scheduled to be run\n"
	.section	.rodata.str1.1
.LC4:
	.string	"head parsed\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Finished remaining frames after resolution change\n"
	.section	.rodata.str1.1
.LC6:
	.string	"Will re-init the codec\n"
.LC7:
	.string	"Invalid context type: %d\n"
	.text
	.p2align 4
	.type	s5p_mfc_try_run_v5, @function
s5p_mfc_try_run_v5:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, 16[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	test_bit@PLT
	lea	rsi, .LC0[rip]
	test	rax, rax
	jne	.L30
	xor	edi, edi
	mov	rsi, rbp
	call	test_and_set_bit@PLT
	test	rax, rax
	jne	.L34
	mov	rdi, rbp
	call	s5p_mfc_get_new_ctx@PLT
	test	eax, eax
	js	.L35
	mov	rdx, QWORD PTR 8[rbp]
	cdqe
	mov	r12, QWORD PTR [rdx+rax*8]
	xor	eax, eax
	call	s5p_mfc_clock_on@PLT
	mov	rdi, r12
	call	s5p_mfc_clean_ctx_int_flags@PLT
	mov	rsi, QWORD PTR [r12]
	cmp	rsi, QWORD PTR MFCINST_DECODER[rip]
	je	.L36
	cmp	rsi, QWORD PTR MFCINST_ENCODER[rip]
	jne	.L19
	mov	eax, DWORD PTR 8[r12]
	add	eax, -128
	cmp	eax, 8
	ja	.L29
	lea	rdx, .L22[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L21-.L22
	.long	.L25-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L29-.L22
	.long	.L24-.L22
	.long	.L29-.L22
	.long	.L23-.L22
	.long	.L21-.L22
	.text
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rsi, .LC1[rip]
.L30:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mfc_debug@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	mfc_err@PLT
.L29:
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
.L18:
	test	r12d, r12d
	jne	.L37
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	xor	edi, edi
	mov	rsi, rbp
	call	test_and_clear_bit@PLT
	test	rax, rax
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	mfc_err@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L37:
	xor	edi, edi
	mov	rsi, rbp
	call	test_and_clear_bit@PLT
	test	rax, rax
	je	.L38
.L27:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	s5p_mfc_clock_off@PLT
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	mov	rdi, r12
	call	s5p_mfc_set_dec_desc_buffer@PLT
	mov	eax, DWORD PTR 8[r12]
	add	eax, -128
	cmp	eax, 8
	ja	.L29
	lea	rdx, .L9[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L17-.L9
	.long	.L25-.L9
	.long	.L15-.L9
	.long	.L14-.L9
	.long	.L13-.L9
	.long	.L24-.L9
	.long	.L11-.L9
	.long	.L32-.L9
	.long	.L8-.L9
	.text
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r12
	call	s5p_mfc_run_enc_frame@PLT
	mov	r12d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L38:
	lea	rdi, .LC2[rip]
	call	mfc_err@PLT
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR open_inst_cmd[rip]
	mov	rdx, r12
	call	s5p_mfc_hw_call@PLT
	mov	r12d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR close_inst_cmd[rip]
	mov	rdx, r12
	call	s5p_mfc_hw_call@PLT
	mov	r12d, eax
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L23:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	s5p_mfc_run_init_enc@PLT
.L13:
	.cfi_restore_state
	lea	rsi, .LC5[rip]
	mov	edi, 2
	call	mfc_debug@PLT
	mov	eax, DWORD PTR QUEUE_FREE[rip]
	mov	edi, 2
	lea	rsi, .LC6[rip]
	mov	DWORD PTR 12[r12], eax
	call	mfc_debug@PLT
.L32:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	s5p_mfc_run_init_dec@PLT
.L11:
	.cfi_restore_state
	mov	rdi, r12
	call	s5p_mfc_run_init_dec_buffers@PLT
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	r12d, eax
	call	mfc_debug@PLT
	jmp	.L18
.L14:
	mov	esi, DWORD PTR MFC_DEC_FRAME[rip]
.L31:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	s5p_mfc_run_dec_frame@PLT
.L15:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	s5p_mfc_run_res_change@PLT
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR MFC_DEC_FRAME[rip]
	mov	rdi, r12
	call	s5p_mfc_run_dec_frame@PLT
	mov	r12d, eax
	jmp	.L18
.L8:
	mov	esi, DWORD PTR MFC_DEC_LAST_FRAME[rip]
	jmp	.L31
	.cfi_endproc
.LFE0:
	.size	s5p_mfc_try_run_v5, .-s5p_mfc_try_run_v5
	.comm	open_inst_cmd,4,4
	.comm	close_inst_cmd,4,4
	.comm	QUEUE_FREE,4,4
	.comm	MFC_DEC_LAST_FRAME,4,4
	.comm	MFC_DEC_FRAME,4,4
	.comm	MFCINST_ENCODER,8,8
	.comm	MFCINST_DECODER,8,8
	.comm	EAGAIN,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_s5p_mfc_opr_v5.c_s5p_mfc_try_run_v5.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Entering suspend so do not schedule any jobs\012\000"
	.align	2
.LC1:
	.ascii	"Couldn't lock HW\012\000"
	.align	2
.LC2:
	.ascii	"Failed to unlock hardware\012\000"
	.align	2
.LC3:
	.ascii	"No ctx is scheduled to be run\012\000"
	.align	2
.LC4:
	.ascii	"head parsed\012\000"
	.align	2
.LC5:
	.ascii	"Finished remaining frames after resolution change\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"Will re-init the codec\012\000"
	.align	2
.LC7:
	.ascii	"Invalid context type: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5p_mfc_try_run_v5, %function
s5p_mfc_try_run_v5:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, #0
	add	r1, r4, #12
	bl	test_bit
	cmp	r0, #0
	bne	.L33
	mov	r1, r4
	bl	test_and_set_bit
	subs	r5, r0, #0
	bne	.L34
	mov	r0, r4
	bl	s5p_mfc_get_new_ctx
	cmp	r0, #0
	blt	.L35
	ldr	r3, [r4, #8]
	ldr	r5, [r3, r0, lsl #2]
	bl	s5p_mfc_clock_on
	mov	r0, r5
	bl	s5p_mfc_clean_ctx_int_flags
	ldr	r3, .L38
	ldr	r1, [r5]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L36
	ldr	r3, .L38+4
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L19
	ldr	r3, [r5, #4]
	sub	r3, r3, #128
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L30
.L22:
	.word	.L21
	.word	.L25
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L24
	.word	.L30
	.word	.L23
	.word	.L21
.L34:
	mov	r0, #1
	pop	{r4, r5, r6, lr}
	ldr	r1, .L38+8
	b	mfc_debug
.L33:
	mov	r0, #1
	pop	{r4, r5, r6, lr}
	ldr	r1, .L38+12
	b	mfc_debug
.L19:
	ldr	r0, .L38+16
	bl	mfc_err
.L30:
	ldr	r3, .L38+20
	ldr	r0, [r3]
	rsb	r5, r0, #0
.L18:
	cmp	r5, #0
	popeq	{r4, r5, r6, pc}
	mov	r1, r4
	mov	r0, #0
	bl	test_and_clear_bit
	cmp	r0, #0
	beq	.L37
.L27:
	pop	{r4, r5, r6, lr}
	b	s5p_mfc_clock_off
.L35:
	mov	r1, r4
	mov	r0, r5
	bl	test_and_clear_bit
	cmp	r0, #0
	bne	.L5
	pop	{r4, r5, r6, lr}
	ldr	r0, .L38+24
	b	mfc_err
.L5:
	mov	r0, #1
	pop	{r4, r5, r6, lr}
	ldr	r1, .L38+28
	b	mfc_debug
.L36:
	mov	r0, r5
	bl	s5p_mfc_set_dec_desc_buffer
	ldr	r3, [r5, #4]
	sub	r3, r3, #128
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L17
	.word	.L25
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L24
	.word	.L11
	.word	.L31
	.word	.L8
.L21:
	mov	r0, r5
	bl	s5p_mfc_run_enc_frame
	mov	r5, r0
	b	.L18
.L37:
	ldr	r0, .L38+24
	bl	mfc_err
	b	.L27
.L24:
	ldr	r3, .L38+32
.L29:
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r0, [r4, #4]
	bl	s5p_mfc_hw_call
	mov	r5, r0
	b	.L18
.L25:
	ldr	r3, .L38+36
	b	.L29
.L23:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	s5p_mfc_run_init_enc
.L13:
	ldr	r1, .L38+40
	mov	r0, #2
	bl	mfc_debug
	ldr	r3, .L38+44
	mov	r0, #2
	ldr	r3, [r3]
	ldr	r1, .L38+48
	str	r3, [r5, #8]
	bl	mfc_debug
.L31:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	s5p_mfc_run_init_dec
.L8:
	ldr	r3, .L38+52
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	s5p_mfc_run_dec_frame
.L11:
	mov	r0, r5
	bl	s5p_mfc_run_init_dec_buffers
	ldr	r1, .L38+56
	mov	r5, r0
	mov	r0, #1
	bl	mfc_debug
	b	.L18
.L14:
	ldr	r3, .L38+60
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r3]
	b	s5p_mfc_run_dec_frame
.L15:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	s5p_mfc_run_res_change
.L17:
	ldr	r3, .L38+60
	mov	r0, r5
	ldr	r1, [r3]
	bl	s5p_mfc_run_dec_frame
	mov	r5, r0
	b	.L18
.L7:
	ldr	r3, .L38+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L18
.L39:
	.align	2
.L38:
	.word	MFCINST_DECODER
	.word	MFCINST_ENCODER
	.word	.LC1
	.word	.LC0
	.word	.LC7
	.word	EAGAIN
	.word	.LC2
	.word	.LC3
	.word	open_inst_cmd
	.word	close_inst_cmd
	.word	.LC5
	.word	QUEUE_FREE
	.word	.LC6
	.word	MFC_DEC_LAST_FRAME
	.word	.LC4
	.word	MFC_DEC_FRAME
	.size	s5p_mfc_try_run_v5, .-s5p_mfc_try_run_v5
	.comm	open_inst_cmd,4,4
	.comm	close_inst_cmd,4,4
	.comm	QUEUE_FREE,4,4
	.comm	MFC_DEC_LAST_FRAME,4,4
	.comm	MFC_DEC_FRAME,4,4
	.comm	MFCINST_ENCODER,4,4
	.comm	MFCINST_DECODER,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
