	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_fbc_get_reg_params
_intel_fbc_get_reg_params:              ## @intel_fbc_get_reg_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	leaq	4(%rax), %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movl	20(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 28(%r14)
	movl	8(%r12), %eax
	movl	%eax, 24(%r14)
	movl	(%r12), %edi
	callq	_to_intel_plane
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	%rbx, %rdi
	callq	_get_crtc_fence_y_offset
	movl	%eax, 16(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_intel_fbc_calculate_cfb_size
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	movl	$9, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_GEMINILAKE
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	shll	$5, %esi
	callq	_DIV_ROUND_UP
	shll	$3, %eax
	movl	%eax, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_fbc_get_reg_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_fbc_get_reg_params
_intel_fbc_get_reg_params:              ; @intel_fbc_get_reg_params
	.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, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_i915
	mov	x20, x0
	add	x22, x0, #4
	mov	x0, x19
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldr	d0, [x20, #16]
	stur	d0, [x19, #28]
	ldr	w8, [x21, #8]
	str	w8, [x19, #24]
	ldr	w0, [x21]
	bl	_to_intel_plane
	ldr	w8, [x0]
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_get_crtc_fence_y_offset
	str	w0, [x19, #16]
	ldr	d0, [x20, #8]
	str	d0, [x19, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_intel_fbc_calculate_cfb_size
	str	w0, [x19, #4]
	mov	x0, x20
	mov	w1, #9
	bl	_IS_GEN
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_IS_GEMINILAKE
	cbnz	w0, LBB0_3
; %bb.2:
	ldp	w8, w0, [x20]
	lsl	w1, w8, #5
	bl	_DIV_ROUND_UP
	lsl	w8, w0, #3
	str	w8, [x19]
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_fbc_get_reg_params
.subsections_via_symbols
