	.file	"extr_if_rt.c_rt_tx_intr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Tx interrupt: qid=%d\n"
	.text
	.p2align 4
	.type	rt_tx_intr, @function
rt_tx_intr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 32[rdi]
	movsx	rbx, esi
	mov	r12, rbx
	call	device_get_nameunit@PLT
	xor	edi, edi
	test	ebx, ebx
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR RT_SOFTC_TX_RING_COUNT[rip], ebx
	setg	dil
.L2:
	mov	rsi, rbx
	call	KASSERT@PLT
	mov	esi, DWORD PTR RT_DEBUG_INTR[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	call	RT_DPRINTF@PLT
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rbp
	add	DWORD PTR [rax+rbx*4], 1
	call	RT_SOFTC_LOCK@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	ecx, r12d
	sal	esi, cl
	test	DWORD PTR 0[rbp], esi
	je	.L8
	or	DWORD PTR 8[rbp], esi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	RT_SOFTC_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	rt_intr_disable@PLT
	mov	edi, DWORD PTR 16[rbp]
	lea	rsi, 12[rbp]
	call	taskqueue_enqueue@PLT
	mov	esi, DWORD PTR 4[rbp]
	mov	ecx, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	sal	esi, cl
	or	DWORD PTR 8[rbp], esi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	RT_SOFTC_UNLOCK@PLT
	.cfi_endproc
.LFE0:
	.size	rt_tx_intr, .-rt_tx_intr
	.comm	RT_SOFTC_TX_RING_COUNT,4,4
	.comm	RT_DEBUG_INTR,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_if_rt.c_rt_tx_intr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Tx interrupt: qid=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt_tx_intr, %function
rt_tx_intr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r5, r1, #0
	mov	r4, r0
	movlt	r6, #0
	blt	.L2
	ldr	r3, .L8
	ldr	r6, [r3]
	cmp	r6, r5
	movle	r6, #0
	movgt	r6, #1
.L2:
	ldr	r0, [r4, #24]
	bl	device_get_nameunit
	mov	r1, r5
	mov	r0, r6
	bl	KASSERT
	ldr	r2, .L8+4
	mov	r3, r5
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, .L8+8
	bl	RT_DPRINTF
	ldr	r2, [r4, #20]
	mov	r0, r4
	ldr	r3, [r2, r5, lsl #2]
	add	r3, r3, #1
	str	r3, [r2, r5, lsl #2]
	bl	RT_SOFTC_LOCK
	ldr	r1, [r4, #4]
	ldr	r3, [r4]
	lsl	r1, r1, r5
	tst	r1, r3
	beq	.L7
.L3:
	ldr	r3, [r4, #8]
	mov	r0, r4
	orr	r1, r3, r1
	str	r1, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	RT_SOFTC_UNLOCK
.L7:
	mov	r0, r4
	bl	rt_intr_disable
	add	r1, r4, #12
	ldr	r0, [r4, #16]
	bl	taskqueue_enqueue
	ldr	r1, [r4, #4]
	lsl	r1, r1, r5
	b	.L3
.L9:
	.align	2
.L8:
	.word	RT_SOFTC_TX_RING_COUNT
	.word	RT_DEBUG_INTR
	.word	.LC0
	.size	rt_tx_intr, .-rt_tx_intr
	.comm	RT_SOFTC_TX_RING_COUNT,4,4
	.comm	RT_DEBUG_INTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
