	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ilk_fbc_activate
_ilk_fbc_activate:                      ## @ilk_fbc_activate
	.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	%rdi, %r15
	movl	(%rdi), %ebx
	movl	28(%rdi), %edi
	callq	_DPFC_CTL_PLANE
	movq	32(%r15), %rcx
	movq	(%rcx), %rdx
	xorl	%ecx, %ecx
	cmpl	$2, (%rdx)
	movl	%eax, %r14d
	sete	%cl
	leal	(%rbx,%rcx), %eax
	addl	$-3, %eax
	cmpl	$2, %eax
	jb	LBB0_15
## %bb.1:
	addl	%ecx, %ebx
	cmpl	$1, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$2, %ebx
	jne	LBB0_6
## %bb.3:
	movq	_DPFC_CTL_LIMIT_2X@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	_DPFC_CTL_LIMIT_4X@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_DPFC_CTL_LIMIT_1X@GOTPCREL(%rip), %rax
LBB0_5:
	orl	(%rax), %r14d
LBB0_6:
	movq	_PLANE_HAS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_11
## %bb.7:
	movq	_DPFC_CTL_FENCE_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r15, %rdi
	movl	$5, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	orl	(%rax), %r14d
LBB0_9:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	_SNB_DPFC_CTL_SA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SNB_CPU_FENCE_ENABLE@GOTPCREL(%rip), %rax
	movq	16(%r15), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_I915_WRITE
	movq	_DPFC_CPU_FENCE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_IS_GEN
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_SNB_DPFC_CTL_SA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	_DPFC_CPU_FENCE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
LBB0_13:
	callq	_I915_WRITE
LBB0_14:
	movq	_ILK_DPFC_FENCE_YOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r15), %esi
	callq	_I915_WRITE
	movq	_ILK_FBC_RT_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%r15), %rdi
	callq	_i915_ggtt_offset
	movq	_ILK_FBC_RT_VALID@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_ILK_DPFC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPFC_CTL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_I915_WRITE
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_fbc_recompress           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPFC_CTL_LIMIT_4X,4,2          ## @DPFC_CTL_LIMIT_4X
	.comm	_DPFC_CTL_LIMIT_2X,4,2          ## @DPFC_CTL_LIMIT_2X
	.comm	_DPFC_CTL_LIMIT_1X,4,2          ## @DPFC_CTL_LIMIT_1X
	.comm	_PLANE_HAS_FENCE,4,2            ## @PLANE_HAS_FENCE
	.comm	_DPFC_CTL_FENCE_EN,4,2          ## @DPFC_CTL_FENCE_EN
	.comm	_SNB_DPFC_CTL_SA,4,2            ## @SNB_DPFC_CTL_SA
	.comm	_SNB_CPU_FENCE_ENABLE,4,2       ## @SNB_CPU_FENCE_ENABLE
	.comm	_DPFC_CPU_FENCE_OFFSET,4,2      ## @DPFC_CPU_FENCE_OFFSET
	.comm	_ILK_DPFC_FENCE_YOFF,4,2        ## @ILK_DPFC_FENCE_YOFF
	.comm	_ILK_FBC_RT_BASE,4,2            ## @ILK_FBC_RT_BASE
	.comm	_ILK_FBC_RT_VALID,4,2           ## @ILK_FBC_RT_VALID
	.comm	_ILK_DPFC_CONTROL,4,2           ## @ILK_DPFC_CONTROL
	.comm	_DPFC_CTL_EN,4,2                ## @DPFC_CTL_EN
	.no_dead_strip	_ilk_fbc_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ilk_fbc_activate
