	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bbr_adjust_for_hw_pacing
_bbr_adjust_for_hw_pacing:              ## @bbr_adjust_for_hw_pacing
	.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
	cmpq	$0, (%rdi)
	je	LBB0_18
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	40(%rdi), %rax
	movl	8(%rax), %edi
	callq	_IN_RECOVERY
	testq	%rax, %rax
	je	LBB0_2
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	32(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_18
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_18
## %bb.4:
	movq	_bbr_hdwr_pace_adjust@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.5:
	movq	40(%rbx), %rax
	movq	(%rax), %r13
	movq	16(%rbx), %rax
	cmpq	%rax, %r13
	jg	LBB0_7
## %bb.6:
	movq	_BBR_MIN_SEG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
LBB0_7:
	subl	%eax, %r13d
	movq	_BBR_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	$1, %r8d
	callq	_bbr_get_pacing_delay
	movl	%eax, %r12d
	movl	24(%rbx), %eax
	cltd
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	idivl	%r13d
	movl	(%r15), %r8d
	imull	%eax, %r8d
	xorl	%ecx, %ecx
	movl	%r12d, %r13d
	subl	%r8d, %r13d
	cmovlel	%ecx, %r13d
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r9d
	callq	_bbr_log_type_tsosize
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.8:
	movl	(%r15), %edi
	movl	28(%rbx), %esi
	callq	_max
	cmpl	%eax, %r13d
	jge	LBB0_14
## %bb.9:
	movl	(%r15), %ecx
	addl	%ecx, %r12d
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	24(%rbx), %eax
	cltd
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	idivl	%r15d
	movl	%eax, %esi
	callq	_max
	movq	_bbr_hdwr_pace_adjust@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movq	_bbr_hdwr_pace_floor@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	32(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovlel	%ecx, %eax
LBB0_11:
	imull	%r15d, %eax
	movl	24(%rbx), %r8d
	jmp	LBB0_16
LBB0_12:
	movl	24(%rbx), %r8d
	movq	_bbr_hdwr_pace_adjust@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r8d, %eax
	movq	_bbr_hdwr_pace_floor@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	32(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovlel	%ecx, %eax
	jmp	LBB0_15
LBB0_14:
	movl	24(%rbx), %r8d
	movl	%r8d, %eax
LBB0_15:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_16:
	cmpl	%r8d, %eax
	cmovlel	%r8d, %eax
	movq	_PACE_MAX_IP_BYTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	subl	%r15d, %r12d
	cmpl	%r12d, %eax
	cmovll	%eax, %r12d
	cmpl	%r8d, %r12d
	je	LBB0_18
## %bb.17:
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r9d
	callq	_bbr_log_type_tsosize
	movl	%r12d, 24(%rbx)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_bbr_hdwr_pace_adjust,4,2       ## @bbr_hdwr_pace_adjust
	.comm	_BBR_MIN_SEG,4,2                ## @BBR_MIN_SEG
	.comm	_BBR_UNIT,4,2                   ## @BBR_UNIT
	.comm	_bbr_hdwr_pace_floor,8,3        ## @bbr_hdwr_pace_floor
	.comm	_PACE_MAX_IP_BYTES,4,2          ## @PACE_MAX_IP_BYTES
	.no_dead_strip	_bbr_adjust_for_hw_pacing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bbr_adjust_for_hw_pacing
_bbr_adjust_for_hw_pacing:              ; @bbr_adjust_for_hw_pacing
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #40]
	ldr	w0, [x8, #8]
	bl	_IN_RECOVERY
	cbz	x0, LBB0_3
LBB0_2:
	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
LBB0_3:
	ldr	x25, [x19, #32]
	cbz	x25, LBB0_2
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.5:
Lloh0:
	adrp	x24, _bbr_hdwr_pace_adjust@GOTPAGE
Lloh1:
	ldr	x24, [x24, _bbr_hdwr_pace_adjust@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_2
; %bb.6:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	sub	w10, w8, w9
Lloh2:
	adrp	x11, _BBR_MIN_SEG@GOTPAGE
Lloh3:
	ldr	x11, [x11, _BBR_MIN_SEG@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	sub	w11, w11, w9
	cmp	x8, x9
	csel	w21, w10, w11, gt
Lloh5:
	adrp	x8, _BBR_UNIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BBR_UNIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x19
	mov	x3, x20
	mov	w4, #1
	bl	_bbr_get_pacing_delay
	mov	x22, x0
	ldr	w8, [x19, #24]
	sdiv	w5, w8, w21
	ldr	w8, [x25]
	mul	w4, w8, w5
	subs	w8, w0, w4
	csel	w23, w8, wzr, gt
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	w6, #1
	bl	_bbr_log_type_tsosize
	cbz	w23, LBB0_11
; %bb.7:
	ldr	w0, [x25]
	ldr	w1, [x19, #28]
	bl	_max
	cmp	w23, w0
	b.ge	LBB0_13
; %bb.8:
	ldr	w8, [x25]
	add	w9, w8, w22
	sdiv	w0, w9, w8
	ldr	w8, [x19, #24]
	sdiv	w1, w8, w21
	bl	_max
	ldr	w8, [x24]
	mul	w8, w8, w0
Lloh8:
	adrp	x9, _bbr_hdwr_pace_floor@GOTPAGE
Lloh9:
	ldr	x9, [x9, _bbr_hdwr_pace_floor@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cbz	x9, LBB0_10
; %bb.9:
	ldr	x9, [x19, #32]
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, gt
LBB0_10:
	mul	w8, w8, w21
	ldr	w4, [x19, #24]
	b	LBB0_14
LBB0_11:
	ldr	w4, [x19, #24]
	ldr	w8, [x24]
	mul	w8, w8, w4
Lloh11:
	adrp	x9, _bbr_hdwr_pace_floor@GOTPAGE
Lloh12:
	ldr	x9, [x9, _bbr_hdwr_pace_floor@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cbz	x9, LBB0_14
; %bb.12:
	ldr	x9, [x19, #32]
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	b	LBB0_14
LBB0_13:
	ldr	w4, [x19, #24]
	mov	x8, x4
LBB0_14:
Lloh14:
	adrp	x9, _PACE_MAX_IP_BYTES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PACE_MAX_IP_BYTES@GOTPAGEOFF]
	cmp	w8, w4
	csel	w8, w8, w4, gt
Lloh16:
	ldr	w9, [x9]
	sub	w9, w9, w21
	cmp	w8, w9
	csel	w22, w8, w9, lt
	cmp	w22, w4
	b.eq	LBB0_2
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	mov	x5, x21
	mov	w6, #0
	bl	_bbr_log_type_tsosize
	str	w22, [x19, #24]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_bbr_hdwr_pace_adjust,4,2       ; @bbr_hdwr_pace_adjust
	.comm	_BBR_MIN_SEG,4,2                ; @BBR_MIN_SEG
	.comm	_BBR_UNIT,4,2                   ; @BBR_UNIT
	.comm	_bbr_hdwr_pace_floor,8,3        ; @bbr_hdwr_pace_floor
	.comm	_PACE_MAX_IP_BYTES,4,2          ; @PACE_MAX_IP_BYTES
	.no_dead_strip	_bbr_adjust_for_hw_pacing
.subsections_via_symbols
