	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_set_dec_frame_buffer_v5
_s5p_mfc_set_dec_frame_buffer_v5:       ## @s5p_mfc_set_dec_frame_buffer_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	64(%rdi), %r13
	movq	48(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	56(%rdi), %r12d
	movq	32(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	40(%rdi), %ebx
	movq	_S5P_FIMV_SI_CH0_DPB_CONF_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%r13, %rdi
	callq	_mfc_read
	movq	_S5P_FIMV_DPB_COUNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	orl	(%r15), %esi
	movq	(%r14), %rdx
	movq	%r13, %rdi
	callq	_mfc_write
	movq	%r15, %rdi
	callq	_s5p_mfc_set_shared_buffer
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	4(%r15), %esi
	leal	-128(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.1:
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmpq	*%rax
LBB0_2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_NB_DCAC_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_OT_LINE_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r15, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_UP_NB_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_SA_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_BITPLANE3_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_VC1_BITPLANE_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	addq	%r13, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_BITPLANE2_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_mfc_write
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	(%rbx), %r12
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_VC1_BITPLANE1_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_mfc_write
	movq	(%rbx), %rax
	addq	%rax, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	addl	-96(%rbp), %r15d                ## 4-byte Folded Reload
	addl	-88(%rbp), %r15d                ## 4-byte Folded Reload
	addl	%r13d, %r15d
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_mfc_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_MPEG4_NB_DCAC_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_MPEG4_UP_NB_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r15, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_MPEG4_SA_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	(%rax), %r12
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_MPEG4_SP_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_STX_PARSER_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	%r13, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_MPEG4_OT_LINE_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
	addl	%r12d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	addl	%r13d, %r15d
	jmp	LBB0_7
LBB0_5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_H263_OT_LINE_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_H263_UP_NB_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	addq	%r15, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_H263_SA_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPCREL(%rip), %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	(%rax), %r12
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_H263_NB_DCAC_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	addl	-64(%rbp), %r15d                ## 4-byte Folded Reload
LBB0_6:
	addl	%r12d, %r15d
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_7:
	addl	%eax, %r15d
	subl	%r15d, %r12d
LBB0_8:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	8(%r13), %edx
	movl	12(%r13), %ecx
	movl	16(%r13), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_mfc_debug
	cmpl	$0, (%r13)
	je	LBB0_13
## %bb.9:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	(%r13), %eax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jae	LBB0_13
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%r12,4), %rcx
	movl	$2, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_mfc_debug
	movq	24(%r13), %rax
	movq	(%rax,%r12,4), %rdi
	callq	_OFFSETB
	movl	%r12d, %r14d
	andl	$-4, %r14d
	movq	_S5P_FIMV_DEC_LUMA_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%r14, %rdx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	24(%r13), %rax
	movq	8(%rax,%r12,4), %rcx
	movl	$2, %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_mfc_debug
	movq	24(%r13), %rax
	movq	8(%rax,%r12,4), %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_DEC_CHROMA_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	cmpl	$132, 4(%r13)
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$2, %edi
	leaq	L_.str.4(%rip), %rsi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_mfc_debug
	movq	%r13, %rdi
	callq	_OFFSETB
	movq	_S5P_FIMV_H264_MV_ADR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r14
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_mfc_write
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r13
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	subl	%eax, %r15d
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$2, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_mfc_debug
	movl	(%r13), %r8d
	leaq	L_.str.6(%rip), %rsi
	movl	$2, %edi
	movl	%r12d, %edx
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_mfc_debug
	testl	%r12d, %r12d
	js	LBB0_18
## %bb.14:
	testl	%r14d, %r14d
	js	LBB0_18
## %bb.15:
	movq	_ALLOC_LUMA_DPB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_s5p_mfc_write_info_v5
	movq	_ALLOC_CHROMA_DPB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_s5p_mfc_write_info_v5
	cmpl	$132, 4(%r13)
	jne	LBB0_17
## %bb.16:
	movq	_ALLOC_MV_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_s5p_mfc_write_info_v5
LBB0_17:
	movq	_S5P_FIMV_CH_INIT_BUFS@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	20(%r13), %esi
	movq	_S5P_FIMV_SI_CH0_INST_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mfc_write
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_mfc_debug
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_19:
	subl	(%rax), %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_H264_VERT_NB_MV_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_VERT_NB_MV_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%r14, %r15
	movq	%r15, %rdi
	callq	_OFFSETA
	movq	_S5P_FIMV_H264_NB_IP_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mfc_write
	movq	_S5P_FIMV_DEC_NB_IP_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %r15
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	addl	%r14d, %eax
	subl	%eax, %r12d
	jmp	LBB0_8
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_21
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_S5P_FIMV_SI_CH0_DPB_CONF_CTRL,8,3 ## @S5P_FIMV_SI_CH0_DPB_CONF_CTRL
	.comm	_S5P_FIMV_DPB_COUNT_MASK,4,2    ## @S5P_FIMV_DPB_COUNT_MASK
	.comm	_S5P_FIMV_H264_VERT_NB_MV_ADR,8,3 ## @S5P_FIMV_H264_VERT_NB_MV_ADR
	.comm	_S5P_FIMV_DEC_VERT_NB_MV_SIZE,8,3 ## @S5P_FIMV_DEC_VERT_NB_MV_SIZE
	.comm	_S5P_FIMV_H264_NB_IP_ADR,8,3    ## @S5P_FIMV_H264_NB_IP_ADR
	.comm	_S5P_FIMV_DEC_NB_IP_SIZE,8,3    ## @S5P_FIMV_DEC_NB_IP_SIZE
	.comm	_S5P_FIMV_MPEG4_NB_DCAC_ADR,8,3 ## @S5P_FIMV_MPEG4_NB_DCAC_ADR
	.comm	_S5P_FIMV_DEC_NB_DCAC_SIZE,8,3  ## @S5P_FIMV_DEC_NB_DCAC_SIZE
	.comm	_S5P_FIMV_MPEG4_UP_NB_MV_ADR,8,3 ## @S5P_FIMV_MPEG4_UP_NB_MV_ADR
	.comm	_S5P_FIMV_DEC_UPNB_MV_SIZE,8,3  ## @S5P_FIMV_DEC_UPNB_MV_SIZE
	.comm	_S5P_FIMV_MPEG4_SA_MV_ADR,8,3   ## @S5P_FIMV_MPEG4_SA_MV_ADR
	.comm	_S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE,8,3 ## @S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE
	.comm	_S5P_FIMV_MPEG4_SP_ADR,8,3      ## @S5P_FIMV_MPEG4_SP_ADR
	.comm	_S5P_FIMV_DEC_STX_PARSER_SIZE,8,3 ## @S5P_FIMV_DEC_STX_PARSER_SIZE
	.comm	_S5P_FIMV_MPEG4_OT_LINE_ADR,8,3 ## @S5P_FIMV_MPEG4_OT_LINE_ADR
	.comm	_S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE,8,3 ## @S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE
	.comm	_S5P_FIMV_H263_OT_LINE_ADR,8,3  ## @S5P_FIMV_H263_OT_LINE_ADR
	.comm	_S5P_FIMV_H263_UP_NB_MV_ADR,8,3 ## @S5P_FIMV_H263_UP_NB_MV_ADR
	.comm	_S5P_FIMV_H263_SA_MV_ADR,8,3    ## @S5P_FIMV_H263_SA_MV_ADR
	.comm	_S5P_FIMV_H263_NB_DCAC_ADR,8,3  ## @S5P_FIMV_H263_NB_DCAC_ADR
	.comm	_S5P_FIMV_VC1_NB_DCAC_ADR,8,3   ## @S5P_FIMV_VC1_NB_DCAC_ADR
	.comm	_S5P_FIMV_VC1_OT_LINE_ADR,8,3   ## @S5P_FIMV_VC1_OT_LINE_ADR
	.comm	_S5P_FIMV_VC1_UP_NB_MV_ADR,8,3  ## @S5P_FIMV_VC1_UP_NB_MV_ADR
	.comm	_S5P_FIMV_VC1_SA_MV_ADR,8,3     ## @S5P_FIMV_VC1_SA_MV_ADR
	.comm	_S5P_FIMV_VC1_BITPLANE3_ADR,8,3 ## @S5P_FIMV_VC1_BITPLANE3_ADR
	.comm	_S5P_FIMV_DEC_VC1_BITPLANE_SIZE,8,3 ## @S5P_FIMV_DEC_VC1_BITPLANE_SIZE
	.comm	_S5P_FIMV_VC1_BITPLANE2_ADR,8,3 ## @S5P_FIMV_VC1_BITPLANE2_ADR
	.comm	_S5P_FIMV_VC1_BITPLANE1_ADR,8,3 ## @S5P_FIMV_VC1_BITPLANE1_ADR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown codec for decoding (%x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Frm size: %d ch: %d mv: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Luma %d: %zx\n"

	.comm	_S5P_FIMV_DEC_LUMA_ADR,8,3      ## @S5P_FIMV_DEC_LUMA_ADR
L_.str.3:                               ## @.str.3
	.asciz	"\tChroma %d: %zx\n"

	.comm	_S5P_FIMV_DEC_CHROMA_ADR,8,3    ## @S5P_FIMV_DEC_CHROMA_ADR
L_.str.4:                               ## @.str.4
	.asciz	"\tBuf2: %zx, size: %d\n"

	.comm	_S5P_FIMV_H264_MV_ADR,8,3       ## @S5P_FIMV_H264_MV_ADR
L_.str.5:                               ## @.str.5
	.asciz	"Buf1: %zu, buf_size1: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Buf 1/2 size after: %d/%d (frames %d)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Not enough memory has been allocated\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ALLOC_LUMA_DPB_SIZE,4,2        ## @ALLOC_LUMA_DPB_SIZE
	.comm	_ALLOC_CHROMA_DPB_SIZE,4,2      ## @ALLOC_CHROMA_DPB_SIZE
	.comm	_ALLOC_MV_SIZE,4,2              ## @ALLOC_MV_SIZE
	.comm	_S5P_FIMV_CH_INIT_BUFS,4,2      ## @S5P_FIMV_CH_INIT_BUFS
	.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,8,3    ## @S5P_FIMV_SI_CH0_INST_ID
	.no_dead_strip	_s5p_mfc_set_dec_frame_buffer_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_set_dec_frame_buffer_v5
_s5p_mfc_set_dec_frame_buffer_v5:       ; @s5p_mfc_set_dec_frame_buffer_v5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x21, [x0, #64]
	ldr	x24, [x0, #48]
	ldr	w27, [x0, #56]
	ldr	x19, [x0, #32]
	ldr	w23, [x0, #40]
Lloh0:
	adrp	x22, _S5P_FIMV_SI_CH0_DPB_CONF_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S5P_FIMV_SI_CH0_DPB_CONF_CTRL@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x21
	bl	_mfc_read
Lloh2:
	adrp	x8, _S5P_FIMV_DPB_COUNT_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5P_FIMV_DPB_COUNT_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x20]
	orr	w1, w9, w8
	ldr	x2, [x22]
	mov	x0, x21
	bl	_mfc_write
	mov	x0, x20
	bl	_s5p_mfc_set_shared_buffer
	ldr	w1, [x20, #4]
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	str	x23, [sp, #72]                  ; 8-byte Folded Spill
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x24
	bl	_OFFSETA
	mov	x1, x0
Lloh7:
	adrp	x8, _S5P_FIMV_VC1_NB_DCAC_ADR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5P_FIMV_VC1_NB_DCAC_ADR@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh10:
	adrp	x8, _S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	add	x22, x8, x24
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh13:
	adrp	x8, _S5P_FIMV_VC1_OT_LINE_ADR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S5P_FIMV_VC1_OT_LINE_ADR@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh16:
	adrp	x8, _S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	add	x22, x8, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh19:
	adrp	x8, _S5P_FIMV_VC1_UP_NB_MV_ADR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S5P_FIMV_VC1_UP_NB_MV_ADR@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh22:
	adrp	x8, _S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	x25, [x8]
	add	x22, x25, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh25:
	adrp	x8, _S5P_FIMV_VC1_SA_MV_ADR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S5P_FIMV_VC1_SA_MV_ADR@GOTPAGEOFF]
Lloh27:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh28:
	adrp	x8, _S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	x26, [x8]
	add	x22, x26, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh31:
	adrp	x8, _S5P_FIMV_VC1_BITPLANE3_ADR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _S5P_FIMV_VC1_BITPLANE3_ADR@GOTPAGEOFF]
Lloh33:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
	mov	x24, x27
Lloh34:
	adrp	x27, _S5P_FIMV_DEC_VC1_BITPLANE_SIZE@GOTPAGE
Lloh35:
	ldr	x27, [x27, _S5P_FIMV_DEC_VC1_BITPLANE_SIZE@GOTPAGEOFF]
	ldr	x28, [x27]
	add	x22, x28, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh36:
	adrp	x8, _S5P_FIMV_VC1_BITPLANE2_ADR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _S5P_FIMV_VC1_BITPLANE2_ADR@GOTPAGEOFF]
Lloh38:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
	ldr	x23, [x27]
	add	x22, x23, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh39:
	adrp	x8, _S5P_FIMV_VC1_BITPLANE1_ADR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _S5P_FIMV_VC1_BITPLANE1_ADR@GOTPAGEOFF]
Lloh41:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
	ldr	x8, [x27]
	mov	x27, x24
	add	x24, x8, x22
	ldp	x10, x9, [sp, #56]              ; 16-byte Folded Reload
	add	w9, w9, w10
	add	w9, w9, w25
	add	w9, w9, w26
	add	w9, w9, w28
	add	w9, w9, w23
	add	w8, w9, w8
	b	LBB0_7
LBB0_3:
Lloh42:
	adrp	x0, l_.str@PAGE
Lloh43:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mfc_err
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_4:
	mov	x0, x24
	bl	_OFFSETA
	mov	x1, x0
Lloh46:
	adrp	x8, _S5P_FIMV_MPEG4_NB_DCAC_ADR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _S5P_FIMV_MPEG4_NB_DCAC_ADR@GOTPAGEOFF]
Lloh48:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh49:
	adrp	x8, _S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPAGEOFF]
Lloh51:
	ldr	x23, [x8]
	add	x22, x23, x24
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh52:
	adrp	x8, _S5P_FIMV_MPEG4_UP_NB_MV_ADR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _S5P_FIMV_MPEG4_UP_NB_MV_ADR@GOTPAGEOFF]
Lloh54:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh55:
	adrp	x8, _S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPAGEOFF]
Lloh57:
	ldr	x24, [x8]
	add	x22, x24, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh58:
	adrp	x8, _S5P_FIMV_MPEG4_SA_MV_ADR@GOTPAGE
Lloh59:
	ldr	x8, [x8, _S5P_FIMV_MPEG4_SA_MV_ADR@GOTPAGEOFF]
Lloh60:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh61:
	adrp	x8, _S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPAGEOFF]