_ilk_fbc_activate:                      ; @ilk_fbc_activate
	.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, x0
	ldr	w21, [x0]
	ldr	w0, [x0, #28]
	bl	_DPFC_CTL_PLANE
	mov	x20, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #2
	cinc	w8, w21, eq
	sub	w9, w8, #3
	cmp	w9, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _DPFC_CTL_LIMIT_2X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPFC_CTL_LIMIT_2X@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _DPFC_CTL_LIMIT_4X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPFC_CTL_LIMIT_4X@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _DPFC_CTL_LIMIT_1X@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DPFC_CTL_LIMIT_1X@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_7:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _PLANE_HAS_FENCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PLANE_HAS_FENCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
Lloh9:
	adrp	x8, _DPFC_CTL_FENCE_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPFC_CTL_FENCE_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w20, w8, w20
	mov	x0, x19
	mov	w1, #5
	bl	_IS_GEN
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_10:
	mov	x0, x19
	mov	w1, #6
	bl	_IS_GEN
	cbz	x0, LBB0_15
; %bb.11:
Lloh12:
	adrp	x8, _SNB_DPFC_CTL_SA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNB_DPFC_CTL_SA@GOTPAGEOFF]
Lloh14:
	adrp	x9, _SNB_CPU_FENCE_ENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SNB_CPU_FENCE_ENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	ldr	w8, [x9]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_I915_WRITE
Lloh18:
	adrp	x8, _DPFC_CPU_FENCE_OFFSET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DPFC_CPU_FENCE_OFFSET@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	w1, #6
	bl	_IS_GEN
	cbz	x0, LBB0_15
; %bb.13:
Lloh21:
	adrp	x8, _SNB_DPFC_CTL_SA@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SNB_DPFC_CTL_SA@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_I915_WRITE
Lloh24:
	adrp	x8, _DPFC_CPU_FENCE_OFFSET@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DPFC_CPU_FENCE_OFFSET@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #0
LBB0_14:
	bl	_I915_WRITE
LBB0_15:
Lloh27:
	adrp	x8, _ILK_DPFC_FENCE_YOFF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ILK_DPFC_FENCE_YOFF@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_I915_WRITE
Lloh30:
	adrp	x8, _ILK_FBC_RT_BASE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ILK_FBC_RT_BASE@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	ldr	x0, [x19, #16]
	bl	_i915_ggtt_offset
Lloh33:
	adrp	x8, _ILK_FBC_RT_VALID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ILK_FBC_RT_VALID@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x21
	bl	_I915_WRITE
Lloh36:
	adrp	x8, _ILK_DPFC_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ILK_DPFC_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x8, _DPFC_CTL_EN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _DPFC_CTL_EN@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w1, w8, w20
	bl	_I915_WRITE
	mov	x0, x19
	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	_intel_fbc_recompress
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_DPFC_CTL_LIMIT_4X,4,2          ; @DPFC_CTL_LIMIT_4X
	.comm	_DPFC_CTL_LIMIT_2X,4,2          ; @DPFC_CTL_LIMIT_2X
	.comm	_DPFC_CTL_LIMIT_1X,4,2          ; @DPFC_CTL_LIMIT_1X
	.comm	_PLANE_HAS_FENCE,4,2            ; @PLANE_HAS_FENCE
	.comm	_DPFC_CTL_FENCE_EN,4,2          ; @DPFC_CTL_FENCE_EN
	.comm	_SNB_DPFC_CTL_SA,4,2            ; @SNB_DPFC_CTL_SA
	.comm	_SNB_CPU_FENCE_ENABLE,4,2       ; @SNB_CPU_FENCE_ENABLE
	.comm	_DPFC_CPU_FENCE_OFFSET,4,2      ; @DPFC_CPU_FENCE_OFFSET
	.comm	_ILK_DPFC_FENCE_YOFF,4,2        ; @ILK_DPFC_FENCE_YOFF
	.comm	_ILK_FBC_RT_BASE,4,2            ; @ILK_FBC_RT_BASE
	.comm	_ILK_FBC_RT_VALID,4,2           ; @ILK_FBC_RT_VALID
	.comm	_ILK_DPFC_CONTROL,4,2           ; @ILK_DPFC_CONTROL
	.comm	_DPFC_CTL_EN,4,2                ; @DPFC_CTL_EN
	.no_dead_strip	_ilk_fbc_activate
.subsections_via_symbols
