	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __intel_fbc_post_update
___intel_fbc_post_update:               ## @__intel_fbc_post_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	leaq	28(%rax), %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	cmpl	$0, 24(%rbx)
	je	LBB0_6
## %bb.1:
	cmpq	%r14, 16(%rbx)
	je	LBB0_2
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$0, (%rbx)
	movl	4(%rbx), %edi
	callq	_WARN_ON
	movq	_i915_modparams@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	callq	_intel_fbc_get_reg_params
	movq	%r14, %rdi
	callq	_intel_fbc_can_activate
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$0, 8(%rbx)
	je	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_fbc_deactivate           ## TAILCALL
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_intel_fbc_deactivate
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___intel_fbc_disable            ## TAILCALL
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_intel_fbc_deactivate
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_intel_fbc_hw_activate          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_modparams,4,2             ## @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disabled at runtime per module param"

L_.str.1:                               ## @.str.1
	.asciz	"FBC enabled (active or scheduled)"

L_.str.2:                               ## @.str.2
	.asciz	"frontbuffer write"

	.no_dead_strip	___intel_fbc_post_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __intel_fbc_post_update
___intel_fbc_post_update:               ; @__intel_fbc_post_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_i915
	mov	x19, x0
	add	x0, x0, #28
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	str	wzr, [x19]
	ldr	w0, [x19, #4]
	bl	_WARN_ON
Lloh0:
	adrp	x8, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.4:
	add	x1, x19, #12
	mov	x0, x20
	bl	_intel_fbc_get_reg_params
	mov	x0, x20
	bl	_intel_fbc_can_activate
	cbz	w0, LBB0_2
; %bb.5:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.6:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_fbc_deactivate
LBB0_7:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_intel_fbc_deactivate
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___intel_fbc_disable
LBB0_8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_intel_fbc_deactivate
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_intel_fbc_hw_activate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_modparams,4,2             ; @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disabled at runtime per module param"

l_.str.1:                               ; @.str.1
	.asciz	"FBC enabled (active or scheduled)"

l_.str.2:                               ; @.str.2
	.asciz	"frontbuffer write"

	.no_dead_strip	___intel_fbc_post_update
.subsections_via_symbols
