	.file	"extr_bpf_dbg.c_cmd_select.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"packet count starts with 1, clamping!\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"no packet #%u available!\n"
	.text
	.p2align 4
	.type	cmd_select, @function
cmd_select:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	pcap_loaded@PLT
	test	eax, eax
	je	.L19
	cmp	BYTE PTR 0[rbp], 0
	jne	.L3
.L19:
	mov	eax, DWORD PTR CMD_ERR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	mov	edx, 10
	xor	esi, esi
	call	strtoul@PLT
	mov	ebp, eax
	test	eax, eax
	je	.L21
.L5:
	xor	eax, eax
	xor	ebx, ebx
	call	pcap_reset_pkt@PLT
	xor	eax, eax
	call	bpf_reset@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	xor	eax, eax
	call	pcap_next_pkt@PLT
	test	eax, eax
	je	.L9
	add	ebx, 1
	cmp	ebp, ebx
	jne	.L6
	xor	eax, eax
	call	pcap_curr_pkt@PLT
	test	rax, rax
	je	.L9
	mov	eax, DWORD PTR CMD_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	rl_printf@PLT
	xor	eax, eax
	call	pcap_reset_pkt@PLT
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	ebp, 1
	call	rl_printf@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cmd_select, .-cmd_select
	.comm	CMD_OK,4,4
	.comm	CMD_ERR,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_bpf_dbg.c_cmd_select.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"packet count starts with 1, clamping!\012\000"
	.align	2
.LC1:
	.ascii	"no packet #%u available!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_select, %function
cmd_select:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	pcap_loaded
	cmp	r0, #0
	beq	.L19
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L19:
	ldr	r3, .L22
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	mov	r2, #10
	mov	r1, #0
	bl	strtoul
	subs	r5, r0, #0
	beq	.L21
.L5:
	bl	pcap_reset_pkt
	mov	r4, #0
	bl	bpf_reset
.L6:
	bl	pcap_next_pkt
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L9
	cmp	r5, r4
	bne	.L6
	bl	pcap_curr_pkt
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L22+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	mov	r1, r5
	ldr	r0, .L22+8
	bl	rl_printf
	bl	pcap_reset_pkt
	b	.L19
.L21:
	ldr	r0, .L22+12
	bl	rl_printf
	mov	r5, #1
	b	.L5
.L23:
	.align	2
.L22:
	.word	CMD_ERR
	.word	CMD_OK
	.word	.LC1
	.word	.LC0
	.size	cmd_select, .-cmd_select
	.comm	CMD_OK,4,4
	.comm	CMD_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
