	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_irq_set                   ## -- Begin function r600_irq_set
	.p2align	4, 0x90
_r600_irq_set:                          ## @r600_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	$56, %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_1
## %bb.2:
	movq	%rdi, %r13
	cmpl	$0, 64(%rdi)
	je	LBB0_3
## %bb.4:
	movq	_CNTX_BUSY_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	_CNTX_EMPTY_INT_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE3
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_DC_HPD1_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD2_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD3_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD4_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE32
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_DC_HPD5_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_DC_HPD6_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	_AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %r14
	movq	_DCE3_HDMI_OFFSET0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_RREG32
	movq	_AFMT_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_DCE3_HDMI_OFFSET1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_60
LBB0_3:
	movq	%r13, %rdi
	callq	_r600_disable_interrupts
	movq	%r13, %rdi
	callq	_r600_disable_interrupt_state
	jmp	LBB0_59
LBB0_8:
	movq	_DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	_DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	_DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	_HDMI0_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movq	_HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_HDMI1_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_7:
	movq	_HDMI0_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movq	_HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_9:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_10:
	callq	_RREG32
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	_DMA_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	(%r13), %rax
	movq	_CHIP_R600@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%bl
	movq	_CHIP_RV770@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	setl	%cl
	andb	%bl, %cl
	jne	LBB0_12
## %bb.11:
	movl	$0, -72(%rbp)                   ## 4-byte Folded Spill
	cmpq	%rdx, %rax
	jl	LBB0_16
LBB0_12:
	testb	%cl, %cl
	je	LBB0_13
## %bb.14:
	movq	_CG_THERMAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_RV770_CG_THERMAL_INT@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rdi
	callq	_RREG32
	movq	_THERM_INT_MASK_HIGH@GOTPCREL(%rip), %rcx
	movq	_THERM_INT_MASK_LOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
