	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_compressor_enable_fbc   ## -- Begin function dce110_compressor_enable_fbc
	.p2align	4, 0x90
_dce110_compressor_enable_fbc:          ## @dce110_compressor_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_TO_DCE110_COMPRESSOR
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dce110_compressor_is_fbc_enabled_in_hw
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_mmFBC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %edi
	callq	_dm_read_reg
	movl	%eax, %r12d
	movq	_FBC_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_FBC_GRPH_COMP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	_FBC_SRC_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	callq	_set_reg_field_value
	movl	4(%rbx), %edi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_dm_write_reg
	movl	$1, (%rbx)
	movslq	(%r13), %rax
	movq	_CONTROLLER_ID_D0@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 8(%rbx)
	movq	_FBC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FBC_GRPH_COMP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_set_reg_field_value
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_dm_write_reg
	movl	4(%rbx), %edi
	movq	_mmFBC_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dm_read_reg
	movl	%eax, %r13d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_FBC_MISC@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_FBC_INVALIDATE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movl	(%r14), %edx
	movq	_FBC_DECOMPRESS_ERROR_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movl	(%r14), %edx
	movq	_FBC_SLOW_REQ_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edi
	movl	$20, %esi
	callq	_set_reg_field_value
	movl	4(%rbx), %edi
	movq	_mmFBC_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	callq	_dm_write_reg
	movq	_FBC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FBC_GRPH_COMP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_set_reg_field_value
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_dm_write_reg
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_for_fbc_state_changed     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmFBC_CNTL,4,2                 ## @mmFBC_CNTL
	.comm	_FBC_CNTL,4,2                   ## @FBC_CNTL
	.comm	_FBC_GRPH_COMP_EN,4,2           ## @FBC_GRPH_COMP_EN
	.comm	_FBC_SRC_SEL,4,2                ## @FBC_SRC_SEL
	.comm	_CONTROLLER_ID_D0,8,3           ## @CONTROLLER_ID_D0
	.comm	_mmFBC_MISC,4,2                 ## @mmFBC_MISC
	.comm	_FBC_MISC,4,2                   ## @FBC_MISC
	.comm	_FBC_INVALIDATE_ON_ERROR,4,2    ## @FBC_INVALIDATE_ON_ERROR
	.comm	_FBC_DECOMPRESS_ERROR_CLEAR,4,2 ## @FBC_DECOMPRESS_ERROR_CLEAR
	.comm	_FBC_SLOW_REQ_INTERVAL,4,2      ## @FBC_SLOW_REQ_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce110_compressor_enable_fbc   ; -- Begin function dce110_compressor_enable_fbc
	.p2align	2
_dce110_compressor_enable_fbc:          ; @dce110_compressor_enable_fbc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x20, x0
	bl	_TO_DCE110_COMPRESSOR
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_dce110_compressor_is_fbc_enabled_in_hw
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, _mmFBC_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmFBC_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x20, #4]
	mov	x1, x21
	bl	_dm_read_reg
	mov	x22, x0
Lloh3:
	adrp	x24, _FBC_CNTL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FBC_CNTL@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh5:
	adrp	x25, _FBC_GRPH_COMP_EN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FBC_GRPH_COMP_EN@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	w26, #1
	mov	w1, #1
	bl	_set_reg_field_value
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh7:
	adrp	x8, _FBC_SRC_SEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FBC_SRC_SEL@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_set_reg_field_value
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_dm_write_reg
	str	w26, [x20]
Lloh10:
	adrp	x8, _CONTROLLER_ID_D0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONTROLLER_ID_D0@GOTPAGEOFF]
	ldrsw	x9, [x23]
Lloh12:
	ldr	x8, [x8]
	add	x8, x8, x9
	str	x8, [x20, #8]
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x22
	mov	w1, #0
	bl	_set_reg_field_value
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_dm_write_reg
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x26, _mmFBC_MISC@GOTPAGE
Lloh14:
	ldr	x26, [x26, _mmFBC_MISC@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_dm_read_reg
	mov	x23, x0
Lloh15:
	adrp	x27, _FBC_MISC@GOTPAGE
Lloh16:
	ldr	x27, [x27, _FBC_MISC@GOTPAGEOFF]
	ldr	w2, [x27]
Lloh17:
	adrp	x8, _FBC_INVALIDATE_ON_ERROR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FBC_INVALIDATE_ON_ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	w1, #1
	bl	_set_reg_field_value
	ldr	w2, [x27]
Lloh20:
	adrp	x8, _FBC_DECOMPRESS_ERROR_CLEAR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FBC_DECOMPRESS_ERROR_CLEAR@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w1, #1
	bl	_set_reg_field_value
	ldr	w2, [x27]
Lloh23:
	adrp	x8, _FBC_SLOW_REQ_INTERVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FBC_SLOW_REQ_INTERVAL@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x0, x23
	mov	w1, #20
	bl	_set_reg_field_value
	ldr	w0, [x20, #4]
	ldr	w1, [x26]
	mov	x2, x23
	bl	_dm_write_reg
	ldr	w2, [x24]
	ldr	w3, [x25]
	mov	x0, x22
	mov	w1, #1
	bl	_set_reg_field_value
	ldr	w0, [x20, #4]
	mov	x1, x21
	mov	x2, x22
	bl	_dm_write_reg
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wait_for_fbc_state_changed
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmFBC_CNTL,4,2                 ; @mmFBC_CNTL
	.comm	_FBC_CNTL,4,2                   ; @FBC_CNTL
	.comm	_FBC_GRPH_COMP_EN,4,2           ; @FBC_GRPH_COMP_EN
	.comm	_FBC_SRC_SEL,4,2                ; @FBC_SRC_SEL
	.comm	_CONTROLLER_ID_D0,8,3           ; @CONTROLLER_ID_D0
	.comm	_mmFBC_MISC,4,2                 ; @mmFBC_MISC
	.comm	_FBC_MISC,4,2                   ; @FBC_MISC
	.comm	_FBC_INVALIDATE_ON_ERROR,4,2    ; @FBC_INVALIDATE_ON_ERROR
	.comm	_FBC_DECOMPRESS_ERROR_CLEAR,4,2 ; @FBC_DECOMPRESS_ERROR_CLEAR
	.comm	_FBC_SLOW_REQ_INTERVAL,4,2      ; @FBC_SLOW_REQ_INTERVAL
.subsections_via_symbols
