	.file	"extr_cc_hd.c_should_backoff.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	should_backoff, @function
should_backoff:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rax, DWORD PTR RANDOM_MAX[rip]
	mov	ecx, DWORD PTR V_hd_qthresh[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rdx, rax
	imul	rax, rax, 1374389535
	sar	edx, 31
	sar	rax, 37
	sub	eax, edx
	imul	eax, DWORD PTR V_hd_pmax[rip]
	cmp	ecx, edi
	jle	.L2
	mov	esi, DWORD PTR V_hd_qmin[rip]
	cdq
	sub	ecx, esi
	sub	edi, esi
	idiv	ecx
	imul	eax, edi
	movsx	rbx, eax
.L3:
	xor	eax, eax
	call	random@PLT
	cmp	rax, rbx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	setb	al
	movzx	eax, al
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movsx	rbx, eax
	jge	.L3
	mov	ebx, esi
	cdq
	sub	esi, edi
	sub	ebx, ecx
	idiv	ebx
	imul	eax, esi
	movsx	rbx, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	should_backoff, .-should_backoff
	.comm	V_hd_qthresh,4,4
	.comm	V_hd_qmin,4,4
	.comm	V_hd_pmax,4,4
	.comm	RANDOM_MAX,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_cc_hd.c_should_backoff.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	should_backoff, %function
should_backoff:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L7
	ldr	r0, .L7+4
	ldr	r3, [r3]
	ldr	r2, .L7+8
	smull	ip, r0, r3, r0
	ldr	ip, .L7+12
	ldr	r2, [r2]
	ldr	ip, [ip]
	asr	r3, r3, #31
	rsb	r3, r3, r0, asr #5
	cmp	r2, r5
	mul	r0, ip, r3
	ble	.L2
	ldr	r3, .L7+16
	ldr	r4, [r3]
	sub	r1, r2, r4
	bl	__aeabi_idiv
	sub	r4, r5, r4
	mul	r4, r0, r4
.L3:
	bl	random
	cmp	r0, r4
	movcs	r0, #0
	movcc	r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	movge	r4, r0
	bge	.L3
	mov	r4, r1
	sub	r1, r1, r2
	bl	__aeabi_idiv
	sub	r4, r4, r5
	mul	r4, r0, r4
	b	.L3
.L8:
	.align	2
.L7:
	.word	RANDOM_MAX
	.word	1374389535
	.word	V_hd_qthresh
	.word	V_hd_pmax
	.word	V_hd_qmin
	.size	should_backoff, .-should_backoff
	.comm	V_hd_qthresh,4,4
	.comm	V_hd_qmin,4,4
	.comm	V_hd_pmax,4,4
	.comm	RANDOM_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
