	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_irq_set              ## -- Begin function evergreen_irq_set
	.p2align	4, 0x90
_evergreen_irq_set:                     ## @evergreen_irq_set
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 56(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	cmpl	$0, 64(%rdi)
	je	LBB0_6
## %bb.2:
	movq	_CNTX_BUSY_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	_CNTX_EMPTY_INT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD1_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD2_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -152(%rbp)                ## 4-byte Spill
	movq	_DC_HPD3_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD4_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -156(%rbp)                ## 4-byte Spill
	movq	_DC_HPD5_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -160(%rbp)                ## 4-byte Spill
	movq	_DC_HPD6_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	movq	_AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %r15
	movq	_EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -140(%rbp)                ## 4-byte Spill
	movq	_EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -144(%rbp)                ## 4-byte Spill
	movq	_EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -168(%rbp)                ## 4-byte Spill
	movq	_EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -172(%rbp)                ## 4-byte Spill
	movq	_EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -176(%rbp)                ## 4-byte Spill
	movq	_EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_RREG32
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	movq	_DMA_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, %r14d
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r12d
	movq	(%r13), %rbx
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%r13), %rdi
	callq	_atomic_read
	cmpq	%r15, %rbx
	jge	LBB0_7
## %bb.3:
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_RB_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_76
LBB0_6:
	movq	%r13, %rdi
	callq	_r600_disable_interrupts
	movq	%r13, %rdi
	callq	_evergreen_disable_interrupt_state
	xorl	%r12d, %r12d
	jmp	LBB0_76
