	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_dec_calc_dpb_size_v6
_s5p_mfc_dec_calc_dpb_size_v6:          ## @s5p_mfc_dec_calc_dpb_size_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movl	(%rdi), %edi
	movq	_S5P_FIMV_NV12MT_HALIGN_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, 56(%rbx)
	movl	4(%rbx), %edi
	movq	_S5P_FIMV_NV12MT_VALIGN_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, 48(%rbx)
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movq	56(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%rax, %r9
	callq	_mfc_debug
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_calc_plane
	movq	%rax, 32(%rbx)
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	sarl	%esi
	callq	_calc_plane
	movq	%rax, 24(%rbx)
	movq	40(%rbx), %rdi
	callq	_IS_MFCV8_PLUS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_S5P_FIMV_D_ALIGN_PLANE_SIZE_V8@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, 32(%rbx)
	addq	%rax, 24(%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	movq	_S5P_MFC_CODEC_H264_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_S5P_MFC_CODEC_H264_MVC_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_S5P_MFC_CODEC_HEVC_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_s5p_mfc_dec_hevc_mv_size
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	movl	$32, %esi
	callq	_ALIGN
	movl	%eax, 16(%rbx)
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	callq	_IS_MFCV10
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	callq	_S5P_MFC_DEC_MV_SIZE_V10
	jmp	LBB0_10
LBB0_8:
	movl	$0, 16(%rbx)
	jmp	LBB0_11
LBB0_9:
	callq	_S5P_MFC_DEC_MV_SIZE_V6
LBB0_10:
	movl	%eax, 16(%rbx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_FIMV_NV12MT_HALIGN_V6,4,2  ## @S5P_FIMV_NV12MT_HALIGN_V6
	.comm	_S5P_FIMV_NV12MT_VALIGN_V6,4,2  ## @S5P_FIMV_NV12MT_VALIGN_V6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEQ Done: Movie dimensions %dx%d,\nbuffer dimensions: %dx%d\n"

	.comm	_S5P_FIMV_D_ALIGN_PLANE_SIZE_V8,8,3 ## @S5P_FIMV_D_ALIGN_PLANE_SIZE_V8
	.comm	_S5P_MFC_CODEC_H264_DEC,8,3     ## @S5P_MFC_CODEC_H264_DEC
	.comm	_S5P_MFC_CODEC_H264_MVC_DEC,8,3 ## @S5P_MFC_CODEC_H264_MVC_DEC
	.comm	_S5P_MFC_CODEC_HEVC_DEC,8,3     ## @S5P_MFC_CODEC_HEVC_DEC
	.no_dead_strip	_s5p_mfc_dec_calc_dpb_size_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_dec_calc_dpb_size_v6
_s5p_mfc_dec_calc_dpb_size_v6:          ; @s5p_mfc_dec_calc_dpb_size_v6
	.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	x19, x0
	ldr	x20, [x0, #40]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _S5P_FIMV_NV12MT_HALIGN_V6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5P_FIMV_NV12MT_HALIGN_V6@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x19, #56]
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _S5P_FIMV_NV12MT_VALIGN_V6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S5P_FIMV_NV12MT_VALIGN_V6@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x5, x0
	str	x0, [x19, #48]
	ldp	w2, w3, [x19]
	ldr	x4, [x19, #56]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldp	w0, w1, [x19]
	bl	_calc_plane
	str	x0, [x19, #32]
	ldp	w0, w8, [x19]
	asr	w1, w8, #1
	bl	_calc_plane
	str	x0, [x19, #24]
	ldr	x0, [x19, #40]
	bl	_IS_MFCV8_PLUS
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _S5P_FIMV_D_ALIGN_PLANE_SIZE_V8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S5P_FIMV_D_ALIGN_PLANE_SIZE_V8@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #24]
	add	x9, x9, x8
	add	x8, x10, x8
	stp	x8, x9, [x19, #24]
LBB0_2:
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _S5P_MFC_CODEC_H264_DEC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _S5P_MFC_CODEC_H264_DEC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh14:
	adrp	x9, _S5P_MFC_CODEC_H264_MVC_DEC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _S5P_MFC_CODEC_H264_MVC_DEC@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
Lloh17:
	adrp	x9, _S5P_MFC_CODEC_HEVC_DEC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S5P_MFC_CODEC_HEVC_DEC@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldp	w0, w1, [x19]
	bl	_s5p_mfc_dec_hevc_mv_size
	str	w0, [x19, #16]
	mov	w1, #32
	bl	_ALIGN
	str	w0, [x19, #16]
	b	LBB0_11
LBB0_6:
	mov	x0, x20
	bl	_IS_MFCV10
	mov	x8, x0
	ldp	w0, w1, [x19]
	cbz	x8, LBB0_9
; %bb.7:
	bl	_S5P_MFC_DEC_MV_SIZE_V10
	b	LBB0_10
LBB0_8:
	str	wzr, [x19, #16]
	b	LBB0_11
LBB0_9:
	bl	_S5P_MFC_DEC_MV_SIZE_V6
LBB0_10:
	str	w0, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_FIMV_NV12MT_HALIGN_V6,4,2  ; @S5P_FIMV_NV12MT_HALIGN_V6
	.comm	_S5P_FIMV_NV12MT_VALIGN_V6,4,2  ; @S5P_FIMV_NV12MT_VALIGN_V6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEQ Done: Movie dimensions %dx%d,\nbuffer dimensions: %dx%d\n"

	.comm	_S5P_FIMV_D_ALIGN_PLANE_SIZE_V8,8,3 ; @S5P_FIMV_D_ALIGN_PLANE_SIZE_V8
	.comm	_S5P_MFC_CODEC_H264_DEC,8,3     ; @S5P_MFC_CODEC_H264_DEC
	.comm	_S5P_MFC_CODEC_H264_MVC_DEC,8,3 ; @S5P_MFC_CODEC_H264_MVC_DEC
	.comm	_S5P_MFC_CODEC_HEVC_DEC,8,3     ; @S5P_MFC_CODEC_HEVC_DEC
	.no_dead_strip	_s5p_mfc_dec_calc_dpb_size_v6
.subsections_via_symbols