LBB0_16:
	cmpq	$0, 48(%r13)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_THERM_INT_MASK_HIGH@GOTPCREL(%rip), %rax
	movq	_THERM_INT_MASK_LOW@GOTPCREL(%rip), %rcx
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
LBB0_18:
	notl	%r12d
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	40(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_RB_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
LBB0_20:
	andl	%r12d, %r15d
	movq	_R600_RING_TYPE_DMA_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	40(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG
	orl	(%r14), %r15d
LBB0_22:
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	movq	32(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_25
## %bb.23:
	movq	24(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_24
LBB0_25:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_D1MODE_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_26:
	movq	32(%r13), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_28
## %bb.27:
	movq	24(%r13), %rdi
	addq	$4, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_29
LBB0_28:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_D2MODE_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_29:
	movq	16(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.30:
	leaq	L_.str.6(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
LBB0_31:
	cmpq	$0, 8(%rax)
	je	LBB0_33
## %bb.32:
	leaq	L_.str.7(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
LBB0_33:
	cmpq	$0, 16(%rax)
	je	LBB0_35
## %bb.34:
	leaq	L_.str.8(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
LBB0_35:
	cmpq	$0, 24(%rax)
	je	LBB0_37
## %bb.36:
	leaq	L_.str.9(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
LBB0_37:
	cmpq	$0, 32(%rax)
	je	LBB0_39
## %bb.38:
	leaq	L_.str.10(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
LBB0_39:
	cmpq	$0, 40(%rax)
	je	LBB0_41
## %bb.40:
	leaq	L_.str.11(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_41:
	notl	%r12d
	movq	8(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_43
## %bb.42:
	leaq	L_.str.12(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rax
LBB0_43:
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	andl	%r12d, %ecx
	cmpq	$0, 8(%rax)
	je	LBB0_44
## %bb.45:
	leaq	L_.str.12(%rip), %rdi
	movl	%ecx, %ebx
	callq	_DRM_DEBUG
	movq	_HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	jmp	LBB0_46
LBB0_44:
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
LBB0_46:
	movq	_CP_INT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DMA_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_DxMODE_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_WREG32
	movq	_D1GRPH_INTERRUPT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_DxGRPH_PFLIP_INT_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_WREG32
	movq	_D2GRPH_INTERRUPT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %esi
	callq	_WREG32
	movq	_GRBM_INT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE3
	testq	%rax, %rax
	je	LBB0_50
## %bb.47:
	movq	_DC_HPD1_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD2_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD3_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD4_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	%r13, %rdi
	callq	_ASIC_IS_DCE32
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:
	movq	_DC_HPD5_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HPD6_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_AFMT_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rbx
	movq	_DCE3_HDMI_OFFSET0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DCE3_HDMI_OFFSET1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	jmp	LBB0_52
LBB0_50:
	movq	_DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_HDMI0_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_HDMI1_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_51
LBB0_49:
	movq	_HDMI0_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPCREL(%rip), %rax
LBB0_51:
	movq	(%rax), %rdi
LBB0_52:
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	(%r13), %rax
	movq	_CHIP_R600@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setg	%bl
	movq	_CHIP_RV770@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	setl	%cl
	andb	%bl, %cl
	jne	LBB0_54
## %bb.53:
	cmpq	%rdx, %rax
	jl	LBB0_58
LBB0_54:
	testb	%cl, %cl
	je	LBB0_55
## %bb.56:
	movq	_CG_THERMAL_INT@GOTPCREL(%rip), %rax
	jmp	LBB0_57
LBB0_55:
	movq	_RV770_CG_THERMAL_INT@GOTPCREL(%rip), %rax
LBB0_57:
	movq	(%rax), %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
LBB0_58:
	movq	_R_000E50_SRBM_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
LBB0_59:
	xorl	%eax, %eax
LBB0_60:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	xorl	%r14d, %r14d
	jmp	LBB0_26
	.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	_DCE3_HDMI_OFFSET0,8,3          ## @DCE3_HDMI_OFFSET0
	.comm	_AFMT_AZ_FORMAT_WTRIG_MASK,4,2  ## @AFMT_AZ_FORMAT_WTRIG_MASK
	.comm	_DCE3_HDMI_OFFSET1,8,3          ## @DCE3_HDMI_OFFSET1
	.comm	_HDMI0_AUDIO_PACKET_CONTROL,8,3 ## @HDMI0_AUDIO_PACKET_CONTROL
	.comm	_HDMI0_AZ_FORMAT_WTRIG_MASK,4,2 ## @HDMI0_AZ_FORMAT_WTRIG_MASK
	.comm	_DCE3_HDMI1_AUDIO_PACKET_CONTROL,8,3 ## @DCE3_HDMI1_AUDIO_PACKET_CONTROL
	.comm	_DC_HOT_PLUG_DETECT1_INT_CONTROL,8,3 ## @DC_HOT_PLUG_DETECT1_INT_CONTROL
	.comm	_DC_HOT_PLUG_DETECT2_INT_CONTROL,8,3 ## @DC_HOT_PLUG_DETECT2_INT_CONTROL
	.comm	_DC_HOT_PLUG_DETECT3_INT_CONTROL,8,3 ## @DC_HOT_PLUG_DETECT3_INT_CONTROL
	.comm	_HDMI1_AUDIO_PACKET_CONTROL,8,3 ## @HDMI1_AUDIO_PACKET_CONTROL
	.comm	_DMA_CNTL,8,3                   ## @DMA_CNTL
	.comm	_TRAP_ENABLE,4,2                ## @TRAP_ENABLE
	.comm	_CHIP_R600,8,3                  ## @CHIP_R600
	.comm	_CHIP_RV770,8,3                 ## @CHIP_RV770
	.comm	_CG_THERMAL_INT,8,3             ## @CG_THERMAL_INT
	.comm	_THERM_INT_MASK_HIGH,4,2        ## @THERM_INT_MASK_HIGH
	.comm	_THERM_INT_MASK_LOW,4,2         ## @THERM_INT_MASK_LOW
	.comm	_RV770_CG_THERMAL_INT,8,3       ## @RV770_CG_THERMAL_INT
L_.str.1:                               ## @.str.1
	.asciz	"dpm thermal\n"

	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
L_.str.2:                               ## @.str.2
	.asciz	"r600_irq_set: sw int\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"r600_irq_set: vblank 0\n"

	.comm	_D1MODE_VBLANK_INT_MASK,4,2     ## @D1MODE_VBLANK_INT_MASK
L_.str.5:                               ## @.str.5
	.asciz	"r600_irq_set: vblank 1\n"

	.comm	_D2MODE_VBLANK_INT_MASK,4,2     ## @D2MODE_VBLANK_INT_MASK
L_.str.6:                               ## @.str.6
	.asciz	"r600_irq_set: hpd 1\n"

L_.str.7:                               ## @.str.7
	.asciz	"r600_irq_set: hpd 2\n"

L_.str.8:                               ## @.str.8
	.asciz	"r600_irq_set: hpd 3\n"

L_.str.9:                               ## @.str.9
	.asciz	"r600_irq_set: hpd 4\n"

L_.str.10:                              ## @.str.10
	.asciz	"r600_irq_set: hpd 5\n"

L_.str.11:                              ## @.str.11
	.asciz	"r600_irq_set: hpd 6\n"

L_.str.12:                              ## @.str.12
	.asciz	"r600_irq_set: hdmi 0\n"

	.comm	_CP_INT_CNTL,8,3                ## @CP_INT_CNTL
	.comm	_DxMODE_INT_MASK,8,3            ## @DxMODE_INT_MASK
	.comm	_D1GRPH_INTERRUPT_CONTROL,8,3   ## @D1GRPH_INTERRUPT_CONTROL
	.comm	_DxGRPH_PFLIP_INT_MASK,4,2      ## @DxGRPH_PFLIP_INT_MASK
	.comm	_D2GRPH_INTERRUPT_CONTROL,8,3   ## @D2GRPH_INTERRUPT_CONTROL
	.comm	_GRBM_INT_CNTL,8,3              ## @GRBM_INT_CNTL
	.comm	_R_000E50_SRBM_STATUS,8,3       ## @R_000E50_SRBM_STATUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_irq_set                   ; -- Begin function r600_irq_set
	.p2align	2
_r600_irq_set:                          ; @r600_irq_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _CNTX_EMPTY_INT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CNTX_EMPTY_INT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x0, x19
	bl	_ASIC_IS_DCE3
Lloh6:
	adrp	x27, _DC_HPDx_INT_EN@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DC_HPDx_INT_EN@GOTPAGEOFF]
Lloh8:
	adrp	x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh10:
	adrp	x22, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh12:
	adrp	x21, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh14:
	adrp	x20, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh15:
	ldr	x20, [x20, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w8, w0, w8
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x0, [x22]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w23, w0, w8
	ldr	x0, [x21]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w8, w0, w8
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	ldr	x0, [x20]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w8, w0, w8
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_ASIC_IS_DCE32
	cbz	x0, LBB0_8
; %bb.4:
Lloh16:
	adrp	x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w8, w0, w8
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh19:
	adrp	x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x27]
Lloh22:
	adrp	x21, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh23:
	ldr	x21, [x21, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	bic	w8, w0, w8
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
	ldr	x8, [x21]
Lloh24:
	adrp	x9, _DCE3_HDMI_OFFSET0@GOTPAGE
Lloh25:
	ldr	x9, [x9, _DCE3_HDMI_OFFSET0@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh27:
	adrp	x20, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh28:
	ldr	x20, [x20, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
	bic	w8, w0, w8
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x21]
Lloh29:
	adrp	x9, _DCE3_HDMI_OFFSET1@GOTPAGE
Lloh30:
	ldr	x9, [x9, _DCE3_HDMI_OFFSET1@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x0, x9, x8
	b	LBB0_10
LBB0_5:
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_52
LBB0_6:
	mov	x0, x19
	bl	_r600_disable_interrupts
	mov	x0, x19
	bl	_r600_disable_interrupt_state
	b	LBB0_51
LBB0_7:
Lloh37:
	adrp	x8, _DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w8, w0, w8
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
Lloh40:
	adrp	x8, _DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGEOFF]
Lloh42:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w23, w0, w8
Lloh43:
	adrp	x8, _DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPAGEOFF]
Lloh45:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x27]
	bic	w8, w0, w8
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
Lloh46:
	adrp	x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh48:
	ldr	x0, [x8]
	bl	_RREG32
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
Lloh49:
	adrp	x20, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh50:
	ldr	x20, [x20, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
	bic	w8, w0, w8
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh51:
	adrp	x8, _HDMI1_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HDMI1_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh53:
	adrp	x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh55:
	ldr	x0, [x8]
	bl	_RREG32
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
Lloh56:
	adrp	x20, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh57:
	ldr	x20, [x20, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x20]
	bic	w8, w0, w8
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh58:
	adrp	x8, _DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
LBB0_10:
	bl	_RREG32
	ldr	w8, [x20]
	stp	w8, w0, [sp, #12]               ; 8-byte Folded Spill
Lloh60:
	adrp	x8, _DMA_CNTL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh62:
	ldr	x0, [x8]
	bl	_RREG32
	mov	x24, x0
Lloh63:
	adrp	x21, _TRAP_ENABLE@GOTPAGE
Lloh64:
	ldr	x21, [x21, _TRAP_ENABLE@GOTPAGEOFF]
	ldr	w22, [x21]
	ldr	x8, [x19]
Lloh65:
	adrp	x9, _CHIP_R600@GOTPAGE
Lloh66:
	ldr	x9, [x9, _CHIP_R600@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
Lloh68:
	adrp	x10, _CHIP_RV770@GOTPAGE
Lloh69:
	ldr	x10, [x10, _CHIP_RV770@GOTPAGEOFF]
	cmp	x8, x9
Lloh70:
	ldr	x10, [x10]
	ccmp	x8, x10, #0, gt
	cset	w9, lt
Lloh71:
	adrp	x11, _CG_THERMAL_INT@GOTPAGE
Lloh72:
	ldr	x11, [x11, _CG_THERMAL_INT@GOTPAGEOFF]
Lloh73:
	adrp	x12, _RV770_CG_THERMAL_INT@GOTPAGE
Lloh74:
	ldr	x12, [x12, _RV770_CG_THERMAL_INT@GOTPAGEOFF]
Lloh75:
	adrp	x20, _THERM_INT_MASK_HIGH@GOTPAGE
Lloh76:
	ldr	x20, [x20, _THERM_INT_MASK_HIGH@GOTPAGEOFF]
Lloh77:
	adrp	x28, _THERM_INT_MASK_LOW@GOTPAGE
Lloh78:
	ldr	x28, [x28, _THERM_INT_MASK_LOW@GOTPAGEOFF]
	b.lt	LBB0_13
; %bb.11:
	cmp	x8, x10
	b.ge	LBB0_13
; %bb.12:
	str	wzr, [sp, #40]                  ; 4-byte Folded Spill
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_14
	b	LBB0_15
LBB0_13:
	cmp	w9, #0
	csel	x8, x11, x12, ne
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x20]
	ldr	w9, [x28]
	orr	w8, w9, w8
	bic	w8, w0, w8
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_15
LBB0_14:
Lloh79:
	adrp	x0, l_.str.1@PAGE
Lloh80:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	ldr	w9, [x28]
	ldr	w10, [sp, #40]                  ; 4-byte Folded Reload
	orr	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [sp, #40]                   ; 4-byte Folded Spill
LBB0_15:
	orr	w25, w26, w25
	ldr	x8, [x19, #40]
Lloh81:
	adrp	x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh82:
	ldr	x9, [x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_17
; %bb.16:
Lloh84:
	adrp	x0, l_.str.2@PAGE
Lloh85:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
Lloh86:
	adrp	x8, _RB_INT_ENABLE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _RB_INT_ENABLE@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	orr	w8, w8, w25
Lloh89:
	adrp	x9, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh90:
	ldr	x9, [x9, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	orr	w25, w8, w9
LBB0_17:
	bic	w26, w24, w22
	ldr	x8, [x19, #40]
Lloh92:
	adrp	x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGE
Lloh93:
	ldr	x9, [x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGEOFF]
Lloh94:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_19
; %bb.18:
Lloh95:
	adrp	x0, l_.str.3@PAGE
Lloh96:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x21]
	orr	w26, w8, w26
LBB0_19:
	mov	x22, x23
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldp	w23, w21, [sp, #24]             ; 8-byte Folded Reload
	cbnz	x8, LBB0_21
; %bb.20:
	ldr	x0, [x19, #24]
	bl	_atomic_read
	cbz	x0, LBB0_53
LBB0_21:
Lloh97:
	adrp	x0, l_.str.4@PAGE
Lloh98:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG
Lloh99:
	adrp	x8, _D1MODE_VBLANK_INT_MASK@GOTPAGE
Lloh100:
	ldr	x8, [x8, _D1MODE_VBLANK_INT_MASK@GOTPAGEOFF]
Lloh101:
	ldr	w24, [x8]
LBB0_22:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_24
; %bb.23:
	ldr	x8, [x19, #24]
	add	x0, x8, #4
	bl	_atomic_read
	cbz	x0, LBB0_25
LBB0_24:
Lloh102:
	adrp	x0, l_.str.5@PAGE
Lloh103:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG
Lloh104:
	adrp	x8, _D2MODE_VBLANK_INT_MASK@GOTPAGE
Lloh105:
	ldr	x8, [x8, _D2MODE_VBLANK_INT_MASK@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	orr	w24, w8, w24
LBB0_25:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_27
; %bb.26:
Lloh107:
	adrp	x0, l_.str.6@PAGE
Lloh108:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x27]
	orr	w21, w8, w21
	ldr	x8, [x19, #16]
LBB0_27:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_29
; %bb.28:
Lloh109:
	adrp	x0, l_.str.7@PAGE
Lloh110:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x27]
	orr	w22, w8, w22
	ldr	x8, [x19, #16]
LBB0_29:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_31
; %bb.30:
Lloh111:
	adrp	x0, l_.str.8@PAGE
Lloh112:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x27]
	orr	w23, w8, w23
	ldr	x8, [x19, #16]
LBB0_31:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_33
; %bb.32:
Lloh113:
	adrp	x0, l_.str.9@PAGE
Lloh114:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x27]
	ldr	w9, [sp, #44]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #16]
LBB0_33:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_35
; %bb.34:
Lloh115:
	adrp	x0, l_.str.10@PAGE
Lloh116:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x27]
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #36]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #16]
LBB0_35:
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_37
; %bb.36:
Lloh117:
	adrp	x0, l_.str.11@PAGE
Lloh118:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x27]
	ldr	w9, [sp, #32]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #32]                   ; 4-byte Folded Spill
LBB0_37:
	ldr	w27, [sp, #20]                  ; 4-byte Folded Reload
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_39
; %bb.38:
Lloh119:
	adrp	x0, l_.str.12@PAGE
Lloh120:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DRM_DEBUG
Lloh121:
	adrp	x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh122:
	ldr	x8, [x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
Lloh123:
	ldr	w8, [x8]
	orr	w27, w8, w27
	ldr	x8, [x19, #8]
LBB0_39:
	ldp	w10, w9, [sp, #12]              ; 8-byte Folded Reload
	bic	w28, w9, w10
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_41
; %bb.40:
Lloh124:
	adrp	x0, l_.str.12@PAGE
Lloh125:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_DRM_DEBUG
Lloh126:
	adrp	x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh127:
	ldr	x8, [x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
Lloh128:
	ldr	w8, [x8]
	orr	w28, w8, w28
LBB0_41:
Lloh129:
	adrp	x8, _CP_INT_CNTL@GOTPAGE
Lloh130:
	ldr	x8, [x8, _CP_INT_CNTL@GOTPAGEOFF]
Lloh131:
	ldr	x0, [x8]
	mov	x1, x25
	bl	_WREG32
Lloh132:
	adrp	x8, _DMA_CNTL@GOTPAGE
Lloh133:
	ldr	x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh134:
	ldr	x0, [x8]
	mov	x1, x26
	bl	_WREG32
Lloh135:
	adrp	x8, _DxMODE_INT_MASK@GOTPAGE
Lloh136:
	ldr	x8, [x8, _DxMODE_INT_MASK@GOTPAGEOFF]
Lloh137:
	ldr	x0, [x8]
	mov	x1, x24
	bl	_WREG32
Lloh138:
	adrp	x8, _D1GRPH_INTERRUPT_CONTROL@GOTPAGE
Lloh139:
	ldr	x8, [x8, _D1GRPH_INTERRUPT_CONTROL@GOTPAGEOFF]
Lloh140:
	ldr	x0, [x8]
Lloh141:
	adrp	x20, _DxGRPH_PFLIP_INT_MASK@GOTPAGE
Lloh142:
	ldr	x20, [x20, _DxGRPH_PFLIP_INT_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_WREG32
Lloh143:
	adrp	x8, _D2GRPH_INTERRUPT_CONTROL@GOTPAGE
Lloh144:
	ldr	x8, [x8, _D2GRPH_INTERRUPT_CONTROL@GOTPAGEOFF]
Lloh145:
	ldr	x0, [x8]
	ldr	w1, [x20]
	bl	_WREG32
Lloh146:
	adrp	x8, _GRBM_INT_CNTL@GOTPAGE
Lloh147:
	ldr	x8, [x8, _GRBM_INT_CNTL@GOTPAGEOFF]
Lloh148:
	ldr	x0, [x8]
	mov	w1, #0
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_DCE3
	cbz	x0, LBB0_44
; %bb.42:
Lloh149:
	adrp	x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh150:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh151:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh152:
	adrp	x8, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh153:
	ldr	x8, [x8, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh154:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_WREG32
Lloh155:
	adrp	x8, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh156:
	ldr	x8, [x8, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh157:
	ldr	x0, [x8]
	mov	x1, x23
	bl	_WREG32
Lloh158:
	adrp	x8, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh159:
	ldr	x8, [x8, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
Lloh160:
	ldr	x0, [x8]
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_DCE32
	cbz	x0, LBB0_45
; %bb.43:
Lloh161:
	adrp	x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh162:
	ldr	x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh163:
	ldr	x0, [x8]
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh164:
	adrp	x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh165:
	ldr	x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh166:
	ldr	x0, [x8]
	ldr	w1, [sp, #32]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh167:
	adrp	x20, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh168:
	ldr	x20, [x20, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh169:
	adrp	x9, _DCE3_HDMI_OFFSET0@GOTPAGE
Lloh170:
	ldr	x9, [x9, _DCE3_HDMI_OFFSET0@GOTPAGEOFF]
Lloh171:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x27
	bl	_WREG32
	ldr	x8, [x20]
Lloh172:
	adrp	x9, _DCE3_HDMI_OFFSET1@GOTPAGE
Lloh173:
	ldr	x9, [x9, _DCE3_HDMI_OFFSET1@GOTPAGEOFF]
Lloh174:
	ldr	x9, [x9]
	add	x0, x9, x8
	b	LBB0_47
LBB0_44:
Lloh175:
	adrp	x8, _DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGE
Lloh176:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGEOFF]
Lloh177:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh178:
	adrp	x8, _DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGE
Lloh179:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGEOFF]
Lloh180:
	ldr	x0, [x8]
	mov	x1, x22
	bl	_WREG32
Lloh181:
	adrp	x8, _DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPAGE
Lloh182:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPAGEOFF]
Lloh183:
	ldr	x0, [x8]
	mov	x1, x23
	bl	_WREG32
Lloh184:
	adrp	x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh185:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh186:
	ldr	x0, [x8]
	mov	x1, x27
	bl	_WREG32
Lloh187:
	adrp	x8, _HDMI1_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh188:
	ldr	x8, [x8, _HDMI1_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	b	LBB0_46
LBB0_45:
Lloh189:
	adrp	x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh190:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh191:
	ldr	x0, [x8]
	mov	x1, x27
	bl	_WREG32
Lloh192:
	adrp	x8, _DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh193:
	ldr	x8, [x8, _DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
LBB0_46:
	ldr	x0, [x8]
LBB0_47:
	mov	x1, x28
	bl	_WREG32
	ldr	x8, [x19]
Lloh194:
	adrp	x9, _CHIP_R600@GOTPAGE
Lloh195:
	ldr	x9, [x9, _CHIP_R600@GOTPAGEOFF]
Lloh196:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh197:
	adrp	x9, _CHIP_RV770@GOTPAGE
Lloh198:
	ldr	x9, [x9, _CHIP_RV770@GOTPAGEOFF]
Lloh199:
	ldr	x10, [x9]
	ccmp	x8, x10, #0, gt
	cset	w9, lt
	b.lt	LBB0_49
; %bb.48:
	cmp	x8, x10
	b.lt	LBB0_50
LBB0_49:
	cmp	w9, #0
Lloh200:
	adrp	x8, _CG_THERMAL_INT@GOTPAGE
Lloh201:
	ldr	x8, [x8, _CG_THERMAL_INT@GOTPAGEOFF]
Lloh202:
	adrp	x9, _RV770_CG_THERMAL_INT@GOTPAGE
Lloh203:
	ldr	x9, [x9, _RV770_CG_THERMAL_INT@GOTPAGEOFF]
	csel	x8, x8, x9, ne
	ldr	x0, [x8]
	ldr	w1, [sp, #40]                   ; 4-byte Folded Reload
	bl	_WREG32
LBB0_50:
Lloh204:
	adrp	x8, _R_000E50_SRBM_STATUS@GOTPAGE
Lloh205:
	ldr	x8, [x8, _R_000E50_SRBM_STATUS@GOTPAGEOFF]
Lloh206:
	ldr	x0, [x8]
	bl	_RREG32
LBB0_51:
	mov	w0, #0
LBB0_52:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_53:
	mov	w24, #0
	b	LBB0_22
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.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 AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.loh AdrpAdd	Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh158, Lloh159, Lloh160
	.loh AdrpLdrGotLdr	Lloh155, Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGot	Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh164, Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh161, Lloh162, Lloh163
	.loh AdrpLdrGot	Lloh187, Lloh188
	.loh AdrpLdrGotLdr	Lloh184, Lloh185, Lloh186
	.loh AdrpLdrGotLdr	Lloh181, Lloh182, Lloh183
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGot	Lloh192, Lloh193
	.loh AdrpLdrGotLdr	Lloh189, Lloh190, Lloh191
	.loh AdrpLdrGotLdr	Lloh197, Lloh198, Lloh199
	.loh AdrpLdrGotLdr	Lloh194, Lloh195, Lloh196
	.loh AdrpLdrGot	Lloh202, Lloh203
	.loh AdrpLdrGot	Lloh200, Lloh201
	.loh AdrpLdrGotLdr	Lloh204, Lloh205, Lloh206
	.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	_DCE3_HDMI_OFFSET0,8,3          ; @DCE3_HDMI_OFFSET0
	.comm	_AFMT_AZ_FORMAT_WTRIG_MASK,4,2  ; @AFMT_AZ_FORMAT_WTRIG_MASK
	.comm	_DCE3_HDMI_OFFSET1,8,3          ; @DCE3_HDMI_OFFSET1
	.comm	_HDMI0_AUDIO_PACKET_CONTROL,8,3 ; @HDMI0_AUDIO_PACKET_CONTROL
	.comm	_HDMI0_AZ_FORMAT_WTRIG_MASK,4,2 ; @HDMI0_AZ_FORMAT_WTRIG_MASK
	.comm	_DCE3_HDMI1_AUDIO_PACKET_CONTROL,8,3 ; @DCE3_HDMI1_AUDIO_PACKET_CONTROL
	.comm	_DC_HOT_PLUG_DETECT1_INT_CONTROL,8,3 ; @DC_HOT_PLUG_DETECT1_INT_CONTROL
	.comm	_DC_HOT_PLUG_DETECT2_INT_CONTROL,8,3 ; @DC_HOT_PLUG_DETECT2_INT_CONTROL
	.comm	_DC_HOT_PLUG_DETECT3_INT_CONTROL,8,3 ; @DC_HOT_PLUG_DETECT3_INT_CONTROL
	.comm	_HDMI1_AUDIO_PACKET_CONTROL,8,3 ; @HDMI1_AUDIO_PACKET_CONTROL
	.comm	_DMA_CNTL,8,3                   ; @DMA_CNTL
	.comm	_TRAP_ENABLE,4,2                ; @TRAP_ENABLE
	.comm	_CHIP_R600,8,3                  ; @CHIP_R600
	.comm	_CHIP_RV770,8,3                 ; @CHIP_RV770
	.comm	_CG_THERMAL_INT,8,3             ; @CG_THERMAL_INT
	.comm	_THERM_INT_MASK_HIGH,4,2        ; @THERM_INT_MASK_HIGH
	.comm	_THERM_INT_MASK_LOW,4,2         ; @THERM_INT_MASK_LOW
	.comm	_RV770_CG_THERMAL_INT,8,3       ; @RV770_CG_THERMAL_INT
l_.str.1:                               ; @.str.1
	.asciz	"dpm thermal\n"

	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
l_.str.2:                               ; @.str.2
	.asciz	"r600_irq_set: sw int\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"r600_irq_set: vblank 0\n"

	.comm	_D1MODE_VBLANK_INT_MASK,4,2     ; @D1MODE_VBLANK_INT_MASK
l_.str.5:                               ; @.str.5
	.asciz	"r600_irq_set: vblank 1\n"

	.comm	_D2MODE_VBLANK_INT_MASK,4,2     ; @D2MODE_VBLANK_INT_MASK
l_.str.6:                               ; @.str.6
	.asciz	"r600_irq_set: hpd 1\n"

l_.str.7:                               ; @.str.7
	.asciz	"r600_irq_set: hpd 2\n"

l_.str.8:                               ; @.str.8
	.asciz	"r600_irq_set: hpd 3\n"

l_.str.9:                               ; @.str.9
	.asciz	"r600_irq_set: hpd 4\n"

l_.str.10:                              ; @.str.10
	.asciz	"r600_irq_set: hpd 5\n"

l_.str.11:                              ; @.str.11
	.asciz	"r600_irq_set: hpd 6\n"

l_.str.12:                              ; @.str.12
	.asciz	"r600_irq_set: hdmi 0\n"

	.comm	_CP_INT_CNTL,8,3                ; @CP_INT_CNTL
	.comm	_DxMODE_INT_MASK,8,3            ; @DxMODE_INT_MASK
	.comm	_D1GRPH_INTERRUPT_CONTROL,8,3   ; @D1GRPH_INTERRUPT_CONTROL
	.comm	_DxGRPH_PFLIP_INT_MASK,4,2      ; @DxGRPH_PFLIP_INT_MASK
	.comm	_D2GRPH_INTERRUPT_CONTROL,8,3   ; @D2GRPH_INTERRUPT_CONTROL
	.comm	_GRBM_INT_CNTL,8,3              ; @GRBM_INT_CNTL
	.comm	_R_000E50_SRBM_STATUS,8,3       ; @R_000E50_SRBM_STATUS
.subsections_via_symbols
