	.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_v5
_s5p_mfc_dec_calc_dpb_size_v5:          ## @s5p_mfc_dec_calc_dpb_size_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_S5P_FIMV_NV12MT_HALIGN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ALIGN
	movl	%eax, (%rbx)
	movl	12(%rbx), %edi
	movq	_S5P_FIMV_NV12MT_VALIGN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ALIGN
	movl	%eax, 8(%rbx)
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %r9d
	callq	_mfc_debug
	movq	16(%rbx), %rax
	movq	_S5P_MFC_CODEC_H264_DEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	imull	(%rbx), %edi
	movq	_S5P_FIMV_DEC_BUF_ALIGN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ALIGN
	movl	%eax, 24(%rbx)
	movl	(%rbx), %r14d
	movl	12(%rbx), %edi
	shrl	%edi
	movl	(%r15), %esi
	callq	_ALIGN
	imull	%eax, %r14d
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_ALIGN
	movl	%eax, 28(%rbx)
	movl	(%rbx), %r14d
	movl	8(%rbx), %edi
	shrl	$2, %edi
	movl	(%r15), %esi
	callq	_ALIGN
	imull	%eax, %r14d
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_ALIGN
	jmp	LBB0_3
LBB0_2:
	movl	4(%rbx), %edi
	addl	$24, %edi
	movl	(%r12), %esi
	callq	_ALIGN
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	addl	$16, %edi
	movl	(%r15), %esi
	callq	_ALIGN
	imull	%eax, %r14d
	movq	_S5P_FIMV_DEC_BUF_ALIGN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_ALIGN
	movl	%eax, 24(%rbx)
	movl	4(%rbx), %edi
	addl	$16, %edi
	movl	(%r12), %esi
	callq	_ALIGN
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	shrl	%edi
	addl	$4, %edi
	movl	(%r15), %esi
	callq	_ALIGN
	imull	%eax, %r14d
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_ALIGN
	movl	%eax, 28(%rbx)
	xorl	%eax, %eax
LBB0_3:
	movl	%eax, 32(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_FIMV_NV12MT_HALIGN,4,2     ## @S5P_FIMV_NV12MT_HALIGN
	.comm	_S5P_FIMV_NV12MT_VALIGN,4,2     ## @S5P_FIMV_NV12MT_VALIGN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SEQ Done: Movie dimensions %dx%d, buffer dimensions: %dx%d\n"

	.comm	_S5P_MFC_CODEC_H264_DEC,8,3     ## @S5P_MFC_CODEC_H264_DEC
	.comm	_S5P_FIMV_DEC_BUF_ALIGN,4,2     ## @S5P_FIMV_DEC_BUF_ALIGN
	.no_dead_strip	_s5p_mfc_dec_calc_dpb_size_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_dec_calc_dpb_size_v5
_s5p_mfc_dec_calc_dpb_size_v5:          ; @s5p_mfc_dec_calc_dpb_size_v5
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x22, _S5P_FIMV_NV12MT_HALIGN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S5P_FIMV_NV12MT_HALIGN@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ALIGN
	str	w0, [x19]
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x21, _S5P_FIMV_NV12MT_VALIGN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _S5P_FIMV_NV12MT_VALIGN@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ALIGN
	mov	x5, x0
	str	w0, [x19, #8]
	ldr	w3, [x19, #12]
	ldp	w4, w2, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _S5P_MFC_CODEC_H264_DEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S5P_MFC_CODEC_H264_DEC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	mul	w0, w9, w8
Lloh9:
	adrp	x20, _S5P_FIMV_DEC_BUF_ALIGN@GOTPAGE
Lloh10:
	ldr	x20, [x20, _S5P_FIMV_DEC_BUF_ALIGN@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_ALIGN
	str	w0, [x19, #24]
	ldr	w22, [x19]
	ldr	w8, [x19, #12]
	lsr	w0, w8, #1
	ldr	w1, [x21]
	bl	_ALIGN
	mul	w0, w0, w22
	ldr	w1, [x20]
	bl	_ALIGN
	str	w0, [x19, #28]
	ldr	w22, [x19]
	ldr	w8, [x19, #8]
	lsr	w0, w8, #2
	ldr	w1, [x21]
	bl	_ALIGN
	mul	w0, w0, w22
	ldr	w1, [x20]
	bl	_ALIGN
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #4]
	add	w0, w8, #24
	ldr	w1, [x22]
	bl	_ALIGN
	mov	x20, x0
	ldr	w8, [x19, #12]
	add	w0, w8, #16
	ldr	w1, [x21]
	bl	_ALIGN
	mul	w0, w0, w20
Lloh11:
	adrp	x23, _S5P_FIMV_DEC_BUF_ALIGN@GOTPAGE
Lloh12:
	ldr	x23, [x23, _S5P_FIMV_DEC_BUF_ALIGN@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ALIGN
	str	w0, [x19, #24]
	ldr	w8, [x19, #4]
	add	w0, w8, #16
	ldr	w1, [x22]
	bl	_ALIGN
	mov	x20, x0
	ldr	w8, [x19, #12]
	lsr	w8, w8, #1
	add	w0, w8, #4
	ldr	w1, [x21]
	bl	_ALIGN
	mul	w0, w0, w20
	ldr	w1, [x23]
	bl	_ALIGN
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #28]
LBB0_3:
	str	w0, [x19, #32]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_FIMV_NV12MT_HALIGN,4,2     ; @S5P_FIMV_NV12MT_HALIGN
	.comm	_S5P_FIMV_NV12MT_VALIGN,4,2     ; @S5P_FIMV_NV12MT_VALIGN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SEQ Done: Movie dimensions %dx%d, buffer dimensions: %dx%d\n"

	.comm	_S5P_MFC_CODEC_H264_DEC,8,3     ; @S5P_MFC_CODEC_H264_DEC
	.comm	_S5P_FIMV_DEC_BUF_ALIGN,4,2     ; @S5P_FIMV_DEC_BUF_ALIGN
	.no_dead_strip	_s5p_mfc_dec_calc_dpb_size_v5
.subsections_via_symbols
