	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_fbc_activate
_g4x_fbc_activate:                      ## @g4x_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_DPFC_CTL_PLANE
	movl	%eax, %ebx
	movq	_DPFC_SR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	24(%r14), %rax
	movq	(%rax), %rax
	cmpl	$2, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_DPFC_CTL_LIMIT_2X@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_DPFC_CTL_LIMIT_1X@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	movq	_PLANE_HAS_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.5:
	movq	_DPFC_CTL_FENCE_EN@GOTPCREL(%rip), %rax
	movq	16(%r14), %rcx
	orl	(%rax), %ebx
	movq	(%rcx), %rax
	orl	(%rax), %ebx
	movl	4(%r14), %esi
	jmp	LBB0_6
LBB0_4:
	xorl	%esi, %esi
LBB0_6:
	movq	_DPFC_FENCE_YOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_WRITE
	movq	_DPFC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DPFC_CTL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPFC_SR_EN,4,2                 ## @DPFC_SR_EN
	.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	_DPFC_FENCE_YOFF,4,2            ## @DPFC_FENCE_YOFF
	.comm	_DPFC_CONTROL,4,2               ## @DPFC_CONTROL
	.comm	_DPFC_CTL_EN,4,2                ## @DPFC_CTL_EN
	.no_dead_strip	_g4x_fbc_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_fbc_activate
_g4x_fbc_activate:                      ; @g4x_fbc_activate
	.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	x19, x0
	ldr	w0, [x0, #8]
	bl	_DPFC_CTL_PLANE
Lloh0:
	adrp	x8, _DPFC_SR_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPFC_SR_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DPFC_CTL_LIMIT_2X@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DPFC_CTL_LIMIT_2X@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _DPFC_CTL_LIMIT_1X@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DPFC_CTL_LIMIT_1X@GOTPAGEOFF]
	cmp	w9, #2
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w20, w8, w9
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _PLANE_HAS_FENCE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PLANE_HAS_FENCE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _DPFC_CTL_FENCE_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DPFC_CTL_FENCE_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
	ldr	w1, [x19, #4]
	b	LBB0_3
LBB0_2:
	mov	w1, #0
LBB0_3:
Lloh13:
	adrp	x8, _DPFC_FENCE_YOFF@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DPFC_FENCE_YOFF@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_I915_WRITE
Lloh16:
	adrp	x8, _DPFC_CONTROL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DPFC_CONTROL@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _DPFC_CTL_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DPFC_CTL_EN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w1, w8, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DPFC_SR_EN,4,2                 ; @DPFC_SR_EN
	.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	_DPFC_FENCE_YOFF,4,2            ; @DPFC_FENCE_YOFF
	.comm	_DPFC_CONTROL,4,2               ; @DPFC_CONTROL
	.comm	_DPFC_CTL_EN,4,2                ; @DPFC_CTL_EN
	.no_dead_strip	_g4x_fbc_activate
.subsections_via_symbols
