	.file	"extr_pktgen.c_f_pick.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	f_pick, @function
f_pick:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR 4[rdi]
	mov	rbx, rdi
	test	DWORD PTR F_FLOW_SEQ[rip], eax
	je	.L2
	movsx	rax, DWORD PTR [rdi]
	mov	rcx, QWORD PTR 8[rdi]
	mov	r8, rax
	sal	rax, 4
	add	rax, QWORD PTR 24[rdi]
	cmp	QWORD PTR [rax], rcx
	jl	.L1
	add	r8d, 1
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR [rdi], r8d
	cmp	r8d, DWORD PTR 16[rdi]
	jl	.L1
	mov	DWORD PTR [rdi], 0
	xor	r8d, r8d
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	prandom_u32@PLT
	mov	rsi, QWORD PTR 8[rbx]
	cdq
	idiv	DWORD PTR 16[rbx]
	movsx	rax, edx
	mov	DWORD PTR [rbx], eax
	mov	r8, rax
	sal	rax, 4
	add	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR [rax], rsi
	jle	.L1
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	f_pick, .-f_pick
	.comm	F_FLOW_SEQ,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_pktgen.c_f_pick.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	f_pick, %function
f_pick:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L6
	push	{r4, r5, r6, lr}
	ldr	r3, [r0, #4]
	ldr	r5, [r2]
	mov	r4, r0
	ands	r5, r3, r5
	beq	.L2
	ldr	r0, [r0]
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #8]
	ldr	r1, [r3, r0, lsl #3]
	add	ip, r3, r0, lsl #3
	cmp	r1, r2
	poplt	{r4, r5, r6, pc}
	mov	r2, #0
	ldr	r1, [r4, #12]
	str	r2, [r3, r0, lsl #3]
	add	r0, r0, #1
	cmp	r0, r1
	str	r2, [ip, #4]
	str	r0, [r4]
	movge	r0, r2
	strge	r2, [r4]
	pop	{r4, r5, r6, pc}
.L2:
	bl	prandom_u32
	ldr	r1, [r4, #12]
	bl	__aeabi_idivmod
	mov	r0, r1
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #8]
	ldr	r1, [r3, r1, lsl #3]
	str	r0, [r4]
	cmp	r1, r2
	add	r2, r3, r0, lsl #3
	strgt	r5, [r3, r0, lsl #3]
	strgt	r5, [r2, #4]
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	F_FLOW_SEQ
	.size	f_pick, .-f_pick
	.comm	F_FLOW_SEQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
