	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc_bw_limit
_cc_bw_limit:                           ## @cc_bw_limit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_sctp_rttvar_bw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	movl	%eax, %r12d
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.1:
	movq	$0, 32(%rbx)
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	movl	%edx, %eax
	subl	12(%rbx), %eax
	movl	%edx, 12(%rbx)
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.2:
	leal	999(%rcx), %edx
	cmpl	$1999, %edx                     ## imm = 0x7CF
	jae	LBB0_3
LBB0_8:
	leaq	16(%rbx), %rcx
LBB0_9:
	movl	(%rcx), %r13d
	movq	_sctp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cwnd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rttvar@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	40(%rbx), %eax
	movl	%eax, 8(%rsp)
	movq	%rbx, %rdx
	callq	_SDT_PROBE5
	jmp	LBB0_11
LBB0_10:
	movl	16(%rbx), %r13d
LBB0_11:
	movl	24(%rbx), %eax
	movl	%eax, %r15d
	movl	%r12d, %ecx
	sarl	%cl, %r15d
	addl	%r15d, %eax
	cmpl	%r14d, %eax
	jge	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_cc_bw_increase
	jmp	LBB0_16
LBB0_13:
	movl	20(%rbx), %r12d
	movq	_sctp_rttvar_rtt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	movl	%eax, %ecx
	sarl	%cl, %r12d
	movl	24(%rbx), %eax
	subl	%r15d, %eax
	cmpl	%r14d, %eax
	jle	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r9d
	callq	_cc_bw_decrease
	jmp	LBB0_16
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r9d
	callq	_cc_bw_same
LBB0_16:
	movl	%r13d, 16(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	cltd
	idivl	%ecx
	movl	%eax, %edx
	movl	%r12d, %ecx
	sarl	%cl, %edx
	addl	%eax, %edx
	cmpl	%r14d, %edx
	jge	LBB0_4
## %bb.5:
	movq	_SCTP_INST_LOOSING@GOTPCREL(%rip), %rcx
	cmpl	%r14d, %eax
	jle	LBB0_9
	jmp	LBB0_7
LBB0_4:
	movq	_SCTP_INST_NEUTRAL@GOTPCREL(%rip), %rcx
	cmpl	%r14d, %eax
	jle	LBB0_9
LBB0_7:
	movq	_SCTP_INST_GAINING@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_rttvar_bw,4,2             ## @sctp_rttvar_bw
	.comm	_SCTP_INST_GAINING,4,2          ## @SCTP_INST_GAINING
	.comm	_SCTP_INST_LOOSING,4,2          ## @SCTP_INST_LOOSING
	.comm	_SCTP_INST_NEUTRAL,4,2          ## @SCTP_INST_NEUTRAL
	.comm	_sctp,4,2                       ## @sctp
	.comm	_cwnd,4,2                       ## @cwnd
	.comm	_rttvar,4,2                     ## @rttvar
	.comm	_sctp_rttvar_rtt,4,2            ## @sctp_rttvar_rtt
	.no_dead_strip	_cc_bw_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc_bw_limit
_cc_bw_limit:                           ; @cc_bw_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _sctp_rttvar_bw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_rttvar_bw@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
	mov	x23, x0
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.1:
	str	xzr, [x19, #32]
	ldp	w8, w9, [x19, #8]
	str	w8, [x19, #12]
	ldr	w10, [x19]
	cbz	w10, LBB0_3
; %bb.2:
	add	w11, w10, #999
	cmp	w11, #1999
	b.hs	LBB0_5
LBB0_3:
	add	x8, x19, #16
	b	LBB0_6
LBB0_4:
	ldr	w22, [x19, #16]
	b	LBB0_7
LBB0_5:
	sub	w8, w8, w9
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w10, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	sdiv	w8, w8, w9
	asr	w9, w8, w23
Lloh3:
	adrp	x10, _SCTP_INST_NEUTRAL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCTP_INST_NEUTRAL@GOTPAGEOFF]
Lloh5:
	adrp	x11, _SCTP_INST_LOOSING@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SCTP_INST_LOOSING@GOTPAGEOFF]
	add	w9, w9, w8
	cmp	w9, w20
	csel	x9, x11, x10, lt
Lloh7:
	adrp	x10, _SCTP_INST_GAINING@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SCTP_INST_GAINING@GOTPAGEOFF]
	cmp	w8, w20
	csel	x8, x10, x9, gt
LBB0_6:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _sctp@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sctp@GOTPAGEOFF]
Lloh11:
	adrp	x9, _cwnd@GOTPAGE
Lloh12:
	ldr	x9, [x9, _cwnd@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	ldr	w1, [x9]
Lloh15:
	adrp	x8, _rttvar@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rttvar@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	ldr	w7, [x19, #40]
	mov	x2, x19
	bl	_SDT_PROBE5
LBB0_7:
	ldr	w8, [x19, #24]
	asr	w23, w8, w23
	add	w8, w23, w8
	cmp	w8, w20
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_cc_bw_increase
	b	LBB0_12
LBB0_9:
	ldr	w24, [x19, #20]
Lloh18:
	adrp	x8, _sctp_rttvar_rtt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sctp_rttvar_rtt@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
	asr	w3, w24, w0
	ldr	w8, [x19, #24]
	sub	w8, w8, w23
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x5, x22
	cmp	w8, w20
	b.le	LBB0_11
; %bb.10:
	bl	_cc_bw_decrease
	b	LBB0_12
LBB0_11:
	bl	_cc_bw_same
LBB0_12:
	str	w22, [x19, #16]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_rttvar_bw,4,2             ; @sctp_rttvar_bw
	.comm	_SCTP_INST_GAINING,4,2          ; @SCTP_INST_GAINING
	.comm	_SCTP_INST_LOOSING,4,2          ; @SCTP_INST_LOOSING
	.comm	_SCTP_INST_NEUTRAL,4,2          ; @SCTP_INST_NEUTRAL
	.comm	_sctp,4,2                       ; @sctp
	.comm	_cwnd,4,2                       ; @cwnd
	.comm	_rttvar,4,2                     ; @rttvar
	.comm	_sctp_rttvar_rtt,4,2            ; @sctp_rttvar_rtt
	.no_dead_strip	_cc_bw_limit
.subsections_via_symbols
