	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 40(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 48(%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, -76(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE3
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	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, -72(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE32
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	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_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_43
LBB0_6:
	movq	%r12, %rdi
	callq	_r600_disable_interrupts
	movq	%r12, %rdi
	callq	_r600_disable_interrupt_state
	jmp	LBB0_42
LBB0_7:
	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, -72(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_8:
	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, %r13d
	movl	(%rbx), %r15d
	movq	_DMA_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_RREG32
	movl	%eax, %r14d
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	32(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_RB_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movq	_TIME_STAMP_INT_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
LBB0_12:
	andl	%ebx, %r14d
	movq	_R600_RING_TYPE_DMA_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	32(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_TRAP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_14:
	movl	%r15d, %ebx
	movq	24(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	16(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_44
LBB0_16:
	leaq	L_.str.3(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_D1MODE_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_17:
	movq	24(%r12), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_19
## %bb.18:
	movq	16(%r12), %rdi
	addq	$4, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_D2MODE_VBLANK_INT_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_20:
	movq	8(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_22
## %bb.21:
	leaq	L_.str.5(%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	8(%r12), %rax
LBB0_22:
	cmpq	$0, 8(%rax)
	je	LBB0_24
## %bb.23:
	leaq	L_.str.6(%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	8(%r12), %rax
LBB0_24:
	cmpq	$0, 16(%rax)
	je	LBB0_26
## %bb.25:
	leaq	L_.str.7(%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	8(%r12), %rax
LBB0_26:
	cmpq	$0, 24(%rax)
	je	LBB0_28
## %bb.27:
	leaq	L_.str.8(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_DC_HPDx_INT_EN@GOTPCREL(%rip), %rax
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %rax
LBB0_28:
	cmpq	$0, 32(%rax)
	je	LBB0_30
## %bb.29:
	leaq	L_.str.9(%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	8(%r12), %rax
LBB0_30:
	cmpq	$0, 40(%rax)
	je	LBB0_32
## %bb.31:
	leaq	L_.str.10(%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_32:
	notl	%ebx
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_34
## %bb.33:
	leaq	L_.str.11(%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	(%r12), %rax
LBB0_34:
	andl	%ebx, %r13d
	cmpq	$0, 8(%rax)
	je	LBB0_36
## %bb.35:
	leaq	L_.str.11(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_36:
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	_CP_INT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_DMA_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r14d, %esi
	callq	_WREG32
	movq	_DxMODE_INT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_D1GRPH_INTERRUPT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32
	movq	_D2GRPH_INTERRUPT_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_GRBM_INT_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_WREG32
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE3
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	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	-72(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	%r12, %rdi
	callq	_ASIC_IS_DCE32
	testq	%rax, %rax
	je	LBB0_40
## %bb.38:
	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_41
LBB0_39:
	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
	movq	(%rax), %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	jmp	LBB0_43
LBB0_40:
	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
	movq	(%rax), %rdi
LBB0_41:
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
LBB0_42:
	xorl	%ebx, %ebx
LBB0_43:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	xorl	%r15d, %r15d
	jmp	LBB0_17
	.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	_RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
L_.str.1:                               ## @.str.1
	.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.2:                               ## @.str.2
	.asciz	"r600_irq_set: sw int dma\n"

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

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

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

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

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

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

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

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

L_.str.11:                              ## @.str.11
	.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	_D2GRPH_INTERRUPT_CONTROL,8,3   ## @D2GRPH_INTERRUPT_CONTROL
	.comm	_GRBM_INT_CNTL,8,3              ## @GRBM_INT_CNTL
.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, #40]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #48]
	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	w20, [x8]
Lloh3:
	adrp	x8, _CNTX_EMPTY_INT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CNTX_EMPTY_INT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x0, x19
	bl	_ASIC_IS_DCE3
Lloh6:
	adrp	x24, _DC_HPDx_INT_EN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DC_HPDx_INT_EN@GOTPAGEOFF]
Lloh8:
	adrp	x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh10:
	adrp	x23, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh12:
	adrp	x22, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh14:
	adrp	x21, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh15:
	ldr	x21, [x21, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x8]
	bl	_RREG32
	ldr	w8, [x24]
	bic	w28, w0, w8
	ldr	x0, [x23]
	bl	_RREG32
	ldr	w8, [x24]
	bic	w8, w0, w8
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x0, [x22]
	bl	_RREG32
	ldr	w8, [x24]
	bic	w8, w0, w8
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	ldr	x0, [x21]
	bl	_RREG32
	ldr	w8, [x24]
	bic	w8, w0, w8
	str	w8, [sp, #20]                   ; 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, [x24]
	bic	w8, w0, w8
	str	w8, [sp, #16]                   ; 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, [x24]
Lloh22:
	adrp	x21, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh23:
	ldr	x21, [x21, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	bic	w8, w0, w8
	str	w8, [sp, #12]                   ; 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	x26, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh28:
	ldr	x26, [x26, _AFMT_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	bic	w23, w0, w8
	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_45
LBB0_6:
	mov	x0, x19
	bl	_r600_disable_interrupts
	mov	x0, x19
	bl	_r600_disable_interrupt_state
	b	LBB0_44
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, [x24]
	bic	w28, w0, w8
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, [x24]
	bic	w8, w0, w8
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
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, [x24]
	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	xzr, [sp, #16]                  ; 8-byte Folded Spill
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
Lloh49:
	adrp	x26, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh50:
	ldr	x26, [x26, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	bic	w23, w0, w8
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
	stp	wzr, wzr, [sp, #12]             ; 8-byte Folded Spill
Lloh56:
	adrp	x26, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh57:
	ldr	x26, [x26, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
	ldr	w8, [x26]
	bic	w23, w0, w8
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:
	orr	w27, w25, w20
	bl	_RREG32
	mov	x22, x0
	ldr	w20, [x26]
Lloh60:
	adrp	x8, _DMA_CNTL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh62:
	ldr	x0, [x8]
	bl	_RREG32
	mov	x25, x0
Lloh63:
	adrp	x26, _TRAP_ENABLE@GOTPAGE
Lloh64:
	ldr	x26, [x26, _TRAP_ENABLE@GOTPAGEOFF]
	ldr	w21, [x26]
	ldr	x8, [x19, #32]
Lloh65:
	adrp	x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh66:
	ldr	x9, [x9, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_12
; %bb.11:
Lloh68:
	adrp	x0, l_.str.1@PAGE
Lloh69:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
Lloh70:
	adrp	x8, _RB_INT_ENABLE@GOTPAGE
Lloh71:
	ldr	x8, [x8, _RB_INT_ENABLE@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	orr	w8, w8, w27
Lloh73:
	adrp	x9, _TIME_STAMP_INT_ENABLE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _TIME_STAMP_INT_ENABLE@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	orr	w27, w8, w9
LBB0_12:
	bic	w25, w25, w21
	ldr	x8, [x19, #32]
Lloh76:
	adrp	x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGE
Lloh77:
	ldr	x9, [x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGEOFF]
Lloh78:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	x0, LBB0_14
; %bb.13:
Lloh79:
	adrp	x0, l_.str.2@PAGE
Lloh80:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x26]
	orr	w25, w8, w25
LBB0_14:
	mov	x21, x28
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbnz	x8, LBB0_16
; %bb.15:
	ldr	x0, [x19, #16]
	bl	_atomic_read
	cbz	x0, LBB0_46
LBB0_16:
Lloh81:
	adrp	x0, l_.str.3@PAGE
Lloh82:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG
Lloh83:
	adrp	x8, _D1MODE_VBLANK_INT_MASK@GOTPAGE
Lloh84:
	ldr	x8, [x8, _D1MODE_VBLANK_INT_MASK@GOTPAGEOFF]
Lloh85:
	ldr	w26, [x8]
LBB0_17:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_19
; %bb.18:
	ldr	x8, [x19, #16]
	add	x0, x8, #4
	bl	_atomic_read
	cbz	x0, LBB0_20
LBB0_19:
Lloh86:
	adrp	x0, l_.str.4@PAGE
Lloh87:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DRM_DEBUG
Lloh88:
	adrp	x8, _D2MODE_VBLANK_INT_MASK@GOTPAGE
Lloh89:
	ldr	x8, [x8, _D2MODE_VBLANK_INT_MASK@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	orr	w26, w8, w26
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_22
; %bb.21:
Lloh91:
	adrp	x0, l_.str.5@PAGE
Lloh92:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	orr	w21, w8, w21
	ldr	x8, [x19, #8]
LBB0_22:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_24
; %bb.23:
Lloh93:
	adrp	x0, l_.str.6@PAGE
Lloh94:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
LBB0_24:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_26
; %bb.25:
Lloh95:
	adrp	x0, l_.str.7@PAGE
Lloh96:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
LBB0_26:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_28
; %bb.27:
Lloh97:
	adrp	x0, l_.str.8@PAGE
Lloh98:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
LBB0_28:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_30
; %bb.29:
Lloh99:
	adrp	x0, l_.str.9@PAGE
Lloh100:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	orr	w9, w8, w9
	str	w9, [sp, #16]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
LBB0_30:
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_32
; %bb.31:
Lloh101:
	adrp	x0, l_.str.10@PAGE
Lloh102:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x24]
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	orr	w24, w8, w24
	b	LBB0_33
LBB0_32:
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
LBB0_33:
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_35
; %bb.34:
Lloh103:
	adrp	x0, l_.str.11@PAGE
Lloh104:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_DEBUG
Lloh105:
	adrp	x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh106:
	ldr	x8, [x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
Lloh107:
	ldr	w8, [x8]
	orr	w23, w8, w23
	ldr	x8, [x19]
LBB0_35:
	bic	w28, w22, w20
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_37
; %bb.36:
Lloh108:
	adrp	x0, l_.str.11@PAGE
Lloh109:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DRM_DEBUG
Lloh110:
	adrp	x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGE
Lloh111:
	ldr	x8, [x8, _HDMI0_AZ_FORMAT_WTRIG_MASK@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
	orr	w28, w8, w28
LBB0_37:
Lloh113:
	adrp	x8, _CP_INT_CNTL@GOTPAGE
Lloh114:
	ldr	x8, [x8, _CP_INT_CNTL@GOTPAGEOFF]
Lloh115:
	ldr	x0, [x8]
	mov	x1, x27
	bl	_WREG32
Lloh116:
	adrp	x8, _DMA_CNTL@GOTPAGE
Lloh117:
	ldr	x8, [x8, _DMA_CNTL@GOTPAGEOFF]
Lloh118:
	ldr	x0, [x8]
	mov	x1, x25
	bl	_WREG32
Lloh119:
	adrp	x8, _DxMODE_INT_MASK@GOTPAGE
Lloh120:
	ldr	x8, [x8, _DxMODE_INT_MASK@GOTPAGEOFF]
Lloh121:
	ldr	x0, [x8]
	mov	x1, x26
	bl	_WREG32
Lloh122:
	adrp	x8, _D1GRPH_INTERRUPT_CONTROL@GOTPAGE
Lloh123:
	ldr	x8, [x8, _D1GRPH_INTERRUPT_CONTROL@GOTPAGEOFF]
Lloh124:
	ldr	x0, [x8]
	mov	w1, #0
	bl	_WREG32
Lloh125:
	adrp	x8, _D2GRPH_INTERRUPT_CONTROL@GOTPAGE
Lloh126:
	ldr	x8, [x8, _D2GRPH_INTERRUPT_CONTROL@GOTPAGEOFF]
Lloh127:
	ldr	x0, [x8]
	mov	w1, #0
	bl	_WREG32
Lloh128:
	adrp	x8, _GRBM_INT_CNTL@GOTPAGE
Lloh129:
	ldr	x8, [x8, _GRBM_INT_CNTL@GOTPAGEOFF]
Lloh130:
	ldr	x0, [x8]
	mov	w1, #0
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_DCE3
	cbz	x0, LBB0_40
; %bb.38:
Lloh131:
	adrp	x8, _DC_HPD1_INT_CONTROL@GOTPAGE
Lloh132:
	ldr	x8, [x8, _DC_HPD1_INT_CONTROL@GOTPAGEOFF]
Lloh133:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh134:
	adrp	x8, _DC_HPD2_INT_CONTROL@GOTPAGE
Lloh135:
	ldr	x8, [x8, _DC_HPD2_INT_CONTROL@GOTPAGEOFF]
Lloh136:
	ldr	x0, [x8]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh137:
	adrp	x8, _DC_HPD3_INT_CONTROL@GOTPAGE
Lloh138:
	ldr	x8, [x8, _DC_HPD3_INT_CONTROL@GOTPAGEOFF]
Lloh139:
	ldr	x0, [x8]
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh140:
	adrp	x8, _DC_HPD4_INT_CONTROL@GOTPAGE
Lloh141:
	ldr	x8, [x8, _DC_HPD4_INT_CONTROL@GOTPAGEOFF]
Lloh142:
	ldr	x0, [x8]
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_DCE32
	cbz	x0, LBB0_41
; %bb.39:
Lloh143:
	adrp	x8, _DC_HPD5_INT_CONTROL@GOTPAGE
Lloh144:
	ldr	x8, [x8, _DC_HPD5_INT_CONTROL@GOTPAGEOFF]
Lloh145:
	ldr	x0, [x8]
	ldr	w1, [sp, #16]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh146:
	adrp	x8, _DC_HPD6_INT_CONTROL@GOTPAGE
Lloh147:
	ldr	x8, [x8, _DC_HPD6_INT_CONTROL@GOTPAGEOFF]
Lloh148:
	ldr	x0, [x8]
	mov	x1, x24
	bl	_WREG32
Lloh149:
	adrp	x19, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh150:
	ldr	x19, [x19, _AFMT_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh151:
	adrp	x9, _DCE3_HDMI_OFFSET0@GOTPAGE
Lloh152:
	ldr	x9, [x9, _DCE3_HDMI_OFFSET0@GOTPAGEOFF]
Lloh153:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x23
	bl	_WREG32
	ldr	x8, [x19]
Lloh154:
	adrp	x9, _DCE3_HDMI_OFFSET1@GOTPAGE
Lloh155:
	ldr	x9, [x9, _DCE3_HDMI_OFFSET1@GOTPAGEOFF]
Lloh156:
	ldr	x9, [x9]
	add	x0, x9, x8
	b	LBB0_43
LBB0_40:
Lloh157:
	adrp	x8, _DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGE
Lloh158:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT1_INT_CONTROL@GOTPAGEOFF]
Lloh159:
	ldr	x0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh160:
	adrp	x8, _DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGE
Lloh161:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT2_INT_CONTROL@GOTPAGEOFF]
Lloh162:
	ldr	x0, [x8]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh163:
	adrp	x8, _DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPAGE
Lloh164:
	ldr	x8, [x8, _DC_HOT_PLUG_DETECT3_INT_CONTROL@GOTPAGEOFF]
Lloh165:
	ldr	x0, [x8]
	ldr	w1, [sp, #24]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh166:
	adrp	x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh167:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh168:
	ldr	x0, [x8]
	mov	x1, x23
	bl	_WREG32
Lloh169:
	adrp	x8, _HDMI1_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh170:
	ldr	x8, [x8, _HDMI1_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
	b	LBB0_42
LBB0_41:
Lloh171:
	adrp	x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh172:
	ldr	x8, [x8, _HDMI0_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
Lloh173:
	ldr	x0, [x8]
	mov	x1, x23
	bl	_WREG32
Lloh174:
	adrp	x8, _DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPAGE
Lloh175:
	ldr	x8, [x8, _DCE3_HDMI1_AUDIO_PACKET_CONTROL@GOTPAGEOFF]
LBB0_42:
	ldr	x0, [x8]
LBB0_43:
	mov	x1, x28
	bl	_WREG32
LBB0_44:
	mov	w0, #0
LBB0_45:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_46:
	mov	w26, #0
	b	LBB0_17
	.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 AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh154, Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh151, Lloh152, Lloh153
	.loh AdrpLdrGot	Lloh149, Lloh150
	.loh AdrpLdrGotLdr	Lloh146, Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh143, Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh169, Lloh170
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpLdrGot	Lloh174, Lloh175
	.loh AdrpLdrGotLdr	Lloh171, Lloh172, Lloh173
	.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	_RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
l_.str.1:                               ; @.str.1
	.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.2:                               ; @.str.2
	.asciz	"r600_irq_set: sw int dma\n"

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

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

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

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

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

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

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

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

l_.str.11:                              ; @.str.11
	.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	_D2GRPH_INTERRUPT_CONTROL,8,3   ; @D2GRPH_INTERRUPT_CONTROL
	.comm	_GRBM_INT_CNTL,8,3              ; @GRBM_INT_CNTL
.subsections_via_symbols