Lloh63:
	ldr	x25, [x8]
	add	x22, x25, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh64:
	adrp	x8, _S5P_FIMV_MPEG4_SP_ADR@GOTPAGE
Lloh65:
	ldr	x8, [x8, _S5P_FIMV_MPEG4_SP_ADR@GOTPAGEOFF]
Lloh66:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh67:
	adrp	x8, _S5P_FIMV_DEC_STX_PARSER_SIZE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _S5P_FIMV_DEC_STX_PARSER_SIZE@GOTPAGEOFF]
Lloh69:
	ldr	x26, [x8]
	add	x22, x26, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh70:
	adrp	x8, _S5P_FIMV_MPEG4_OT_LINE_ADR@GOTPAGE
Lloh71:
	ldr	x8, [x8, _S5P_FIMV_MPEG4_OT_LINE_ADR@GOTPAGEOFF]
Lloh72:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh73:
	adrp	x8, _S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPAGE
Lloh74:
	ldr	x8, [x8, _S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
	add	x10, x8, x22
	add	w9, w23, w24
	mov	x24, x10
	add	w9, w9, w25
	add	w9, w9, w26
	add	w8, w9, w8
	b	LBB0_7
LBB0_5:
	mov	x0, x24
	bl	_OFFSETA
	mov	x1, x0
Lloh76:
	adrp	x8, _S5P_FIMV_H263_OT_LINE_ADR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _S5P_FIMV_H263_OT_LINE_ADR@GOTPAGEOFF]
