	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prob_backoff
_prob_backoff:                          ## @prob_backoff
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MAXGRAD@GOTPCREL(%rip), %rax
	movq	_V_cdg_exp_backoff_scale@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%rax), %rdx
	imulq	%rsi, %rdx
	movq	_D_P_E@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %rdx
	movl	$1, %eax
	cmpq	%rdi, %rdx
	jl	LBB0_6
## %bb.1:
	cmpq	$2, %rsi
	jl	LBB0_5
## %bb.2:
	movq	%rsi, %rax
	shrq	%rax
	addq	%rdi, %rax
	movq	%rax, %rcx
	orq	%rsi, %rcx
	shrq	$32, %rcx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %edi
LBB0_5:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	_EXP_PREC@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	movl	(%rax), %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	movq	_probexp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	imull	(%rax,%rcx,4), %ebx
	xorl	%eax, %eax
	callq	_random
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	setl	%al
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXGRAD,8,3                    ## @MAXGRAD
	.comm	_V_cdg_exp_backoff_scale,8,3    ## @V_cdg_exp_backoff_scale
	.comm	_D_P_E,8,3                      ## @D_P_E
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EXP_PREC,4,2                   ## @EXP_PREC
	.comm	_probexp,8,3                    ## @probexp
	.no_dead_strip	_prob_backoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prob_backoff
_prob_backoff:                          ; @prob_backoff
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MAXGRAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXGRAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _V_cdg_exp_backoff_scale@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_cdg_exp_backoff_scale@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mul	x9, x8, x9
Lloh6:
	adrp	x10, _D_P_E@GOTPAGE
Lloh7:
	ldr	x10, [x10, _D_P_E@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	cmp	x9, x0
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
	cmp	x8, #2
	b.lt	LBB0_4
; %bb.3:
	add	x9, x0, x8, lsr #1
	sdiv	x0, x9, x8
LBB0_4:
Lloh9:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh11:
	adrp	x9, _EXP_PREC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EXP_PREC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
Lloh15:
	adrp	x10, _probexp@GOTPAGE
Lloh16:
	ldr	x10, [x10, _probexp@GOTPAGEOFF]
	sdiv	w8, w8, w9
Lloh17:
	ldr	x9, [x10]
	sbfiz	x10, x0, #2, #32
	ldr	w9, [x9, x10]
	mul	w19, w9, w8
	bl	_random
	cmp	w0, w19
	cset	w0, lt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXGRAD,8,3                    ; @MAXGRAD
	.comm	_V_cdg_exp_backoff_scale,8,3    ; @V_cdg_exp_backoff_scale
	.comm	_D_P_E,8,3                      ; @D_P_E
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EXP_PREC,4,2                   ; @EXP_PREC
	.comm	_probexp,8,3                    ; @probexp
	.no_dead_strip	_prob_backoff
.subsections_via_symbols