LBB0_7:
	testq	%rax, %rax
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_9:
	movq	_CAYMAN_RING_TYPE_CP1_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%r13), %rdi
	callq	_atomic_read
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_11:
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	_CAYMAN_RING_TYPE_CP2_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
LBB0_15:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_13:
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
LBB0_14:
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	movl	%r14d, %r15d
LBB0_16:
	andl	%r12d, %r15d
	movq	_R600_RING_TYPE_DMA_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_18:
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movq	(%r13), %rax
	xorl	%r14d, %r14d
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_21
## %bb.19:
	movq	_CAYMAN_DMA1_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movq	_CAYMAN_RING_TYPE_DMA1_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	48(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_DEBUG
	orl	(%r15), %r14d
LBB0_21:
	movl	%r14d, -148(%rbp)               ## 4-byte Spill
	movq	40(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	32(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_77
LBB0_23:
	leaq	L_.str.6(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
LBB0_24:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	40(%r13), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_26
## %bb.25:
	movq	32(%r13), %rdi
	addq	$4, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_78
LBB0_26:
	leaq	L_.str.7(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
LBB0_27:
	movq	40(%r13), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_29
## %bb.28:
	movq	32(%r13), %rdi
	addq	$8, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_79
LBB0_29:
	leaq	L_.str.8(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -136(%rbp)                ## 4-byte Spill
LBB0_30:
	movq	40(%r13), %rax
	cmpq	$0, 24(%rax)
	jne	LBB0_32
## %bb.31:
	movq	32(%r13), %rdi
	addq	$12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_80
LBB0_32:
	leaq	L_.str.9(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -132(%rbp)                ## 4-byte Spill
LBB0_33:
	movq	40(%r13), %rax
	cmpq	$0, 32(%rax)
	jne	LBB0_35
## %bb.34:
	movq	32(%r13), %rdi
	addq	$16, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_81
LBB0_35:
	leaq	L_.str.10(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)                ## 4-byte Spill
LBB0_36:
	notl	%r12d
	movq	40(%r13), %rax
	cmpq	$0, 40(%rax)
	jne	LBB0_38
## %bb.37:
	movq	32(%r13), %rdi
	addq	$20, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_82
LBB0_38:
	leaq	L_.str.11(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -124(%rbp)                ## 4-byte Spill
LBB0_39:
	movl	-152(%rbp), %ecx                ## 4-byte Reload
	notl	%ecx
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	andl	%r12d, %r15d
	movq	24(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_41
## %bb.40:
	leaq	L_.str.12(%rip), %rdi
	movl	%ecx, %r12d
	callq	_DRM_DEBUG
	movl	%r12d, %ecx
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %r12
	orl	(%r12), %r15d
	movq	24(%r13), %rax
LBB0_41:
	notl	%ebx
	movl	-88(%rbp), %r14d                ## 4-byte Reload
	andl	%ecx, %r14d
	cmpq	$0, 8(%rax)
	movl	-156(%rbp), %r12d               ## 4-byte Reload
	je	LBB0_43
## %bb.42:
	leaq	L_.str.13(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	24(%r13), %rax
LBB0_43:
	notl	%r12d
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	andl	%ebx, %ecx
	movl	%ecx, %ebx
	cmpq	$0, 16(%rax)
	je	LBB0_45
## %bb.44:
	leaq	L_.str.14(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movq	24(%r13), %rax
	jmp	LBB0_46
LBB0_45:
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
LBB0_46:
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	-160(%rbp), %esi                ## 4-byte Reload
	notl	%esi
	andl	%r12d, %ebx
	cmpq	$0, 24(%rax)
	je	LBB0_48
## %bb.47:
	leaq	L_.str.15(%rip), %rdi
	movl	%esi, %r12d
	callq	_DRM_DEBUG
	movl	%r12d, %esi
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	24(%r13), %rax
LBB0_48:
	movl	%ebx, -72(%rbp)                 ## 4-byte Spill
	movl	%r14d, -88(%rbp)                ## 4-byte Spill
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	movl	-164(%rbp), %edx                ## 4-byte Reload
	notl	%edx
	movl	-108(%rbp), %ecx                ## 4-byte Reload
	andl	%esi, %ecx
	cmpq	$0, 32(%rax)
	je	LBB0_50
## %bb.49:
	leaq	L_.str.16(%rip), %rdi
	movl	%ecx, %r15d
	movl	%edx, %ebx
	callq	_DRM_DEBUG
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	24(%r13), %rax
LBB0_50:
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	movq	_AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %r15
	movl	-144(%rbp), %r14d               ## 4-byte Reload
	movl	-140(%rbp), %ebx                ## 4-byte Reload
	movl	%ecx, -108(%rbp)                ## 4-byte Spill
	notl	%ebx
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	andl	%edx, %ecx
	cmpq	$0, 40(%rax)
	je	LBB0_52
## %bb.51:
	leaq	L_.str.17(%rip), %rdi
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r15, %r13
	movl	%ecx, %r15d
	callq	_DRM_DEBUG
	movl	%r15d, %ecx
	movq	%r13, %r15
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_52:
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
	notl	%r14d
	andl	%ebx, %r12d
	movq	16(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_54
## %bb.53:
	leaq	L_.str.18(%rip), %rdi
	callq	_DRM_DEBUG
	orl	(%r15), %r12d
	movq	16(%r13), %rax
LBB0_54:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movl	-168(%rbp), %edx                ## 4-byte Reload
	notl	%edx
	movl	-104(%rbp), %ecx                ## 4-byte Reload
	andl	%r14d, %ecx
	cmpq	$0, 8(%rax)
	je	LBB0_56
## %bb.55:
	leaq	L_.str.19(%rip), %rdi
	movl	%ecx, %r12d
	movl	%edx, %ebx
	callq	_DRM_DEBUG
	movl	%ebx, %edx
	movl	%r12d, %ecx
	orl	(%r15), %ecx
	movq	16(%r13), %rax
LBB0_56:
	movl	-64(%rbp), %r12d                ## 4-byte Reload
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	movl	-172(%rbp), %ebx                ## 4-byte Reload
	notl	%ebx
	movl	-100(%rbp), %r14d               ## 4-byte Reload
	andl	%edx, %r14d
	cmpq	$0, 16(%rax)
	je	LBB0_58
## %bb.57:
	leaq	L_.str.20(%rip), %rdi
	callq	_DRM_DEBUG
	orl	(%r15), %r14d
	movq	16(%r13), %rax
LBB0_58:
	movl	-176(%rbp), %esi                ## 4-byte Reload
	notl	%esi
	andl	%ebx, %r12d
	cmpq	$0, 24(%rax)
	je	LBB0_60
## %bb.59:
	leaq	L_.str.21(%rip), %rdi
	movl	%esi, %ebx
	callq	_DRM_DEBUG
	movl	%ebx, %esi
	orl	(%r15), %r12d
	movq	16(%r13), %rax
LBB0_60:
	movl	-180(%rbp), %edx                ## 4-byte Reload
	notl	%edx
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	andl	%esi, %ecx
	cmpq	$0, 32(%rax)
	je	LBB0_62
## %bb.61:
	leaq	L_.str.22(%rip), %rdi
	movl	%ecx, %r15d
	movl	%edx, %ebx
	callq	_DRM_DEBUG
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	_AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %r15
	orl	(%r15), %ecx
	movq	16(%r13), %rax
LBB0_62:
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
	andl	%edx, %ebx
	cmpq	$0, 40(%rax)
	je	LBB0_64
## %bb.63:
	leaq	L_.str.23(%rip), %rdi
	callq	_DRM_DEBUG
	orl	(%r15), %ebx
LBB0_64:
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	movq	(%r13), %rax
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%r14d, -100(%rbp)               ## 4-byte Spill
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	jge	LBB0_66
## %bb.65:
	movq	_CP_INT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	jmp	LBB0_67
LBB0_66:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_cayman_cp_int_cntl_setup
	movq	%r13, %rdi
	movl	$1, %esi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_cayman_cp_int_cntl_setup
	movq	%r13, %rdi
	movl	$2, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_cayman_cp_int_cntl_setup
LBB0_67:
	movq	_DMA_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	(%r13), %rax
	movq	_CHIP_CAYMAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_69
## %bb.68:
	movq	_CAYMAN_DMA1_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-148(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
LBB0_69:
	movq	_GRBM_INT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_INT_MASK@GOTPCREL(%rip), %rbx
	movq	_EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	cmpl	$4, 8(%r13)
	jl	LBB0_72
## %bb.70:
	movq	_EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-136(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-132(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	cmpl	$6, 8(%r13)
	jl	LBB0_72
## %bb.71:
	movq	_EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-128(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-124(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
LBB0_72:
	movq	_GRPH_INT_CONTROL@GOTPCREL(%rip), %r14
	movq	_EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	cmpl	$4, 8(%r13)
	jl	LBB0_75
## %bb.73:
	movq	_EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	cmpl	$6, 8(%r13)
	jl	LBB0_75
## %bb.74:
	movq	_EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_WREG32
LBB0_75:
	movq	_DC_HPD1_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_DC_HPD2_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD3_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD4_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD5_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-108(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD6_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-120(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-104(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-100(%rbp), %esi                ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
LBB0_76:
	movl	%r12d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_77:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_24
LBB0_78:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_27
LBB0_79:
	movl	$0, -136(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_30
LBB0_80:
	movl	$0, -132(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_33
LBB0_81:
	movl	$0, -128(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_36
LBB0_82:
	movl	$0, -124(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_CNTX_BUSY_INT_ENABLE,4,2       ## @CNTX_BUSY_INT_ENABLE
	.comm	_CNTX_EMPTY_INT_ENABLE,4,2      ## @CNTX_EMPTY_INT_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't enable IRQ/MSI because no handler is installed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DC_HPD1_INT_CONTROL,8,3        ## @DC_HPD1_INT_CONTROL
	.comm	_DC_HPDx_INT_EN,4,2             ## @DC_HPDx_INT_EN
	.comm	_DC_HPD2_INT_CONTROL,8,3        ## @DC_HPD2_INT_CONTROL
	.comm	_DC_HPD3_INT_CONTROL,8,3        ## @DC_HPD3_INT_CONTROL
	.comm	_DC_HPD4_INT_CONTROL,8,3        ## @DC_HPD4_INT_CONTROL
	.comm	_DC_HPD5_INT_CONTROL,8,3        ## @DC_HPD5_INT_CONTROL
	.comm	_DC_HPD6_INT_CONTROL,8,3        ## @DC_HPD6_INT_CONTROL
	.comm	_AFMT_AUDIO_PACKET_CONTROL,8,3  ## @AFMT_AUDIO_PACKET_CONTROL
	.comm	_EVERGREEN_CRTC0_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC0_REGISTER_OFFSET
	.comm	_AFMT_AZ_FORMAT_WTRIG_MASK,4,2  ## @AFMT_AZ_FORMAT_WTRIG_MASK
	.comm	_EVERGREEN_CRTC1_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC1_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC2_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC2_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC3_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC3_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC4_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC4_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC5_REGISTER_OFFSET,8,3 ## @EVERGREEN_CRTC5_REGISTER_OFFSET
	.comm	_DMA_CNTL,8,3                   ## @DMA_CNTL
	.comm	_TRAP_ENABLE,4,2                ## @TRAP_ENABLE
	.comm	_CHIP_CAYMAN,8,3                ## @CHIP_CAYMAN
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"evergreen_irq_set: sw int gfx\n"

	.comm	_TIME_STAMP_INT_ENABLE,4,2      ## @TIME_STAMP_INT_ENABLE
	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP1_INDEX
L_.str.2:                               ## @.str.2
	.asciz	"evergreen_irq_set: sw int cp1\n"

	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP2_INDEX
L_.str.3:                               ## @.str.3
	.asciz	"evergreen_irq_set: sw int cp2\n"

	.comm	_RB_INT_ENABLE,4,2              ## @RB_INT_ENABLE
	.comm	_R600_RING_TYPE_DMA_INDEX,8,3   ## @R600_RING_TYPE_DMA_INDEX
L_.str.4:                               ## @.str.4
	.asciz	"r600_irq_set: sw int dma\n"

	.comm	_CAYMAN_DMA1_CNTL,8,3           ## @CAYMAN_DMA1_CNTL
	.comm	_CAYMAN_RING_TYPE_DMA1_INDEX,8,3 ## @CAYMAN_RING_TYPE_DMA1_INDEX
L_.str.5:                               ## @.str.5
	.asciz	"r600_irq_set: sw int dma1\n"

L_.str.6:                               ## @.str.6
	.asciz	"evergreen_irq_set: vblank 0\n"

	.comm	_VBLANK_INT_MASK,4,2            ## @VBLANK_INT_MASK
L_.str.7:                               ## @.str.7
	.asciz	"evergreen_irq_set: vblank 1\n"

L_.str.8:                               ## @.str.8
	.asciz	"evergreen_irq_set: vblank 2\n"

L_.str.9:                               ## @.str.9
	.asciz	"evergreen_irq_set: vblank 3\n"

L_.str.10:                              ## @.str.10
	.asciz	"evergreen_irq_set: vblank 4\n"

L_.str.11:                              ## @.str.11
	.asciz	"evergreen_irq_set: vblank 5\n"

L_.str.12:                              ## @.str.12
	.asciz	"evergreen_irq_set: hpd 1\n"

L_.str.13:                              ## @.str.13
	.asciz	"evergreen_irq_set: hpd 2\n"

L_.str.14:                              ## @.str.14
	.asciz	"evergreen_irq_set: hpd 3\n"

L_.str.15:                              ## @.str.15
	.asciz	"evergreen_irq_set: hpd 4\n"

L_.str.16:                              ## @.str.16
	.asciz	"evergreen_irq_set: hpd 5\n"

L_.str.17:                              ## @.str.17
	.asciz	"evergreen_irq_set: hpd 6\n"

L_.str.18:                              ## @.str.18
	.asciz	"evergreen_irq_set: hdmi 0\n"

L_.str.19:                              ## @.str.19
	.asciz	"evergreen_irq_set: hdmi 1\n"

L_.str.20:                              ## @.str.20
	.asciz	"evergreen_irq_set: hdmi 2\n"

L_.str.21:                              ## @.str.21
	.asciz	"evergreen_irq_set: hdmi 3\n"

L_.str.22:                              ## @.str.22
	.asciz	"evergreen_irq_set: hdmi 4\n"

L_.str.23:                              ## @.str.23
	.asciz	"evergreen_irq_set: hdmi 5\n"

	.comm	_CP_INT_CNTL,8,3                ## @CP_INT_CNTL
	.comm	_GRBM_INT_CNTL,8,3              ## @GRBM_INT_CNTL
	.comm	_INT_MASK,8,3                   ## @INT_MASK
	.comm	_GRPH_INT_CONTROL,8,3           ## @GRPH_INT_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_irq_set              ; -- Begin function evergreen_irq_set
	.p2align	2
_evergreen_irq_set:                     ; @evergreen_irq_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	ldr	w8, [x0, #56]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #64]
	cbz	w8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _CNTX_BUSY_INT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNTX_BUSY_INT_ENABLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _CNTX_EMPTY_INT_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CNTX_EMPTY_INT_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w23, w9, w8
Lloh6:
	adrp	x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	bl	_RREG32
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x24, _DC_HPDx_INT_EN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _DC_HPDx_INT_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x8, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x24]
	stp	w8, w0, [sp, #52]               ; 8-byte Folded Spill
Lloh14:
	adrp	x8, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x24]
	stp	w8, w0, [sp, #64]               ; 8-byte Folded Spill
Lloh17:
	adrp	x8, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x24]
	stp	w8, w0, [sp, #72]               ; 8-byte Folded Spill
Lloh20:
	adrp	x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_RREG32
	mov	x21, x0
	ldr	w8, [x24]
	str	w8, [sp, #80]                   ; 4-byte Folded Spill
Lloh23:
	adrp	x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh25:
	ldr	x0, [x8]
	bl	_RREG32
	str	w0, [sp, #48]                   ; 4-byte Folded Spill
Lloh26:
	adrp	x20, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh27:
	ldr	x20, [x20, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	ldr	x8, [x20]
Lloh28:
	adrp	x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
	str	w0, [sp, #60]                   ; 4-byte Folded Spill
Lloh31:
	adrp	x22, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh32:
	ldr	x22, [x22, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x8, [x20]
Lloh33:
	adrp	x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh34:
	ldr	x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x22]
	stp	w8, w0, [sp, #92]               ; 8-byte Folded Spill
	ldr	x8, [x20]
Lloh36:
	adrp	x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x22]
	stp	w8, w0, [sp, #100]              ; 8-byte Folded Spill
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh40:
	ldr	x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x22]
	stp	w8, w0, [x29, #-100]            ; 8-byte Folded Spill
	ldr	x8, [x20]
Lloh42:
	adrp	x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh43:
	ldr	x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
	mov	x27, x0
	ldr	w8, [x22]
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	ldr	x8, [x20]
Lloh45:
	adrp	x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh46:
	ldr	x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
	ldr	w8, [x22]
	stp	w8, w0, [x29, #-88]             ; 8-byte Folded Spill
Lloh48:
	adrp	x8, _DMA_CNTL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh50:
	ldr	x0, [x8]
	bl	_RREG32
	mov	x20, x0
Lloh51:
	adrp	x28, _TRAP_ENABLE@GOTPAGE
Lloh52:
	ldr	x28, [x28, _TRAP_ENABLE@GOTPAGEOFF]
	ldr	w26, [x28]
	ldr	x25, [x19]
Lloh53:
	adrp	x8, _CHIP_CAYMAN@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh55:
	ldr	x22, [x8]
	ldr	x8, [x19, #48]
Lloh56:
	adrp	x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh57:
	ldr	x9, [x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cmp	x25, x22
	str	w21, [sp, #32]                  ; 4-byte Folded Spill
	b.ge	LBB0_7
; %bb.3:
	cbz	x0, LBB0_11
; %bb.4:
Lloh59:
	adrp	x0, l_.str.1@PAGE
Lloh60:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	stp	wzr, wzr, [sp, #12]             ; 8-byte Folded Spill
Lloh61:
	adrp	x8, _RB_INT_ENABLE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RB_INT_ENABLE@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh64:
	adrp	x9, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w23, w8, w9
	b	LBB0_16
LBB0_5:
Lloh67:
	adrp	x1, l_.str@PAGE
Lloh68:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh69:
	adrp	x8, _EINVAL@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_79
LBB0_6:
	mov	x0, x19
	bl	_r600_disable_interrupts
	mov	x0, x19
	bl	_evergreen_disable_interrupt_state
	b	LBB0_78
LBB0_7:
Lloh72:
	adrp	x25, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh73:
	ldr	x25, [x25, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.8:
Lloh74:
	adrp	x0, l_.str.1@PAGE
Lloh75:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	orr	w23, w8, w23
LBB0_9:
	ldr	x8, [x19, #48]
Lloh76:
	adrp	x9, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGE
Lloh77:
	ldr	x9, [x9, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.10:
Lloh79:
	adrp	x0, l_.str.2@PAGE
Lloh80:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_11:
	stp	wzr, wzr, [sp, #12]             ; 8-byte Folded Spill
	b	LBB0_16
LBB0_12:
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
LBB0_13:
	ldr	x8, [x19, #48]
Lloh81:
	adrp	x9, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGE
Lloh82:
	ldr	x9, [x9, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_15
; %bb.14:
Lloh84:
	adrp	x0, l_.str.3@PAGE
Lloh85:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_16
LBB0_15:
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_16:
Lloh86:
	adrp	x25, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh87:
	ldr	x25, [x25, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	bic	w20, w20, w26
	ldr	x8, [x19, #48]
Lloh88:
	adrp	x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGE
Lloh89:
	ldr	x9, [x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGEOFF]
Lloh90:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_18
; %bb.17:
Lloh91:
	adrp	x0, l_.str.4@PAGE
Lloh92:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x28]
	orr	w20, w8, w20
LBB0_18:
	ldr	x8, [x19]
Lloh93:
	adrp	x9, _CHIP_CAYMAN@GOTPAGE
Lloh94:
	ldr	x9, [x9, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
Lloh96:
	adrp	x10, _CAYMAN_DMA1_CNTL@GOTPAGE
Lloh97:
	ldr	x10, [x10, _CAYMAN_DMA1_CNTL@GOTPAGEOFF]
	cmp	x8, x9
	str	w20, [sp, #88]                  ; 4-byte Folded Spill
	str	w23, [sp, #36]                  ; 4-byte Folded Spill
	b.ge	LBB0_20
; %bb.19:
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_23
LBB0_20:
	ldr	x0, [x10]
	bl	_RREG32
	ldr	w8, [x28]
	bic	w21, w0, w8
	ldr	x8, [x19, #48]
Lloh98:
	adrp	x9, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGE
Lloh99:
	ldr	x9, [x9, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGEOFF]
Lloh100:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_22
; %bb.21:
Lloh101:
	adrp	x0, l_.str.5@PAGE
Lloh102:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x28]
	orr	w21, w8, w21
LBB0_22:
	str	w21, [sp, #20]                  ; 4-byte Folded Spill
LBB0_23:
	mov	x28, x27
	ldr	w23, [sp, #60]                  ; 4-byte Folded Reload
	ldr	w27, [sp, #28]                  ; 4-byte Folded Reload
	ldr	w21, [sp, #48]                  ; 4-byte Folded Reload
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
Lloh103:
	adrp	x20, _VBLANK_INT_MASK@GOTPAGE
Lloh104:
	ldr	x20, [x20, _VBLANK_INT_MASK@GOTPAGEOFF]
	cbnz	x8, LBB0_25
; %bb.24:
	ldr	x0, [x19, #32]
	bl	_atomic_read
	cbz	x0, LBB0_80
LBB0_25:
Lloh105:
	adrp	x0, l_.str.6@PAGE
Lloh106:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
LBB0_26:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_28
; %bb.27:
	ldr	x8, [x19, #32]
	add	x0, x8, #4
	bl	_atomic_read
	cbz	x0, LBB0_81
LBB0_28:
Lloh107:
	adrp	x0, l_.str.7@PAGE
Lloh108:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
LBB0_29:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_31
; %bb.30:
	ldr	x8, [x19, #32]
	add	x0, x8, #8
	bl	_atomic_read
	cbz	x0, LBB0_82
LBB0_31:
Lloh109:
	adrp	x0, l_.str.8@PAGE
Lloh110:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_32:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_34
; %bb.33:
	ldr	x8, [x19, #32]
	add	x0, x8, #12
	bl	_atomic_read
	cbz	x0, LBB0_83
LBB0_34:
Lloh111:
	adrp	x0, l_.str.9@PAGE
Lloh112:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
LBB0_35:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #32]
	cbnz	x8, LBB0_37
; %bb.36:
	ldr	x8, [x19, #32]
	add	x0, x8, #16
	bl	_atomic_read
	cbz	x0, LBB0_84
LBB0_37:
Lloh113:
	adrp	x0, l_.str.10@PAGE
Lloh114:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
LBB0_38:
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #40]
	cbnz	x8, LBB0_40
; %bb.39:
	ldr	x8, [x19, #32]
	add	x0, x8, #20
	bl	_atomic_read
	cbz	x0, LBB0_85
LBB0_40:
Lloh115:
	adrp	x0, l_.str.11@PAGE
Lloh116:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
LBB0_41:
	ldp	w9, w8, [sp, #40]               ; 8-byte Folded Reload
	bic	w20, w8, w9
	ldr	x8, [x19, #24]
	ldr	x9, [x8]
	cbz	x9, LBB0_43
; %bb.42:
Lloh117:
	adrp	x0, l_.str.12@PAGE
Lloh118:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	orr	w20, w8, w20
	ldr	x8, [x19, #24]
LBB0_43:
	ldp	w10, w9, [sp, #52]              ; 8-byte Folded Reload
	bic	w26, w9, w10
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_45
; %bb.44:
Lloh119:
	adrp	x0, l_.str.13@PAGE
Lloh120:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	orr	w26, w8, w26
	ldr	x8, [x19, #24]
LBB0_45:
	ldp	w10, w9, [sp, #64]              ; 8-byte Folded Reload
	bic	w10, w9, w10
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_47
; %bb.46:
Lloh121:
	adrp	x0, l_.str.14@PAGE
Lloh122:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x22, x28
	mov	x28, x10
	bl	_DRM_DEBUG
	mov	x10, x28
	mov	x28, x22
	ldr	w8, [x24]
	orr	w10, w8, w10
	ldr	x8, [x19, #24]
LBB0_47:
	str	w10, [sp, #68]                  ; 4-byte Folded Spill
	ldp	w10, w9, [sp, #72]              ; 8-byte Folded Reload
	bic	w22, w9, w10
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_49
; %bb.48:
Lloh123:
	adrp	x0, l_.str.15@PAGE
Lloh124:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	orr	w22, w8, w22
	str	w22, [sp, #76]                  ; 4-byte Folded Spill
	ldr	x8, [x19, #24]
	b	LBB0_50
LBB0_49:
	str	w22, [sp, #76]                  ; 4-byte Folded Spill
LBB0_50:
	ldr	w9, [sp, #80]                   ; 4-byte Folded Reload
	ldr	w10, [sp, #32]                  ; 4-byte Folded Reload
	bic	w22, w10, w9
	ldr	x9, [x8, #32]
	str	w26, [sp, #56]                  ; 4-byte Folded Spill
	cbz	x9, LBB0_52
; %bb.51:
Lloh125:
	adrp	x0, l_.str.16@PAGE
Lloh126:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	orr	w22, w8, w22
	ldr	x8, [x19, #24]
LBB0_52:
	ldr	w9, [sp, #84]                   ; 4-byte Folded Reload
	bic	w26, w21, w9
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_54
; %bb.53:
Lloh127:
	adrp	x0, l_.str.17@PAGE
Lloh128:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	orr	w26, w8, w26
LBB0_54:
	bic	w27, w23, w27
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	str	w20, [sp, #44]                  ; 4-byte Folded Spill
	cbz	x9, LBB0_56
; %bb.55:
Lloh129:
	adrp	x0, l_.str.18@PAGE
Lloh130:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	orr	w27, w8, w27
	ldr	x8, [x19, #16]
LBB0_56:
	ldp	w10, w9, [sp, #92]              ; 8-byte Folded Reload
	bic	w20, w9, w10
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_58
; %bb.57:
Lloh131:
	adrp	x0, l_.str.19@PAGE
Lloh132:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	orr	w20, w8, w20
	ldr	x8, [x19, #16]
LBB0_58:
	ldp	w10, w9, [sp, #100]             ; 8-byte Folded Reload
	bic	w24, w9, w10
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_60
; %bb.59:
Lloh133:
	adrp	x0, l_.str.20@PAGE
Lloh134:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	orr	w24, w8, w24
	ldr	x8, [x19, #16]
LBB0_60:
	ldp	w10, w9, [x29, #-100]           ; 8-byte Folded Reload
	bic	w21, w9, w10
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_62
; %bb.61:
Lloh135:
	adrp	x0, l_.str.21@PAGE
Lloh136:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	orr	w21, w8, w21
	ldr	x8, [x19, #16]
LBB0_62:
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	bic	w28, w28, w9
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_64
; %bb.63:
Lloh137:
	adrp	x0, l_.str.22@PAGE
Lloh138:
	add	x0, x0, l_.str.22@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x25]
	orr	w28, w8, w28
	ldr	x8, [x19, #16]
LBB0_64:
	ldp	w10, w9, [x29, #-88]            ; 8-byte Folded Reload
	bic	w25, w9, w10
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_66
; %bb.65:
Lloh139:
	adrp	x0, l_.str.23@PAGE
Lloh140:
	add	x0, x0, l_.str.23@PAGEOFF
	bl	_DRM_DEBUG
Lloh141:
	adrp	x8, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh142:
	ldr	x8, [x8, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
Lloh143:
	ldr	w8, [x8]
	orr	w25, w8, w25
LBB0_66:
	ldr	x8, [x19]
Lloh144:
	adrp	x9, _CHIP_CAYMAN@GOTPAGE
Lloh145:
	ldr	x9, [x9, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh146:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_68
; %bb.67:
Lloh147:
	adrp	x8, _CP_INT_CNTL@GOTPAGE
Lloh148:
	ldr	x8, [x8, _CP_INT_CNTL@GOTPAGEOFF]
Lloh149:
	ldr	x0, [x8]
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_WREG32
	b	LBB0_69
LBB0_68:
	mov	x0, x19
	mov	w1, #0
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_cayman_cp_int_cntl_setup
	mov	x0, x19
	mov	w1, #1
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_cayman_cp_int_cntl_setup
	mov	x0, x19
	mov	w1, #2
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_cayman_cp_int_cntl_setup
LBB0_69:
Lloh150:
	adrp	x8, _DMA_CNTL@GOTPAGE
Lloh151:
	ldr	x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh152:
	ldr	x0, [x8]
	ldr	w1, [sp, #88]                   ; 4-byte Folded Reload
	bl	_WREG32
	ldr	x8, [x19]
Lloh153:
	adrp	x9, _CHIP_CAYMAN@GOTPAGE
Lloh154:
	ldr	x9, [x9, _CHIP_CAYMAN@GOTPAGEOFF]
Lloh155:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_71
; %bb.70:
Lloh156:
	adrp	x8, _CAYMAN_DMA1_CNTL@GOTPAGE
Lloh157:
	ldr	x8, [x8, _CAYMAN_DMA1_CNTL@GOTPAGEOFF]
Lloh158:
	ldr	x0, [x8]
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_WREG32
LBB0_71:
Lloh159:
	adrp	x8, _GRBM_INT_CNTL@GOTPAGE
Lloh160:
	ldr	x8, [x8, _GRBM_INT_CNTL@GOTPAGEOFF]
Lloh161:
	ldr	x0, [x8]
	mov	w1, #0
	bl	_WREG32
Lloh162:
	adrp	x23, _INT_MASK@GOTPAGE
Lloh163:
	ldr	x23, [x23, _INT_MASK@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh164:
	adrp	x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh165:
	ldr	x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh166:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [sp, #60]                   ; 4-byte Folded Reload
	bl	_WREG32
	ldr	x8, [x23]
Lloh167:
	adrp	x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh168:
	ldr	x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh169:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [sp, #48]                   ; 4-byte Folded Reload
	bl	_WREG32
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.lt	LBB0_74
; %bb.72:
	ldr	x8, [x23]
Lloh170:
	adrp	x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh171:
	ldr	x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh172:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_WREG32
	ldr	x8, [x23]
Lloh173:
	adrp	x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh174:
	ldr	x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh175:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_WREG32
	ldr	w8, [x19, #8]
	cmp	w8, #6
	b.lt	LBB0_74
; %bb.73:
	ldr	x8, [x23]
Lloh176:
	adrp	x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh177:
	ldr	x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh178:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_WREG32
	ldr	x8, [x23]
Lloh179:
	adrp	x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh180:
	ldr	x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh181:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_WREG32
LBB0_74:
Lloh182:
	adrp	x23, _GRPH_INT_CONTROL@GOTPAGE
Lloh183:
	ldr	x23, [x23, _GRPH_INT_CONTROL@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh184:
	adrp	x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh185:
	ldr	x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh186:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	ldr	x8, [x23]
Lloh187:
	adrp	x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh188:
	ldr	x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh189:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	ldr	w8, [x19, #8]
	cmp	w8, #4
	b.lt	LBB0_77
; %bb.75:
	ldr	x8, [x23]
Lloh190:
	adrp	x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh191:
	ldr	x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh192:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	ldr	x8, [x23]
Lloh193:
	adrp	x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh194:
	ldr	x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh195:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	ldr	w8, [x19, #8]
	cmp	w8, #6
	b.lt	LBB0_77
; %bb.76:
	ldr	x8, [x23]
Lloh196:
	adrp	x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh197:
	ldr	x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh198:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
	ldr	x8, [x23]
Lloh199:
	adrp	x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh200:
	ldr	x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh201:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	w1, #0
	bl	_WREG32
LBB0_77:
Lloh202:
	adrp	x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh203:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh204:
	ldr	x0, [x8]
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh205:
	adrp	x8, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh206:
	ldr	x8, [x8, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh207:
	ldr	x0, [x8]
	ldr	w1, [sp, #56]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh208:
	adrp	x8, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh209:
	ldr	x8, [x8, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh210:
	ldr	x0, [x8]
	ldr	w1, [sp, #68]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh211:
	adrp	x8, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh212:
	ldr	x8, [x8, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
Lloh213:
	ldr	x0, [x8]
	ldr	w1, [sp, #76]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh214:
	adrp	x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh215:
	ldr	x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh216:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_WREG32
Lloh217:
	adrp	x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh218:
	ldr	x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh219:
	ldr	x0, [x8]
	mov	x1, x26
	bl	_WREG32
Lloh220:
	adrp	x19, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh221:
	ldr	x19, [x19, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh222:
	adrp	x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGE
Lloh223:
	ldr	x9, [x9, _EVERGREEN_CRTC0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh224:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x27
	bl	_WREG32
	ldr	x8, [x19]
Lloh225:
	adrp	x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGE
Lloh226:
	ldr	x9, [x9, _EVERGREEN_CRTC1_REGISTER_OFFSET@GOTPAGEOFF]
Lloh227:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x20
	bl	_WREG32
	ldr	x8, [x19]
Lloh228:
	adrp	x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGE
Lloh229:
	ldr	x9, [x9, _EVERGREEN_CRTC2_REGISTER_OFFSET@GOTPAGEOFF]
Lloh230:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x24
	bl	_WREG32
	ldr	x8, [x19]
Lloh231:
	adrp	x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGE
Lloh232:
	ldr	x9, [x9, _EVERGREEN_CRTC3_REGISTER_OFFSET@GOTPAGEOFF]
Lloh233:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x21
	bl	_WREG32
	ldr	x8, [x19]
Lloh234:
	adrp	x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGE
Lloh235:
	ldr	x9, [x9, _EVERGREEN_CRTC4_REGISTER_OFFSET@GOTPAGEOFF]
Lloh236:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x28
	bl	_WREG32
	ldr	x8, [x19]
Lloh237:
	adrp	x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGE
Lloh238:
	ldr	x9, [x9, _EVERGREEN_CRTC5_REGISTER_OFFSET@GOTPAGEOFF]
Lloh239:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x25
	bl	_WREG32
LBB0_78:
	mov	w0, #0
LBB0_79:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_80:
	str	wzr, [sp, #60]                  ; 4-byte Folded Spill
	b	LBB0_26
LBB0_81:
	str	wzr, [sp, #48]                  ; 4-byte Folded Spill
	b	LBB0_29
LBB0_82:
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_32
LBB0_83:
	str	wzr, [sp, #24]                  ; 4-byte Folded Spill
	b	LBB0_35
LBB0_84:
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
	b	LBB0_38
LBB0_85:
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpAdd	Lloh127, Lloh128
	.loh AdrpAdd	Lloh129, Lloh130
	.loh AdrpAdd	Lloh131, Lloh132
	.loh AdrpAdd	Lloh133, Lloh134
	.loh AdrpAdd	Lloh135, Lloh136
	.loh AdrpAdd	Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh167, Lloh168, Lloh169
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGot	Lloh162, Lloh163
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh173, Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh170, Lloh171, Lloh172
	.loh AdrpLdrGotLdr	Lloh179, Lloh180, Lloh181
	.loh AdrpLdrGotLdr	Lloh176, Lloh177, Lloh178
	.loh AdrpLdrGotLdr	Lloh187, Lloh188, Lloh189
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh186
	.loh AdrpLdrGot	Lloh182, Lloh183
	.loh AdrpLdrGotLdr	Lloh193, Lloh194, Lloh195
	.loh AdrpLdrGotLdr	Lloh190, Lloh191, Lloh192
	.loh AdrpLdrGotLdr	Lloh199, Lloh200, Lloh201
	.loh AdrpLdrGotLdr	Lloh196, Lloh197, Lloh198
	.loh AdrpLdrGotLdr	Lloh237, Lloh238, Lloh239
	.loh AdrpLdrGotLdr	Lloh234, Lloh235, Lloh236
	.loh AdrpLdrGotLdr	Lloh231, Lloh232, Lloh233
	.loh AdrpLdrGotLdr	Lloh228, Lloh229, Lloh230
	.loh AdrpLdrGotLdr	Lloh225, Lloh226, Lloh227
	.loh AdrpLdrGotLdr	Lloh222, Lloh223, Lloh224
	.loh AdrpLdrGot	Lloh220, Lloh221
	.loh AdrpLdrGotLdr	Lloh217, Lloh218, Lloh219
	.loh AdrpLdrGotLdr	Lloh214, Lloh215, Lloh216
	.loh AdrpLdrGotLdr	Lloh211, Lloh212, Lloh213
	.loh AdrpLdrGotLdr	Lloh208, Lloh209, Lloh210
	.loh AdrpLdrGotLdr	Lloh205, Lloh206, Lloh207
	.loh AdrpLdrGotLdr	Lloh202, Lloh203, Lloh204
	.cfi_endproc
                                        ; -- End function
	.comm	_CNTX_BUSY_INT_ENABLE,4,2       ; @CNTX_BUSY_INT_ENABLE
	.comm	_CNTX_EMPTY_INT_ENABLE,4,2      ; @CNTX_EMPTY_INT_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't enable IRQ/MSI because no handler is installed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DC_HPD1_INT_CONTROL,8,3        ; @DC_HPD1_INT_CONTROL
	.comm	_DC_HPDx_INT_EN,4,2             ; @DC_HPDx_INT_EN
	.comm	_DC_HPD2_INT_CONTROL,8,3        ; @DC_HPD2_INT_CONTROL
	.comm	_DC_HPD3_INT_CONTROL,8,3        ; @DC_HPD3_INT_CONTROL
	.comm	_DC_HPD4_INT_CONTROL,8,3        ; @DC_HPD4_INT_CONTROL
	.comm	_DC_HPD5_INT_CONTROL,8,3        ; @DC_HPD5_INT_CONTROL
	.comm	_DC_HPD6_INT_CONTROL,8,3        ; @DC_HPD6_INT_CONTROL
	.comm	_AFMT_AUDIO_PACKET_CONTROL,8,3  ; @AFMT_AUDIO_PACKET_CONTROL
	.comm	_EVERGREEN_CRTC0_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC0_REGISTER_OFFSET
	.comm	_AFMT_AZ_FORMAT_WTRIG_MASK,4,2  ; @AFMT_AZ_FORMAT_WTRIG_MASK
	.comm	_EVERGREEN_CRTC1_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC1_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC2_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC2_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC3_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC3_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC4_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC4_REGISTER_OFFSET
	.comm	_EVERGREEN_CRTC5_REGISTER_OFFSET,8,3 ; @EVERGREEN_CRTC5_REGISTER_OFFSET
	.comm	_DMA_CNTL,8,3                   ; @DMA_CNTL
	.comm	_TRAP_ENABLE,4,2                ; @TRAP_ENABLE
	.comm	_CHIP_CAYMAN,8,3                ; @CHIP_CAYMAN
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"evergreen_irq_set: sw int gfx\n"

	.comm	_TIME_STAMP_INT_ENABLE,4,2      ; @TIME_STAMP_INT_ENABLE
	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP1_INDEX
l_.str.2:                               ; @.str.2
	.asciz	"evergreen_irq_set: sw int cp1\n"

	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP2_INDEX
l_.str.3:                               ; @.str.3
	.asciz	"evergreen_irq_set: sw int cp2\n"

	.comm	_RB_INT_ENABLE,4,2              ; @RB_INT_ENABLE
	.comm	_R600_RING_TYPE_DMA_INDEX,8,3   ; @R600_RING_TYPE_DMA_INDEX
l_.str.4:                               ; @.str.4
	.asciz	"r600_irq_set: sw int dma\n"

	.comm	_CAYMAN_DMA1_CNTL,8,3           ; @CAYMAN_DMA1_CNTL
	.comm	_CAYMAN_RING_TYPE_DMA1_INDEX,8,3 ; @CAYMAN_RING_TYPE_DMA1_INDEX
l_.str.5:                               ; @.str.5
	.asciz	"r600_irq_set: sw int dma1\n"

l_.str.6:                               ; @.str.6
	.asciz	"evergreen_irq_set: vblank 0\n"

	.comm	_VBLANK_INT_MASK,4,2            ; @VBLANK_INT_MASK
l_.str.7:                               ; @.str.7
	.asciz	"evergreen_irq_set: vblank 1\n"

l_.str.8:                               ; @.str.8
	.asciz	"evergreen_irq_set: vblank 2\n"

l_.str.9:                               ; @.str.9
	.asciz	"evergreen_irq_set: vblank 3\n"

l_.str.10:                              ; @.str.10
	.asciz	"evergreen_irq_set: vblank 4\n"

l_.str.11:                              ; @.str.11
	.asciz	"evergreen_irq_set: vblank 5\n"

l_.str.12:                              ; @.str.12
	.asciz	"evergreen_irq_set: hpd 1\n"

l_.str.13:                              ; @.str.13
	.asciz	"evergreen_irq_set: hpd 2\n"

l_.str.14:                              ; @.str.14
	.asciz	"evergreen_irq_set: hpd 3\n"

l_.str.15:                              ; @.str.15
	.asciz	"evergreen_irq_set: hpd 4\n"

l_.str.16:                              ; @.str.16
	.asciz	"evergreen_irq_set: hpd 5\n"

l_.str.17:                              ; @.str.17
	.asciz	"evergreen_irq_set: hpd 6\n"

l_.str.18:                              ; @.str.18
	.asciz	"evergreen_irq_set: hdmi 0\n"

l_.str.19:                              ; @.str.19
	.asciz	"evergreen_irq_set: hdmi 1\n"

l_.str.20:                              ; @.str.20
	.asciz	"evergreen_irq_set: hdmi 2\n"

l_.str.21:                              ; @.str.21
	.asciz	"evergreen_irq_set: hdmi 3\n"

l_.str.22:                              ; @.str.22
	.asciz	"evergreen_irq_set: hdmi 4\n"

l_.str.23:                              ; @.str.23
	.asciz	"evergreen_irq_set: hdmi 5\n"

	.comm	_CP_INT_CNTL,8,3                ; @CP_INT_CNTL
	.comm	_GRBM_INT_CNTL,8,3              ; @GRBM_INT_CNTL
	.comm	_INT_MASK,8,3                   ; @INT_MASK
	.comm	_GRPH_INT_CONTROL,8,3           ; @GRPH_INT_CONTROL
.subsections_via_symbols
