	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_init_decode_v5
_s5p_mfc_init_decode_v5:                ## @s5p_mfc_init_decode_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	callq	_s5p_mfc_set_shared_buffer
	movq	(%rbx), %rax
	movq	_S5P_MFC_CODEC_MPEG4_DEC@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
LBB0_2:
	movq	_S5P_FIMV_ENC_LF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_SLICE_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%rbx), %eax
	movq	_S5P_FIMV_SLICE_INT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	16(%rbx), %edx
	movq	_S5P_FIMV_DDELAY_ENA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_S5P_FIMV_DDELAY_VAL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	20(%rbx), %esi
	movq	_S5P_FIMV_DDELAY_VAL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%eax, %edx
	orl	%edx, %esi
	movq	_S5P_FIMV_SI_CH0_DPB_CONF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	movq	_S5P_FIMV_CH_SEQ_HEADER@GOTPCREL(%rip), %rax
	movq	_S5P_FIMV_CH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	movq	_S5P_FIMV_CH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	24(%rbx), %esi
	movq	_S5P_FIMV_SI_CH0_INST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mfc_write
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_MFC_CODEC_MPEG4_DEC,8,3    ## @S5P_MFC_CODEC_MPEG4_DEC
	.comm	_S5P_FIMV_ENC_LF_CTRL,4,2       ## @S5P_FIMV_ENC_LF_CTRL
	.comm	_S5P_FIMV_SLICE_INT_MASK,4,2    ## @S5P_FIMV_SLICE_INT_MASK
	.comm	_S5P_FIMV_SLICE_INT_SHIFT,4,2   ## @S5P_FIMV_SLICE_INT_SHIFT
	.comm	_S5P_FIMV_DDELAY_ENA_SHIFT,4,2  ## @S5P_FIMV_DDELAY_ENA_SHIFT
	.comm	_S5P_FIMV_DDELAY_VAL_MASK,4,2   ## @S5P_FIMV_DDELAY_VAL_MASK
	.comm	_S5P_FIMV_DDELAY_VAL_SHIFT,4,2  ## @S5P_FIMV_DDELAY_VAL_SHIFT
	.comm	_S5P_FIMV_SI_CH0_DPB_CONF_CTRL,4,2 ## @S5P_FIMV_SI_CH0_DPB_CONF_CTRL
	.comm	_S5P_FIMV_CH_SEQ_HEADER,4,2     ## @S5P_FIMV_CH_SEQ_HEADER
	.comm	_S5P_FIMV_CH_MASK,4,2           ## @S5P_FIMV_CH_MASK
	.comm	_S5P_FIMV_CH_SHIFT,4,2          ## @S5P_FIMV_CH_SHIFT
	.comm	_S5P_FIMV_SI_CH0_INST_ID,4,2    ## @S5P_FIMV_SI_CH0_INST_ID
	.no_dead_strip	_s5p_mfc_init_decode_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_init_decode_v5
_s5p_mfc_init_decode_v5:                ; @s5p_mfc_init_decode_v5
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, #32]
	bl	_s5p_mfc_set_shared_buffer
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _S5P_MFC_CODEC_MPEG4_DEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5P_MFC_CODEC_MPEG4_DEC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x20, #8]
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
Lloh3:
	adrp	x8, _S5P_FIMV_ENC_LF_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S5P_FIMV_ENC_LF_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
Lloh6:
	adrp	x8, _S5P_FIMV_SLICE_INT_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S5P_FIMV_SLICE_INT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w10, [x20, #12]
	and	w8, w8, w9
Lloh9:
	adrp	x9, _S5P_FIMV_SLICE_INT_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S5P_FIMV_SLICE_INT_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh12:
	adrp	x9, _S5P_FIMV_DDELAY_ENA_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S5P_FIMV_DDELAY_ENA_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w9, w8
	ldr	w9, [x20, #20]
Lloh15:
	adrp	x10, _S5P_FIMV_DDELAY_VAL_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _S5P_FIMV_DDELAY_VAL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh18:
	adrp	x10, _S5P_FIMV_DDELAY_VAL_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _S5P_FIMV_DDELAY_VAL_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w8, w9
Lloh21:
	adrp	x8, _S5P_FIMV_SI_CH0_DPB_CONF_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S5P_FIMV_SI_CH0_DPB_CONF_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
Lloh24:
	adrp	x8, _S5P_FIMV_CH_SEQ_HEADER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S5P_FIMV_CH_SEQ_HEADER@GOTPAGEOFF]
Lloh26:
	adrp	x9, _S5P_FIMV_CH_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _S5P_FIMV_CH_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh30:
	adrp	x9, _S5P_FIMV_CH_SHIFT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _S5P_FIMV_CH_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x20, #24]
	orr	w1, w8, w9
Lloh33:
	adrp	x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_MFC_CODEC_MPEG4_DEC,8,3    ; @S5P_MFC_CODEC_MPEG4_DEC
	.comm	_S5P_FIMV_ENC_LF_CTRL,4,2       ; @S5P_FIMV_ENC_LF_CTRL
	.comm	_S5P_FIMV_SLICE_INT_MASK,4,2    ; @S5P_FIMV_SLICE_INT_MASK
	.comm	_S5P_FIMV_SLICE_INT_SHIFT,4,2   ; @S5P_FIMV_SLICE_INT_SHIFT
	.comm	_S5P_FIMV_DDELAY_ENA_SHIFT,4,2  ; @S5P_FIMV_DDELAY_ENA_SHIFT
	.comm	_S5P_FIMV_DDELAY_VAL_MASK,4,2   ; @S5P_FIMV_DDELAY_VAL_MASK
	.comm	_S5P_FIMV_DDELAY_VAL_SHIFT,4,2  ; @S5P_FIMV_DDELAY_VAL_SHIFT
	.comm	_S5P_FIMV_SI_CH0_DPB_CONF_CTRL,4,2 ; @S5P_FIMV_SI_CH0_DPB_CONF_CTRL
	.comm	_S5P_FIMV_CH_SEQ_HEADER,4,2     ; @S5P_FIMV_CH_SEQ_HEADER
	.comm	_S5P_FIMV_CH_MASK,4,2           ; @S5P_FIMV_CH_MASK
	.comm	_S5P_FIMV_CH_SHIFT,4,2          ; @S5P_FIMV_CH_SHIFT
	.comm	_S5P_FIMV_SI_CH0_INST_ID,4,2    ; @S5P_FIMV_SI_CH0_INST_ID
	.no_dead_strip	_s5p_mfc_init_decode_v5
.subsections_via_symbols
