	.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	_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_17
## %bb.4:
	xorl	%ebx, %ebx
	movq	_crtc_offsets@GOTPCREL(%rip), %r13
	movq	_EVERGREEN_GRPH_UPDATE@GOTPCREL(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_EVERGREEN_MASTER_UPDATE_MODE@GOTPCREL(%rip), %r14
	addq	(%r14), %rdi
	callq	_RREG32
	testb	$3, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	andl	$-4, %eax
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%r14), %rdi
	movl	%eax, %esi
	callq	_WREG32
LBB0_8:                                 ##   in Loop: Header=BB0_5 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_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	addq	(%r12), %rdi
	movl	%eax, %esi
	callq	_WREG32
LBB0_10:                                ##   in Loop: Header=BB0_5 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_12
## %bb.11:                              ##   in Loop: Header=BB0_5 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_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 4(%r15)
	jle	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_5 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_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$1, %edi
	callq	_udelay
	incl	%r14d
	cmpl	4(%r15), %r14d
	jl	LBB0_14
	jmp	LBB0_16
LBB0_17:
	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_28
## %bb.18:
	xorl	%r13d, %r13d
	movq	_crtc_offsets@GOTPCREL(%rip), %r14
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_28
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r15, %rdi
	callq	_ASIC_IS_DCE6
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_EVERGREEN_CRTC_BLANK_CONTROL@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	callq	_RREG32
	movl	%eax, %r12d
	movq	_EVERGREEN_CRTC_BLANK_DATA_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_EVERGREEN_CRTC_CONTROL@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	callq	_RREG32
	movq	_EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	notl	%r12d
	andl	%eax, %r12d
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_EVERGREEN_CRTC_UPDATE_LOCK@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movl	$1, %esi
	callq	_WREG32
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	addq	(%rbx), %rdi
	movl	%r12d, %esi
	callq	_WREG32
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	movq	_EVERGREEN_CRTC_UPDATE_LOCK@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_radeon_get_vblank_counter
	cmpl	$0, 4(%r15)
	jle	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=1
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_radeon_get_vblank_counter
	cmpl	%r12d, %eax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	4(%r15), %ebx
	jl	LBB0_25
	jmp	LBB0_27
LBB0_28:
	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:
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
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.4:
	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_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_17
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	tst	w0, #0x3
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	and	w1, w0, #0xfffffffc
	ldr	x8, [x22]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_WREG32
LBB0_9:                                 ;   in Loop: Header=BB0_6 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_11
; %bb.10:                               ;   in Loop: Header=BB0_6 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_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
	tbz	w0, #0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 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_13:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w28, #0
LBB0_15:                                ;   Parent Loop BB0_6 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_5
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	w0, #1
	bl	_udelay
	add	w28, w28, #1
	ldr	w8, [x20, #4]
	cmp	w28, w8
	b.lt	LBB0_15
	b	LBB0_5
LBB0_17:
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_28
; %bb.18:
	mov	x21, #0
Lloh40:
	adrp	x24, _EVERGREEN_CRTC_CONTROL@GOTPAGE
Lloh41:
	ldr	x24, [x24, _EVERGREEN_CRTC_CONTROL@GOTPAGEOFF]
Lloh42:
	adrp	x26, _EVERGREEN_CRTC_UPDATE_LOCK@GOTPAGE
Lloh43:
	ldr	x26, [x26, _EVERGREEN_CRTC_UPDATE_LOCK@GOTPAGEOFF]
Lloh44:
	adrp	x27, _EVERGREEN_CRTC_BLANK_CONTROL@GOTPAGE
Lloh45:
	ldr	x27, [x27, _EVERGREEN_CRTC_BLANK_CONTROL@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_28
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x20
	bl	_ASIC_IS_DCE6
	cbz	x0, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
Lloh46:
	adrp	x8, _EVERGREEN_CRTC_BLANK_DATA_EN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EVERGREEN_CRTC_BLANK_DATA_EN@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	orr	w22, w8, w0
	mov	x25, x27
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_RREG32
Lloh49:
	adrp	x8, _EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EVERGREEN_CRTC_DISP_READ_REQUEST_DISABLE@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	bic	w22, w0, w8
	mov	x25, x24
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x23]
	lsl	x28, x21, #3
	ldr	x9, [x9, x28]
	add	x0, x9, x8
	mov	w1, #1
	bl	_WREG32
	ldr	x8, [x25]
	ldr	x9, [x23]
	ldr	x9, [x9, x28]
	add	x0, x9, x8
	mov	x1, x22
	bl	_WREG32
	ldr	x8, [x26]
	ldr	x9, [x23]
	ldr	x9, [x9, x28]
	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_19
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x22, x0
	mov	w25, #0
LBB0_26:                                ;   Parent Loop BB0_20 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_19
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	mov	w0, #1
	bl	_udelay
	add	w25, w25, #1
	ldr	w8, [x20, #4]
	cmp	w25, w8
	b.lt	LBB0_26
	b	LBB0_19
LBB0_28:
Lloh52:
	adrp	x8, _VGA_HDP_CONTROL@GOTPAGE
Lloh53:
	ldr	x8, [x8, _VGA_HDP_CONTROL@GOTPAGEOFF]
Lloh54:
	ldr	x0, [x8]
	ldr	w1, [x19]
	bl	_WREG32
	mov	w0, #1
	bl	_mdelay
Lloh55:
	adrp	x8, _VGA_RENDER_CONTROL@GOTPAGE
Lloh56:
	ldr	x8, [x8, _VGA_RENDER_CONTROL@GOTPAGEOFF]
Lloh57:
	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 AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.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
