	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_calc_thresh_rack
_bbr_calc_thresh_rack:                  ## @bbr_calc_thresh_rack
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdi, %rbx
	testl	%esi, %esi
	movl	$1, %r15d
	cmovnel	%esi, %r15d
	movl	16(%rdi), %esi
	testl	%esi, %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_9
## %bb.1:
	cmpl	$0, 20(%rbx)
	je	LBB0_2
## %bb.5:
	movl	%edx, %r12d
	movl	%edx, %edi
	callq	_SEQ_GEQ
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	%r12d, %eax
	subl	16(%rbx), %eax
	movl	$1, %r13d
	cmovnel	%eax, %r13d
	cmpl	20(%rbx), %r13d
	jg	LBB0_7
## %bb.10:
	movl	24(%rbx), %r14d
	addl	%r15d, %r14d
	testl	%r13d, %r13d
	jne	LBB0_3
	jmp	LBB0_11
LBB0_2:
	movl	24(%rbx), %r14d
	addl	%r15d, %r14d
	movl	$1, %r13d
LBB0_3:
	movl	28(%rbx), %ecx
	movl	%r15d, %r12d
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.4:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	jmp	LBB0_13
LBB0_8:
	cmpl	$0, 20(%rbx)
	jns	LBB0_9
LBB0_7:
	movl	$0, 16(%rbx)
LBB0_9:
	movl	24(%rbx), %r14d
	addl	%r15d, %r14d
LBB0_11:
	movl	$1000, %r12d                    ## imm = 0x3E8
	xorl	%r13d, %r13d
LBB0_13:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.15:
	movl	8(%rax), %edi
	callq	_TICKS_2_USEC
	jmp	LBB0_16
LBB0_14:
	movq	_BBR_INITIAL_RTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addl	%r14d, %r12d
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	movq	_USECS_IN_SECOND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	imull	(%rbx), %r14d
	cmpl	%r14d, %r12d
	cmovll	%r12d, %r14d
	movq	_BBR_TO_FRM_RACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_bbr_log_thresh_choice
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	sarl	$2, %r12d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_BBR_INITIAL_RTO,4,2            ## @BBR_INITIAL_RTO
	.comm	_USECS_IN_SECOND,4,2            ## @USECS_IN_SECOND
	.comm	_BBR_TO_FRM_RACK,4,2            ## @BBR_TO_FRM_RACK
	.no_dead_strip	_bbr_calc_thresh_rack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbr_calc_thresh_rack
_bbr_calc_thresh_rack:                  ; @bbr_calc_thresh_rack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x22, x0
	cmp	w1, #0
	csinc	w21, w1, wzr, ne
	ldr	w1, [x0, #16]
	cbz	w1, LBB0_9
; %bb.1:
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_SEQ_GEQ
	cbz	x0, LBB0_7
; %bb.3:
	ldp	w8, w9, [x22, #16]
	subs	w8, w20, w8
	csinc	w23, w8, wzr, ne
	cmp	w23, w9
	b.gt	LBB0_8
; %bb.4:
	ldr	w8, [x22, #24]
	add	w24, w8, w21
	cbnz	w23, LBB0_6
	b	LBB0_10
LBB0_5:
	ldr	w8, [x22, #24]
	add	w24, w8, w21
	mov	w23, #1
LBB0_6:
	ldr	w8, [x22, #28]
	asr	w9, w21, #2
	asr	w10, w21, w8
	cmp	w8, #0
	csel	w25, w9, w10, eq
	b	LBB0_11
LBB0_7:
	ldr	w8, [x22, #20]
	tbz	w8, #31, LBB0_9
LBB0_8:
	str	wzr, [x22, #16]
LBB0_9:
	mov	w23, #0
	ldr	w8, [x22, #24]
	add	w24, w8, w21
LBB0_10:
	mov	w25, #1000
LBB0_11:
	ldr	x8, [x22, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.12:
	ldr	w0, [x8, #8]
	bl	_TICKS_2_USEC
	b	LBB0_14
LBB0_13:
Lloh0:
	adrp	x8, _BBR_INITIAL_RTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBR_INITIAL_RTO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_14:
	add	w8, w25, w24
	cmp	w8, w0
	csel	w8, w8, w0, lt
	ldr	w9, [x22]
Lloh3:
	adrp	x10, _USECS_IN_SECOND@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USECS_IN_SECOND@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w9, w10, w9
	cmp	w8, w9
	csel	w24, w8, w9, lt
Lloh6:
	adrp	x8, _BBR_TO_FRM_RACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBR_TO_FRM_RACK@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	mov	x4, x21
	mov	x5, x19
	bl	_bbr_log_thresh_choice
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BBR_INITIAL_RTO,4,2            ; @BBR_INITIAL_RTO
	.comm	_USECS_IN_SECOND,4,2            ; @USECS_IN_SECOND
	.comm	_BBR_TO_FRM_RACK,4,2            ; @BBR_TO_FRM_RACK
	.no_dead_strip	_bbr_calc_thresh_rack
.subsections_via_symbols
