	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_enable_fbc
_g4x_enable_fbc:                        ## @g4x_enable_fbc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	callq	_to_intel_framebuffer
	movq	%r15, %rdi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movq	_DPFC_CHICKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPFC_HT_MODIFY@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_I915_WRITE
	movq	_DPFC_RECOMP_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPFC_RECOMP_STALL_EN@GOTPCREL(%rip), %rax
	movq	_DPFC_RECOMP_STALL_WM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$200, %edx
	shlq	%cl, %rdx
	orq	(%rax), %rdx
	movq	_DPFC_RECOMP_TIMER_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rbx
	orq	%rdx, %rbx
	movq	%rbx, %rsi
	callq	_I915_WRITE
	movq	_DPFC_FENCE_YOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	callq	_I915_WRITE
	movq	_DPFC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DPFC_CTL_EN@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_I915_WRITE
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPFC_CTL_PLANEA,4,2            ## @DPFC_CTL_PLANEA
	.comm	_DPFC_CTL_PLANEB,4,2            ## @DPFC_CTL_PLANEB
	.comm	_DPFC_SR_EN,4,2                 ## @DPFC_SR_EN
	.comm	_DPFC_CTL_LIMIT_1X,4,2          ## @DPFC_CTL_LIMIT_1X
	.comm	_DPFC_CTL_FENCE_EN,4,2          ## @DPFC_CTL_FENCE_EN
	.comm	_DPFC_CHICKEN,4,2               ## @DPFC_CHICKEN
	.comm	_DPFC_HT_MODIFY,8,3             ## @DPFC_HT_MODIFY
	.comm	_DPFC_RECOMP_CTL,4,2            ## @DPFC_RECOMP_CTL
	.comm	_DPFC_RECOMP_STALL_EN,8,3       ## @DPFC_RECOMP_STALL_EN
	.comm	_DPFC_RECOMP_STALL_WM_SHIFT,8,3 ## @DPFC_RECOMP_STALL_WM_SHIFT
	.comm	_DPFC_RECOMP_TIMER_COUNT_SHIFT,8,3 ## @DPFC_RECOMP_TIMER_COUNT_SHIFT
	.comm	_DPFC_FENCE_YOFF,4,2            ## @DPFC_FENCE_YOFF
	.comm	_DPFC_CONTROL,4,2               ## @DPFC_CONTROL
	.comm	_DPFC_CTL_EN,8,3                ## @DPFC_CTL_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enabled fbc on plane %d\n"

	.no_dead_strip	_g4x_enable_fbc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_enable_fbc
_g4x_enable_fbc:                        ; @g4x_enable_fbc
	.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	x20, x0
	ldr	x0, [x0, #8]
	bl	_to_intel_framebuffer
	mov	x0, x20
	bl	_to_intel_crtc
	mov	x21, x0
Lloh0:
	adrp	x8, _DPFC_CHICKEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPFC_CHICKEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DPFC_HT_MODIFY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPFC_HT_MODIFY@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_I915_WRITE
Lloh6:
	adrp	x8, _DPFC_RECOMP_CTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DPFC_RECOMP_CTL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _DPFC_RECOMP_STALL_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPFC_RECOMP_STALL_EN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _DPFC_RECOMP_STALL_WM_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DPFC_RECOMP_STALL_WM_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	mov	w10, #200
	lsl	x9, x10, x9
	orr	x8, x9, x8
Lloh15:
	adrp	x9, _DPFC_RECOMP_TIMER_COUNT_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DPFC_RECOMP_TIMER_COUNT_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x9, x19, x9
	orr	x1, x8, x9
	bl	_I915_WRITE
Lloh18:
	adrp	x8, _DPFC_FENCE_YOFF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DPFC_FENCE_YOFF@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x1, [x20]
	bl	_I915_WRITE
Lloh21:
	adrp	x8, _DPFC_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DPFC_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh24:
	adrp	x8, _DPFC_CTL_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DPFC_CTL_EN@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	orr	x1, x8, x0
	mov	x0, x19
	bl	_I915_WRITE
	ldr	w1, [x21]
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_DRM_DEBUG_KMS
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DPFC_CTL_PLANEA,4,2            ; @DPFC_CTL_PLANEA
	.comm	_DPFC_CTL_PLANEB,4,2            ; @DPFC_CTL_PLANEB
	.comm	_DPFC_SR_EN,4,2                 ; @DPFC_SR_EN
	.comm	_DPFC_CTL_LIMIT_1X,4,2          ; @DPFC_CTL_LIMIT_1X
	.comm	_DPFC_CTL_FENCE_EN,4,2          ; @DPFC_CTL_FENCE_EN
	.comm	_DPFC_CHICKEN,4,2               ; @DPFC_CHICKEN
	.comm	_DPFC_HT_MODIFY,8,3             ; @DPFC_HT_MODIFY
	.comm	_DPFC_RECOMP_CTL,4,2            ; @DPFC_RECOMP_CTL
	.comm	_DPFC_RECOMP_STALL_EN,8,3       ; @DPFC_RECOMP_STALL_EN
	.comm	_DPFC_RECOMP_STALL_WM_SHIFT,8,3 ; @DPFC_RECOMP_STALL_WM_SHIFT
	.comm	_DPFC_RECOMP_TIMER_COUNT_SHIFT,8,3 ; @DPFC_RECOMP_TIMER_COUNT_SHIFT
	.comm	_DPFC_FENCE_YOFF,4,2            ; @DPFC_FENCE_YOFF
	.comm	_DPFC_CONTROL,4,2               ; @DPFC_CONTROL
	.comm	_DPFC_CTL_EN,8,3                ; @DPFC_CTL_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enabled fbc on plane %d\n"

	.no_dead_strip	_g4x_enable_fbc
.subsections_via_symbols
