	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_irq_process              ## -- Begin function rs600_irq_process
	.p2align	4, 0x90
_rs600_irq_process:                     ## @rs600_irq_process
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rs600_irq_ack
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 32(%rbx)
	jne	LBB0_4
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
LBB0_4:
	leaq	48(%rbx), %r14
	xorl	%r12d, %r12d
	leaq	L_.str(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_rs600_irq_ack
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 32(%rbx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_27
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edi
	callq	_G_000044_SW_INT
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_fence_process
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rdi
	callq	_G_007EDC_LB_D1_VBLANK_INTERRUPT
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	68(%rbx), %edi
	xorl	%esi, %esi
	callq	_drm_handle_vblank
	movl	$1, 64(%rbx)
	movq	%r14, %rdi
	callq	_wake_up
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_radeon_crtc_handle_vblank
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rdi
	callq	_G_007EDC_LB_D2_VBLANK_INTERRUPT
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	56(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	68(%rbx), %edi
	movl	$1, %esi
	callq	_drm_handle_vblank
	movl	$1, 64(%rbx)
	movq	%r14, %rdi
	callq	_wake_up
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%rbx), %rdi
	addq	$4, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_radeon_crtc_handle_vblank
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rdi
	callq	_G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_DRM_DEBUG
	movl	$1, %r12d
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbx), %rdi
	callq	_G_007EDC_DC_HOT_PLUG_DETECT2_INTERRUPT
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_DEBUG
	movl	$1, %r12d
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%rbx), %rdi
	callq	_G_007404_HDMI0_AZ_FORMAT_WTRIG
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_DEBUG
	movl	$1, %r15d
	jmp	LBB0_26
LBB0_27:
	testl	%r12d, %r12d
	je	LBB0_29
## %bb.28:
	leaq	20(%rbx), %rdi
	xorl	%esi, %esi
	callq	_schedule_delayed_work
LBB0_29:
	testl	%r15d, %r15d
	je	LBB0_31
## %bb.30:
	leaq	16(%rbx), %rdi
	callq	_schedule_work
LBB0_31:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_36
## %bb.32:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_34
## %bb.33:
	movq	_RADEON_BUS_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movq	_RS600_MSI_REARM@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movl	(%r15), %edi
	orl	(%r12), %ebx
	movl	%ebx, %esi
	jmp	LBB0_35
LBB0_34:
	movq	_RADEON_MSI_REARM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RV370_MSI_REARM_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_35:
	callq	_WREG32
LBB0_36:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_RADEON_RING_TYPE_GFX_INDEX,4,2 ## @RADEON_RING_TYPE_GFX_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HPD1\n"

L_.str.1:                               ## @.str.1
	.asciz	"HPD2\n"

L_.str.2:                               ## @.str.2
	.asciz	"HDMI0\n"

	.comm	_RADEON_BUS_CNTL,4,2            ## @RADEON_BUS_CNTL
	.comm	_RS600_MSI_REARM,4,2            ## @RS600_MSI_REARM
	.comm	_RADEON_MSI_REARM_EN,4,2        ## @RADEON_MSI_REARM_EN
	.comm	_RV370_MSI_REARM_EN,4,2         ## @RV370_MSI_REARM_EN
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_irq_process              ; -- Begin function rs600_irq_process
	.p2align	2
_rs600_irq_process:                     ; @rs600_irq_process
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_rs600_irq_ack
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_37
LBB0_3:
	mov	w26, #0
	mov	w24, #0
Lloh0:
	adrp	x20, l_.str.2@PAGE
Lloh1:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	add	x22, x19, #48
	mov	w25, #1
Lloh4:
	adrp	x27, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh5:
	ldr	x27, [x27, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_rs600_irq_ack
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_26
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_G_000044_SW_INT
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_radeon_fence_process
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #32]
	bl	_G_007EDC_LB_D1_VBLANK_INTERRUPT
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #68]
	mov	w1, #0
	bl	_drm_handle_vblank
	str	w25, [x19, #64]
	mov	x0, x22
	bl	_wake_up
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #40]
	bl	_atomic_read
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_crtc_handle_vblank
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #32]
	bl	_G_007EDC_LB_D2_VBLANK_INTERRUPT
	cbz	x0, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #56]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #68]
	mov	w1, #1
	bl	_drm_handle_vblank
	str	w25, [x19, #64]
	mov	x0, x22
	bl	_wake_up
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, #4
	bl	_atomic_read
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_radeon_crtc_handle_vblank
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #32]
	bl	_G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_DRM_DEBUG
	mov	w26, #1
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #32]
	bl	_G_007EDC_DC_HOT_PLUG_DETECT2_INTERRUPT
	cbz	x0, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_DRM_DEBUG
	mov	w26, #1
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #24]
	bl	_G_007404_HDMI0_AZ_FORMAT_WTRIG
	cbz	x0, LBB0_4
; %bb.25:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_DRM_DEBUG
	mov	w24, #1
	b	LBB0_4
LBB0_26:
	cbz	w26, LBB0_28
; %bb.27:
	add	x0, x19, #20
	mov	w1, #0
	bl	_schedule_delayed_work
LBB0_28:
	cbz	w24, LBB0_30
; %bb.29:
	add	x0, x19, #16
	bl	_schedule_work
LBB0_30:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_35
; %bb.31:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_33
; %bb.32:
Lloh8:
	adrp	x20, _RADEON_BUS_CNTL@GOTPAGE
Lloh9:
	ldr	x20, [x20, _RADEON_BUS_CNTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh10:
	adrp	x21, _RS600_MSI_REARM@GOTPAGE
Lloh11:
	ldr	x21, [x21, _RS600_MSI_REARM@GOTPAGEOFF]
	ldr	w8, [x21]
	bic	w19, w0, w8
	ldr	w0, [x20]
	mov	x1, x19
	bl	_WREG32
	ldr	w0, [x20]
	ldr	w8, [x21]
	orr	w1, w8, w19
	b	LBB0_34
LBB0_33:
Lloh12:
	adrp	x8, _RADEON_MSI_REARM_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RADEON_MSI_REARM_EN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _RV370_MSI_REARM_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RV370_MSI_REARM_EN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
LBB0_34:
	bl	_WREG32
LBB0_35:
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_36:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_37:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_36
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_RADEON_RING_TYPE_GFX_INDEX,4,2 ; @RADEON_RING_TYPE_GFX_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HPD1\n"

l_.str.1:                               ; @.str.1
	.asciz	"HPD2\n"

l_.str.2:                               ; @.str.2
	.asciz	"HDMI0\n"

	.comm	_RADEON_BUS_CNTL,4,2            ; @RADEON_BUS_CNTL
	.comm	_RS600_MSI_REARM,4,2            ; @RS600_MSI_REARM
	.comm	_RADEON_MSI_REARM_EN,4,2        ; @RADEON_MSI_REARM_EN
	.comm	_RV370_MSI_REARM_EN,4,2         ; @RV370_MSI_REARM_EN
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
