	.file	"extr_rs600.c_rs600_irq_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"HPD1\n"
.LC1:
	.string	"HPD2\n"
.LC2:
	.string	"HDMI0\n"
	.text
	.p2align 4
	.globl	rs600_irq_process
	.type	rs600_irq_process, @function
rs600_irq_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	rs600_irq_ack@PLT
	mov	edi, eax
	test	eax, eax
	jne	.L2
	cmp	QWORD PTR 32[rbx], 0
	je	.L49
.L2:
	xor	r12d, r12d
	xor	ebp, ebp
	lea	r13, 48[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 32[rbx]
	call	G_007EDC_LB_D1_VBLANK_INTERRUPT@PLT
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR 56[rbx]
	cmp	QWORD PTR [rax], 0
	jne	.L50
.L9:
	mov	rdi, QWORD PTR 40[rbx]
	call	atomic_read@PLT
	test	rax, rax
	jne	.L51
.L8:
	mov	rdi, QWORD PTR 32[rbx]
	call	G_007EDC_LB_D2_VBLANK_INTERRUPT@PLT
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR 56[rbx]
	cmp	QWORD PTR 8[rax], 0
	jne	.L52
.L13:
	mov	rax, QWORD PTR 40[rbx]
	lea	rdi, 4[rax]
	call	atomic_read@PLT
	test	rax, rax
	jne	.L53
.L12:
	mov	rdi, QWORD PTR 32[rbx]
	call	G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT@PLT
	test	rax, rax
	jne	.L54
.L15:
	mov	rdi, QWORD PTR 32[rbx]
	call	G_007EDC_DC_HOT_PLUG_DETECT2_INTERRUPT@PLT
	test	rax, rax
	jne	.L55
.L16:
	mov	rdi, QWORD PTR 24[rbx]
	call	G_007404_HDMI0_AZ_FORMAT_WTRIG@PLT
	test	rax, rax
	jne	.L56
.L17:
	mov	rdi, rbx
	call	rs600_irq_ack@PLT
	mov	edi, eax
.L4:
	test	edi, edi
	jne	.L18
	cmp	QWORD PTR 32[rbx], 0
	jne	.L18
	cmp	QWORD PTR 24[rbx], 0
	je	.L57
.L18:
	call	G_000044_SW_INT@PLT
	test	rax, rax
	je	.L6
	mov	esi, DWORD PTR RADEON_RING_TYPE_GFX_INDEX[rip]
	mov	rdi, rbx
	call	radeon_fence_process@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L56:
	lea	rdi, .LC2[rip]
	mov	r12d, 1
	call	DRM_DEBUG@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L55:
	lea	rdi, .LC1[rip]
	mov	ebp, 1
	call	DRM_DEBUG@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L54:
	lea	rdi, .LC0[rip]
	mov	ebp, 1
	call	DRM_DEBUG@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L53:
	mov	esi, 1
	mov	rdi, rbx
	call	radeon_crtc_handle_flip@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L52:
	mov	edi, DWORD PTR 68[rbx]
	mov	esi, 1
	call	drm_handle_vblank@PLT
	mov	DWORD PTR 64[rbx], 1
	mov	rdi, r13
	call	wake_up@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L51:
	xor	esi, esi
	mov	rdi, rbx
	call	radeon_crtc_handle_flip@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edi, DWORD PTR 68[rbx]
	xor	esi, esi
	call	drm_handle_vblank@PLT
	mov	DWORD PTR 64[rbx], 1
	mov	rdi, r13
	call	wake_up@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L57:
	test	ebp, ebp
	jne	.L58
.L19:
	test	r12d, r12d
	jne	.L59
.L20:
	cmp	QWORD PTR 8[rbx], 0
	je	.L21
	mov	eax, DWORD PTR [rbx]
	add	eax, -128
	cmp	eax, 2
	ja	.L22
	mov	edi, DWORD PTR RADEON_BUS_CNTL[rip]
	call	RREG32@PLT
	mov	ebx, DWORD PTR RS600_MSI_REARM[rip]
	mov	edi, DWORD PTR RADEON_BUS_CNTL[rip]
	not	ebx
	and	ebx, eax
	mov	esi, ebx
	call	WREG32@PLT
	mov	esi, DWORD PTR RS600_MSI_REARM[rip]
	mov	edi, DWORD PTR RADEON_BUS_CNTL[rip]
	or	esi, ebx
	call	WREG32@PLT
.L21:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	.cfi_restore_state
	cmp	QWORD PTR 24[rbx], 0
	mov	eax, DWORD PTR IRQ_NONE[rip]
	jne	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L59:
	lea	rdi, 16[rbx]
	call	schedule_work@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L58:
	lea	rdi, 20[rbx]
	call	schedule_work@PLT
	jmp	.L19
.L22:
	mov	esi, DWORD PTR RV370_MSI_REARM_EN[rip]
	mov	edi, DWORD PTR RADEON_MSI_REARM_EN[rip]
	call	WREG32@PLT
	jmp	.L21
	.cfi_endproc
.LFE0:
	.size	rs600_irq_process, .-rs600_irq_process
	.comm	RV370_MSI_REARM_EN,4,4
	.comm	RS600_MSI_REARM,4,4
	.comm	RADEON_RING_TYPE_GFX_INDEX,4,4
	.comm	RADEON_MSI_REARM_EN,4,4
	.comm	RADEON_BUS_CNTL,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rs600.c_rs600_irq_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"HPD1\012\000"
	.align	2
.LC1:
	.ascii	"HPD2\012\000"
	.align	2
.LC2:
	.ascii	"HDMI0\012\000"
	.text
	.align	2
	.global	rs600_irq_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	rs600_irq_process, %function
rs600_irq_process:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	bl	rs600_irq_ack
	cmp	r0, #0
	bne	.L2
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L58
.L2:
	mov	r6, #0
	mov	fp, #1
	mov	r5, r6
	ldr	r10, .L69
	ldr	r9, .L69+4
	ldr	r8, .L69+8
	ldr	r7, .L69+12
	b	.L4
.L6:
	ldr	r0, [r4, #20]
	bl	G_007EDC_LB_D1_VBLANK_INTERRUPT
	cmp	r0, #0
	beq	.L8
	ldr	r3, [r4, #32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L59
.L9:
	ldr	r0, [r4, #24]
	bl	atomic_read
	cmp	r0, #0
	bne	.L60
.L8:
	ldr	r0, [r4, #20]
	bl	G_007EDC_LB_D2_VBLANK_INTERRUPT
	cmp	r0, #0
	beq	.L12
	ldr	r3, [r4, #32]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L61
.L13:
	ldr	r0, [r4, #24]
	add	r0, r0, #4
	bl	atomic_read
	cmp	r0, #0
	bne	.L62
.L12:
	ldr	r0, [r4, #20]
	bl	G_007EDC_DC_HOT_PLUG_DETECT1_INTERRUPT
	cmp	r0, #0
	bne	.L63
.L15:
	ldr	r0, [r4, #20]
	bl	G_007EDC_DC_HOT_PLUG_DETECT2_INTERRUPT
	cmp	r0, #0
	bne	.L64
.L16:
	ldr	r0, [r4, #16]
	bl	G_007404_HDMI0_AZ_FORMAT_WTRIG
	cmp	r0, #0
	bne	.L65
.L17:
	mov	r0, r4
	bl	rs600_irq_ack
.L4:
	cmp	r0, #0
	bne	.L18
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L66
.L18:
	bl	G_000044_SW_INT
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	ldr	r1, [r10]
	bl	radeon_fence_process
	b	.L6
.L65:
	mov	r0, r7
	bl	DRM_DEBUG
	mov	r6, #1
	b	.L17
.L64:
	mov	r0, r8
	bl	DRM_DEBUG
	mov	r5, #1
	b	.L16
.L63:
	mov	r0, r9
	bl	DRM_DEBUG
	mov	r5, #1
	b	.L15
.L62:
	mov	r1, #1
	mov	r0, r4
	bl	radeon_crtc_handle_flip
	b	.L12
.L61:
	mov	r1, #1
	ldr	r0, [r4, #40]
	bl	drm_handle_vblank
	str	fp, [r4, #36]
	add	r0, r4, #28
	bl	wake_up
	b	.L13
.L60:
	mov	r1, #0
	mov	r0, r4
	bl	radeon_crtc_handle_flip
	b	.L8
.L59:
	mov	r1, #0
	ldr	r0, [r4, #40]
	bl	drm_handle_vblank
	str	fp, [r4, #36]
	add	r0, r4, #28
	bl	wake_up
	b	.L9
.L66:
	cmp	r5, #0
	bne	.L67
.L19:
	cmp	r6, #0
	bne	.L68
.L20:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [r4]
	sub	r3, r3, #128
	cmp	r3, #2
	bhi	.L22
	ldr	r5, .L69+16
	ldr	r6, .L69+20
	ldr	r0, [r5]
	bl	RREG32
	mov	r4, r0
	ldr	r3, [r6]
	ldr	r0, [r5]
	bic	r4, r4, r3
	mov	r1, r4
	bl	WREG32
	ldr	r1, [r6]
	ldr	r0, [r5]
	orr	r1, r4, r1
	bl	WREG32
.L21:
	ldr	r3, .L69+24
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L58:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L69+28
	ldr	r0, [r3]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L68:
	add	r0, r4, #8
	bl	schedule_work
	b	.L20
.L67:
	add	r0, r4, #12
	bl	schedule_work
	b	.L19
.L22:
	ldr	r2, .L69+32
	ldr	r3, .L69+36
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	WREG32
	b	.L21
.L70:
	.align	2
.L69:
	.word	RADEON_RING_TYPE_GFX_INDEX
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	RADEON_BUS_CNTL
	.word	RS600_MSI_REARM
	.word	IRQ_HANDLED
	.word	IRQ_NONE
	.word	RV370_MSI_REARM_EN
	.word	RADEON_MSI_REARM_EN
	.size	rs600_irq_process, .-rs600_irq_process
	.comm	RV370_MSI_REARM_EN,4,4
	.comm	RS600_MSI_REARM,4,4
	.comm	RADEON_RING_TYPE_GFX_INDEX,4,4
	.comm	RADEON_MSI_REARM_EN,4,4
	.comm	RADEON_BUS_CNTL,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
