	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_open_inst_cmd_v6
_s5p_mfc_open_inst_cmd_v6:              ## @s5p_mfc_open_inst_cmd_v6
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	movl	12(%rbx), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$15, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.s5p_mfc_open_inst_cmd_v6(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_S5P_FIMV_CODEC_NONE_V6@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_S5P_FIMV_CODEC_TYPE_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movl	4(%rbx), %esi
	movq	_S5P_FIMV_CONTEXT_MEM_ADDR_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movl	8(%rbx), %esi
	movq	_S5P_FIMV_CONTEXT_MEM_SIZE_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_D_CRC_CTRL_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_s5p_mfc_cmd_host2risc_v6
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested codec mode: %d\n"

	.comm	_S5P_FIMV_CODEC_H264_DEC_V6,4,2 ## @S5P_FIMV_CODEC_H264_DEC_V6
	.comm	_S5P_FIMV_CODEC_H264_MVC_DEC_V6,4,2 ## @S5P_FIMV_CODEC_H264_MVC_DEC_V6
	.comm	_S5P_FIMV_CODEC_VC1_DEC_V6,4,2  ## @S5P_FIMV_CODEC_VC1_DEC_V6
	.comm	_S5P_FIMV_CODEC_MPEG4_DEC_V6,4,2 ## @S5P_FIMV_CODEC_MPEG4_DEC_V6
	.comm	_S5P_FIMV_CODEC_MPEG2_DEC_V6,4,2 ## @S5P_FIMV_CODEC_MPEG2_DEC_V6
	.comm	_S5P_FIMV_CODEC_H263_DEC_V6,4,2 ## @S5P_FIMV_CODEC_H263_DEC_V6
	.comm	_S5P_FIMV_CODEC_VC1RCV_DEC_V6,4,2 ## @S5P_FIMV_CODEC_VC1RCV_DEC_V6
	.comm	_S5P_FIMV_CODEC_VP8_DEC_V6,4,2  ## @S5P_FIMV_CODEC_VP8_DEC_V6
	.comm	_S5P_FIMV_CODEC_HEVC_DEC,4,2    ## @S5P_FIMV_CODEC_HEVC_DEC
	.comm	_S5P_FIMV_CODEC_VP9_DEC,4,2     ## @S5P_FIMV_CODEC_VP9_DEC
	.comm	_S5P_FIMV_CODEC_H264_ENC_V6,4,2 ## @S5P_FIMV_CODEC_H264_ENC_V6
	.comm	_S5P_FIMV_CODEC_H264_MVC_ENC_V6,4,2 ## @S5P_FIMV_CODEC_H264_MVC_ENC_V6
	.comm	_S5P_FIMV_CODEC_MPEG4_ENC_V6,4,2 ## @S5P_FIMV_CODEC_MPEG4_ENC_V6
	.comm	_S5P_FIMV_CODEC_H263_ENC_V6,4,2 ## @S5P_FIMV_CODEC_H263_ENC_V6
	.comm	_S5P_FIMV_CODEC_VP8_ENC_V7,4,2  ## @S5P_FIMV_CODEC_VP8_ENC_V7
	.comm	_S5P_FIMV_CODEC_HEVC_ENC,4,2    ## @S5P_FIMV_CODEC_HEVC_ENC
	.comm	_S5P_FIMV_CODEC_NONE_V6,4,2     ## @S5P_FIMV_CODEC_NONE_V6
	.comm	_S5P_FIMV_CODEC_TYPE_V6,4,2     ## @S5P_FIMV_CODEC_TYPE_V6
	.comm	_S5P_FIMV_CONTEXT_MEM_ADDR_V6,4,2 ## @S5P_FIMV_CONTEXT_MEM_ADDR_V6
	.comm	_S5P_FIMV_CONTEXT_MEM_SIZE_V6,4,2 ## @S5P_FIMV_CONTEXT_MEM_SIZE_V6
	.comm	_S5P_FIMV_D_CRC_CTRL_V6,4,2     ## @S5P_FIMV_D_CRC_CTRL_V6
	.comm	_S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6,4,2 ## @S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6
	.no_dead_strip	_s5p_mfc_open_inst_cmd_v6
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.s5p_mfc_open_inst_cmd_v6
l_switch.table.s5p_mfc_open_inst_cmd_v6:
	.quad	_S5P_FIMV_CODEC_VP9_DEC
	.quad	_S5P_FIMV_CODEC_VP8_ENC_V7
	.quad	_S5P_FIMV_CODEC_VP8_DEC_V6
	.quad	_S5P_FIMV_CODEC_VC1_DEC_V6
	.quad	_S5P_FIMV_CODEC_VC1RCV_DEC_V6
	.quad	_S5P_FIMV_CODEC_MPEG4_ENC_V6
	.quad	_S5P_FIMV_CODEC_MPEG4_DEC_V6
	.quad	_S5P_FIMV_CODEC_MPEG2_DEC_V6
	.quad	_S5P_FIMV_CODEC_HEVC_ENC
	.quad	_S5P_FIMV_CODEC_HEVC_DEC
	.quad	_S5P_FIMV_CODEC_H264_MVC_ENC_V6
	.quad	_S5P_FIMV_CODEC_H264_MVC_DEC_V6
	.quad	_S5P_FIMV_CODEC_H264_ENC_V6
	.quad	_S5P_FIMV_CODEC_H264_DEC_V6
	.quad	_S5P_FIMV_CODEC_H263_ENC_V6
	.quad	_S5P_FIMV_CODEC_H263_DEC_V6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_open_inst_cmd_v6
_s5p_mfc_open_inst_cmd_v6:              ; @s5p_mfc_open_inst_cmd_v6
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	w8, [x20, #12]
	str	w8, [x19]
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #15
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, l_switch.table.s5p_mfc_open_inst_cmd_v6@PAGE
Lloh3:
	add	x9, x9, l_switch.table.s5p_mfc_open_inst_cmd_v6@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _S5P_FIMV_CODEC_NONE_V6@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S5P_FIMV_CODEC_NONE_V6@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _S5P_FIMV_CODEC_TYPE_V6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5P_FIMV_CODEC_TYPE_V6@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	ldr	w1, [x20, #4]
Lloh9:
	adrp	x8, _S5P_FIMV_CONTEXT_MEM_ADDR_V6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S5P_FIMV_CONTEXT_MEM_ADDR_V6@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	ldr	w1, [x20, #8]
Lloh12:
	adrp	x8, _S5P_FIMV_CONTEXT_MEM_SIZE_V6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S5P_FIMV_CONTEXT_MEM_SIZE_V6@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
Lloh15:
	adrp	x8, _S5P_FIMV_D_CRC_CTRL_V6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S5P_FIMV_D_CRC_CTRL_V6@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_mfc_write
Lloh18:
	adrp	x8, _S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_s5p_mfc_cmd_host2risc_v6
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested codec mode: %d\n"

	.comm	_S5P_FIMV_CODEC_H264_DEC_V6,4,2 ; @S5P_FIMV_CODEC_H264_DEC_V6
	.comm	_S5P_FIMV_CODEC_H264_MVC_DEC_V6,4,2 ; @S5P_FIMV_CODEC_H264_MVC_DEC_V6
	.comm	_S5P_FIMV_CODEC_VC1_DEC_V6,4,2  ; @S5P_FIMV_CODEC_VC1_DEC_V6
	.comm	_S5P_FIMV_CODEC_MPEG4_DEC_V6,4,2 ; @S5P_FIMV_CODEC_MPEG4_DEC_V6
	.comm	_S5P_FIMV_CODEC_MPEG2_DEC_V6,4,2 ; @S5P_FIMV_CODEC_MPEG2_DEC_V6
	.comm	_S5P_FIMV_CODEC_H263_DEC_V6,4,2 ; @S5P_FIMV_CODEC_H263_DEC_V6
	.comm	_S5P_FIMV_CODEC_VC1RCV_DEC_V6,4,2 ; @S5P_FIMV_CODEC_VC1RCV_DEC_V6
	.comm	_S5P_FIMV_CODEC_VP8_DEC_V6,4,2  ; @S5P_FIMV_CODEC_VP8_DEC_V6
	.comm	_S5P_FIMV_CODEC_HEVC_DEC,4,2    ; @S5P_FIMV_CODEC_HEVC_DEC
	.comm	_S5P_FIMV_CODEC_VP9_DEC,4,2     ; @S5P_FIMV_CODEC_VP9_DEC
	.comm	_S5P_FIMV_CODEC_H264_ENC_V6,4,2 ; @S5P_FIMV_CODEC_H264_ENC_V6
	.comm	_S5P_FIMV_CODEC_H264_MVC_ENC_V6,4,2 ; @S5P_FIMV_CODEC_H264_MVC_ENC_V6
	.comm	_S5P_FIMV_CODEC_MPEG4_ENC_V6,4,2 ; @S5P_FIMV_CODEC_MPEG4_ENC_V6
	.comm	_S5P_FIMV_CODEC_H263_ENC_V6,4,2 ; @S5P_FIMV_CODEC_H263_ENC_V6
	.comm	_S5P_FIMV_CODEC_VP8_ENC_V7,4,2  ; @S5P_FIMV_CODEC_VP8_ENC_V7
	.comm	_S5P_FIMV_CODEC_HEVC_ENC,4,2    ; @S5P_FIMV_CODEC_HEVC_ENC
	.comm	_S5P_FIMV_CODEC_NONE_V6,4,2     ; @S5P_FIMV_CODEC_NONE_V6
	.comm	_S5P_FIMV_CODEC_TYPE_V6,4,2     ; @S5P_FIMV_CODEC_TYPE_V6
	.comm	_S5P_FIMV_CONTEXT_MEM_ADDR_V6,4,2 ; @S5P_FIMV_CONTEXT_MEM_ADDR_V6
	.comm	_S5P_FIMV_CONTEXT_MEM_SIZE_V6,4,2 ; @S5P_FIMV_CONTEXT_MEM_SIZE_V6
	.comm	_S5P_FIMV_D_CRC_CTRL_V6,4,2     ; @S5P_FIMV_D_CRC_CTRL_V6
	.comm	_S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6,4,2 ; @S5P_FIMV_H2R_CMD_OPEN_INSTANCE_V6
	.no_dead_strip	_s5p_mfc_open_inst_cmd_v6
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.s5p_mfc_open_inst_cmd_v6
l_switch.table.s5p_mfc_open_inst_cmd_v6:
	.quad	_S5P_FIMV_CODEC_VP9_DEC
	.quad	_S5P_FIMV_CODEC_VP8_ENC_V7
	.quad	_S5P_FIMV_CODEC_VP8_DEC_V6
	.quad	_S5P_FIMV_CODEC_VC1_DEC_V6
	.quad	_S5P_FIMV_CODEC_VC1RCV_DEC_V6
	.quad	_S5P_FIMV_CODEC_MPEG4_ENC_V6
	.quad	_S5P_FIMV_CODEC_MPEG4_DEC_V6
	.quad	_S5P_FIMV_CODEC_MPEG2_DEC_V6
	.quad	_S5P_FIMV_CODEC_HEVC_ENC
	.quad	_S5P_FIMV_CODEC_HEVC_DEC
	.quad	_S5P_FIMV_CODEC_H264_MVC_ENC_V6
	.quad	_S5P_FIMV_CODEC_H264_MVC_DEC_V6
	.quad	_S5P_FIMV_CODEC_H264_ENC_V6
	.quad	_S5P_FIMV_CODEC_H264_DEC_V6
	.quad	_S5P_FIMV_CODEC_H263_ENC_V6
	.quad	_S5P_FIMV_CODEC_H263_DEC_V6

.subsections_via_symbols
