	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_get_pacing_delay
_bbr_get_pacing_delay:                  ## @bbr_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%rdi)
	jne	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	movl	(%rax), %ecx
	subl	(%rbx), %ecx
	leal	(%r15,%rcx), %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_bbr_get_header_oh
	imull	%r12d, %eax
	addl	%r15d, %eax
	movl	%eax, %r15d
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bbr_gain_adjust
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_bbr_get_bw
	movl	%eax, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.5:
	movl	$1000, %eax                     ## imm = 0x3E8
	subl	16(%rbx), %eax
	imull	%r14d, %eax
	cmpl	$1000, %eax                     ## imm = 0x3E8
	jl	LBB0_7
## %bb.6:
	cltq
	imulq	$274877907, %rax, %r14          ## imm = 0x10624DD3
	movq	%r14, %rax
	shrq	$63, %rax
	sarq	$38, %r14
	addl	%eax, %r14d
LBB0_7:
	movq	_USECS_IN_SECOND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r15d, %eax
	movq	_BBR_UNIT@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%r13d, %ecx
	imull	%r14d, %ecx
	cltd
	idivl	%ecx
	testl	%eax, %eax
	movl	$1, %r12d
	cmovnel	%eax, %r12d
	movq	_BBR_SRTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bbr_get_rtt
	movq	_bbr_hptsi_max_mul@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r10d, %r10d
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.8:
	movq	_bbr_hptsi_max_div@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%esi, %esi
	je	LBB0_12
## %bb.9:
	cmpq	$0, 8(%rbx)
	jne	LBB0_12
## %bb.10:
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	cmpl	%eax, %r12d
	jle	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	movq	_bbr_hpts_min_time@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BBR_STAT_INC
	movl	%r12d, %eax
	movl	%r12d, %r10d
LBB0_12:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	pushq	$1
	pushq	%r10
	callq	_bbr_log_pacing_delay_calc
	addq	$16, %rsp
	jmp	LBB0_14
LBB0_1:
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USECS_IN_SECOND,8,3            ## @USECS_IN_SECOND
	.comm	_BBR_UNIT,8,3                   ## @BBR_UNIT
	.comm	_BBR_SRTT,4,2                   ## @BBR_SRTT
	.comm	_bbr_hptsi_max_mul,4,2          ## @bbr_hptsi_max_mul
	.comm	_bbr_hptsi_max_div,4,2          ## @bbr_hptsi_max_div
	.comm	_bbr_hpts_min_time,4,2          ## @bbr_hpts_min_time
	.no_dead_strip	_bbr_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 bbr_get_pacing_delay
_bbr_get_pacing_delay:                  ; @bbr_get_pacing_delay
	.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
	cbz	w2, LBB0_11
; %bb.1:
	mov	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	ldr	w9, [x21]
	sub	w8, w8, w9
	add	w9, w20, w8
	sub	w9, w9, #1
	sdiv	w24, w9, w8
	mov	x0, x21
	bl	_bbr_get_header_oh
	madd	w20, w0, w24, w20
LBB0_3:
	mov	x0, x21
	mov	x1, x23
	bl	_bbr_gain_adjust
	mov	x23, x0
	mov	x0, x21
	bl	_bbr_get_bw
	mov	x24, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x21, #16]
	mov	w9, #1000
	sub	w8, w9, w8
	mul	w8, w8, w24
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	cmp	w8, #999
	csel	w24, w9, w24, gt
LBB0_5:
Lloh0:
	adrp	x8, _USECS_IN_SECOND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USECS_IN_SECOND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w20, w8
Lloh3:
	adrp	x9, _BBR_UNIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BBR_UNIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w8, w8, w9
	mul	w9, w24, w23
	sdiv	w8, w8, w9
	cmp	w8, #0
	csinc	w25, w8, wzr, ne
Lloh6:
	adrp	x8, _BBR_SRTT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBR_SRTT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bbr_get_rtt
	mov	w26, #0
Lloh9:
	adrp	x8, _bbr_hptsi_max_mul@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bbr_hptsi_max_mul@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.6:
Lloh12:
	adrp	x9, _bbr_hptsi_max_div@GOTPAGE
Lloh13:
	ldr	x9, [x9, _bbr_hptsi_max_div@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cbz	w9, LBB0_10
; %bb.7:
	ldr	x10, [x21, #8]
	cbnz	x10, LBB0_12
; %bb.8:
	mul	w8, w8, w0
	sdiv	w26, w8, w9
	cmp	w25, w26
	b.le	LBB0_12
; %bb.9:
Lloh15:
	adrp	x8, _bbr_hpts_min_time@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bbr_hpts_min_time@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BBR_STAT_INC
	mov	x25, x26
LBB0_10:
	cbnz	w22, LBB0_14
	b	LBB0_13
LBB0_11:
	mov	w25, #0
	b	LBB0_14
LBB0_12:
	mov	w26, #0
	cbnz	w22, LBB0_14
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	mov	x4, x25
	mov	x5, x24
	mov	x6, x26
	mov	w7, #1
	bl	_bbr_log_pacing_delay_calc
LBB0_14:
	mov	x0, x25
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_USECS_IN_SECOND,8,3            ; @USECS_IN_SECOND
	.comm	_BBR_UNIT,8,3                   ; @BBR_UNIT
	.comm	_BBR_SRTT,4,2                   ; @BBR_SRTT
	.comm	_bbr_hptsi_max_mul,4,2          ; @bbr_hptsi_max_mul
	.comm	_bbr_hptsi_max_div,4,2          ; @bbr_hptsi_max_div
	.comm	_bbr_hpts_min_time,4,2          ; @bbr_hpts_min_time
	.no_dead_strip	_bbr_get_pacing_delay
.subsections_via_symbols
