	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn20_dpp_pg_control
_dcn20_dpp_pg_control:                  ## @dcn20_dpp_pg_control
	.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
	xorl	%r15d, %r15d
	testl	%edx, %edx
	sete	%r14b
	movq	(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %ebx
	movq	_DOMAIN1_PG_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_REG
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	cmpl	$5, %ebx
	ja	LBB0_10
## %bb.3:
	movb	%r14b, %r15b
	leal	(%r15,%r15), %r14d
	movl	%ebx, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	(%r12), %edi
	movq	_DOMAIN1_POWER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movq	_DOMAIN1_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN1_PGFSM_PWR_STATUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BREAK_TO_DEBUGGER              ## TAILCALL
LBB0_6:
	movq	_DOMAIN3_PG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN3_POWER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movq	_DOMAIN3_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN3_PGFSM_PWR_STATUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_DOMAIN5_PG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN5_POWER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movq	_DOMAIN5_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN5_PGFSM_PWR_STATUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_DOMAIN7_PG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN7_POWER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movq	_DOMAIN7_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN7_PGFSM_PWR_STATUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	_DOMAIN9_PG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN9_POWER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_REG_UPDATE
	movq	_DOMAIN9_PG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DOMAIN9_PGFSM_PWR_STATUS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WAIT                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_DOMAIN1_PG_CONFIG,4,2          ## @DOMAIN1_PG_CONFIG
	.comm	_DOMAIN1_POWER_GATE,4,2         ## @DOMAIN1_POWER_GATE
	.comm	_DOMAIN1_PG_STATUS,4,2          ## @DOMAIN1_PG_STATUS
	.comm	_DOMAIN1_PGFSM_PWR_STATUS,4,2   ## @DOMAIN1_PGFSM_PWR_STATUS
	.comm	_DOMAIN3_PG_CONFIG,4,2          ## @DOMAIN3_PG_CONFIG
	.comm	_DOMAIN3_POWER_GATE,4,2         ## @DOMAIN3_POWER_GATE
	.comm	_DOMAIN3_PG_STATUS,4,2          ## @DOMAIN3_PG_STATUS
	.comm	_DOMAIN3_PGFSM_PWR_STATUS,4,2   ## @DOMAIN3_PGFSM_PWR_STATUS
	.comm	_DOMAIN5_PG_CONFIG,4,2          ## @DOMAIN5_PG_CONFIG
	.comm	_DOMAIN5_POWER_GATE,4,2         ## @DOMAIN5_POWER_GATE
	.comm	_DOMAIN5_PG_STATUS,4,2          ## @DOMAIN5_PG_STATUS
	.comm	_DOMAIN5_PGFSM_PWR_STATUS,4,2   ## @DOMAIN5_PGFSM_PWR_STATUS
	.comm	_DOMAIN7_PG_CONFIG,4,2          ## @DOMAIN7_PG_CONFIG
	.comm	_DOMAIN7_POWER_GATE,4,2         ## @DOMAIN7_POWER_GATE
	.comm	_DOMAIN7_PG_STATUS,4,2          ## @DOMAIN7_PG_STATUS
	.comm	_DOMAIN7_PGFSM_PWR_STATUS,4,2   ## @DOMAIN7_PGFSM_PWR_STATUS
	.comm	_DOMAIN9_PG_CONFIG,4,2          ## @DOMAIN9_PG_CONFIG
	.comm	_DOMAIN9_POWER_GATE,4,2         ## @DOMAIN9_POWER_GATE
	.comm	_DOMAIN9_PG_STATUS,4,2          ## @DOMAIN9_PG_STATUS
	.comm	_DOMAIN9_PGFSM_PWR_STATUS,4,2   ## @DOMAIN9_PGFSM_PWR_STATUS
	.no_dead_strip	_dcn20_dpp_pg_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn20_dpp_pg_control
_dcn20_dpp_pg_control:                  ; @dcn20_dpp_pg_control
	.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
	cmp	w2, #0
	cset	w20, eq
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	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
LBB0_2:
	mov	x21, x1
Lloh0:
	adrp	x22, _DOMAIN1_PG_CONFIG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DOMAIN1_PG_CONFIG@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_REG
	cbz	x0, LBB0_1
; %bb.3:
	cmp	w21, #5
	b.hi	LBB0_6
; %bb.4:
	lsl	w19, w20, #1
	mov	w8, w21
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _DOMAIN1_POWER_GATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DOMAIN1_POWER_GATE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
Lloh7:
	adrp	x8, _DOMAIN1_PG_STATUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DOMAIN1_PG_STATUS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _DOMAIN1_PGFSM_PWR_STATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DOMAIN1_PGFSM_PWR_STATUS@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	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	_BREAK_TO_DEBUGGER
LBB0_7:
Lloh12:
	adrp	x8, _DOMAIN3_PG_CONFIG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DOMAIN3_PG_CONFIG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _DOMAIN3_POWER_GATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DOMAIN3_POWER_GATE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
Lloh18:
	adrp	x8, _DOMAIN3_PG_STATUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DOMAIN3_PG_STATUS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _DOMAIN3_PGFSM_PWR_STATUS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DOMAIN3_PGFSM_PWR_STATUS@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _DOMAIN5_PG_CONFIG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DOMAIN5_PG_CONFIG@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _DOMAIN5_POWER_GATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DOMAIN5_POWER_GATE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
Lloh29:
	adrp	x8, _DOMAIN5_PG_STATUS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DOMAIN5_PG_STATUS@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _DOMAIN5_PGFSM_PWR_STATUS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DOMAIN5_PGFSM_PWR_STATUS@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh34:
	adrp	x8, _DOMAIN7_PG_CONFIG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DOMAIN7_PG_CONFIG@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _DOMAIN7_POWER_GATE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DOMAIN7_POWER_GATE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
Lloh40:
	adrp	x8, _DOMAIN7_PG_STATUS@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DOMAIN7_PG_STATUS@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x8, _DOMAIN7_PGFSM_PWR_STATUS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DOMAIN7_PGFSM_PWR_STATUS@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh45:
	adrp	x8, _DOMAIN9_PG_CONFIG@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DOMAIN9_PG_CONFIG@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x8, _DOMAIN9_POWER_GATE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DOMAIN9_POWER_GATE@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_REG_UPDATE
Lloh51:
	adrp	x8, _DOMAIN9_PG_STATUS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DOMAIN9_PG_STATUS@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
Lloh54:
	adrp	x8, _DOMAIN9_PGFSM_PWR_STATUS@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DOMAIN9_PGFSM_PWR_STATUS@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #1
	mov	w4, #1000
	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	_REG_WAIT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_1)>>2
	.byte	(LBB0_7-LBB0_1)>>2
	.byte	(LBB0_8-LBB0_1)>>2
	.byte	(LBB0_9-LBB0_1)>>2
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
                                        ; -- End function
	.comm	_DOMAIN1_PG_CONFIG,4,2          ; @DOMAIN1_PG_CONFIG
	.comm	_DOMAIN1_POWER_GATE,4,2         ; @DOMAIN1_POWER_GATE
	.comm	_DOMAIN1_PG_STATUS,4,2          ; @DOMAIN1_PG_STATUS
	.comm	_DOMAIN1_PGFSM_PWR_STATUS,4,2   ; @DOMAIN1_PGFSM_PWR_STATUS
	.comm	_DOMAIN3_PG_CONFIG,4,2          ; @DOMAIN3_PG_CONFIG
	.comm	_DOMAIN3_POWER_GATE,4,2         ; @DOMAIN3_POWER_GATE
	.comm	_DOMAIN3_PG_STATUS,4,2          ; @DOMAIN3_PG_STATUS
	.comm	_DOMAIN3_PGFSM_PWR_STATUS,4,2   ; @DOMAIN3_PGFSM_PWR_STATUS
	.comm	_DOMAIN5_PG_CONFIG,4,2          ; @DOMAIN5_PG_CONFIG
	.comm	_DOMAIN5_POWER_GATE,4,2         ; @DOMAIN5_POWER_GATE
	.comm	_DOMAIN5_PG_STATUS,4,2          ; @DOMAIN5_PG_STATUS
	.comm	_DOMAIN5_PGFSM_PWR_STATUS,4,2   ; @DOMAIN5_PGFSM_PWR_STATUS
	.comm	_DOMAIN7_PG_CONFIG,4,2          ; @DOMAIN7_PG_CONFIG
	.comm	_DOMAIN7_POWER_GATE,4,2         ; @DOMAIN7_POWER_GATE
	.comm	_DOMAIN7_PG_STATUS,4,2          ; @DOMAIN7_PG_STATUS
	.comm	_DOMAIN7_PGFSM_PWR_STATUS,4,2   ; @DOMAIN7_PGFSM_PWR_STATUS
	.comm	_DOMAIN9_PG_CONFIG,4,2          ; @DOMAIN9_PG_CONFIG
	.comm	_DOMAIN9_POWER_GATE,4,2         ; @DOMAIN9_POWER_GATE
	.comm	_DOMAIN9_PG_STATUS,4,2          ; @DOMAIN9_PG_STATUS
	.comm	_DOMAIN9_PGFSM_PWR_STATUS,4,2   ; @DOMAIN9_PGFSM_PWR_STATUS
	.no_dead_strip	_dcn20_dpp_pg_control
.subsections_via_symbols
