	.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_v5
_s5p_mfc_open_inst_cmd_v5:              ## @s5p_mfc_open_inst_cmd_v5
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %r14
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_mfc_debug
	movl	24(%r15), %eax
	movl	%eax, (%r14)
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_11
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_S5P_FIMV_CODEC_VC1_DEC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_S5P_FIMV_CODEC_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_S5P_FIMV_CODEC_VC1RCV_DEC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_S5P_FIMV_CODEC_MPEG4_ENC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_S5P_FIMV_CODEC_MPEG4_DEC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_S5P_FIMV_CODEC_MPEG2_DEC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movq	_S5P_FIMV_CODEC_H264_ENC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_S5P_FIMV_CODEC_H264_DEC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_S5P_FIMV_CODEC_H263_ENC@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_6:
	movq	_S5P_FIMV_CODEC_H263_DEC@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	movq	%rcx, (%rax)
	movq	$0, 8(%rax)
	movq	16(%r15), %rcx
	movq	%rcx, 16(%rax)
	movq	8(%r15), %rcx
	movq	%rcx, 24(%rax)
	movq	_S5P_FIMV_H2R_CMD_OPEN_INSTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_s5p_mfc_cmd_host2risc_v5
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	callq	_mfc_err
	movq	_MFCINST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Getting instance number (codec: %d)\n"

	.comm	_S5P_FIMV_CODEC_H264_DEC,8,3    ## @S5P_FIMV_CODEC_H264_DEC
	.comm	_S5P_FIMV_CODEC_VC1_DEC,8,3     ## @S5P_FIMV_CODEC_VC1_DEC
	.comm	_S5P_FIMV_CODEC_MPEG4_DEC,8,3   ## @S5P_FIMV_CODEC_MPEG4_DEC
	.comm	_S5P_FIMV_CODEC_MPEG2_DEC,8,3   ## @S5P_FIMV_CODEC_MPEG2_DEC
	.comm	_S5P_FIMV_CODEC_H263_DEC,8,3    ## @S5P_FIMV_CODEC_H263_DEC
	.comm	_S5P_FIMV_CODEC_VC1RCV_DEC,8,3  ## @S5P_FIMV_CODEC_VC1RCV_DEC
	.comm	_S5P_FIMV_CODEC_H264_ENC,8,3    ## @S5P_FIMV_CODEC_H264_ENC
	.comm	_S5P_FIMV_CODEC_MPEG4_ENC,8,3   ## @S5P_FIMV_CODEC_MPEG4_ENC
	.comm	_S5P_FIMV_CODEC_H263_ENC,8,3    ## @S5P_FIMV_CODEC_H263_ENC
	.comm	_S5P_FIMV_CODEC_NONE,8,3        ## @S5P_FIMV_CODEC_NONE
	.comm	_S5P_FIMV_H2R_CMD_OPEN_INSTANCE,4,2 ## @S5P_FIMV_H2R_CMD_OPEN_INSTANCE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to create a new instance\n"

	.comm	_MFCINST_ERROR,4,2              ## @MFCINST_ERROR
	.no_dead_strip	_s5p_mfc_open_inst_cmd_v5
.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_v5
_s5p_mfc_open_inst_cmd_v5:              ; @s5p_mfc_open_inst_cmd_v5
	.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	x19, x0
	ldr	x20, [x0, #32]
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	w8, [x19, #24]
	str	w8, [x20]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _S5P_FIMV_CODEC_VC1_DEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S5P_FIMV_CODEC_VC1_DEC@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh6:
	adrp	x8, _S5P_FIMV_CODEC_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5P_FIMV_CODEC_NONE@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh8:
	adrp	x8, _S5P_FIMV_CODEC_VC1RCV_DEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S5P_FIMV_CODEC_VC1RCV_DEC@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh10:
	adrp	x8, _S5P_FIMV_CODEC_MPEG4_ENC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S5P_FIMV_CODEC_MPEG4_ENC@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _S5P_FIMV_CODEC_MPEG4_DEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S5P_FIMV_CODEC_MPEG4_DEC@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh14:
	adrp	x8, _S5P_FIMV_CODEC_MPEG2_DEC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S5P_FIMV_CODEC_MPEG2_DEC@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _S5P_FIMV_CODEC_H264_ENC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S5P_FIMV_CODEC_H264_ENC@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh18:
	adrp	x8, _S5P_FIMV_CODEC_H264_DEC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S5P_FIMV_CODEC_H264_DEC@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh20:
	adrp	x8, _S5P_FIMV_CODEC_H263_ENC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _S5P_FIMV_CODEC_H263_ENC@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x8, _S5P_FIMV_CODEC_H263_DEC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S5P_FIMV_CODEC_H263_DEC@GOTPAGEOFF]
LBB0_12:
	ldr	x9, [x8]
	ldr	x8, [sp, #8]
	stp	x9, xzr, [x8]
	ldr	x9, [x19, #16]
	str	x9, [x8, #16]
	ldr	x9, [x19, #8]
	str	x9, [x8, #24]
Lloh24:
	adrp	x8, _S5P_FIMV_H2R_CMD_OPEN_INSTANCE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S5P_FIMV_H2R_CMD_OPEN_INSTANCE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_s5p_mfc_cmd_host2risc_v5
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.13:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_mfc_err
Lloh29:
	adrp	x8, _MFCINST_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MFCINST_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_14:
	mov	x0, x20
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Getting instance number (codec: %d)\n"

	.comm	_S5P_FIMV_CODEC_H264_DEC,8,3    ; @S5P_FIMV_CODEC_H264_DEC
	.comm	_S5P_FIMV_CODEC_VC1_DEC,8,3     ; @S5P_FIMV_CODEC_VC1_DEC
	.comm	_S5P_FIMV_CODEC_MPEG4_DEC,8,3   ; @S5P_FIMV_CODEC_MPEG4_DEC
	.comm	_S5P_FIMV_CODEC_MPEG2_DEC,8,3   ; @S5P_FIMV_CODEC_MPEG2_DEC
	.comm	_S5P_FIMV_CODEC_H263_DEC,8,3    ; @S5P_FIMV_CODEC_H263_DEC
	.comm	_S5P_FIMV_CODEC_VC1RCV_DEC,8,3  ; @S5P_FIMV_CODEC_VC1RCV_DEC
	.comm	_S5P_FIMV_CODEC_H264_ENC,8,3    ; @S5P_FIMV_CODEC_H264_ENC
	.comm	_S5P_FIMV_CODEC_MPEG4_ENC,8,3   ; @S5P_FIMV_CODEC_MPEG4_ENC
	.comm	_S5P_FIMV_CODEC_H263_ENC,8,3    ; @S5P_FIMV_CODEC_H263_ENC
	.comm	_S5P_FIMV_CODEC_NONE,8,3        ; @S5P_FIMV_CODEC_NONE
	.comm	_S5P_FIMV_H2R_CMD_OPEN_INSTANCE,4,2 ; @S5P_FIMV_H2R_CMD_OPEN_INSTANCE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to create a new instance\n"

	.comm	_MFCINST_ERROR,4,2              ; @MFCINST_ERROR
	.no_dead_strip	_s5p_mfc_open_inst_cmd_v5
.subsections_via_symbols
