	.file	"extr_if_ale.c_ale_start_locked.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ale_start_locked, @function
ale_start_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rbp
	call	ALE_LOCK_ASSERT@PLT
	mov	rax, QWORD PTR ALE_TX_DESC_HIWAT[rip]
	cmp	QWORD PTR 8[rbp], rax
	jge	.L23
.L2:
	mov	edx, DWORD PTR IFF_DRV_RUNNING[rip]
	mov	eax, DWORD PTR IFF_DRV_OACTIVE[rip]
	or	eax, edx
	and	eax, DWORD PTR [rbx]
	cmp	edx, eax
	jne	.L1
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR ALE_FLAG_LINK[rip], eax
	je	.L1
	lea	r12, 4[rbx]
	xor	r13d, r13d
	mov	r14, rsp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r12
	call	IFQ_DRV_DEQUEUE@PLT
	cmp	QWORD PTR [rsp], 0
	je	.L6
	mov	rsi, r14
	mov	rdi, rbp
	call	ale_encap@PLT
	test	rax, rax
	jne	.L24
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbx
	add	r13d, 1
	call	ETHER_BPF_MTAP@PLT
.L4:
	mov	rdi, r12
	call	IFQ_DRV_IS_EMPTY@PLT
	test	eax, eax
	je	.L9
.L6:
	test	r13d, r13d
	jne	.L25
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, rbp
	call	ale_txeof@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR ALE_MBOX_TPD_PROD_IDX[rip]
	mov	rdi, rbp
	call	CSR_WRITE_4@PLT
	mov	eax, DWORD PTR ALE_TX_TIMEOUT[rip]
	mov	DWORD PTR 4[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, QWORD PTR [rsp]
	test	rsi, rsi
	je	.L6
	mov	rdi, r12
	call	IFQ_DRV_PREPEND@PLT
	mov	eax, DWORD PTR IFF_DRV_OACTIVE[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L6
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ale_start_locked, .-ale_start_locked
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	ALE_TX_TIMEOUT,4,4
	.comm	ALE_TX_DESC_HIWAT,8,8
	.comm	ALE_MBOX_TPD_PROD_IDX,4,4
	.comm	ALE_FLAG_LINK,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_ale.c_ale_start_locked.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ale_start_locked, %function
ale_start_locked:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r0, #8]
	ldr	r3, .L27
	sub	sp, sp, #8
	mov	r4, r0
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ALE_LOCK_ASSERT
	ldr	r3, .L27+4
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L23
.L2:
	ldr	r3, .L27+8
	ldr	r8, .L27+12
	ldr	r2, [r3]
	ldr	r3, [r8]
	ldr	r1, [r4]
	orr	r3, r2, r3
	and	r3, r3, r1
	cmp	r2, r3
	bne	.L1
	ldr	r3, .L27+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L1
	mov	r7, #0
	add	r6, r4, #4
	b	.L4
.L9:
	mov	r0, r6
	ldr	r1, [sp]
	bl	IFQ_DRV_DEQUEUE
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L6
	mov	r1, sp
	mov	r0, r5
	bl	ale_encap
	cmp	r0, #0
	ldr	r1, [sp]
	bne	.L24
	mov	r0, r4
	add	r7, r7, #1
	bl	ETHER_BPF_MTAP
.L4:
	mov	r0, r6
	bl	IFQ_DRV_IS_EMPTY
	cmp	r0, #0
	beq	.L9
.L6:
	cmp	r7, #0
	bne	.L25
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	mov	r0, r5
	bl	ale_txeof
	b	.L2
.L25:
	ldr	r3, .L27+20
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, [r5, #12]
	bl	CSR_WRITE_4
	ldr	r3, .L27+24
	ldr	r3, [r3]
	str	r3, [r5, #4]
	b	.L1
.L24:
	cmp	r1, #0
	beq	.L6
	mov	r0, r6
	bl	IFQ_DRV_PREPEND
	ldr	r2, [r8]
	ldr	r3, [r4]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L6
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	ALE_TX_DESC_HIWAT
	.word	IFF_DRV_RUNNING
	.word	IFF_DRV_OACTIVE
	.word	ALE_FLAG_LINK
	.word	ALE_MBOX_TPD_PROD_IDX
	.word	ALE_TX_TIMEOUT
	.size	ale_start_locked, .-ale_start_locked
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_DRV_OACTIVE,4,4
	.comm	ALE_TX_TIMEOUT,4,4
	.comm	ALE_TX_DESC_HIWAT,4,4
	.comm	ALE_MBOX_TPD_PROD_IDX,4,4
	.comm	ALE_FLAG_LINK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
