	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i915_fbc_status
_i915_fbc_status:                       ## @i915_fbc_status
	.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	%rdi, %r14
	movl	(%rdi), %edi
	callq	_node_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_HAS_FBC
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_intel_runtime_pm_get
	movl	%eax, %r15d
	movq	%rbx, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_intel_fbc_is_active
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_puts
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_4:
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_printf
LBB0_5:
	movq	%rbx, %rdi
	callq	_intel_fbc_is_active
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jl	LBB0_8
## %bb.7:
	movq	_IVB_FBC_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %edi
	movq	_BDW_FBC_COMP_SEG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	jmp	LBB0_15
LBB0_8:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$7, %eax
	jl	LBB0_10
## %bb.9:
	movq	_IVB_FBC_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %edi
	movq	_IVB_FBC_COMP_SEG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	jmp	LBB0_15
LBB0_10:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$5, %eax
	jl	LBB0_12
## %bb.11:
	movq	_ILK_DPFC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %edi
	movq	_ILK_DPFC_COMP_SEG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	jmp	LBB0_15
LBB0_12:
	movq	%rbx, %rdi
	callq	_IS_G4X
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_DPFC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %edi
	movq	_DPFC_COMP_SEG_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	jmp	LBB0_15
LBB0_14:
	movq	_FBC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_FBC_STAT_COMPRESSING@GOTPCREL(%rip), %rcx
	movq	_FBC_STAT_COMPRESSED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	andl	%eax, %edi
LBB0_15:
	callq	_yesno
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_seq_printf
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_intel_runtime_pm_put
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FBC enabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"FBC disabled: %s\n"

	.comm	_IVB_FBC_STATUS2,4,2            ## @IVB_FBC_STATUS2
	.comm	_BDW_FBC_COMP_SEG_MASK,4,2      ## @BDW_FBC_COMP_SEG_MASK
	.comm	_IVB_FBC_COMP_SEG_MASK,4,2      ## @IVB_FBC_COMP_SEG_MASK
	.comm	_ILK_DPFC_STATUS,4,2            ## @ILK_DPFC_STATUS
	.comm	_ILK_DPFC_COMP_SEG_MASK,4,2     ## @ILK_DPFC_COMP_SEG_MASK
	.comm	_DPFC_STATUS,4,2                ## @DPFC_STATUS
	.comm	_DPFC_COMP_SEG_MASK,4,2         ## @DPFC_COMP_SEG_MASK
	.comm	_FBC_STATUS,4,2                 ## @FBC_STATUS
	.comm	_FBC_STAT_COMPRESSING,4,2       ## @FBC_STAT_COMPRESSING
	.comm	_FBC_STAT_COMPRESSED,4,2        ## @FBC_STAT_COMPRESSED
L_.str.2:                               ## @.str.2
	.asciz	"Compressing: %s\n"

	.no_dead_strip	_i915_fbc_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i915_fbc_status
_i915_fbc_status:                       ; @i915_fbc_status
	.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, x0
	ldr	w0, [x0]
	bl	_node_to_i915
	mov	x19, x0
	bl	_HAS_FBC
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_intel_runtime_pm_get
	mov	x21, x0
	add	x22, x19, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x19
	bl	_intel_fbc_is_active
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_seq_puts
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_4:
	ldr	w2, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_seq_printf
LBB0_5:
	mov	x0, x19
	bl	_intel_fbc_is_active
	cbz	x0, LBB0_16
; %bb.6:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #7
	b.le	LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _IVB_FBC_STATUS2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IVB_FBC_STATUS2@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh10:
	adrp	x8, _BDW_FBC_COMP_SEG_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BDW_FBC_COMP_SEG_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #7
	b.lt	LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _IVB_FBC_STATUS2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IVB_FBC_STATUS2@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh16:
	adrp	x8, _IVB_FBC_COMP_SEG_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IVB_FBC_COMP_SEG_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_INTEL_GEN
	cmp	w0, #5
	b.lt	LBB0_12
; %bb.11:
Lloh19:
	adrp	x8, _ILK_DPFC_STATUS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ILK_DPFC_STATUS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh22:
	adrp	x8, _ILK_DPFC_COMP_SEG_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ILK_DPFC_COMP_SEG_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	b	LBB0_15
LBB0_12:
	mov	x0, x19
	bl	_IS_G4X
	cbz	x0, LBB0_14
; %bb.13:
Lloh25:
	adrp	x8, _DPFC_STATUS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DPFC_STATUS@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh28:
	adrp	x8, _DPFC_COMP_SEG_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DPFC_COMP_SEG_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	b	LBB0_15
LBB0_14:
Lloh31:
	adrp	x8, _FBC_STATUS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FBC_STATUS@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh34:
	adrp	x8, _FBC_STAT_COMPRESSING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FBC_STAT_COMPRESSING@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _FBC_STAT_COMPRESSED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _FBC_STAT_COMPRESSED@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_15:
	and	w0, w8, w0
	bl	_yesno
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_seq_printf
LBB0_16:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	mov	x1, x21
	bl	_intel_runtime_pm_put
	mov	w0, #0
LBB0_17:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FBC enabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"FBC disabled: %s\n"

	.comm	_IVB_FBC_STATUS2,4,2            ; @IVB_FBC_STATUS2
	.comm	_BDW_FBC_COMP_SEG_MASK,4,2      ; @BDW_FBC_COMP_SEG_MASK
	.comm	_IVB_FBC_COMP_SEG_MASK,4,2      ; @IVB_FBC_COMP_SEG_MASK
	.comm	_ILK_DPFC_STATUS,4,2            ; @ILK_DPFC_STATUS
	.comm	_ILK_DPFC_COMP_SEG_MASK,4,2     ; @ILK_DPFC_COMP_SEG_MASK
	.comm	_DPFC_STATUS,4,2                ; @DPFC_STATUS
	.comm	_DPFC_COMP_SEG_MASK,4,2         ; @DPFC_COMP_SEG_MASK
	.comm	_FBC_STATUS,4,2                 ; @FBC_STATUS
	.comm	_FBC_STAT_COMPRESSING,4,2       ; @FBC_STAT_COMPRESSING
	.comm	_FBC_STAT_COMPRESSED,4,2        ; @FBC_STAT_COMPRESSED
l_.str.2:                               ; @.str.2
	.asciz	"Compressing: %s\n"

	.no_dead_strip	_i915_fbc_status
.subsections_via_symbols