Lloh78:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh79:
	adrp	x8, _S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE@GOTPAGEOFF]
Lloh81:
	ldr	x23, [x8]
	add	x22, x23, x24
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh82:
	adrp	x8, _S5P_FIMV_H263_UP_NB_MV_ADR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _S5P_FIMV_H263_UP_NB_MV_ADR@GOTPAGEOFF]
Lloh84:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh85:
	adrp	x8, _S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPAGE
Lloh86:
	ldr	x8, [x8, _S5P_FIMV_DEC_UPNB_MV_SIZE@GOTPAGEOFF]
Lloh87:
	ldr	x24, [x8]
	add	x22, x24, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh88:
	adrp	x8, _S5P_FIMV_H263_SA_MV_ADR@GOTPAGE
Lloh89:
	ldr	x8, [x8, _S5P_FIMV_H263_SA_MV_ADR@GOTPAGEOFF]
Lloh90:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh91:
	adrp	x8, _S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPAGE
Lloh92:
	ldr	x8, [x8, _S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE@GOTPAGEOFF]
Lloh93:
	ldr	x25, [x8]
	add	x22, x25, x22
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh94:
	adrp	x8, _S5P_FIMV_H263_NB_DCAC_ADR@GOTPAGE
Lloh95:
	ldr	x8, [x8, _S5P_FIMV_H263_NB_DCAC_ADR@GOTPAGEOFF]
