	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_mc_resume            ## -- Begin function evergreen_mc_resume
	.p2align	4, 0x90
_evergreen_mc_resume:                   ## @evergreen_mc_resume
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_crtc_offsets@GOTPCREL(%rip), %r13
	movq	_EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movq	_EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	8(%r15), %rdi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %r14
	movq	_EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	8(%r15), %rdi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	8(%r15), %esi
	callq	_WREG32
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	movl	8(%r15), %esi
	callq	_WREG32
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_ASIC_IS_NODCE
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$0, (%r15)
	jg	LBB0_6
	jmp	LBB0_19
LBB0_4:
	movq	_EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%r15), %rdi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_EVERGREEN_VGA_MEMORY_BASE_ADDRESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	8(%r15), %esi
	callq	_WREG32
	cmpl	$0, (%r15)
	jle	LBB0_19
LBB0_6:
	xorl	%ebx, %ebx
	movq	_crtc_offsets@GOTPCREL(%rip), %r13
	movq	_EVERGREEN_GRPH_UPDATE@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_19
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_EVERGREEN_MASTER_UPDATE_MODE@GOTPCREL(%rip), %r14
	addq	(%r14), %rdi
	callq	_RREG32
	testb	$7, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	andl	$-8, %eax
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	callq	_RREG32
	movq	_EVERGREEN_GRPH_UPDATE_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%r12), %rdi
	movl	%eax, %esi
	callq	_WREG32
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_EVERGREEN_MASTER_UPDATE_LOCK@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_RREG32
	testb	$1, %al
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	andl	$-2, %eax
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	movq	_EVERGREEN_MASTER_UPDATE_LOCK@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdi
	movl	%eax, %esi
	callq	_WREG32
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, 4(%r15)
	jle	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	(%r12), %rdi
	callq	_RREG32
	movq	_EVERGREEN_GRPH_SURFACE_UPDATE_PENDING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, %edi
	callq	_udelay
	incl	%r14d
	cmpl	4(%r15), %r14d
	jl	LBB0_16
	jmp	LBB0_18
LBB0_19:
	movq	_MC_SHARED_BLACKOUT_CNTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_RREG32
	movq	_BLACKOUT_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	(%rbx), %rdi
	callq	_WREG32
	movq	_BIF_FB_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_FB_READ_EN@GOTPCREL(%rip), %rax
	movq	_FB_WRITE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_WREG32
	cmpl	$0, (%r15)
	jle	LBB0_27
