	.file	"extr_main.c_b43_do_interrupt_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"MAC transmission error\n"
.LC1:
	.string	"PHY transmission error\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Too many PHY TX errors, restarting the controller\n"
	.section	.rodata.str1.1
.LC3:
	.string	"PHY TX errors"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Fatal DMA error: 0x%08X, 0x%08X, 0x%08X, 0x%08X, 0x%08X, 0x%08X\n"
	.align 8
.LC5:
	.string	"This device does not support DMA on your system. It will now be switched to PIO.\n"
	.section	.rodata.str1.1
.LC6:
	.string	"DMA error"
.LC7:
	.string	"RX descriptor underrun\n"
	.text
	.p2align 4
	.type	b43_do_interrupt_thread, @function
b43_do_interrupt_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -56
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], rsp
	call	ARRAY_SIZE@PLT
	mov	rcx, rsp
	cdqe
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L64:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L64
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L65
.L4:
	lea	rcx, 3[rsp]
	mov	rdi, r12
	mov	r14, rcx
	and	rcx, -4
	shr	r14, 2
	mov	r13, rcx
	call	b43_status@PLT
	xor	edi, edi
	cmp	QWORD PTR B43_STAT_STARTED[rip], rax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L5
	mov	eax, DWORD PTR 8[r12]
	xor	r15d, r15d
	xor	ebx, ebx
	mov	DWORD PTR -68[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [r12]
	mov	eax, DWORD PTR [rax+r15*4]
	mov	DWORD PTR 0[r13+r15*4], eax
	or	ebx, eax
	add	r15, 1
.L6:
	mov	rdi, r13
	call	ARRAY_SIZE@PLT
	cmp	eax, r15d
	jg	.L7
	mov	edi, DWORD PTR -68[rbp]
	and	edi, DWORD PTR B43_IRQ_MAC_TXERR[rip]
	call	unlikely@PLT
	test	rax, rax
	jne	.L66
.L8:
	mov	edi, DWORD PTR -68[rbp]
	and	edi, DWORD PTR B43_IRQ_PHY_TXERR[rip]
	call	unlikely@PLT
	test	rax, rax
	jne	.L67
.L10:
	and	ebx, DWORD PTR B43_DMAIRQ_FATALMASK[rip]
	mov	edi, ebx
	call	unlikely@PLT
	test	rax, rax
	jne	.L68
	mov	edi, DWORD PTR -68[rbp]
	and	edi, DWORD PTR B43_IRQ_UCODE_DEBUG[rip]
	call	unlikely@PLT
	test	rax, rax
	jne	.L69
.L13:
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_TBTT_INDI[rip], eax
	jne	.L70
.L14:
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_ATIM_END[rip], eax
	jne	.L71
.L15:
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_BEACON[rip], eax
	jne	.L72
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_PMQ[rip], eax
	jne	.L73
.L17:
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_NOISESAMPLE_OK[rip], eax
	jne	.L74
.L18:
	mov	eax, DWORD PTR 0[0+r14*4]
	test	DWORD PTR B43_DMAIRQ_RDESC_UFLOW[rip], eax
	je	.L19
	cmp	QWORD PTR B43_DEBUG[rip], 0
	jne	.L75
.L20:
	mov	edi, DWORD PTR 32[r12]
	call	b43_dma_handle_rx_overflow@PLT
	mov	eax, DWORD PTR 0[0+r14*4]
.L19:
	mov	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	test	edi, eax
	jne	.L76
.L21:
	and	edi, DWORD PTR 4[0+r14*4]
	call	B43_WARN_ON@PLT
	mov	edi, DWORD PTR 8[0+r14*4]
	and	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	call	B43_WARN_ON@PLT
	mov	edi, DWORD PTR 12[0+r14*4]
	and	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	call	B43_WARN_ON@PLT
	mov	edi, DWORD PTR 16[0+r14*4]
	and	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	call	B43_WARN_ON@PLT
	mov	edi, DWORD PTR 20[0+r14*4]
	and	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	call	B43_WARN_ON@PLT
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_TX_OK[rip], eax
	jne	.L77
.L23:
	mov	edx, DWORD PTR 28[r12]
	mov	esi, DWORD PTR B43_MMIO_GEN_IRQ_MASK[rip]
	mov	rdi, r12
	call	b43_write32@PLT
	mov	rsp, QWORD PTR -80[rbp]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L78
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L68:
	.cfi_restore_state
	mov	eax, DWORD PTR 20[0+r14*4]
	mov	r9d, DWORD PTR 12[0+r14*4]
	lea	rsi, .LC4[rip]
	mov	r8d, DWORD PTR 8[0+r14*4]
	mov	ecx, DWORD PTR 4[0+r14*4]
	mov	edi, DWORD PTR 40[r12]
	push	rax
	mov	eax, DWORD PTR 16[0+r14*4]
	push	rax
	mov	edx, DWORD PTR 0[0+r14*4]
	xor	eax, eax
	call	b43err@PLT
	mov	edi, DWORD PTR 40[r12]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	b43err@PLT
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	mov	DWORD PTR 12[r12], 1
	call	b43_controller_restart@PLT
	pop	rax
	pop	rdx
.L5:
	mov	rsp, QWORD PTR -80[rbp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L66:
	mov	edi, DWORD PTR 40[r12]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	b43err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L67:
	mov	edi, DWORD PTR 40[r12]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	b43err@PLT
	xor	eax, eax
	call	rmb@PLT
	lea	r8, 44[r12]
	mov	rdi, r8
	mov	QWORD PTR -88[rbp], r8
	call	atomic_dec_and_test@PLT
	mov	edi, eax
	call	unlikely@PLT
	mov	r8, QWORD PTR -88[rbp]
	test	rax, rax
	je	.L10
	mov	esi, DWORD PTR B43_PHY_TX_BADNESS_LIMIT[rip]
	mov	rdi, r8
	call	atomic_set@PLT
	mov	edi, DWORD PTR 40[r12]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	b43err@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r12
	call	b43_controller_restart@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L65:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L75:
	mov	edi, DWORD PTR 40[r12]
	lea	rsi, .LC7[rip]
	call	b43warn@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L76:
	mov	rdi, r12
	call	b43_using_pio_transfers@PLT
	test	rax, rax
	je	.L22
	mov	edi, DWORD PTR 36[r12]
	call	b43_pio_rx@PLT
	mov	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L77:
	mov	rdi, r12
	call	handle_irq_transmit_status@PLT
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L72:
	mov	rdi, r12
	call	handle_irq_beacon@PLT
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_PMQ[rip], eax
	je	.L17
.L73:
	mov	rdi, r12
	call	handle_irq_pmq@PLT
	mov	eax, DWORD PTR -68[rbp]
	test	DWORD PTR B43_IRQ_NOISESAMPLE_OK[rip], eax
	je	.L18
.L74:
	mov	rdi, r12
	call	handle_irq_noise@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L71:
	mov	rdi, r12
	call	handle_irq_atim_end@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L70:
	mov	rdi, r12
	call	handle_irq_tbtt_indication@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L69:
	mov	rdi, r12
	call	handle_irq_ucode_debug@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR 32[r12]
	call	b43_dma_rx@PLT
	mov	edi, DWORD PTR B43_DMAIRQ_RX_DONE[rip]
	jmp	.L21
.L78:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	b43_do_interrupt_thread, .-b43_do_interrupt_thread
	.comm	B43_STAT_STARTED,8,8
	.comm	B43_PHY_TX_BADNESS_LIMIT,4,4
	.comm	B43_MMIO_GEN_IRQ_MASK,4,4
	.comm	B43_IRQ_UCODE_DEBUG,4,4
	.comm	B43_IRQ_TX_OK,4,4
	.comm	B43_IRQ_TXFIFO_FLUSH_OK,4,4
	.comm	B43_IRQ_TBTT_INDI,4,4
	.comm	B43_IRQ_PMQ,4,4
	.comm	B43_IRQ_PHY_TXERR,4,4
	.comm	B43_IRQ_NOISESAMPLE_OK,4,4
	.comm	B43_IRQ_MAC_TXERR,4,4
	.comm	B43_IRQ_BEACON,4,4
	.comm	B43_IRQ_ATIM_END,4,4
	.comm	B43_DMAIRQ_RX_DONE,4,4
	.comm	B43_DMAIRQ_RDESC_UFLOW,4,4
	.comm	B43_DMAIRQ_FATALMASK,4,4
	.comm	B43_DEBUG,8,8
	.comm	B43_DBG_VERBOSESTATS,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_main.c_b43_do_interrupt_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"MAC transmission error\012\000"
	.align	2
.LC1:
	.ascii	"PHY transmission error\012\000"
	.align	2
.LC2:
	.ascii	"Too many PHY TX errors, restarting the controller\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"PHY TX errors\000"
	.align	2
.LC4:
	.ascii	"Fatal DMA error: 0x%08X, 0x%08X, 0x%08X, 0x%08X, 0x"
	.ascii	"%08X, 0x%08X\012\000"
	.align	2
.LC5:
	.ascii	"This device does not support DMA on your system. It"
	.ascii	" will now be switched to PIO.\012\000"
	.align	2
.LC6:
	.ascii	"DMA error\000"
	.align	2
.LC7:
	.ascii	"RX descriptor underrun\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_do_interrupt_thread, %function
b43_do_interrupt_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	ldr	r3, .L74
	mov	r7, r0
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	ARRAY_SIZE
	lsl	r3, r0, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	mov	r9, sp
	mov	r0, r7
	sub	sp, sp, r3
	bl	b43_status
	ldr	r3, .L74+4
	ldr	r3, [r3]
	subs	r0, r3, r0
	movne	r0, #1
	bl	unlikely
	subs	r6, r0, #0
	bne	.L2
	mov	r4, r6
	ldr	r8, [r7, #4]
	add	r5, sp, #16
	b	.L3
.L4:
	ldr	r3, [r7]
	ldr	r3, [r3, r4, lsl #2]
	str	r3, [r5, r4, lsl #2]
	orr	r6, r6, r3
	add	r4, r4, #1
.L3:
	mov	r0, r5
	bl	ARRAY_SIZE
	cmp	r4, r0
	blt	.L4
	ldr	r3, .L74+8
	ldr	r0, [r3]
	and	r0, r0, r8
	bl	unlikely
	cmp	r0, #0
	bne	.L61
.L5:
	ldr	r3, .L74+12
	ldr	r0, [r3]
	and	r0, r0, r8
	bl	unlikely
	cmp	r0, #0
	bne	.L62
.L7:
	ldr	r3, .L74+16
	ldr	r0, [r3]
	and	r0, r0, r6
	bl	unlikely
	cmp	r0, #0
	bne	.L63
	ldr	r3, .L74+20
	ldr	r0, [r3]
	and	r0, r0, r8
	bl	unlikely
	cmp	r0, #0
	bne	.L64
.L10:
	ldr	r3, .L74+24
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L65
.L11:
	ldr	r3, .L74+28
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L66
.L12:
	ldr	r3, .L74+32
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L67
.L13:
	ldr	r3, .L74+36
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L68
.L14:
	ldr	r3, .L74+40
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L69
.L15:
	ldr	r2, .L74+44
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L16
	ldr	r3, .L74+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L70
.L17:
	ldr	r0, [r7, #24]
	bl	b43_dma_handle_rx_overflow
	ldr	r3, [r5]
.L16:
	ldr	r4, .L74+52
	ldr	r2, [r4]
	tst	r2, r3
	bne	.L71
.L18:
	ldr	r0, [r5, #4]
	and	r0, r0, r2
	bl	B43_WARN_ON
	ldr	r3, [r4]
	ldr	r0, [r5, #8]
	and	r0, r0, r3
	bl	B43_WARN_ON
	ldr	r3, [r4]
	ldr	r0, [r5, #12]
	and	r0, r0, r3
	bl	B43_WARN_ON
	ldr	r3, [r4]
	ldr	r0, [r5, #16]
	and	r0, r0, r3
	bl	B43_WARN_ON
	ldr	r3, [r4]
	ldr	r0, [r5, #20]
	and	r0, r0, r3
	bl	B43_WARN_ON
	ldr	r3, .L74+56
	ldr	r3, [r3]
	tst	r8, r3
	bne	.L72
.L20:
	ldr	r3, .L74+60
	mov	r0, r7
	ldr	r2, [r7, #20]
	ldr	r1, [r3]
	bl	b43_write32
	mov	sp, r9
	b	.L1
.L63:
	ldr	r1, [r5, #20]
	ldm	r5, {r2, r3}
	ldr	r0, [r7, #32]
	str	r1, [sp, #12]
	ldr	r1, [r5, #16]
	str	r1, [sp, #8]
	ldr	r1, [r5, #12]
	str	r1, [sp, #4]
	ldr	r1, [r5, #8]
	str	r1, [sp]
	ldr	r1, .L74+64
	bl	b43err
	ldr	r1, .L74+68
	ldr	r0, [r7, #32]
	bl	b43err
	mov	r3, #1
	mov	r0, r7
	ldr	r1, .L74+72
	str	r3, [r7, #8]
	bl	b43_controller_restart
.L2:
	mov	sp, r9
.L1:
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L73
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L62:
	ldr	r1, .L74+76
	ldr	r0, [r7, #32]
	add	r4, r7, #36
	bl	b43err
	bl	rmb
	mov	r0, r4
	bl	atomic_dec_and_test
	bl	unlikely
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L74+80
	mov	r0, r4
	ldr	r1, [r3]
	bl	atomic_set
	ldr	r1, .L74+84
	ldr	r0, [r7, #32]
	bl	b43err
	mov	r0, r7
	ldr	r1, .L74+88
	bl	b43_controller_restart
	b	.L7
.L61:
	ldr	r1, .L74+92
	ldr	r0, [r7, #32]
	bl	b43err
	b	.L5
.L70:
	ldr	r1, .L74+96
	ldr	r0, [r7, #32]
	bl	b43warn
	b	.L17
.L69:
	mov	r0, r7
	bl	handle_irq_noise
	b	.L15
.L68:
	mov	r0, r7
	bl	handle_irq_pmq
	b	.L14
.L67:
	mov	r0, r7
	bl	handle_irq_beacon
	b	.L13
.L66:
	mov	r0, r7
	bl	handle_irq_atim_end
	b	.L12
.L65:
	mov	r0, r7
	bl	handle_irq_tbtt_indication
	b	.L11
.L64:
	mov	r0, r7
	bl	handle_irq_ucode_debug
	b	.L10
.L72:
	mov	r0, r7
	bl	handle_irq_transmit_status
	b	.L20
.L71:
	mov	r0, r7
	bl	b43_using_pio_transfers
	cmp	r0, #0
	beq	.L19
	ldr	r0, [r7, #28]
	bl	b43_pio_rx
	ldr	r2, [r4]
	b	.L18
.L19:
	ldr	r0, [r7, #24]
	bl	b43_dma_rx
	ldr	r2, [r4]
	b	.L18
.L73:
	bl	__stack_chk_fail
.L75:
	.align	2
.L74:
	.word	.LC8
	.word	B43_STAT_STARTED
	.word	B43_IRQ_MAC_TXERR
	.word	B43_IRQ_PHY_TXERR
	.word	B43_DMAIRQ_FATALMASK
	.word	B43_IRQ_UCODE_DEBUG
	.word	B43_IRQ_TBTT_INDI
	.word	B43_IRQ_ATIM_END
	.word	B43_IRQ_BEACON
	.word	B43_IRQ_PMQ
	.word	B43_IRQ_NOISESAMPLE_OK
	.word	B43_DMAIRQ_RDESC_UFLOW
	.word	B43_DEBUG
	.word	B43_DMAIRQ_RX_DONE
	.word	B43_IRQ_TX_OK
	.word	B43_MMIO_GEN_IRQ_MASK
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.word	B43_PHY_TX_BADNESS_LIMIT
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.word	.LC7
	.size	b43_do_interrupt_thread, .-b43_do_interrupt_thread
	.comm	B43_STAT_STARTED,4,4
	.comm	B43_PHY_TX_BADNESS_LIMIT,4,4
	.comm	B43_MMIO_GEN_IRQ_MASK,4,4
	.comm	B43_IRQ_UCODE_DEBUG,4,4
	.comm	B43_IRQ_TX_OK,4,4
	.comm	B43_IRQ_TXFIFO_FLUSH_OK,4,4
	.comm	B43_IRQ_TBTT_INDI,4,4
	.comm	B43_IRQ_PMQ,4,4
	.comm	B43_IRQ_PHY_TXERR,4,4
	.comm	B43_IRQ_NOISESAMPLE_OK,4,4
	.comm	B43_IRQ_MAC_TXERR,4,4
	.comm	B43_IRQ_BEACON,4,4
	.comm	B43_IRQ_ATIM_END,4,4
	.comm	B43_DMAIRQ_RX_DONE,4,4
	.comm	B43_DMAIRQ_RDESC_UFLOW,4,4
	.comm	B43_DMAIRQ_FATALMASK,4,4
	.comm	B43_DEBUG,4,4
	.comm	B43_DBG_VERBOSESTATS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
