	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce100_enable_display_power_gating ## -- Begin function dce100_enable_display_power_gating
	.p2align	4, 0x90
_dce100_enable_display_power_gating:    ## @dce100_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_BP_RESULT_OK@GOTPCREL(%rip), %r12
	movq	_PIPE_GATING_CONTROL_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpl	%ecx, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %ecx
	movl	%ecx, %r15d
	jmp	LBB0_9
LBB0_3:
	movq	_PIPE_GATING_CONTROL_ENABLE@GOTPCREL(%rip), %rsi
	cmpl	%ecx, (%rsi)
	jne	LBB0_4
## %bb.5:
	movq	_ASIC_PIPE_ENABLE@GOTPCREL(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movq	_ASIC_PIPE_DISABLE@GOTPCREL(%rip), %rsi
LBB0_6:
	movq	(%rdi), %r14
	cmpl	%ecx, %eax
	jne	LBB0_8
## %bb.7:
	movq	_ASIC_PIPE_INIT@GOTPCREL(%rip), %rsi
LBB0_8:
	movl	(%rsi), %eax
	movq	(%rdx), %rcx
	leaq	1(%rbx), %rsi
	movq	%rdx, %rdi
	movl	%eax, %edx
	callq	*(%rcx)
	movl	%eax, %r15d
	movq	_mmMASTER_UPDATE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_HW_REG_CRTC
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movl	(%r12), %ecx
LBB0_9:
	xorl	%eax, %eax
	cmpl	%ecx, %r15d
	sete	%al
	popq	%rbx
	popq	%r12
	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	_mmMASTER_UPDATE_MODE,4,2       ## @mmMASTER_UPDATE_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dce100_enable_display_power_gating ; -- Begin function dce100_enable_display_power_gating
	.p2align	2
_dce100_enable_display_power_gating:    ; @dce100_enable_display_power_gating
	.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, x1
Lloh0:
	adrp	x22, _BP_RESULT_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BP_RESULT_OK@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PIPE_GATING_CONTROL_INIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PIPE_GATING_CONTROL_INIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x1, LBB0_3
; %bb.1:
	cmp	w8, w3
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x22]
	mov	x20, x8
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x9, _PIPE_GATING_CONTROL_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PIPE_GATING_CONTROL_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	x21, [x0]
Lloh8:
	adrp	x10, _ASIC_PIPE_INIT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ASIC_PIPE_INIT@GOTPAGEOFF]
Lloh10:
	adrp	x11, _ASIC_PIPE_ENABLE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ASIC_PIPE_ENABLE@GOTPAGEOFF]
Lloh12:
	adrp	x12, _ASIC_PIPE_DISABLE@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ASIC_PIPE_DISABLE@GOTPAGEOFF]
	cmp	w9, w3
	csel	x9, x11, x12, eq
	cmp	w8, w3
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	ldr	x9, [x2]
	ldr	x9, [x9]
	add	x1, x19, #1
	mov	x0, x2
	mov	x2, x8
	blr	x9
	mov	x20, x0
Lloh14:
	adrp	x8, _mmMASTER_UPDATE_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmMASTER_UPDATE_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_HW_REG_CRTC
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_dm_write_reg
	ldr	w8, [x22]
LBB0_4:
	cmp	w20, w8
	cset	w0, eq
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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	_mmMASTER_UPDATE_MODE,4,2       ; @mmMASTER_UPDATE_MODE
.subsections_via_symbols