## %bb.20:
	xorl	%r12d, %r12d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_27
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, (%rax,%r12,8)
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testq	%rax, %rax
	movq	_EVERGREEN_CRTC_BLANK_CONTROL@GOTPCREL(%rip), %r14
	cmoveq	_EVERGREEN_CRTC_CONTROL@GOTPCREL(%rip), %r14
	movq	_crtc_offsets@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	movq	_EVERGREEN_CRTC_BLANK_DATA_EN@GOTPCREL(%rip), %rbx
	cmoveq	_EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE@GOTPCREL(%rip), %rbx
	addq	(%r14), %rdi
	callq	_RREG32
	movl	(%rbx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	movq	_EVERGREEN_CRTC_UPDATE_LOCK@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	$1, %esi
	callq	_WREG32
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	addq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_WREG32
	movq	(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	movq	_EVERGREEN_CRTC_UPDATE_LOCK@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_radeon_get_vblank_counter
	cmpl	$0, 4(%r15)
	jle	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_radeon_get_vblank_counter
	cmpl	%r14d, %eax
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_24
	jmp	LBB0_26
LBB0_27:
	movq	%r15, %rdi
	callq	_ASIC_IS_NODCE
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_VGA_HDP_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	callq	_WREG32
	movl	$1, %edi
	callq	_mdelay
	movq	_VGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	4(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH,8,3 ## @EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH
	.comm	_crtc_offsets,8,3               ## @crtc_offsets
	.comm	_EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH,8,3 ## @EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH
	.comm	_EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS,8,3 ## @EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS
	.comm	_EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS,8,3 ## @EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS
	.comm	_EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH,8,3 ## @EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH
	.comm	_EVERGREEN_VGA_MEMORY_BASE_ADDRESS,8,3 ## @EVERGREEN_VGA_MEMORY_BASE_ADDRESS
	.comm	_EVERGREEN_MASTER_UPDATE_MODE,8,3 ## @EVERGREEN_MASTER_UPDATE_MODE
	.comm	_EVERGREEN_GRPH_UPDATE,8,3      ## @EVERGREEN_GRPH_UPDATE
	.comm	_EVERGREEN_GRPH_UPDATE_LOCK,4,2 ## @EVERGREEN_GRPH_UPDATE_LOCK
	.comm	_EVERGREEN_MASTER_UPDATE_LOCK,8,3 ## @EVERGREEN_MASTER_UPDATE_LOCK
	.comm	_EVERGREEN_GRPH_SURFACE_UPDATE_PENDING,4,2 ## @EVERGREEN_GRPH_SURFACE_UPDATE_PENDING
	.comm	_MC_SHARED_BLACKOUT_CNTL,8,3    ## @MC_SHARED_BLACKOUT_CNTL
	.comm	_BLACKOUT_MODE_MASK,4,2         ## @BLACKOUT_MODE_MASK
	.comm	_BIF_FB_EN,8,3                  ## @BIF_FB_EN
	.comm	_FB_READ_EN,4,2                 ## @FB_READ_EN
	.comm	_FB_WRITE_EN,4,2                ## @FB_WRITE_EN
	.comm	_EVERGREEN_CRTC_BLANK_CONTROL,8,3 ## @EVERGREEN_CRTC_BLANK_CONTROL
	.comm	_EVERGREEN_CRTC_BLANK_DATA_EN,4,2 ## @EVERGREEN_CRTC_BLANK_DATA_EN
	.comm	_EVERGREEN_CRTC_UPDATE_LOCK,8,3 ## @EVERGREEN_CRTC_UPDATE_LOCK
	.comm	_EVERGREEN_CRTC_CONTROL,8,3     ## @EVERGREEN_CRTC_CONTROL
	.comm	_EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE,4,2 ## @EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE
	.comm	_VGA_HDP_CONTROL,8,3            ## @VGA_HDP_CONTROL
	.comm	_VGA_RENDER_CONTROL,8,3         ## @VGA_RENDER_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_mc_resume            ; -- Begin function evergreen_mc_resume
	.p2align	2
_evergreen_mc_resume:                   ; @evergreen_mc_resume
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _crtc_offsets@GOTPAGE
Lloh1:
	ldr	x23, [x23, _crtc_offsets@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh2:
	adrp	x24, _EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH@GOTPAGE
Lloh3:
	ldr	x24, [x24, _EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH@GOTPAGEOFF]
Lloh4:
	adrp	x25, _EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH@GOTPAGE
Lloh5:
	ldr	x25, [x25, _EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH@GOTPAGEOFF]
Lloh6:
	adrp	x26, _EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS@GOTPAGEOFF]
Lloh8:
	adrp	x27, _EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS@GOTPAGE
Lloh9:
	ldr	x27, [x27, _EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x23]
	lsl	x28, x22, #3
	ldr	x9, [x9, x28]
	add	x21, x9, x8
	ldr	x0, [x20, #8]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x21
	bl	_WREG32
	ldr	x8, [x25]
	ldr	x9, [x23]
	ldr	x9, [x9, x28]
	add	x21, x9, x8
	ldr	x0, [x20, #8]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x21
	bl	_WREG32
	ldr	x8, [x26]
	ldr	x9, [x23]
	ldr	x9, [x9, x28]
	add	x0, x9, x8
	ldr	w1, [x20, #8]
	bl	_WREG32
	ldr	x8, [x27]
	ldr	x9, [x23]
	ldr	x9, [x9, x28]
	add	x0, x9, x8
	ldr	w1, [x20, #8]
	bl	_WREG32
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	bl	_ASIC_IS_NODCE
	cbnz	w0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
	ldr	x0, [x20, #8]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x21
	bl	_WREG32
Lloh13:
	adrp	x8, _EVERGREEN_VGA_MEMORY_BASE_ADDRESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EVERGREEN_VGA_MEMORY_BASE_ADDRESS@GOTPAGEOFF]
Lloh15:
	ldr	x0, [x8]
	ldr	w1, [x20, #8]
	bl	_WREG32
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.6:
	mov	x21, #0
Lloh16:
	adrp	x22, _EVERGREEN_MASTER_UPDATE_MODE@GOTPAGE
Lloh17:
	ldr	x22, [x22, _EVERGREEN_MASTER_UPDATE_MODE@GOTPAGEOFF]
Lloh18:
	adrp	x24, _EVERGREEN_GRPH_UPDATE@GOTPAGE
Lloh19:
	ldr	x24, [x24, _EVERGREEN_GRPH_UPDATE@GOTPAGEOFF]
Lloh20:
	adrp	x25, _EVERGREEN_GRPH_UPDATE_LOCK@GOTPAGE
Lloh21:
	ldr	x25, [x25, _EVERGREEN_GRPH_UPDATE_LOCK@GOTPAGEOFF]
Lloh22:
	adrp	x26, _EVERGREEN_MASTER_UPDATE_LOCK@GOTPAGE
Lloh23:
	ldr	x26, [x26, _EVERGREEN_MASTER_UPDATE_LOCK@GOTPAGEOFF]
Lloh24:
	adrp	x27, _EVERGREEN_GRPH_SURFACE_UPDATE_PENDING@GOTPAGE
Lloh25:
	ldr	x27, [x27, _EVERGREEN_GRPH_SURFACE_UPDATE_PENDING@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_19
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	tst	w0, #0x7
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	and	w1, w0, #0xfffffff8
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_WREG32
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bic	w1, w0, w8
	ldr	x8, [x24]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_WREG32
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	tbz	w0, #0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	and	w1, w0, #0xfffffffe
	ldr	x8, [x26]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_WREG32
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w28, #0
LBB0_17:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	mov	w0, #1
	bl	_udelay
	add	w28, w28, #1
	ldr	w8, [x20, #4]
	cmp	w28, w8
	b.lt	LBB0_17
	b	LBB0_7
LBB0_19:
Lloh26:
	adrp	x21, _MC_SHARED_BLACKOUT_CNTL@GOTPAGE
Lloh27:
	ldr	x21, [x21, _MC_SHARED_BLACKOUT_CNTL@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_RREG32
Lloh28:
	adrp	x8, _BLACKOUT_MODE_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BLACKOUT_MODE_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	x0, [x21]
	bl	_WREG32
Lloh31:
	adrp	x8, _BIF_FB_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BIF_FB_EN@GOTPAGEOFF]
Lloh33:
	adrp	x9, _FB_READ_EN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _FB_READ_EN@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
Lloh36:
	ldr	w8, [x9]
Lloh37:
	adrp	x9, _FB_WRITE_EN@GOTPAGE
Lloh38:
	ldr	x9, [x9, _FB_WRITE_EN@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_WREG32
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.20:
	mov	x21, #0
Lloh40:
	adrp	x26, _EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE@GOTPAGE
Lloh41:
	ldr	x26, [x26, _EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE@GOTPAGEOFF]
Lloh42:
	adrp	x27, _EVERGREEN_CRTC_BLANK_DATA_EN@GOTPAGE
Lloh43:
	ldr	x27, [x27, _EVERGREEN_CRTC_BLANK_DATA_EN@GOTPAGEOFF]
Lloh44:
	adrp	x28, _EVERGREEN_CRTC_UPDATE_LOCK@GOTPAGE
Lloh45:
	ldr	x28, [x28, _EVERGREEN_CRTC_UPDATE_LOCK@GOTPAGEOFF]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_27
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x20
	bl	_ASIC_IS_DCE6
	cmp	x0, #0
Lloh46:
	adrp	x8, _EVERGREEN_CRTC_BLANK_CONTROL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EVERGREEN_CRTC_BLANK_CONTROL@GOTPAGEOFF]
Lloh48:
	adrp	x9, _EVERGREEN_CRTC_CONTROL@GOTPAGE
Lloh49:
	ldr	x9, [x9, _EVERGREEN_CRTC_CONTROL@GOTPAGEOFF]
	csel	x24, x9, x8, eq
	ldr	x8, [x24]
	ldr	x9, [x23]
	lsl	x25, x21, #3
	ldr	x9, [x9, x25]
	add	x0, x9, x8
	csel	x22, x26, x27, eq
	bl	_RREG32
	ldr	w8, [x22]
	bic	w22, w0, w8
	ldr	x8, [x28]
	ldr	x9, [x23]
	ldr	x9, [x9, x25]
	add	x0, x9, x8
	mov	w1, #1
	bl	_WREG32
	ldr	x8, [x24]
	ldr	x9, [x23]
	ldr	x9, [x9, x25]
	add	x0, x9, x8
	mov	x1, x22
	bl	_WREG32
	ldr	x8, [x28]
	ldr	x9, [x23]
	ldr	x9, [x9, x25]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	mov	x0, x20
	mov	x1, x21
	bl	_radeon_get_vblank_counter
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x22, x0
	mov	w24, #0
LBB0_25:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x21
	bl	_radeon_get_vblank_counter
	cmp	w0, w22
	b.ne	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	w0, #1
	bl	_udelay
	add	w24, w24, #1
	ldr	w8, [x20, #4]
	cmp	w24, w8
	b.lt	LBB0_25
	b	LBB0_21
LBB0_27:
	mov	x0, x20
	bl	_ASIC_IS_NODCE
	cbz	w0, LBB0_29
; %bb.28:
	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_29:
Lloh50:
	adrp	x8, _VGA_HDP_CONTROL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _VGA_HDP_CONTROL@GOTPAGEOFF]
Lloh52:
	ldr	x0, [x8]
	ldr	w1, [x19]
	bl	_WREG32
	mov	w0, #1
	bl	_mdelay
Lloh53:
	adrp	x8, _VGA_RENDER_CONTROL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _VGA_RENDER_CONTROL@GOTPAGEOFF]
Lloh55:
	ldr	x0, [x8]
	ldr	w1, [x19, #4]
	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	_WREG32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH,8,3 ; @EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS_HIGH
	.comm	_crtc_offsets,8,3               ; @crtc_offsets
	.comm	_EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH,8,3 ; @EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS_HIGH
	.comm	_EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS,8,3 ; @EVERGREEN_GRPH_PRIMARY_SURFACE_ADDRESS
	.comm	_EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS,8,3 ; @EVERGREEN_GRPH_SECONDARY_SURFACE_ADDRESS
	.comm	_EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH,8,3 ; @EVERGREEN_VGA_MEMORY_BASE_ADDRESS_HIGH
	.comm	_EVERGREEN_VGA_MEMORY_BASE_ADDRESS,8,3 ; @EVERGREEN_VGA_MEMORY_BASE_ADDRESS
	.comm	_EVERGREEN_MASTER_UPDATE_MODE,8,3 ; @EVERGREEN_MASTER_UPDATE_MODE
	.comm	_EVERGREEN_GRPH_UPDATE,8,3      ; @EVERGREEN_GRPH_UPDATE
	.comm	_EVERGREEN_GRPH_UPDATE_LOCK,4,2 ; @EVERGREEN_GRPH_UPDATE_LOCK
	.comm	_EVERGREEN_MASTER_UPDATE_LOCK,8,3 ; @EVERGREEN_MASTER_UPDATE_LOCK
	.comm	_EVERGREEN_GRPH_SURFACE_UPDATE_PENDING,4,2 ; @EVERGREEN_GRPH_SURFACE_UPDATE_PENDING
	.comm	_MC_SHARED_BLACKOUT_CNTL,8,3    ; @MC_SHARED_BLACKOUT_CNTL
	.comm	_BLACKOUT_MODE_MASK,4,2         ; @BLACKOUT_MODE_MASK
	.comm	_BIF_FB_EN,8,3                  ; @BIF_FB_EN
	.comm	_FB_READ_EN,4,2                 ; @FB_READ_EN
	.comm	_FB_WRITE_EN,4,2                ; @FB_WRITE_EN
	.comm	_EVERGREEN_CRTC_BLANK_CONTROL,8,3 ; @EVERGREEN_CRTC_BLANK_CONTROL
	.comm	_EVERGREEN_CRTC_BLANK_DATA_EN,4,2 ; @EVERGREEN_CRTC_BLANK_DATA_EN
	.comm	_EVERGREEN_CRTC_UPDATE_LOCK,8,3 ; @EVERGREEN_CRTC_UPDATE_LOCK
	.comm	_EVERGREEN_CRTC_CONTROL,8,3     ; @EVERGREEN_CRTC_CONTROL
	.comm	_EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE,4,2 ; @EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE
	.comm	_VGA_HDP_CONTROL,8,3            ; @VGA_HDP_CONTROL
	.comm	_VGA_RENDER_CONTROL,8,3         ; @VGA_RENDER_CONTROL
.subsections_via_symbols
