	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_fbc_update_state_cache
_intel_fbc_update_state_cache:          ## @intel_fbc_update_state_cache
	.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	%rdx, %r14
	movq	%rsi, %r15
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	32(%r14), %r12
	movq	$0, 8(%rax)
	movl	$0, (%rax)
	movl	4(%r15), %eax
	movl	%eax, 60(%rbx)
	movq	%rbx, %rdi
	callq	_IS_HASWELL
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_BROADWELL
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movl	(%r15), %eax
	movl	%eax, 56(%rbx)
LBB0_3:
	movl	28(%r14), %eax
	movl	%eax, 52(%rbx)
	leaq	20(%r14), %r15
	movq	%r15, %rdi
	callq	_drm_rect_width
	sarl	$16, %eax
	movl	%eax, 24(%rbx)
	movq	%r15, %rdi
	callq	_drm_rect_height
	sarl	$16, %eax
	movl	%eax, 28(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 36(%rbx)
	movq	40(%r14), %rcx
	movl	4(%rcx), %edx
	movl	%edx, 48(%rbx)
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movswl	22(%r14), %ecx
	movl	%ecx, 32(%rbx)
	movl	16(%r14), %ecx
	movl	%ecx, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	8(%r12), %eax
	movl	%eax, 20(%rbx)
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %ecx
	movl	%ecx, (%rbx)
	movq	_PLANE_HAS_FENCE@GOTPCREL(%rip), %r14
	testl	%ecx, (%r14)
	je	LBB0_5
## %bb.6:
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	jmp	LBB0_7
LBB0_5:
	xorl	%edi, %edi
LBB0_7:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLANE_HAS_FENCE,4,2            ## @PLANE_HAS_FENCE
	.no_dead_strip	_intel_fbc_update_state_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_fbc_update_state_cache
_intel_fbc_update_state_cache:          ; @intel_fbc_update_state_cache
	.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	x20, x2
	mov	x21, x1
	ldr	w0, [x0]
	bl	_to_i915
	mov	x19, x0
	ldr	x22, [x20, #32]
	str	xzr, [x0, #8]
	str	wzr, [x0]
	ldr	w8, [x21, #4]
	str	w8, [x0, #60]
	bl	_IS_HASWELL
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IS_BROADWELL
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w8, [x21]
	str	w8, [x19, #56]
LBB0_3:
	ldr	w8, [x20, #28]
	str	w8, [x19, #52]
	add	x21, x20, #20
	mov	x0, x21
	bl	_drm_rect_width
	asr	w8, w0, #16
	str	w8, [x19, #24]
	mov	x0, x21
	bl	_drm_rect_height
	asr	w8, w0, #16
	str	w8, [x19, #28]
	ldr	w8, [x20, #24]
	str	w8, [x19, #36]
	ldr	x9, [x20, #40]
	ldr	d0, [x9]
	stur	d0, [x19, #44]
	ldrsh	w9, [x20, #22]
	str	w9, [x19, #32]
	ldr	w9, [x20, #16]
	str	w9, [x19, #40]
	cbz	w8, LBB0_7
; %bb.4:
	ldr	w8, [x22, #8]
	str	w8, [x19, #20]
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x20, #8]
	str	x8, [x19, #8]
	ldr	w9, [x20]
	str	w9, [x19]
Lloh0:
	adrp	x20, _PLANE_HAS_FENCE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PLANE_HAS_FENCE@GOTPAGEOFF]
	ldr	w10, [x20]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.5:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_7
LBB0_6:
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	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
LBB0_8:
	mov	w0, #0
	bl	_WARN_ON
	cbnz	x0, LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANE_HAS_FENCE,4,2            ; @PLANE_HAS_FENCE
	.no_dead_strip	_intel_fbc_update_state_cache
.subsections_via_symbols
