	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rack_get_pacing_delay
_rack_get_pacing_delay:                 ## @rack_get_pacing_delay
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_8
## %bb.2:
	movq	_RACK_GP_HIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.3:
	movq	32(%r12), %r9
	movq	40(%r12), %rbx
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rcx,8), %rsi
	movq	%r9, %rdi
	orq	%rsi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%esi, %edx
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_4
## %bb.6:
	movl	%r8d, %ecx
LBB0_7:
	testl	%edx, %edx
	je	LBB0_8
## %bb.18:
	movq	_MSEC_IN_SECOND@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	imull	%esi, %edx
	imull	%edx, %eax
	addl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	imull	%esi, %r14d
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	jmp	LBB0_19
LBB0_8:
	movl	24(%r12), %ecx
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	movq	_TCP_RTT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_TICKS_2_MSEC
	movl	%eax, %ecx
LBB0_10:
	movl	28(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	4(%r15), %eax
LBB0_12:
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_ctf_fixed_maxseg
	movl	%eax, %ecx
LBB0_14:
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ecx
	movl	16(%r12), %esi
	testl	%esi, %esi
	je	LBB0_19
## %bb.17:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	xorl	%edx, %edx
	subl	%eax, %ecx
	cmovlel	%edx, %ecx
	jmp	LBB0_19
LBB0_15:
	xorl	%ecx, %ecx
LBB0_19:
	movl	20(%r12), %eax
	testl	%ecx, %ecx
	movl	%ecx, %ebx
	cmovel	%eax, %ebx
	testl	%eax, %eax
	cmovel	%ecx, %ebx
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.21:
	movq	_rack_calc_zero@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	_rack_calc_nonzero@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_RTT_SHIFT,4,2              ## @TCP_RTT_SHIFT
	.comm	_RACK_GP_HIST,4,2               ## @RACK_GP_HIST
	.comm	_MSEC_IN_SECOND,4,2             ## @MSEC_IN_SECOND
	.comm	_rack_calc_nonzero,4,2          ## @rack_calc_nonzero
	.comm	_rack_calc_zero,4,2             ## @rack_calc_zero
	.no_dead_strip	_rack_get_pacing_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rack_get_pacing_delay
_rack_get_pacing_delay:                 ; @rack_get_pacing_delay
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_9
; %bb.2:
Lloh0:
	adrp	x9, _RACK_GP_HIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RACK_GP_HIST@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
	cmp	w11, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x9, #0
	mov	w10, #0
	ldp	x12, x13, [x19, #32]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13, x9, lsl #3]
	orr	x15, x12, x14
	cbz	x15, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w10, w10, w14
	add	x9, x9, #1
	cmp	x11, x9
	b.ne	LBB0_4
; %bb.6:
	mov	x9, x11
LBB0_7:
	cbz	w10, LBB0_9
; %bb.8:
Lloh3:
	adrp	x11, _MSEC_IN_SECOND@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MSEC_IN_SECOND@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	mul	w10, w11, w10
	madd	w8, w10, w8, w10
	sdiv	w8, w8, w9
	mul	w9, w11, w20
	sdiv	w8, w9, w8
	b	LBB0_14
LBB0_9:
	ldr	w0, [x19, #24]
	cbz	w0, LBB0_15
; %bb.10:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_16
LBB0_11:
	sdiv	w0, w8, w0
	cbz	w0, LBB0_17
LBB0_12:
	sdiv	w8, w20, w0
	cbz	w8, LBB0_14
LBB0_13:
	ldr	w9, [x19, #16]
	sdiv	w10, w8, w9
	subs	w10, w8, w10
	csel	w10, w10, wzr, gt
	cmp	w9, #0
	csel	w8, w8, w10, eq
LBB0_14:
	ldr	w9, [x19, #20]
	cmp	w8, #0
	ccmp	w9, #0, #4, eq
Lloh6:
	adrp	x10, _rack_calc_zero@GOTPAGE
Lloh7:
	ldr	x10, [x10, _rack_calc_zero@GOTPAGEOFF]
	csel	w19, w9, w8, ne
Lloh8:
	adrp	x8, _rack_calc_nonzero@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rack_calc_nonzero@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	mov	x0, x19
	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
LBB0_15:
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _TCP_RTT_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TCP_RTT_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_TICKS_2_MSEC
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_11
LBB0_16:
	ldr	w8, [x21, #4]
	sdiv	w0, w8, w0
	cbnz	w0, LBB0_12
LBB0_17:
	mov	x0, x21
	bl	_ctf_fixed_maxseg
	sdiv	w8, w20, w0
	cbnz	w8, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_RTT_SHIFT,4,2              ; @TCP_RTT_SHIFT
	.comm	_RACK_GP_HIST,4,2               ; @RACK_GP_HIST
	.comm	_MSEC_IN_SECOND,4,2             ; @MSEC_IN_SECOND
	.comm	_rack_calc_nonzero,4,2          ; @rack_calc_nonzero
	.comm	_rack_calc_zero,4,2             ; @rack_calc_zero
	.no_dead_strip	_rack_get_pacing_delay
.subsections_via_symbols
