	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce112_compressor_disable_fbc  ## -- Begin function dce112_compressor_disable_fbc
	.p2align	4, 0x90
_dce112_compressor_disable_fbc:         ## @dce112_compressor_disable_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_TO_DCE112_COMPRESSOR
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dce112_compressor_is_fbc_enabled_in_hw
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	32(%rbx), %edi
	movq	_mmFBC_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_dm_read_reg
	movl	%eax, %r15d
	movq	_FBC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FBC_GRPH_COMP_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_set_reg_field_value
	movl	32(%rbx), %edi
	movl	(%r12), %esi
	movl	%r15d, %edx
	callq	_dm_write_reg
	movq	$0, 24(%rbx)
	movl	$0, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_dce112_compressor_disable_lpt
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_for_fbc_state_changed     ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce112_compressor_disable_fbc  ; -- Begin function dce112_compressor_disable_fbc
	.p2align	2
_dce112_compressor_disable_fbc:         ; @dce112_compressor_disable_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	x20, x0
	bl	_TO_DCE112_COMPRESSOR
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, #0
	bl	_dce112_compressor_is_fbc_enabled_in_hw
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #32]
Lloh0:
	adrp	x22, _mmFBC_CNTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mmFBC_CNTL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_dm_read_reg
	mov	x21, x0
Lloh2:
	adrp	x8, _FBC_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FBC_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _FBC_GRPH_COMP_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FBC_GRPH_COMP_EN@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w1, #0
	bl	_set_reg_field_value
	ldr	w0, [x20, #32]
	ldr	w1, [x22]
	mov	x2, x21
	bl	_dm_write_reg
	str	xzr, [x20, #24]
	str	wzr, [x20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_dce112_compressor_disable_lpt
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	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	_wait_for_fbc_state_changed
LBB0_5:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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
.subsections_via_symbols
