	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_fbc_calculate_cfb_size
_intel_fbc_calculate_cfb_size:          ## @intel_fbc_calculate_cfb_size
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rdx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_intel_fbc_get_plane_source_size
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	-20(%rbp), %edi
	movl	$2048, %esi                     ## imm = 0x800
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cmpl	$8, %ecx
	jl	LBB0_5
## %bb.3:
	movl	%eax, %edi
	movl	$2560, %esi                     ## imm = 0xA00
LBB0_4:
	callq	_min
LBB0_5:
	imull	(%r14), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_fbc_calculate_cfb_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_fbc_calculate_cfb_size
_intel_fbc_calculate_cfb_size:          ; @intel_fbc_calculate_cfb_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x2, sp, #12
	mov	x0, x1
	mov	x1, #0
	bl	_intel_fbc_get_plane_source_size
	mov	x0, x20
	mov	w1, #7
	bl	_IS_GEN
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	mov	w1, #2048
	b	LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_INTEL_GEN
	mov	x8, x0
	ldr	w0, [sp, #12]
	cmp	w8, #8
	b.lt	LBB0_5
; %bb.3:
	mov	w1, #2560
LBB0_4:
	bl	_min
LBB0_5:
	ldr	w8, [x19]
	mul	w0, w8, w0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_fbc_calculate_cfb_size
.subsections_via_symbols
