	.file	"extr_s5p_mfc_cmd_v5.c_s5p_mfc_open_inst_cmd_v5.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Getting instance number (codec: %d)\n"
	.align 8
.LC1:
	.string	"Failed to create a new instance\n"
	.text
	.p2align 4
	.type	s5p_mfc_open_inst_cmd_v5, @function
s5p_mfc_open_inst_cmd_v5:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edx, DWORD PTR [rdi]
	mov	r12, QWORD PTR 32[rdi]
	mov	edi, 2
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	call	mfc_debug@PLT
	mov	eax, DWORD PTR 24[rbx]
	mov	edx, 8
	xor	esi, esi
	mov	rdi, r13
	mov	DWORD PTR [r12], eax
	call	memset@PLT
	mov	eax, DWORD PTR [rbx]
	add	eax, -128
	cmp	eax, 8
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_H263_ENC[rip]
	mov	QWORD PTR [rax], rdx
	.p2align 4,,10
	.p2align 3
.L13:
	mov	QWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR 16[rbx]
	mov	rdi, r12
	mov	esi, DWORD PTR S5P_FIMV_H2R_CMD_OPEN_INSTANCE[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, QWORD PTR 8[rbx]
	mov	QWORD PTR 24[rax], rdx
	mov	rdx, r13
	call	s5p_mfc_cmd_host2risc_v5@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.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
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_H263_DEC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_MPEG4_DEC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_MPEG2_DEC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_H264_ENC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_H264_DEC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_VC1RCV_DEC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_MPEG4_ENC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_VC1_DEC[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC1[rip]
	call	mfc_err@PLT
	mov	eax, DWORD PTR MFCINST_ERROR[rip]
	mov	DWORD PTR 4[rbx], eax
	jmp	.L1
.L2:
	mov	rax, QWORD PTR [rsp]
	mov	rdx, QWORD PTR S5P_FIMV_CODEC_NONE[rip]
	mov	QWORD PTR [rax], rdx
	jmp	.L13
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s5p_mfc_open_inst_cmd_v5, .-s5p_mfc_open_inst_cmd_v5
	.comm	S5P_FIMV_H2R_CMD_OPEN_INSTANCE,4,4
	.comm	S5P_FIMV_CODEC_VC1_DEC,8,8
	.comm	S5P_FIMV_CODEC_VC1RCV_DEC,8,8
	.comm	S5P_FIMV_CODEC_NONE,8,8
	.comm	S5P_FIMV_CODEC_MPEG4_ENC,8,8
	.comm	S5P_FIMV_CODEC_MPEG4_DEC,8,8
	.comm	S5P_FIMV_CODEC_MPEG2_DEC,8,8
	.comm	S5P_FIMV_CODEC_H264_ENC,8,8
	.comm	S5P_FIMV_CODEC_H264_DEC,8,8
	.comm	S5P_FIMV_CODEC_H263_ENC,8,8
	.comm	S5P_FIMV_CODEC_H263_DEC,8,8
	.comm	MFCINST_ERROR,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_cmd_v5.c_s5p_mfc_open_inst_cmd_v5.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Getting instance number (codec: %d)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5p_mfc_open_inst_cmd_v5, %function
s5p_mfc_open_inst_cmd_v5:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L16
	ldr	r2, [r0]
	sub	sp, sp, #12
	mov	r0, #2
	ldr	r1, .L16+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r5, [r4, #20]
	bl	mfc_debug
	ldr	r3, [r4]
	ldr	r2, [r4, #16]
	sub	r3, r3, #128
	str	r2, [r5]
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
	.word	.L2
.L2:
	mov	r3, #0
	str	r3, [r3]
	.inst	0xe7f000f0
.L17:
	.align	2
.L16:
	.word	.LC1
	.word	.LC0
	.size	s5p_mfc_open_inst_cmd_v5, .-s5p_mfc_open_inst_cmd_v5
	.comm	S5P_FIMV_H2R_CMD_OPEN_INSTANCE,4,4
	.comm	S5P_FIMV_CODEC_VC1_DEC,4,4
	.comm	S5P_FIMV_CODEC_VC1RCV_DEC,4,4
	.comm	S5P_FIMV_CODEC_NONE,4,4
	.comm	S5P_FIMV_CODEC_MPEG4_ENC,4,4
	.comm	S5P_FIMV_CODEC_MPEG4_DEC,4,4
	.comm	S5P_FIMV_CODEC_MPEG2_DEC,4,4
	.comm	S5P_FIMV_CODEC_H264_ENC,4,4
	.comm	S5P_FIMV_CODEC_H264_DEC,4,4
	.comm	S5P_FIMV_CODEC_H263_ENC,4,4
	.comm	S5P_FIMV_CODEC_H263_DEC,4,4
	.comm	MFCINST_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
