	.file	"extr_pcap-sita.c_send_to_fd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_to_fd, @function
send_to_fd:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	esi, esi
	jle	.L1
	mov	ebp, edi
	mov	ebx, esi
	mov	r12, rdx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	sub	ebx, eax
	cdqe
	add	r12, rax
	test	ebx, ebx
	jle	.L1
.L2:
	mov	edx, ebx
	mov	rsi, r12
	mov	edi, ebp
	call	write@PLT
	test	eax, eax
	jg	.L4
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	xor	ecx, ecx
	mov	edi, ebp
	call	find_unit_by_fd@PLT
	movsx	rcx, DWORD PTR [rsp]
	movsx	rdx, DWORD PTR 4[rsp]
	mov	rax, QWORD PTR units[rip]
	mov	rdi, rcx
	mov	rsi, rdx
	mov	rax, QWORD PTR [rax+rcx*8]
	lea	rax, [rax+rdx*8]
	cmp	DWORD PTR [rax], ebp
	je	.L13
	cmp	DWORD PTR 4[rax], ebp
	je	.L14
.L6:
	call	empty_unit@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR LIVE[rip]
	call	close_with_IOP@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR [rsp]
	jmp	.L6
.L14:
	mov	edx, DWORD PTR FIND[rip]
	call	close_with_IOP@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR [rsp]
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_to_fd, .-send_to_fd
	.comm	units,8,8
	.comm	LIVE,4,4
	.comm	FIND,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_pcap-sita.c_send_to_fd.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_to_fd, %function
send_to_fd:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L16
	sub	sp, sp, #16
	subs	r4, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ble	.L1
	mov	r6, r0
	mov	r5, r2
	b	.L2
.L4:
	sub	r4, r4, r0
	cmp	r4, #0
	add	r5, r5, r0
	ble	.L1
.L2:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	write
	cmp	r0, #0
	bgt	.L4
	mov	r3, #0
	add	r2, sp, #8
	add	r1, sp, #4
	mov	r0, r6
	bl	find_unit_by_fd
	ldr	r3, .L16+4
	ldr	r0, [sp, #4]
	ldr	r3, [r3]
	ldr	r1, [sp, #8]
	ldr	r3, [r3, r0, lsl #2]
	ldr	r2, [r3, r1, lsl #3]
	add	r3, r3, r1, lsl #3
	cmp	r2, r6
	beq	.L13
	ldr	r3, [r3, #4]
	cmp	r3, r6
	beq	.L14
.L6:
	bl	empty_unit
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	bl	close_with_IOP
	ldmib	sp, {r0, r1}
	b	.L6
.L14:
	ldr	r3, .L16+12
	ldr	r2, [r3]
	bl	close_with_IOP
	ldmib	sp, {r0, r1}
	b	.L6
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	units
	.word	LIVE
	.word	FIND
	.size	send_to_fd, .-send_to_fd
	.comm	units,4,4
	.comm	LIVE,4,4
	.comm	FIND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
