	.file	"extr_if_fwe.c_fwe_as_output.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fwe_as_output, @function
fwe_as_output:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 12[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], 0
	mov	r13, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[r13]
	sub	eax, 1
	cmp	eax, DWORD PTR 0[r13]
	jg	.L2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR IFCOUNTER_OERRORS[rip]
	mov	rdi, r12
	call	if_inc_counter@PLT
	mov	rdi, rbp
	call	fwe_output_callback@PLT
	mov	eax, DWORD PTR 4[r13]
	sub	eax, 1
	cmp	DWORD PTR 0[r13], eax
	jge	.L5
.L2:
	cmp	QWORD PTR [r12], 0
	je	.L5
	mov	rdi, rbx
	call	FWE_LOCK@PLT
	mov	rdi, r14
	call	STAILQ_FIRST@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L18
	mov	esi, DWORD PTR link[rip]
	mov	rdi, r14
	xor	r15d, r15d
	call	STAILQ_REMOVE_HEAD@PLT
	mov	rdi, rbx
	call	FWE_UNLOCK@PLT
	mov	rsi, r15
	mov	rdi, r12
	call	IF_DEQUEUE@PLT
	test	r15, r15
	je	.L20
	xor	r15d, r15d
	mov	rdi, r12
	mov	rsi, r15
	call	BPF_MTAP@PLT
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	esi, DWORD PTR ETHER_ALIGN[rip]
	mov	rdi, r15
	call	M_PREPEND@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, rbp
	mov	esi, -1
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR [r15]
	mov	QWORD PTR 8[rbp], r15
	mov	DWORD PTR 4[rbp], eax
	mov	DWORD PTR 0[rbp], eax
	call	fw_asyreq@PLT
	mov	edx, 1
	test	rax, rax
	jne	.L21
	mov	esi, DWORD PTR IFCOUNTER_OPACKETS[rip]
	mov	rdi, r12
	call	if_inc_counter@PLT
	mov	eax, DWORD PTR 4[r13]
	add	DWORD PTR 12[rsp], 1
	sub	eax, 1
	cmp	DWORD PTR 0[r13], eax
	jl	.L2
.L5:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L1
.L22:
	mov	rax, QWORD PTR 8[r13]
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, rbx
	call	FWE_LOCK@PLT
	mov	edx, DWORD PTR link[rip]
	mov	rsi, rbp
	mov	rdi, r14
	call	STAILQ_INSERT_HEAD@PLT
.L18:
	mov	rdi, rbx
	call	FWE_UNLOCK@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L22
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fwe_as_output, .-fwe_as_output
	.comm	link,4,4
	.comm	M_NOWAIT,4,4
	.comm	IFCOUNTER_OPACKETS,4,4
	.comm	IFCOUNTER_OERRORS,4,4
	.comm	ETHER_ALIGN,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_fwe.c_fwe_as_output.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fwe_as_output, %function
fwe_as_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r3]
	sub	sp, sp, #4
	ldm	r7, {r2, r3}
	sub	r3, r3, #1
	cmp	r3, r2
	ble	.L1
	mov	r5, r0
	mov	r6, r1
	mov	r9, #0
	ldr	r10, .L21
	add	r8, r0, #8
	b	.L2
.L19:
	ldr	r3, .L21+4
	mov	r0, r6
	ldr	r1, [r3]
	bl	if_inc_counter
	mov	r0, r4
	bl	fwe_output_callback
	ldm	r7, {r2, r3}
	sub	r3, r3, #1
	cmp	r2, r3
	bge	.L5
.L2:
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L5
	mov	r0, r5
	bl	FWE_LOCK
	mov	r0, r8
	bl	STAILQ_FIRST
	subs	r4, r0, #0
	beq	.L16
	mov	fp, #0
	ldr	r1, [r10]
	mov	r0, r8
	bl	STAILQ_REMOVE_HEAD
	mov	r0, r5
	bl	FWE_UNLOCK
	mov	r1, fp
	mov	r0, r6
	bl	IF_DEQUEUE
	cmp	fp, fp
	beq	.L18
	mov	fp, #0
	mov	r0, r6
	mov	r1, fp
	bl	BPF_MTAP
	ldr	r3, .L21+8
	mov	r0, fp
	ldr	r2, [r3]
	ldr	r3, .L21+12
	ldr	r1, [r3]
	bl	M_PREPEND
	ldr	r3, [r5, #4]
	mov	r2, r4
	str	r3, [r4, #4]
	ldr	r3, [fp]
	mvn	r1, #0
	ldr	r0, [r5]
	str	r3, [r4, #4]
	str	r3, [r4]
	str	fp, [r4, #8]
	bl	fw_asyreq
	cmp	r0, fp
	mov	r2, #1
	bne	.L19
	ldr	r3, .L21+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	if_inc_counter
	ldm	r7, {r2, r3}
	sub	r3, r3, #1
	cmp	r2, r3
	add	r9, r9, #1
	blt	.L2
.L5:
	cmp	r9, #0
	beq	.L1
.L20:
	ldr	r3, [r7, #8]
	ldr	r0, [r5]
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bx	r3
.L18:
	mov	r0, r5
	bl	FWE_LOCK
	mov	r1, r4
	mov	r0, r8
	ldr	r2, [r10]
	bl	STAILQ_INSERT_HEAD
.L16:
	mov	r0, r5
	bl	FWE_UNLOCK
	cmp	r9, #0
	bne	.L20
.L1:
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	link
	.word	IFCOUNTER_OERRORS
	.word	M_NOWAIT
	.word	ETHER_ALIGN
	.word	IFCOUNTER_OPACKETS
	.size	fwe_as_output, .-fwe_as_output
	.comm	link,4,4
	.comm	M_NOWAIT,4,4
	.comm	IFCOUNTER_OPACKETS,4,4
	.comm	IFCOUNTER_OERRORS,4,4
	.comm	ETHER_ALIGN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
