	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_fbc_pre_update           ## -- Begin function intel_fbc_pre_update
	.p2align	4, 0x90
_intel_fbc_pre_update:                  ## @intel_fbc_pre_update
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_fbc_supported
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%rbx, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_multiple_pipes_ok
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$0, 16(%rbx)
	je	LBB0_7
## %bb.4:
	cmpq	%r13, 8(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_intel_fbc_update_state_cache
	movl	$1, (%rbx)
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	callq	_intel_fbc_deactivate
LBB0_7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"update pending"

L_.str.1:                               ## @.str.1
	.asciz	"more than one pipe active"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_fbc_pre_update           ; -- Begin function intel_fbc_pre_update
	.p2align	2
_intel_fbc_pre_update:                  ; @intel_fbc_pre_update
	.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	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x19, x0
	bl	_fbc_supported
	cbz	w0, LBB0_5
; %bb.1:
	add	x20, x19, #4
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x21
	bl	_multiple_pipes_ok
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_intel_fbc_update_state_cache
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	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
LBB0_6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_intel_fbc_deactivate
LBB0_8:
	mov	x0, x20
	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
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update pending"

l_.str.1:                               ; @.str.1
	.asciz	"more than one pipe active"

.subsections_via_symbols
