	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_random
	movq	%rax, %rcx
	movq	_V_chd_qthresh@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	cmpl	%ebx, %edx
	jle	LBB0_2
## %bb.1:
	movl	$0, (%r14)
	movq	_RANDOM_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$37, %rax
	addl	%edx, %eax
	movq	_V_chd_pmax@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	movl	(%rsi), %esi
	movq	_V_chd_qmin@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	subl	%edi, %esi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	subl	%edi, %ebx
	imull	%eax, %ebx
	movslq	%ebx, %rax
	jmp	LBB0_7
LBB0_2:
	movq	_RANDOM_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rsi
	shrq	$63, %rsi
	sarq	$37, %rax
	addl	%esi, %eax
	movq	_V_chd_pmax@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	cltq
	imulq	%rsi, %rax
	cmpl	%ebx, %edx
	jge	LBB0_6
## %bb.3:
	movl	%r15d, %esi
	subl	%edx, %esi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	subl	%ebx, %r15d
	imull	%eax, %r15d
	movslq	%r15d, %rax
	movq	_V_chd_loss_fair@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_7
## %bb.4:
	cmpq	%rax, %rcx
	jae	LBB0_7
## %bb.5:
	movl	$1, (%r14)
	jmp	LBB0_7
LBB0_6:
	movl	$0, (%r14)
LBB0_7:
	xorl	%edx, %edx
	cmpq	%rax, %rcx
	setb	%dl
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_chd_qthresh,4,2              ## @V_chd_qthresh
	.comm	_RANDOM_MAX,4,2                 ## @RANDOM_MAX
	.comm	_V_chd_pmax,4,2                 ## @V_chd_pmax
	.comm	_V_chd_qmin,4,2                 ## @V_chd_qmin
	.comm	_V_chd_loss_fair,8,3            ## @V_chd_loss_fair
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_random
Lloh0:
	adrp	x8, _V_chd_qthresh@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_chd_qthresh@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w19
	b.le	LBB0_2
; %bb.1:
	str	wzr, [x20]
Lloh2:
	adrp	x9, _RANDOM_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RANDOM_MAX@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #37
Lloh5:
	adrp	x11, _V_chd_pmax@GOTPAGE
Lloh6:
	ldr	x11, [x11, _V_chd_pmax@GOTPAGEOFF]
	add	w9, w9, w10
Lloh7:
	ldr	w10, [x11]
	mul	w9, w9, w10
	ldr	w8, [x8]
Lloh8:
	adrp	x10, _V_chd_qmin@GOTPAGE
Lloh9:
	ldr	x10, [x10, _V_chd_qmin@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	sub	w8, w8, w10
	sdiv	w8, w9, w8
	sub	w9, w19, w10
	mul	w8, w8, w9
	sxtw	x8, w8
	b	LBB0_7
LBB0_2:
Lloh11:
	adrp	x8, _RANDOM_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RANDOM_MAX@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	mul	x8, x8, x10
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w10
Lloh14:
	adrp	x10, _V_chd_pmax@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V_chd_pmax@GOTPAGEOFF]
Lloh16:
	ldrsw	x10, [x10]
	sxtw	x8, w8
	mul	x8, x8, x10
	cmp	w9, w19
	b.ge	LBB0_6
; %bb.3:
	sub	w9, w21, w9
	sdiv	w8, w8, w9
	sub	w9, w21, w19
	mul	w8, w8, w9
	sxtw	x8, w8
Lloh17:
	adrp	x9, _V_chd_loss_fair@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V_chd_loss_fair@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cbz	x9, LBB0_7
; %bb.4:
	cmp	x0, x8
	b.hs	LBB0_7
; %bb.5:
	mov	w9, #1
	str	w9, [x20]
	b	LBB0_7
LBB0_6:
	str	wzr, [x20]
LBB0_7:
	cmp	x0, x8
	cset	w0, lo
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_V_chd_qthresh,4,2              ; @V_chd_qthresh
	.comm	_RANDOM_MAX,4,2                 ; @RANDOM_MAX
	.comm	_V_chd_pmax,4,2                 ; @V_chd_pmax
	.comm	_V_chd_qmin,4,2                 ; @V_chd_qmin
	.comm	_V_chd_loss_fair,8,3            ; @V_chd_loss_fair
	.no_dead_strip	_should_backoff
.subsections_via_symbols
