	.file	"extr_intelfbhw.c_intelfbhw_enable_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"intelfb"
.LC1:
	.string	"changing IER to 0x%X\n"
	.text
	.p2align 4
	.globl	intelfbhw_enable_irq
	.type	intelfbhw_enable_irq, @function
intelfbhw_enable_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 16[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rsi, r12
	mov	rbp, rdi
	xor	edi, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	test_and_set_bit@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR 24[rbp]
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	r8, rbp
	lea	rcx, .LC0[rip]
	mov	esi, DWORD PTR intelfbhw_irq[rip]
	mov	edi, DWORD PTR [rax]
	call	request_irq@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, rbp
	call	spin_lock_irq@PLT
	mov	edi, DWORD PTR HWSTAM[rip]
	mov	esi, 65534
	call	OUTREG16@PLT
	mov	edi, DWORD PTR IMR[rip]
	xor	esi, esi
	call	OUTREG16@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, rbp
	call	spin_lock_irq@PLT
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR IER[rip]
	mov	r12d, DWORD PTR PIPE_A_EVENT_INTERRUPT[rip]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR FB_VMODE_INTERLACED[rip], eax
	cmove	r12d, DWORD PTR VSYNC_PIPE_A_INTERRUPT[rip]
	call	INREG16@PLT
	cmp	eax, r12d
	jne	.L12
.L8:
	mov	rdi, rbp
	call	spin_unlock_irq@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	DBG_MSG@PLT
	mov	edi, DWORD PTR IER[rip]
	mov	esi, r12d
	call	OUTREG16@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r12
	xor	edi, edi
	call	clear_bit@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	intelfbhw_enable_irq, .-intelfbhw_enable_irq
	.comm	intelfbhw_irq,4,4
	.comm	VSYNC_PIPE_A_INTERRUPT,4,4
	.comm	PIPE_A_EVENT_INTERRUPT,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IMR,4,4
	.comm	IER,4,4
	.comm	HWSTAM,4,4
	.comm	FB_VMODE_INTERLACED,4,4
	.comm	EINVAL,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_intelfbhw.c_intelfbhw_enable_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"intelfb\000"
	.align	2
.LC1:
	.ascii	"changing IER to 0x%X\012\000"
	.text
	.align	2
	.global	intelfbhw_enable_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	intelfbhw_enable_irq, %function
intelfbhw_enable_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	add	r7, r0, #8
	mov	r4, r0
	mov	r1, r7
	mov	r0, #0
	sub	sp, sp, #12
	bl	test_and_set_bit
	subs	r5, r0, #0
	bne	.L2
	ldr	r3, [r4, #12]
	ldr	r2, .L13
	ldr	r0, [r3]
	ldr	r3, .L13+4
	str	r4, [sp]
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L13+8
	bl	request_irq
	subs	r6, r0, #0
	bne	.L11
	mov	r0, r4
	bl	spin_lock_irq
	ldr	r3, .L13+12
	ldr	r1, .L13+16
	ldr	r0, [r3]
	bl	OUTREG16
	ldr	r3, .L13+20
	mov	r1, r6
	ldr	r0, [r3]
	bl	OUTREG16
	b	.L5
.L2:
	mov	r0, r4
	bl	spin_lock_irq
.L5:
	ldr	r2, [r4, #4]
	ldr	r3, .L13+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r6, .L13+28
	tst	r2, r3
	ldrne	r3, .L13+32
	ldreq	r3, .L13+36
	ldr	r0, [r6]
	ldr	r5, [r3]
	bl	INREG16
	cmp	r0, r5
	bne	.L12
.L8:
	mov	r0, r4
	bl	spin_unlock_irq
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	mov	r1, r5
	ldr	r0, .L13+40
	bl	DBG_MSG
	mov	r1, r5
	ldr	r0, [r6]
	bl	OUTREG16
	b	.L8
.L11:
	mov	r1, r7
	mov	r0, r5
	bl	clear_bit
	ldr	r3, .L13+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	.align	2
.L13:
	.word	IRQF_SHARED
	.word	intelfbhw_irq
	.word	.LC0
	.word	HWSTAM
	.word	65534
	.word	IMR
	.word	FB_VMODE_INTERLACED
	.word	IER
	.word	PIPE_A_EVENT_INTERRUPT
	.word	VSYNC_PIPE_A_INTERRUPT
	.word	.LC1
	.word	EINVAL
	.size	intelfbhw_enable_irq, .-intelfbhw_enable_irq
	.comm	intelfbhw_irq,4,4
	.comm	VSYNC_PIPE_A_INTERRUPT,4,4
	.comm	PIPE_A_EVENT_INTERRUPT,4,4
	.comm	IRQF_SHARED,4,4
	.comm	IMR,4,4
	.comm	IER,4,4
	.comm	HWSTAM,4,4
	.comm	FB_VMODE_INTERLACED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
