	.file	"extr_pcap-rpcap.c_pcap_pack_bpffilter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcap_pack_bpffilter, @function
pcap_pack_bpffilter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r8d, DWORD PTR [rcx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	r8d, r8d
	jne	.L14
	mov	r13, rsp
	xor	r8d, r8d
	xor	edx, edx
	mov	ecx, 1
	mov	rsi, r13
	call	pcap_compile@PLT
	cmp	eax, -1
	je	.L3
.L2:
	mov	eax, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	mov	esi, 16
	xor	edi, edi
	mov	rcx, r12
	mov	r9d, DWORD PTR SOCKBUF_CHECKONLY[rip]
	mov	r8d, DWORD PTR RPCAP_NETBUF_SIZE[rip]
	xor	edx, edx
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 0[rbp]
	push	rax
	.cfi_def_cfa_offset 96
	call	sock_bufferize@PLT
	pop	rsi
	.cfi_def_cfa_offset 88
	pop	rdi
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L3
	mov	edi, DWORD PTR RPCAP_UPDATEFILTER_BPF[rip]
	call	htons@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	QWORD PTR 8[rbx], rax
	call	htonl@PLT
	mov	r9d, DWORD PTR SOCKBUF_CHECKONLY[rip]
	xor	edx, edx
	xor	edi, edi
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR 0[r13]
	mov	rcx, r12
	mov	r8d, DWORD PTR RPCAP_NETBUF_SIZE[rip]
	lea	esi, [rax+rax*2]
	mov	eax, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	sal	esi, 3
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 0[rbp]
	push	rax
	.cfi_def_cfa_offset 96
	call	sock_bufferize@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L3
	mov	eax, DWORD PTR 0[r13]
	mov	rbp, QWORD PTR 8[r13]
	add	rbx, 16
	xor	r12d, r12d
	test	eax, eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 12[rbp]
	add	rbx, 24
	add	rbp, 16
	add	r12d, 1
	call	htons@PLT
	mov	QWORD PTR -8[rbx], rax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -12[rbx], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbx], eax
	mov	edi, DWORD PTR -16[rbp]
	call	htonl@PLT
	mov	QWORD PTR -24[rbx], rax
	cmp	DWORD PTR 0[r13], r12d
	ja	.L4
.L6:
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r13, rcx
	jmp	.L2
.L3:
	mov	eax, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pcap_pack_bpffilter, .-pcap_pack_bpffilter
	.comm	SOCKBUF_CHECKONLY,4,4
	.comm	RPCAP_UPDATEFILTER_BPF,4,4
	.comm	RPCAP_NETBUF_SIZE,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_pcap_pack_bpffilter.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcap_pack_bpffilter, %function
pcap_pack_bpffilter:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	ldr	r3, [r3]
	mov	r5, r2
	ldr	r2, .L16
	sub	sp, sp, #36
	cmp	r3, #0
	mov	r4, r1
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	mov	r6, r0
	bne	.L2
	mov	r2, r3
	str	r3, [sp]
	add	r1, sp, #20
	mov	r3, #1
	bl	pcap_compile
	cmn	r0, #1
	beq	.L3
	add	r7, sp, #20
.L2:
	mov	r2, #0
	ldr	r10, .L16+4
	ldr	r9, .L16+8
	ldr	r8, .L16+12
	ldr	r3, [r6]
	ldr	r1, [r8]
	ldr	ip, [r10]
	ldr	r0, [r9]
	str	r1, [sp]
	str	r0, [sp, #4]
	str	r3, [sp, #8]
	mov	r0, r2
	mov	r3, r5
	mov	r1, #8
	str	ip, [sp, #12]
	bl	sock_bufferize
	subs	fp, r0, #0
	bne	.L3
	ldr	r3, .L16+16
	ldr	r0, [r3]
	bl	htons
	str	r0, [r4, #4]
	ldr	r0, [r7]
	bl	htonl
	ldr	r2, [r8]
	ldr	r1, [r7]
	ldr	r10, [r10]
	ldr	lr, [r6]
	ldr	ip, [r9]
	mov	r3, r5
	str	r0, [r4]
	lsl	r1, r1, #4
	stm	sp, {r2, ip, lr}
	mov	r0, fp
	mov	r2, fp
	str	r10, [sp, #12]
	bl	sock_bufferize
	subs	r8, r0, #0
	bne	.L3
	ldm	r7, {r3, r5}
	cmp	r3, #0
	beq	.L1
	mov	r6, r8
	add	r4, r4, #24
	add	r5, r5, #16
.L6:
	ldr	r0, [r5, #-4]
	bl	htons
	ldr	r3, [r5, #-8]
	str	r0, [r4, #-4]
	str	r3, [r4, #-8]
	ldr	r3, [r5, #-12]
	add	r6, r6, #1
	str	r3, [r4, #-12]
	ldr	r0, [r5, #-16]
	bl	htonl
	ldr	r3, [r7]
	add	r4, r4, #16
	cmp	r3, r6
	str	r0, [r4, #-32]
	add	r5, r5, #16
	bhi	.L6
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r8
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mvn	r8, #0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	PCAP_ERRBUF_SIZE
	.word	SOCKBUF_CHECKONLY
	.word	RPCAP_NETBUF_SIZE
	.word	RPCAP_UPDATEFILTER_BPF
	.size	pcap_pack_bpffilter, .-pcap_pack_bpffilter
	.comm	SOCKBUF_CHECKONLY,4,4
	.comm	RPCAP_UPDATEFILTER_BPF,4,4
	.comm	RPCAP_NETBUF_SIZE,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
