	.file	"extr_ibmlana.c_irq_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	irq_handler, @function
irq_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR BCMREG[rip]
	add	rdi, QWORD PTR [rsi]
	call	inb@PLT
	test	DWORD PTR BCMREG_IPEND[rip], eax
	jne	.L2
	mov	eax, DWORD PTR IRQ_NONE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR SONIC_ISREG[rip]
	add	rdi, QWORD PTR [rbx]
	call	inw@PLT
	mov	ebp, eax
	test	DWORD PTR ISREG_RBE[rip], eax
	jne	.L22
	test	DWORD PTR ISREG_PKTRX[rip], ebp
	jne	.L23
.L5:
	test	DWORD PTR ISREG_TXDN[rip], ebp
	jne	.L24
.L6:
	test	DWORD PTR ISREG_TXER[rip], ebp
	jne	.L25
.L7:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbx
	call	irqrbe_handler@PLT
	mov	edi, DWORD PTR ISREG_RBE[rip]
	mov	rsi, QWORD PTR SONIC_ISREG[rip]
	add	rsi, QWORD PTR [rbx]
	call	outw@PLT
	test	DWORD PTR ISREG_PKTRX[rip], ebp
	je	.L5
.L23:
	mov	rdi, rbx
	call	irqrx_handler@PLT
	mov	edi, DWORD PTR ISREG_PKTRX[rip]
	mov	rsi, QWORD PTR SONIC_ISREG[rip]
	add	rsi, QWORD PTR [rbx]
	call	outw@PLT
	test	DWORD PTR ISREG_TXDN[rip], ebp
	je	.L6
.L24:
	mov	rdi, rbx
	call	irqtx_handler@PLT
	mov	edi, DWORD PTR ISREG_TXDN[rip]
	mov	rsi, QWORD PTR SONIC_ISREG[rip]
	add	rsi, QWORD PTR [rbx]
	call	outw@PLT
	test	DWORD PTR ISREG_TXER[rip], ebp
	je	.L7
.L25:
	mov	rdi, rbx
	call	irqtxerr_handler@PLT
	mov	edi, DWORD PTR ISREG_TXER[rip]
	mov	rsi, QWORD PTR SONIC_ISREG[rip]
	add	rsi, QWORD PTR [rbx]
	call	outw@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	irq_handler, .-irq_handler
	.comm	SONIC_ISREG,8,8
	.comm	ISREG_TXER,4,4
	.comm	ISREG_TXDN,4,4
	.comm	ISREG_RBE,4,4
	.comm	ISREG_PKTRX,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BCMREG_IPEND,4,4
	.comm	BCMREG,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_ibmlana.c_irq_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	irq_handler, %function
irq_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L26
	ldr	r0, [r1]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	add	r0, r0, r3
	mov	r4, r1
	bl	inb
	ldr	r3, .L26+4
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L2
	ldr	r3, .L26+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r6, .L26+12
	ldr	r0, [r4]
	ldr	r3, [r6]
	ldr	r7, .L26+16
	add	r0, r0, r3
	bl	inw
	ldr	r3, [r7]
	mov	r5, r0
	tst	r0, r3
	bne	.L22
	ldr	r7, .L26+20
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L23
.L5:
	ldr	r7, .L26+24
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L24
.L6:
	ldr	r7, .L26+28
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L25
.L7:
	ldr	r3, .L26+32
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r4
	bl	irqrbe_handler
	ldr	r3, [r6]
	ldr	r1, [r4]
	ldr	r0, [r7]
	ldr	r7, .L26+20
	add	r1, r1, r3
	bl	outw
	ldr	r3, [r7]
	tst	r5, r3
	beq	.L5
.L23:
	mov	r0, r4
	bl	irqrx_handler
	ldr	r3, [r6]
	ldr	r1, [r4]
	ldr	r0, [r7]
	ldr	r7, .L26+24
	add	r1, r1, r3
	bl	outw
	ldr	r3, [r7]
	tst	r5, r3
	beq	.L6
.L24:
	mov	r0, r4
	bl	irqtx_handler
	ldr	r3, [r6]
	ldr	r1, [r4]
	ldr	r0, [r7]
	ldr	r7, .L26+28
	add	r1, r1, r3
	bl	outw
	ldr	r3, [r7]
	tst	r5, r3
	beq	.L7
.L25:
	mov	r0, r4
	bl	irqtxerr_handler
	ldr	r1, [r4]
	ldr	r3, [r6]
	ldr	r0, [r7]
	add	r1, r1, r3
	bl	outw
	b	.L7
.L27:
	.align	2
.L26:
	.word	BCMREG
	.word	BCMREG_IPEND
	.word	IRQ_NONE
	.word	SONIC_ISREG
	.word	ISREG_RBE
	.word	ISREG_PKTRX
	.word	ISREG_TXDN
	.word	ISREG_TXER
	.word	IRQ_HANDLED
	.size	irq_handler, .-irq_handler
	.comm	SONIC_ISREG,4,4
	.comm	ISREG_TXER,4,4
	.comm	ISREG_TXDN,4,4
	.comm	ISREG_RBE,4,4
	.comm	ISREG_PKTRX,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	BCMREG_IPEND,4,4
	.comm	BCMREG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