Lloh96:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh97:
	adrp	x8, _S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _S5P_FIMV_DEC_NB_DCAC_SIZE@GOTPAGEOFF]
Lloh99:
	ldr	x8, [x8]
	add	x10, x8, x22
	add	w9, w23, w24
	mov	x24, x10
	add	w9, w9, w25
	add	w8, w9, w8
	b	LBB0_7
LBB0_6:
	mov	x0, x24
	bl	_OFFSETA
	mov	x1, x0
Lloh100:
	adrp	x8, _S5P_FIMV_H264_VERT_NB_MV_ADR@GOTPAGE
Lloh101:
	ldr	x8, [x8, _S5P_FIMV_H264_VERT_NB_MV_ADR@GOTPAGEOFF]
Lloh102:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh103:
	adrp	x8, _S5P_FIMV_DEC_VERT_NB_MV_SIZE@GOTPAGE
Lloh104:
	ldr	x8, [x8, _S5P_FIMV_DEC_VERT_NB_MV_SIZE@GOTPAGEOFF]
Lloh105:
	ldr	x23, [x8]
	add	x22, x23, x24
	mov	x0, x22
	bl	_OFFSETA
	mov	x1, x0
Lloh106:
	adrp	x8, _S5P_FIMV_H264_NB_IP_ADR@GOTPAGE
