	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function should_backoff
_should_backoff:                        ## @should_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	_V_hd_qthresh@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RANDOM_MAX@GOTPCREL(%rip), %rax
	cmpl	%edi, %ecx
	jle	LBB0_2
## %bb.1:
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movq	_V_hd_pmax@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	movq	_V_hd_qmin@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	subl	%esi, %ecx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	subl	%esi, %edi
	imull	%eax, %edi
	movl	%edi, %eax
	jmp	LBB0_4
LBB0_2:
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movq	_V_hd_pmax@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	cmpl	%edi, %ecx
	jge	LBB0_4
## %bb.3:
	movl	%esi, %r8d
	subl	%ecx, %r8d
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%r8d
	subl	%edi, %esi
	imull	%eax, %esi
	movl	%esi, %eax
LBB0_4:
	movslq	%eax, %rbx
	xorl	%eax, %eax
	callq	_random
	xorl	%ecx, %ecx
	cmpq	%rbx, %rax
	setb	%cl
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_hd_qthresh,4,2               ## @V_hd_qthresh
	.comm	_RANDOM_MAX,4,2                 ## @RANDOM_MAX
	.comm	_V_hd_pmax,4,2                  ## @V_hd_pmax
	.comm	_V_hd_qmin,4,2                  ## @V_hd_qmin
	.no_dead_strip	_should_backoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function should_backoff
_should_backoff:                        ; @should_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, _V_hd_qthresh@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_hd_qthresh@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RANDOM_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RANDOM_MAX@GOTPAGEOFF]
	cmp	w8, w0
	b.le	LBB0_2
; %bb.1:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
Lloh5:
	adrp	x10, _V_hd_pmax@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V_hd_pmax@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _V_hd_qmin@GOTPAGE
Lloh9:
	ldr	x11, [x11, _V_hd_qmin@GOTPAGEOFF]
	mul	w9, w9, w10
Lloh10:
	ldr	w10, [x11]
	sub	w8, w8, w10
	sdiv	w8, w9, w8
	sub	w9, w0, w10
	b	LBB0_4
LBB0_2:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
Lloh11:
	adrp	x10, _V_hd_pmax@GOTPAGE
Lloh12:
	ldr	x10, [x10, _V_hd_pmax@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	mul	w19, w9, w10
	cmp	w8, w0
	b.ge	LBB0_5
; %bb.3:
	sub	w8, w1, w8
	sdiv	w8, w19, w8
	sub	w9, w1, w0
LBB0_4:
	mul	w19, w8, w9
LBB0_5:
	bl	_random
	cmp	x0, w19, sxtw
	cset	w0, lo
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V_hd_qthresh,4,2               ; @V_hd_qthresh
	.comm	_RANDOM_MAX,4,2                 ; @RANDOM_MAX
	.comm	_V_hd_pmax,4,2                  ; @V_hd_pmax
	.comm	_V_hd_qmin,4,2                  ; @V_hd_qmin
	.no_dead_strip	_should_backoff
.subsections_via_symbols
