	.file	"extr_pcap-rpcap.c_rpcap_read_packet_msg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"The server terminated the connection."
	.text
	.p2align 4
	.type	rpcap_read_packet_msg, @function
rpcap_read_packet_msg:
.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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rax, DWORD PTR [rsi]
	mov	r14, QWORD PTR 8[rsi]
	mov	r13, rax
	cmp	rax, rdx
	jnb	.L2
	mov	r12d, edi
	mov	rbx, rdx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	eax, -3
	je	.L10
	test	eax, eax
	je	.L12
	add	r13d, eax
	movsx	rdx, eax
	movsx	rax, r13d
	lea	r14, [r14+rdx*4]
	cmp	rax, rbx
	jnb	.L2
.L7:
	mov	rdx, rbx
	mov	r9d, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	mov	rsi, r14
	mov	edi, r12d
	mov	r8d, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR SOCK_RECEIVEALL_NO[rip]
	sub	rdx, rax
	or	ecx, DWORD PTR SOCK_EOF_IS_ERROR[rip]
	call	sock_recv@PLT
	cmp	eax, -1
	jne	.L3
.L10:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 8[rbp], r14
	mov	DWORD PTR 0[rbp], 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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR 8[rbp], r14
	xor	eax, eax
	mov	DWORD PTR 0[rbp], 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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	lea	rdx, .LC0[rip]
	call	pcap_snprintf@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, -1
	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	rpcap_read_packet_msg, .-rpcap_read_packet_msg
	.comm	SOCK_RECEIVEALL_NO,4,4
	.comm	SOCK_EOF_IS_ERROR,4,4
	.comm	PCAP_ERRBUF_SIZE,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-rpcap.c_rpcap_read_packet_msg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"The server terminated the connection.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rpcap_read_packet_msg, %function
rpcap_read_packet_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r1]
	mov	r6, r1
	cmp	r4, r2
	ldr	fp, [r1, #4]
	sub	sp, sp, #12
	bcs	.L2
	mov	r5, r2
	mov	r7, r0
	ldr	r10, .L13
	ldr	r9, .L13+4
	ldr	r8, .L13+8
	b	.L7
.L3:
	cmn	r0, #3
	beq	.L10
	cmp	r0, #0
	add	r4, r4, r0
	beq	.L12
	cmp	r4, r5
	add	fp, fp, r0, lsl #2
	bcs	.L2
.L7:
	ldr	r2, [r6, #8]
	ldr	r0, [r10]
	ldr	r1, [r8]
	ldr	r3, [r9]
	str	r1, [sp, #4]
	orr	r3, r0, r3
	str	r2, [sp]
	mov	r1, fp
	mov	r0, r7
	sub	r2, r5, r4
	bl	sock_recv
	cmn	r0, #1
	bne	.L3
.L10:
	stm	r6, {r4, fp}
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #0
	b	.L10
.L12:
	ldr	r1, [r8]
	ldr	r0, [r6, #8]
	ldr	r2, .L13+12
	bl	pcap_snprintf
	mvn	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	SOCK_RECEIVEALL_NO
	.word	SOCK_EOF_IS_ERROR
	.word	PCAP_ERRBUF_SIZE
	.word	.LC0
	.size	rpcap_read_packet_msg, .-rpcap_read_packet_msg
	.comm	SOCK_RECEIVEALL_NO,4,4
	.comm	SOCK_EOF_IS_ERROR,4,4
	.comm	PCAP_ERRBUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
