	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hstcp_cong_avoid
_hstcp_cong_avoid:                      ## @hstcp_cong_avoid
	.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, %r15d
	movq	%rdi, %rbx
	callq	_tcp_sk
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_inet_csk_ca
	movq	%rax, %r12
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_tcp_is_cwnd_limited
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movq	(%r14), %rax
	cmpq	8(%r14), %rax
	jle	LBB0_6
## %bb.2:
	movq	_hstcp_aimd_vals@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r12), %rcx
	cmpq	(%rdx,%rcx,8), %rax
	jle	LBB0_7
## %bb.3:
	movq	_HSTCP_AIMD_MAX@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rdi
	decq	%rdi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, %rcx
	jae	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r12)
	cmpq	8(%rdx,%rcx,8), %rax
	movq	%rsi, %rcx
	jg	LBB0_4
	jmp	LBB0_16
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tcp_slow_start                 ## TAILCALL
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:
	cmpq	-8(%rdx,%rcx,8), %rax
	jle	LBB0_12
LBB0_15:
	movq	%rcx, %rsi
	jmp	LBB0_16
LBB0_11:
	xorl	%esi, %esi
	jmp	LBB0_16
LBB0_12:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	-8(%rdx,%rcx,8), %rax
	jg	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	decq	%rcx
	movq	%rcx, (%r12)
	jne	LBB0_13
LBB0_16:
	cmpq	16(%r14), %rax
	jge	LBB0_19
## %bb.17:
	movq	24(%r14), %rcx
	addq	%rsi, %rcx
	incq	%rcx
	movq	%rcx, 24(%r14)
	subq	%rax, %rcx
	jl	LBB0_19
## %bb.18:
	movq	%rcx, 24(%r14)
	incq	%rax
	movq	%rax, (%r14)
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hstcp_aimd_vals,8,3            ## @hstcp_aimd_vals
	.comm	_HSTCP_AIMD_MAX,4,2             ## @HSTCP_AIMD_MAX
	.no_dead_strip	_hstcp_cong_avoid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hstcp_cong_avoid
_hstcp_cong_avoid:                      ; @hstcp_cong_avoid
	.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	x21, x2
	mov	x22, x0
	bl	_tcp_sk
	mov	x19, x0
	mov	x0, x22
	bl	_inet_csk_ca
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_tcp_is_cwnd_limited
	cbz	w0, LBB0_18
; %bb.1:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _hstcp_aimd_vals@GOTPAGE
Lloh1:
	ldr	x9, [x9, _hstcp_aimd_vals@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	ldr	x9, [x20]
	ldr	x11, [x10, x9, lsl #3]
	cmp	x8, x11
	b.le	LBB0_7
; %bb.3:
Lloh3:
	adrp	x11, _HSTCP_AIMD_MAX@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HSTCP_AIMD_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x11, [x11]
	sub	x11, x11, #1
	cmp	x9, x11
	csel	x11, x9, x11, hi
	add	x12, x10, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, x9
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x9, #1
	str	x10, [x20]
	ldr	x13, [x12, x9, lsl #3]
	mov	x9, x10
	cmp	x8, x13
	b.gt	LBB0_4
	b	LBB0_15
LBB0_6:
	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
	b	_tcp_slow_start
LBB0_7:
	cbz	x9, LBB0_14
; %bb.8:
	add	x11, x10, x9, lsl #3
	ldur	x11, [x11, #-8]
	cmp	x8, x11
	b.le	LBB0_11
LBB0_9:
	mov	x10, x9
	b	LBB0_15
LBB0_10:
	mov	x10, x11
	b	LBB0_15
LBB0_11:
	sub	x10, x10, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cmp	x8, x11
	b.gt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x9, x9, #1
	str	x9, [x20]
	cbnz	x9, LBB0_12
LBB0_14:
	mov	x10, #0
LBB0_15:
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ge	LBB0_18
; %bb.16:
	ldr	x9, [x19, #24]
	add	x9, x10, x9
	add	x9, x9, #1
	str	x9, [x19, #24]
	subs	x9, x9, x8
	b.lt	LBB0_18
; %bb.17:
	str	x9, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_hstcp_aimd_vals,8,3            ; @hstcp_aimd_vals
	.comm	_HSTCP_AIMD_MAX,4,2             ; @HSTCP_AIMD_MAX
	.no_dead_strip	_hstcp_cong_avoid
.subsections_via_symbols
