	.file	"extr_if_gif.c_gif_output.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gif_output, @function
gif_output:
.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
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	ifnet_softc@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	GIF_LOCK@PLT
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rbp]
	mov	r14, QWORD PTR 16[rbp]
	call	GIF_UNLOCK@PLT
	mov	eax, DWORD PTR M_BCAST[rip]
	mov	edi, r12d
	or	eax, DWORD PTR M_MCAST[rip]
	not	eax
	and	DWORD PTR [rbx], eax
	call	ifnet_flags@PLT
	test	DWORD PTR IFF_UP[rip], eax
	je	.L2
	test	r13, r13
	je	.L2
	test	r14, r14
	je	.L2
	xor	esi, esi
	mov	r8d, 4
	mov	rcx, rbp
	mov	rdx, rbx
	mov	edi, r12d
	call	bpf_tap_out@PLT
	mov	rdi, rbp
	call	GIF_LOCK@PLT
	mov	r13d, DWORD PTR ENETDOWN[rip]
	mov	rdi, rbp
	call	GIF_UNLOCK@PLT
	test	r13d, r13d
	jne	.L13
.L6:
	mov	edx, DWORD PTR 4[rbx]
	mov	edi, r12d
	xor	ecx, ecx
	mov	esi, 1
	call	ifnet_stat_increment_out@PLT
	mov	r13d, DWORD PTR EJUSTRETURN[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
.L5:
	endbr64
	mov	edi, r12d
	call	ifnet_touch_lastchange@PLT
	mov	rdi, rbx
	call	m_freem@PLT
	mov	r13d, DWORD PTR ENETDOWN[rip]
	test	r13d, r13d
	je	.L6
.L13:
	mov	edi, r12d
	mov	ecx, 1
	xor	edx, edx
	xor	esi, esi
	call	ifnet_stat_increment_out@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	gif_output, .-gif_output
	.comm	M_MCAST,4,4
	.comm	M_BCAST,4,4
	.comm	IFF_UP,4,4
	.comm	ENETDOWN,4,4
	.comm	EJUSTRETURN,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_gif.c_gif_output.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gif_output, %function
gif_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r7, r0
	bl	ifnet_softc
	mov	r4, r0
	bl	GIF_LOCK
	mov	r0, r4
	ldr	r8, [r4, #4]
	ldr	r5, [r4, #8]
	bl	GIF_UNLOCK
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r6]
	orr	r2, r2, r1
	bic	r3, r3, r2
	str	r3, [r6]
	mov	r0, r7
	bl	ifnet_flags
	ldr	r3, .L12+8
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L2
	clz	r3, r5
	cmp	r8, #0
	lsr	r3, r3, #5
	movne	r1, r3
	moveq	r1, #1
	cmp	r1, #0
	beq	.L3
.L2:
	mov	r0, r7
	bl	ifnet_touch_lastchange
	mov	r0, r6
	bl	m_freem
	ldr	r3, .L12+12
	ldr	r4, [r3]
.L4:
	cmp	r4, #0
	beq	.L5
	mov	r2, #0
	mov	r0, r7
	mov	r1, r2
	mov	r3, #1
	bl	ifnet_stat_increment_out
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r3, r4
	mov	r0, r7
	mov	r1, #1
	ldr	r2, [r6, #4]
	bl	ifnet_stat_increment_out
	ldr	r3, .L12+16
	ldr	r4, [r3]
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r3, #4
	mov	r2, r6
	str	r3, [sp]
	mov	r0, r7
	mov	r3, r4
	bl	bpf_tap_out
	mov	r0, r4
	bl	GIF_LOCK
	ldr	r3, .L12+12
	mov	r0, r4
	ldr	r4, [r3]
	bl	GIF_UNLOCK
	b	.L4
.L13:
	.align	2
.L12:
	.word	M_MCAST
	.word	M_BCAST
	.word	IFF_UP
	.word	ENETDOWN
	.word	EJUSTRETURN
	.size	gif_output, .-gif_output
	.comm	M_MCAST,4,4
	.comm	M_BCAST,4,4
	.comm	IFF_UP,4,4
	.comm	ENETDOWN,4,4
	.comm	EJUSTRETURN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
