	.file	"extr_rt61pci.c_rt61pci_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rt61pci_interrupt, @function
rt61pci_interrupt:
.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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rdi, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR MCU_INT_SOURCE_CSR[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	lea	r12, 4[rsp]
	call	rt2x00mmio_register_read@PLT
	mov	edx, DWORD PTR [rsp]
	mov	esi, DWORD PTR MCU_INT_SOURCE_CSR[rip]
	mov	rdi, rbp
	call	rt2x00mmio_register_write@PLT
	mov	esi, DWORD PTR INT_SOURCE_CSR[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	rt2x00mmio_register_read@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR INT_SOURCE_CSR[rip]
	mov	rdi, rbp
	call	rt2x00mmio_register_write@PLT
	mov	eax, DWORD PTR 4[rsp]
	or	eax, DWORD PTR [rsp]
	mov	eax, DWORD PTR IRQ_NONE[rip]
	je	.L1
	mov	edi, DWORD PTR DEVICE_STATE_ENABLED_RADIO[rip]
	lea	rsi, 20[rbp]
	call	test_bit@PLT
	test	eax, eax
	jne	.L4
.L23:
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR INT_SOURCE_CSR_RXDONE[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	rt2x00_get_field32@PLT
	test	rax, rax
	jne	.L26
.L5:
	mov	esi, DWORD PTR INT_SOURCE_CSR_TXDONE[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	rt2x00_get_field32@PLT
	test	rax, rax
	jne	.L27
.L6:
	mov	esi, DWORD PTR INT_SOURCE_CSR_BEACON_DONE[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	rt2x00_get_field32@PLT
	test	rax, rax
	jne	.L28
.L7:
	mov	esi, DWORD PTR MCU_INT_SOURCE_CSR_TWAKEUP[rip]
	mov	edi, DWORD PTR [rsp]
	call	rt2x00_get_field32@PLT
	test	rax, rax
	jne	.L29
.L8:
	mov	rdi, rbp
	mov	r13d, DWORD PTR 4[rsp]
	mov	ebx, DWORD PTR [rsp]
	call	spin_lock@PLT
	mov	esi, DWORD PTR INT_MASK_CSR[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	rt2x00mmio_register_read@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR INT_MASK_CSR[rip]
	mov	rdi, rbp
	or	edx, r13d
	mov	DWORD PTR 4[rsp], edx
	call	rt2x00mmio_register_write@PLT
	mov	esi, DWORD PTR MCU_INT_MASK_CSR[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	rt2x00mmio_register_read@PLT
	or	ebx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR MCU_INT_MASK_CSR[rip]
	mov	rdi, rbp
	mov	edx, ebx
	mov	DWORD PTR 4[rsp], ebx
	call	rt2x00mmio_register_write@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, 16[rbp]
	call	tasklet_schedule@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, 4[rbp]
	call	tasklet_schedule@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, 8[rbp]
	call	tasklet_hi_schedule@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	lea	rdi, 12[rbp]
	call	tasklet_schedule@PLT
	jmp	.L6
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rt61pci_interrupt, .-rt61pci_interrupt
	.comm	MCU_INT_SOURCE_CSR_TWAKEUP,4,4
	.comm	MCU_INT_SOURCE_CSR,4,4
	.comm	MCU_INT_MASK_CSR,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	INT_SOURCE_CSR_TXDONE,4,4
	.comm	INT_SOURCE_CSR_RXDONE,4,4
	.comm	INT_SOURCE_CSR_BEACON_DONE,4,4
	.comm	INT_SOURCE_CSR,4,4
	.comm	INT_MASK_CSR,4,4
	.comm	DEVICE_STATE_ENABLED_RADIO,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_rt61pci.c_rt61pci_interrupt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt61pci_interrupt, %function
rt61pci_interrupt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r6, .L31
	sub	sp, sp, #16
	ldr	r3, .L31+4
	mov	r0, r1
	ldr	r5, .L31+8
	ldr	r1, [r6]
	add	r2, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	rt2x00mmio_register_read
	ldr	r1, [r6]
	ldr	r2, [sp, #4]
	mov	r0, r4
	bl	rt2x00mmio_register_write
	ldr	r1, [r5]
	add	r2, sp, #8
	mov	r0, r4
	bl	rt2x00mmio_register_read
	ldr	r2, [sp, #8]
	mov	r0, r4
	ldr	r1, [r5]
	bl	rt2x00mmio_register_write
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #4]
	orrs	r3, r2, r3
	beq	.L25
	ldr	r3, .L31+12
	add	r1, r4, #20
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L4
.L23:
	ldr	r3, .L31+16
	ldr	r0, [r3]
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, .L31+20
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	rt2x00_get_field32
	cmp	r0, #0
	bne	.L27
.L5:
	ldr	r3, .L31+24
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	rt2x00_get_field32
	cmp	r0, #0
	bne	.L28
.L6:
	ldr	r3, .L31+28
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	rt2x00_get_field32
	cmp	r0, #0
	bne	.L29
.L7:
	ldr	r3, .L31+32
	ldr	r0, [sp, #4]
	ldr	r1, [r3]
	bl	rt2x00_get_field32
	cmp	r0, #0
	bne	.L30
.L8:
	ldmib	sp, {r5, r6}
	ldr	r8, .L31+36
	mov	r0, r4
	bl	spin_lock
	ldr	r1, [r8]
	add	r2, sp, #8
	mov	r0, r4
	bl	rt2x00mmio_register_read
	ldr	r2, [sp, #8]
	ldr	r7, .L31+40
	orr	r2, r6, r2
	ldr	r1, [r8]
	mov	r0, r4
	str	r2, [sp, #8]
	bl	rt2x00mmio_register_write
	ldr	r1, [r7]
	add	r2, sp, #8
	mov	r0, r4
	bl	rt2x00mmio_register_read
	ldr	r2, [sp, #8]
	mov	r0, r4
	orr	r2, r5, r2
	ldr	r1, [r7]
	str	r2, [sp, #8]
	bl	rt2x00mmio_register_write
	mov	r0, r4
	bl	spin_unlock
	b	.L23
.L25:
	ldr	r3, .L31+44
	ldr	r0, [r3]
	b	.L1
.L27:
	add	r0, r4, #16
	bl	tasklet_schedule
	b	.L5
.L30:
	add	r0, r4, #4
	bl	tasklet_schedule
	b	.L8
.L29:
	add	r0, r4, #8
	bl	tasklet_hi_schedule
	b	.L7
.L28:
	add	r0, r4, #12
	bl	tasklet_schedule
	b	.L6
.L26:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	MCU_INT_SOURCE_CSR
	.word	.LC0
	.word	INT_SOURCE_CSR
	.word	DEVICE_STATE_ENABLED_RADIO
	.word	IRQ_HANDLED
	.word	INT_SOURCE_CSR_RXDONE
	.word	INT_SOURCE_CSR_TXDONE
	.word	INT_SOURCE_CSR_BEACON_DONE
	.word	MCU_INT_SOURCE_CSR_TWAKEUP
	.word	INT_MASK_CSR
	.word	MCU_INT_MASK_CSR
	.word	IRQ_NONE
	.size	rt61pci_interrupt, .-rt61pci_interrupt
	.comm	MCU_INT_SOURCE_CSR_TWAKEUP,4,4
	.comm	MCU_INT_SOURCE_CSR,4,4
	.comm	MCU_INT_MASK_CSR,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.comm	INT_SOURCE_CSR_TXDONE,4,4
	.comm	INT_SOURCE_CSR_RXDONE,4,4
	.comm	INT_SOURCE_CSR_BEACON_DONE,4,4
	.comm	INT_SOURCE_CSR,4,4
	.comm	INT_MASK_CSR,4,4
	.comm	DEVICE_STATE_ENABLED_RADIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
