	.file	"extr_ena_datapath.c_ena_mq_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ena_mq_start
	.type	ena_mq_start, @function
ena_mq_start:
.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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	edi, DWORD PTR 16[rbx]
	call	if_getdrvflags@PLT
	xor	edi, edi
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR ENODEV[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	rdi, r12
	call	M_HASHTYPE_GET@PLT
	cmp	rax, QWORD PTR M_HASHTYPE_NONE[rip]
	je	.L4
	mov	rax, QWORD PTR [r12]
	xor	edx, edx
	div	QWORD PTR [rbx]
.L5:
	mov	rax, QWORD PTR 8[rbx]
	lea	rdx, [rdx+rdx*2]
	mov	rdi, rbp
	lea	r13, [rax+rdx*4]
	mov	esi, DWORD PTR 8[r13]
	call	drbr_empty@PLT
	mov	esi, DWORD PTR 8[r13]
	mov	rdx, r12
	mov	rdi, rbp
	mov	ebx, eax
	call	drbr_enqueue@PLT
	xor	edi, edi
	test	eax, eax
	mov	r12d, eax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L16
	test	ebx, ebx
	je	.L7
	mov	rdi, r13
	call	ENA_RING_MTX_TRYLOCK@PLT
	test	rax, rax
	je	.L7
	mov	rdi, r13
	xor	r12d, r12d
	call	ena_start_xmit@PLT
	mov	rdi, r13
	call	ENA_RING_MTX_UNLOCK@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, r13
	xor	r12d, r12d
	call	taskqueue_enqueue@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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	rax, QWORD PTR curcpu[rip]
	xor	edx, edx
	div	QWORD PTR [rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 4[r13]
	mov	rsi, r13
	call	taskqueue_enqueue@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ena_mq_start, .-ena_mq_start
	.comm	curcpu,8,8
	.comm	M_HASHTYPE_NONE,8,8
	.comm	IFF_DRV_RUNNING,4,4
	.comm	ENODEV,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_ena_datapath.c_ena_mq_start.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	ena_mq_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	ena_mq_start, %function
ena_mq_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	mov	r4, r0
	ldr	r0, [r6, #8]
	mov	r5, r1
	bl	if_getdrvflags
	ldr	r3, .L17
	ldr	r3, [r3]
	tst	r0, r3
	moveq	r0, #1
	movne	r0, #0
	bl	unlikely
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L17+4
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	M_HASHTYPE_GET
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L17+12
	ldrne	r1, [r6]
	ldrne	r0, [r5]
	ldreq	r1, [r6]
	ldreq	r0, [r3]
	bl	__aeabi_uidivmod
	ldr	r6, [r6, #4]
	add	r1, r1, r1, lsl #1
	add	r6, r6, r1, lsl #2
	mov	r0, r4
	ldr	r1, [r6, #8]
	bl	drbr_empty
	mov	r2, r5
	ldr	r1, [r6, #8]
	mov	r7, r0
	mov	r0, r4
	bl	drbr_enqueue
	mov	r5, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	subs	r4, r0, #0
	bne	.L16
	cmp	r7, #0
	beq	.L7
	mov	r0, r6
	bl	ENA_RING_MTX_TRYLOCK
	cmp	r0, #0
	beq	.L7
	mov	r0, r6
	bl	ena_start_xmit
	mov	r0, r6
	bl	ENA_RING_MTX_UNLOCK
	b	.L1
.L7:
	mov	r1, r6
	ldr	r0, [r6, #4]
	bl	taskqueue_enqueue
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r1, r6
	ldr	r0, [r6, #4]
	mov	r4, r5
	bl	taskqueue_enqueue
	b	.L1
.L18:
	.align	2
.L17:
	.word	IFF_DRV_RUNNING
	.word	ENODEV
	.word	M_HASHTYPE_NONE
	.word	curcpu
	.size	ena_mq_start, .-ena_mq_start
	.comm	curcpu,4,4
	.comm	M_HASHTYPE_NONE,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
