	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce110_enable_display_power_gating
_dce110_enable_display_power_gating:    ## @dce110_enable_display_power_gating
	.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
	movl	%ecx, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movl	(%rax), %r14d
	movl	(%r15), %edi
	callq	_IS_FPGA_MAXIMUS_DC
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_13
## %bb.1:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_PIPE_GATING_CONTROL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CONTROLLER_ID_UNDERLAY0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	decl	%ebx
	cmpl	%r12d, %r14d
	cmovnel	%r12d, %ebx
	cmpl	%r13d, %eax
	jne	LBB0_3
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_3:
	movq	_PIPE_GATING_CONTROL_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	%r13d, (%rcx)
	jne	LBB0_4
## %bb.5:
	movq	_ASIC_PIPE_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	%r13d, %eax
	je	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	_ASIC_PIPE_DISABLE@GOTPCREL(%rip), %rcx
	cmpl	%r13d, %eax
	jne	LBB0_8
LBB0_7:
	movq	_ASIC_PIPE_INIT@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %edx
	movq	(%rdi), %rax
	leal	1(%rbx), %esi
	callq	*(%rax)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_CONTROLLER_ID_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jae	LBB0_10
## %bb.9:
	movq	_mmCRTC_MASTER_UPDATE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_HW_REG_CRTC
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_dm_write_reg
LBB0_10:
	movq	_PIPE_GATING_CONTROL_ENABLE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_dce110_init_pte
LBB0_12:
	xorl	%eax, %eax
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rcx), %edx
	sete	%al
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BP_RESULT_OK,4,2               ## @BP_RESULT_OK
	.comm	_PIPE_GATING_CONTROL_INIT,4,2   ## @PIPE_GATING_CONTROL_INIT
	.comm	_ASIC_PIPE_INIT,4,2             ## @ASIC_PIPE_INIT
	.comm	_PIPE_GATING_CONTROL_ENABLE,4,2 ## @PIPE_GATING_CONTROL_ENABLE
	.comm	_ASIC_PIPE_ENABLE,4,2           ## @ASIC_PIPE_ENABLE
	.comm	_ASIC_PIPE_DISABLE,4,2          ## @ASIC_PIPE_DISABLE
	.comm	_CONTROLLER_ID_UNDERLAY0,4,2    ## @CONTROLLER_ID_UNDERLAY0
	.comm	_CONTROLLER_ID_MAX,4,2          ## @CONTROLLER_ID_MAX
	.comm	_mmCRTC_MASTER_UPDATE_MODE,4,2  ## @mmCRTC_MASTER_UPDATE_MODE
	.no_dead_strip	_dce110_enable_display_power_gating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce110_enable_display_power_gating
_dce110_enable_display_power_gating:    ; @dce110_enable_display_power_gating
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x24, _BP_RESULT_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BP_RESULT_OK@GOTPAGEOFF]
	ldr	w21, [x24]
	ldp	x8, x20, [x0]
	ldr	w25, [x8]
	ldr	w0, [x20]
	bl	_IS_FPGA_MAXIMUS_DC
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x8, _PIPE_GATING_CONTROL_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIPE_GATING_CONTROL_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CONTROLLER_ID_UNDERLAY0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CONTROLLER_ID_UNDERLAY0@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	sub	w9, w9, #1
	cmp	w25, w23
	csel	w23, w9, w23, eq
	cmp	w8, w19
	ccmp	w23, #0, #4, eq
Lloh8:
	adrp	x25, _PIPE_GATING_CONTROL_ENABLE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _PIPE_GATING_CONTROL_ENABLE@GOTPAGEOFF]
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x25]
Lloh10:
	adrp	x10, _ASIC_PIPE_INIT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ASIC_PIPE_INIT@GOTPAGEOFF]
Lloh12:
	adrp	x11, _ASIC_PIPE_ENABLE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ASIC_PIPE_ENABLE@GOTPAGEOFF]
Lloh14:
	adrp	x12, _ASIC_PIPE_DISABLE@GOTPAGE
Lloh15:
	ldr	x12, [x12, _ASIC_PIPE_DISABLE@GOTPAGEOFF]
	cmp	w9, w19
	csel	x9, x11, x12, eq
	cmp	w8, w19
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	w1, w23, #1
	mov	x0, x22
	blr	x8
	mov	x21, x0
Lloh16:
	adrp	x8, _CONTROLLER_ID_MAX@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONTROLLER_ID_MAX@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	sub	w8, w8, #1
	cmp	w23, w8
	b.hs	LBB0_5
; %bb.4:
Lloh19:
	adrp	x8, _mmCRTC_MASTER_UPDATE_MODE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmCRTC_MASTER_UPDATE_MODE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_HW_REG_CRTC
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	bl	_dm_write_reg
LBB0_5:
	ldr	w8, [x25]
	cmp	w8, w19
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_dce110_init_pte
LBB0_7:
	ldr	w8, [x24]
	cmp	w21, w8
	cset	w0, eq
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_BP_RESULT_OK,4,2               ; @BP_RESULT_OK
	.comm	_PIPE_GATING_CONTROL_INIT,4,2   ; @PIPE_GATING_CONTROL_INIT
	.comm	_ASIC_PIPE_INIT,4,2             ; @ASIC_PIPE_INIT
	.comm	_PIPE_GATING_CONTROL_ENABLE,4,2 ; @PIPE_GATING_CONTROL_ENABLE
	.comm	_ASIC_PIPE_ENABLE,4,2           ; @ASIC_PIPE_ENABLE
	.comm	_ASIC_PIPE_DISABLE,4,2          ; @ASIC_PIPE_DISABLE
	.comm	_CONTROLLER_ID_UNDERLAY0,4,2    ; @CONTROLLER_ID_UNDERLAY0
	.comm	_CONTROLLER_ID_MAX,4,2          ; @CONTROLLER_ID_MAX
	.comm	_mmCRTC_MASTER_UPDATE_MODE,4,2  ; @mmCRTC_MASTER_UPDATE_MODE
	.no_dead_strip	_dce110_enable_display_power_gating
.subsections_via_symbols
