	.file	"extr_ems_pcmcia.c_ems_pcmcia_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ems_pcmcia_interrupt, @function
ems_pcmcia_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, QWORD PTR IRQ_NONE[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, DWORD PTR 16[rsi]
	call	readw@PLT
	cmp	eax, 43605
	jne	.L2
	mov	edx, DWORD PTR [r14]
	test	edx, edx
	jle	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	xor	ebx, ebx
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[r14]
	mov	rsi, QWORD PTR [rax+rbx*8]
	test	rsi, rsi
	je	.L5
	mov	edi, ebp
	call	sja1000_interrupt@PLT
	cmp	rax, QWORD PTR IRQ_HANDLED[rip]
	jne	.L17
	mov	r12d, 1
.L17:
	mov	edx, DWORD PTR [r14]
.L5:
	add	rbx, 1
	cmp	edx, ebx
	jg	.L6
	test	r12d, r12d
	je	.L1
	mov	r13, QWORD PTR IRQ_HANDLED[rip]
	test	edx, edx
	jg	.L19
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r13, QWORD PTR IRQ_HANDLED[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	rax, r13
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ems_pcmcia_interrupt, .-ems_pcmcia_interrupt
	.comm	IRQ_NONE,8,8
	.comm	IRQ_HANDLED,8,8
	.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_ems_pcmcia.c_ems_pcmcia_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ems_pcmcia_interrupt, %function
ems_pcmcia_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L20
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	ldr	r0, [r1, #8]
	ldr	r8, [r3]
	mov	r5, r1
	bl	readw
	ldr	r3, .L20+4
	cmp	r0, r3
	bne	.L2
	ldr	r2, [r5]
	ldr	r9, .L20+8
	cmp	r2, #0
	ble	.L1
.L19:
	mov	r7, #0
	mov	r4, r7
.L6:
	ldr	r3, [r5, #4]
	ldr	r1, [r3, r4, lsl #2]
	cmp	r1, #0
	beq	.L5
	mov	r0, r6
	bl	sja1000_interrupt
	ldr	r3, [r9]
	ldr	r2, [r5]
	cmp	r0, r3
	moveq	r7, #1
.L5:
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L6
	cmp	r7, #0
	beq	.L1
	cmp	r2, #0
	ldr	r8, [r9]
	bgt	.L19
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L20+8
	ldr	r8, [r3]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	.align	2
.L20:
	.word	IRQ_NONE
	.word	43605
	.word	IRQ_HANDLED
	.size	ems_pcmcia_interrupt, .-ems_pcmcia_interrupt
	.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
