	.file	"extr_atyfb_base.c_aty_disable_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aty_disable_irq, @function
aty_disable_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, 24[rdi]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	test_and_clear_bit@PLT
	test	rax, rax
	je	.L2
	cmp	QWORD PTR 16[rbx], 0
	jne	.L9
.L3:
	lea	rbp, 4[rbx]
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	mov	edi, DWORD PTR CRTC_INT_CNTL[rip]
	mov	rsi, rbx
	call	aty_ld_le32@PLT
	mov	esi, DWORD PTR CRTC_VBLANK_INT_EN[rip]
	mov	edi, DWORD PTR CRTC_INT_CNTL[rip]
	mov	rdx, rbx
	not	esi
	and	esi, DWORD PTR CRTC_INT_EN_MASK[rip]
	and	esi, eax
	call	aty_st_le32@PLT
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbx
	call	free_irq@PLT
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	QWORD PTR 16[rbx], 0
	mov	esi, DWORD PTR 8[rbx]
	mov	rdx, rbx
	mov	edi, DWORD PTR CRTC_OFF_PITCH[rip]
	call	aty_st_le32@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	aty_disable_irq, .-aty_disable_irq
	.comm	CRTC_VBLANK_INT_EN,4,4
	.comm	CRTC_OFF_PITCH,4,4
	.comm	CRTC_INT_EN_MASK,4,4
	.comm	CRTC_INT_CNTL,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_atyfb_base.c_aty_disable_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aty_disable_irq, %function
aty_disable_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, #0
	add	r1, r4, #16
	bl	test_and_clear_bit
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L12
.L3:
	ldr	r6, .L13
	add	r5, r4, #4
	mov	r0, r5
	bl	spin_lock_irq
	mov	r1, r4
	ldr	r0, [r6]
	bl	aty_ld_le32
	mov	r1, r0
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r6]
	bic	r3, r3, r2
	and	r1, r1, r3
	mov	r2, r4
	bl	aty_st_le32
	mov	r0, r5
	bl	spin_unlock_irq
	mov	r1, r4
	ldr	r0, [r4]
	bl	free_irq
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	mov	r2, #0
	ldr	r3, .L13+12
	str	r2, [r4, #12]
	ldr	r0, [r3]
	mov	r2, r4
	ldr	r1, [r4, #8]
	bl	aty_st_le32
	b	.L3
.L14:
	.align	2
.L13:
	.word	CRTC_INT_CNTL
	.word	CRTC_VBLANK_INT_EN
	.word	CRTC_INT_EN_MASK
	.word	CRTC_OFF_PITCH
	.size	aty_disable_irq, .-aty_disable_irq
	.comm	CRTC_VBLANK_INT_EN,4,4
	.comm	CRTC_OFF_PITCH,4,4
	.comm	CRTC_INT_EN_MASK,4,4
	.comm	CRTC_INT_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
