	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_enc_calc_src_size_v6
_s5p_mfc_enc_calc_src_size_v6:          ## @s5p_mfc_enc_calc_src_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_MB_WIDTH
	movl	%eax, %r14d
	movl	40(%r15), %edi
	callq	_MB_HEIGHT
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_S5P_FIMV_NV12M_HALIGN_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ALIGN
	movq	%rax, 32(%r15)
	imull	%r14d, %ebx
	movl	%ebx, %edi
	shll	$8, %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	movq	%rax, 16(%r15)
	shll	$7, %ebx
	movl	%ebx, %edi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ALIGN
	movq	%rax, 8(%r15)
	movl	24(%r15), %edi
	callq	_IS_MFCV7_PLUS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MFC_LUMA_PAD_BYTES_V7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, 16(%r15)
	movq	_MFC_CHROMA_PAD_BYTES_V7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, 8(%r15)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_FIMV_NV12M_HALIGN_V6,4,2   ## @S5P_FIMV_NV12M_HALIGN_V6
	.comm	_MFC_LUMA_PAD_BYTES_V7,8,3      ## @MFC_LUMA_PAD_BYTES_V7
	.comm	_MFC_CHROMA_PAD_BYTES_V7,8,3    ## @MFC_CHROMA_PAD_BYTES_V7
	.no_dead_strip	_s5p_mfc_enc_calc_src_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_enc_calc_src_size_v6
_s5p_mfc_enc_calc_src_size_v6:          ; @s5p_mfc_enc_calc_src_size_v6
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w0, [x0]
	bl	_MB_WIDTH
	mov	x20, x0
	ldr	w0, [x19, #40]
	bl	_MB_HEIGHT
	mov	x21, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _S5P_FIMV_NV12M_HALIGN_V6@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5P_FIMV_NV12M_HALIGN_V6@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x19, #32]
	mul	w20, w21, w20
	lsl	w0, w20, #8
	mov	w1, #256
	bl	_ALIGN
	str	x0, [x19, #16]
	lsl	w0, w20, #7
	mov	w1, #256
	bl	_ALIGN
	str	x0, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_IS_MFCV7_PLUS
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MFC_LUMA_PAD_BYTES_V7@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MFC_LUMA_PAD_BYTES_V7@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #8]
	add	x8, x9, x8
Lloh6:
	adrp	x9, _MFC_CHROMA_PAD_BYTES_V7@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MFC_CHROMA_PAD_BYTES_V7@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x10, x9
	stp	x9, x8, [x19, #8]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_FIMV_NV12M_HALIGN_V6,4,2   ; @S5P_FIMV_NV12M_HALIGN_V6
	.comm	_MFC_LUMA_PAD_BYTES_V7,8,3      ; @MFC_LUMA_PAD_BYTES_V7
	.comm	_MFC_CHROMA_PAD_BYTES_V7,8,3    ; @MFC_CHROMA_PAD_BYTES_V7
	.no_dead_strip	_s5p_mfc_enc_calc_src_size_v6
.subsections_via_symbols