Lloh107:
	ldr	x8, [x8, _S5P_FIMV_H264_NB_IP_ADR@GOTPAGEOFF]
Lloh108:
	ldr	x2, [x8]
	mov	x0, x21
	bl	_mfc_write
Lloh109:
	adrp	x8, _S5P_FIMV_DEC_NB_IP_SIZE@GOTPAGE
Lloh110:
	ldr	x8, [x8, _S5P_FIMV_DEC_NB_IP_SIZE@GOTPAGEOFF]
Lloh111:
	ldr	x8, [x8]
	add	x24, x8, x22
	add	w8, w23, w8
LBB0_7:
	sub	w27, w27, w8
LBB0_8:
	stp	x24, x27, [sp, #48]             ; 16-byte Folded Spill
	ldp	w9, w8, [x20, #8]
	ldr	w23, [x20, #16]
	stp	x8, x23, [sp, #8]
	stp	x9, x8, [sp, #32]               ; 16-byte Folded Spill
	str	x9, [sp]
Lloh112:
	adrp	x1, l_.str.1@PAGE
Lloh113:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	w8, [x20]
	str	x21, [sp, #64]                  ; 8-byte Folded Spill
	cbz	w8, LBB0_13
; %bb.9:
	mov	x25, #0
	mov	x22, #0
	mov	x28, #0
Lloh114:
	adrp	x26, l_.str.2@PAGE
Lloh115:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh116:
	adrp	x27, _S5P_FIMV_DEC_LUMA_ADR@GOTPAGE
Lloh117:
	ldr	x27, [x27, _S5P_FIMV_DEC_LUMA_ADR@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x28, x28, #1
	ldr	w8, [x20]
	add	x22, x22, #4
	add	x25, x25, #16
	cmp	x28, x8
	b.hs	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x25]
	stp	x28, x8, [sp]
	mov	w0, #2
	mov	x1, x26
	bl	_mfc_debug
	ldr	x8, [x20, #24]
	ldr	x0, [x8, x25]
	bl	_OFFSETB
	mov	x1, x0
	ldr	x8, [x27]
	and	x24, x22, #0xfffffffc
	add	x2, x8, x24
	mov	x0, x21
	bl	_mfc_write
	ldr	x8, [x20, #24]
	add	x8, x8, x25
	ldr	x8, [x8, #8]
	stp	x28, x8, [sp]
	mov	w0, #2
Lloh118:
	adrp	x1, l_.str.3@PAGE
Lloh119:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_mfc_debug
	ldr	x8, [x20, #24]
	add	x8, x8, x25
	ldr	x0, [x8, #8]
	bl	_OFFSETA
	mov	x1, x0
Lloh120:
	adrp	x8, _S5P_FIMV_DEC_CHROMA_ADR@GOTPAGE
Lloh121:
	ldr	x8, [x8, _S5P_FIMV_DEC_CHROMA_ADR@GOTPAGEOFF]
Lloh122:
	ldr	x8, [x8]
	add	x2, x8, x24
	mov	x0, x21
	bl	_mfc_write
	ldr	w8, [x20, #4]
	cmp	w8, #132
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, x27
	mov	x27, x26
	ldr	x26, [sp, #72]                  ; 8-byte Folded Reload
	stp	x19, x26, [sp]
	mov	w0, #2
Lloh123:
	adrp	x1, l_.str.4@PAGE
Lloh124:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_mfc_debug
	mov	x0, x19
	bl	_OFFSETB
	mov	x1, x0
Lloh125:
	adrp	x8, _S5P_FIMV_H264_MV_ADR@GOTPAGE
Lloh126:
	ldr	x8, [x8, _S5P_FIMV_H264_MV_ADR@GOTPAGEOFF]
Lloh127:
	ldr	x8, [x8]
	add	x2, x8, x24
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_mfc_write
	add	x19, x19, x23
	sub	w26, w26, w23
	str	x26, [sp, #72]                  ; 8-byte Folded Spill
	mov	x26, x27
	mov	x27, x21
	ldr	x21, [sp, #64]                  ; 8-byte Folded Reload
	b	LBB0_10
LBB0_13:
	ldp	x8, x22, [sp, #48]              ; 16-byte Folded Reload
	stp	x8, x22, [sp]
Lloh128:
	adrp	x1, l_.str.5@PAGE
Lloh129:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	w9, [x20]
	ldr	x21, [sp, #72]                  ; 8-byte Folded Reload
	mov	x8, x21
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
Lloh130:
	adrp	x1, l_.str.6@PAGE
Lloh131:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	tbnz	w22, #31, LBB0_18
; %bb.14:
	tbnz	w21, #31, LBB0_18
; %bb.15:
Lloh132:
	adrp	x8, _ALLOC_LUMA_DPB_SIZE@GOTPAGE
Lloh133:
	ldr	x8, [x8, _ALLOC_LUMA_DPB_SIZE@GOTPAGEOFF]
Lloh134:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_s5p_mfc_write_info_v5
Lloh135:
	adrp	x8, _ALLOC_CHROMA_DPB_SIZE@GOTPAGE
Lloh136:
	ldr	x8, [x8, _ALLOC_CHROMA_DPB_SIZE@GOTPAGEOFF]
Lloh137:
	ldr	w2, [x8]
	mov	x0, x20
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_s5p_mfc_write_info_v5
	ldr	w8, [x20, #4]
	cmp	w8, #132
	b.ne	LBB0_17
; %bb.16:
Lloh138:
	adrp	x8, _ALLOC_MV_SIZE@GOTPAGE
Lloh139:
	ldr	x8, [x8, _ALLOC_MV_SIZE@GOTPAGEOFF]
Lloh140:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	bl	_s5p_mfc_write_info_v5
LBB0_17:
Lloh141:
	adrp	x8, _S5P_FIMV_CH_INIT_BUFS@GOTPAGE
Lloh142:
	ldr	x8, [x8, _S5P_FIMV_CH_INIT_BUFS@GOTPAGEOFF]
Lloh143:
	adrp	x9, _S5P_FIMV_CH_MASK@GOTPAGE
Lloh144:
	ldr	x9, [x9, _S5P_FIMV_CH_MASK@GOTPAGEOFF]
Lloh145:
	ldr	w8, [x8]
Lloh146:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh147:
	adrp	x9, _S5P_FIMV_CH_SHIFT@GOTPAGE
Lloh148:
	ldr	x9, [x9, _S5P_FIMV_CH_SHIFT@GOTPAGEOFF]
Lloh149:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x20, #20]
	orr	w1, w8, w9
Lloh150:
	adrp	x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGE
Lloh151:
	ldr	x8, [x8, _S5P_FIMV_SI_CH0_INST_ID@GOTPAGEOFF]
Lloh152:
	ldr	x2, [x8]
	ldr	x0, [sp, #64]                   ; 8-byte Folded Reload
	bl	_mfc_write
	mov	w0, #0
	b	LBB0_20
LBB0_18:
Lloh153:
	adrp	x1, l_.str.7@PAGE
Lloh154:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
Lloh155:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh156:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpAdd	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh145
	.loh AdrpLdrGot	Lloh155, Lloh156
	.loh AdrpAdd	Lloh153, Lloh154
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_S5P_FIMV_SI_CH0_DPB_CONF_CTRL,8,3 ; @S5P_FIMV_SI_CH0_DPB_CONF_CTRL
	.comm	_S5P_FIMV_DPB_COUNT_MASK,4,2    ; @S5P_FIMV_DPB_COUNT_MASK
	.comm	_S5P_FIMV_H264_VERT_NB_MV_ADR,8,3 ; @S5P_FIMV_H264_VERT_NB_MV_ADR
	.comm	_S5P_FIMV_DEC_VERT_NB_MV_SIZE,8,3 ; @S5P_FIMV_DEC_VERT_NB_MV_SIZE
	.comm	_S5P_FIMV_H264_NB_IP_ADR,8,3    ; @S5P_FIMV_H264_NB_IP_ADR
	.comm	_S5P_FIMV_DEC_NB_IP_SIZE,8,3    ; @S5P_FIMV_DEC_NB_IP_SIZE
	.comm	_S5P_FIMV_MPEG4_NB_DCAC_ADR,8,3 ; @S5P_FIMV_MPEG4_NB_DCAC_ADR
	.comm	_S5P_FIMV_DEC_NB_DCAC_SIZE,8,3  ; @S5P_FIMV_DEC_NB_DCAC_SIZE
	.comm	_S5P_FIMV_MPEG4_UP_NB_MV_ADR,8,3 ; @S5P_FIMV_MPEG4_UP_NB_MV_ADR
	.comm	_S5P_FIMV_DEC_UPNB_MV_SIZE,8,3  ; @S5P_FIMV_DEC_UPNB_MV_SIZE
	.comm	_S5P_FIMV_MPEG4_SA_MV_ADR,8,3   ; @S5P_FIMV_MPEG4_SA_MV_ADR
	.comm	_S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE,8,3 ; @S5P_FIMV_DEC_SUB_ANCHOR_MV_SIZE
	.comm	_S5P_FIMV_MPEG4_SP_ADR,8,3      ; @S5P_FIMV_MPEG4_SP_ADR
	.comm	_S5P_FIMV_DEC_STX_PARSER_SIZE,8,3 ; @S5P_FIMV_DEC_STX_PARSER_SIZE
	.comm	_S5P_FIMV_MPEG4_OT_LINE_ADR,8,3 ; @S5P_FIMV_MPEG4_OT_LINE_ADR
	.comm	_S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE,8,3 ; @S5P_FIMV_DEC_OVERLAP_TRANSFORM_SIZE
	.comm	_S5P_FIMV_H263_OT_LINE_ADR,8,3  ; @S5P_FIMV_H263_OT_LINE_ADR
	.comm	_S5P_FIMV_H263_UP_NB_MV_ADR,8,3 ; @S5P_FIMV_H263_UP_NB_MV_ADR
	.comm	_S5P_FIMV_H263_SA_MV_ADR,8,3    ; @S5P_FIMV_H263_SA_MV_ADR
	.comm	_S5P_FIMV_H263_NB_DCAC_ADR,8,3  ; @S5P_FIMV_H263_NB_DCAC_ADR
	.comm	_S5P_FIMV_VC1_NB_DCAC_ADR,8,3   ; @S5P_FIMV_VC1_NB_DCAC_ADR
	.comm	_S5P_FIMV_VC1_OT_LINE_ADR,8,3   ; @S5P_FIMV_VC1_OT_LINE_ADR
	.comm	_S5P_FIMV_VC1_UP_NB_MV_ADR,8,3  ; @S5P_FIMV_VC1_UP_NB_MV_ADR
	.comm	_S5P_FIMV_VC1_SA_MV_ADR,8,3     ; @S5P_FIMV_VC1_SA_MV_ADR
	.comm	_S5P_FIMV_VC1_BITPLANE3_ADR,8,3 ; @S5P_FIMV_VC1_BITPLANE3_ADR
	.comm	_S5P_FIMV_DEC_VC1_BITPLANE_SIZE,8,3 ; @S5P_FIMV_DEC_VC1_BITPLANE_SIZE
	.comm	_S5P_FIMV_VC1_BITPLANE2_ADR,8,3 ; @S5P_FIMV_VC1_BITPLANE2_ADR
	.comm	_S5P_FIMV_VC1_BITPLANE1_ADR,8,3 ; @S5P_FIMV_VC1_BITPLANE1_ADR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown codec for decoding (%x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Frm size: %d ch: %d mv: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Luma %d: %zx\n"

	.comm	_S5P_FIMV_DEC_LUMA_ADR,8,3      ; @S5P_FIMV_DEC_LUMA_ADR
l_.str.3:                               ; @.str.3
	.asciz	"\tChroma %d: %zx\n"

	.comm	_S5P_FIMV_DEC_CHROMA_ADR,8,3    ; @S5P_FIMV_DEC_CHROMA_ADR
l_.str.4:                               ; @.str.4
	.asciz	"\tBuf2: %zx, size: %d\n"

	.comm	_S5P_FIMV_H264_MV_ADR,8,3       ; @S5P_FIMV_H264_MV_ADR
l_.str.5:                               ; @.str.5
	.asciz	"Buf1: %zu, buf_size1: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Buf 1/2 size after: %d/%d (frames %d)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Not enough memory has been allocated\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ALLOC_LUMA_DPB_SIZE,4,2        ; @ALLOC_LUMA_DPB_SIZE
	.comm	_ALLOC_CHROMA_DPB_SIZE,4,2      ; @ALLOC_CHROMA_DPB_SIZE
	.comm	_ALLOC_MV_SIZE,4,2              ; @ALLOC_MV_SIZE
	.comm	_S5P_FIMV_CH_INIT_BUFS,4,2      ; @S5P_FIMV_CH_INIT_BUFS
	.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,8,3    ; @S5P_FIMV_SI_CH0_INST_ID
	.no_dead_strip	_s5p_mfc_set_dec_frame_buffer_v5
.subsections_via_symbols
