	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_plane
_calc_plane:                            ## @calc_plane
	.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
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movq	_S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
	imull	%r15d, %ebx
	movq	_S5P_FIMV_MAX_FRAME_SIZE_V6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_2
## %bb.1:
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	incl	%eax
	andl	$-2, %eax
LBB0_2:
	imull	%r14d, %eax
	imull	(%r13), %eax
	imull	(%r12), %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6,4,2 ## @S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6
	.comm	_S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6,4,2 ## @S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6
	.comm	_S5P_FIMV_MAX_FRAME_SIZE_V6,4,2 ## @S5P_FIMV_MAX_FRAME_SIZE_V6
	.no_dead_strip	_calc_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_plane
_calc_plane:                            ; @calc_plane
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6@GOTPAGE
Lloh1:
	ldr	x22, [x22, _S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_DIV_ROUND_UP
	mov	x21, x0
Lloh2:
	adrp	x23, _S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6@GOTPAGE
Lloh3:
	ldr	x23, [x23, _S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_DIV_ROUND_UP
	mul	w8, w19, w20
Lloh4:
	adrp	x9, _S5P_FIMV_MAX_FRAME_SIZE_V6@GOTPAGE
Lloh5:
	ldr	x9, [x9, _S5P_FIMV_MAX_FRAME_SIZE_V6@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w10, w0, #1
	add	w11, w0, #2
	cmp	w10, #0
	csinc	w10, w11, w0, lt
	and	w10, w10, #0xfffffffe
	cmp	w8, w9
	csel	w8, w0, w10, ge
	ldr	w9, [x23]
	ldr	w10, [x22]
	mul	w8, w8, w21
	mul	w8, w8, w9
	mul	w0, w8, w10
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6,4,2 ; @S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6
	.comm	_S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6,4,2 ; @S5P_FIMV_NUM_PIXELS_IN_MB_COL_V6
	.comm	_S5P_FIMV_MAX_FRAME_SIZE_V6,4,2 ; @S5P_FIMV_MAX_FRAME_SIZE_V6
	.no_dead_strip	_calc_plane
.subsections_via_symbols
