	.file	"extr_cc_cdg.c_prob_backoff.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prob_backoff, @function
prob_backoff:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR V_cdg_exp_backoff_scale[rip]
	mov	rax, QWORD PTR MAXGRAD[rip]
	mov	rcx, QWORD PTR D_P_E[rip]
	imul	rax, r8
	sal	rax, cl
	cmp	rax, rdi
	jl	.L6
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, edi
	cmp	r8, 1
	jle	.L4
	mov	rax, r8
	sar	rax
	add	rax, rdi
	cqo
	idiv	r8
	mov	rsi, rax
.L4:
	mov	ecx, DWORD PTR EXP_PREC[rip]
	mov	eax, 1
	movsx	rsi, esi
	sal	eax, cl
	mov	ecx, eax
	mov	eax, DWORD PTR INT_MAX[rip]
	cdq
	idiv	ecx
	mov	rdx, QWORD PTR probexp[rip]
	imul	eax, DWORD PTR [rdx+rsi*4]
	mov	ebx, eax
	xor	eax, eax
	call	random@PLT
	xor	r9d, r9d
	cmp	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 8
	setl	r9b
	mov	eax, r9d
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	mov	r9d, 1
	mov	eax, r9d
	ret
	.cfi_endproc
.LFE0:
	.size	prob_backoff, .-prob_backoff
	.comm	probexp,8,8
	.comm	V_cdg_exp_backoff_scale,8,8
	.comm	MAXGRAD,8,8
	.comm	INT_MAX,4,4
	.comm	EXP_PREC,4,4
	.comm	D_P_E,8,8
	.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_cdg.c_prob_backoff.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prob_backoff, %function
prob_backoff:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L10+8
	mul	r3, r1, r3
	ldr	r2, [r2]
	cmp	r0, r3, lsl r2
	bgt	.L4
	cmp	r1, #1
	push	{r4, lr}
	mov	r4, r0
	ble	.L3
	add	r0, r0, r1, asr #1
	bl	__aeabi_idiv
	mov	r4, r0
.L3:
	mov	r1, #1
	ldr	r3, .L10+12
	ldr	r2, .L10+16
	ldr	r3, [r3]
	ldr	r0, [r2]
	lsl	r1, r1, r3
	bl	__aeabi_idiv
	ldr	r3, .L10+20
	ldr	r3, [r3]
	ldr	r4, [r3, r4, lsl #2]
	mul	r4, r0, r4
	bl	random
	cmp	r0, r4
	movge	r0, #0
	movlt	r0, #1
	pop	{r4, pc}
.L4:
	mov	r0, #1
	bx	lr
.L11:
	.align	2
.L10:
	.word	V_cdg_exp_backoff_scale
	.word	MAXGRAD
	.word	D_P_E
	.word	EXP_PREC
	.word	INT_MAX
	.word	probexp
	.size	prob_backoff, .-prob_backoff
	.comm	probexp,4,4
	.comm	V_cdg_exp_backoff_scale,4,4
	.comm	MAXGRAD,4,4
	.comm	INT_MAX,4,4
	.comm	EXP_PREC,4,4
	.comm	D_P_E,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
