	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_set_initial_cc_param
_sctp_set_initial_cc_param:             ## @sctp_set_initial_cc_param
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rdi), %r15
	movq	_sctp_initial_cwnd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rcx
	movl	%ecx, %edx
	cmovgel	%eax, %edx
	testq	%rcx, %rcx
	cmovlel	%eax, %edx
	movl	4(%rbx), %eax
	addl	$-4, %eax
	imull	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	movl	4(%rbx), %edi
	leal	(,%rdi,4), %r12d
	addl	%edi, %edi
	movq	_SCTP_INITIAL_CWND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_max
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_min
LBB0_3:
	movl	%eax, (%rbx)
	movq	24(%r14), %rcx
	movq	_SCTP_CMT_RPV1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.4:
	movq	_SCTP_CMT_RPV2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
LBB0_5:
	cltd
	idivl	32(%r14)
	movl	%eax, (%rbx)
	movslq	%eax, %rcx
	movslq	4(%rbx), %rax
	addq	$-4, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_7
## %bb.6:
	movl	%eax, (%rbx)
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sctp_enforce_cwnd_limit
	movl	40(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_sctp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cwnd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_init@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	36(%r14), %r8d
	movq	8(%r14), %rax
	movl	(%rax), %r9d
	shll	$16, %r9d
	orl	(%r14), %r9d
	movl	(%rbx), %eax
	subq	$8, %rsp
	movq	%rbx, %rdx
	pushq	%rax
	pushq	$0
	pushq	%rbx
	callq	_SDT_PROBE5
	addq	$32, %rsp
	movq	_sctp_logging_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	movq	_SCTP_CWND_MONITOR_ENABLE@GOTPCREL(%rip), %rcx
	movq	_SCTP_CWND_LOGGING_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_8
## %bb.9:
	movq	_SCTP_CWND_INITIALIZATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_log_cwnd                  ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_initial_cwnd,4,2          ## @sctp_initial_cwnd
	.comm	_SCTP_INITIAL_CWND,4,2          ## @SCTP_INITIAL_CWND
	.comm	_SCTP_CMT_RPV1,8,3              ## @SCTP_CMT_RPV1
	.comm	_SCTP_CMT_RPV2,8,3              ## @SCTP_CMT_RPV2
	.comm	_sctp,4,2                       ## @sctp
	.comm	_cwnd,4,2                       ## @cwnd
	.comm	_init,4,2                       ## @init
	.comm	_sctp_logging_level,4,2         ## @sctp_logging_level
	.comm	_SCTP_CWND_MONITOR_ENABLE,4,2   ## @SCTP_CWND_MONITOR_ENABLE
	.comm	_SCTP_CWND_LOGGING_ENABLE,4,2   ## @SCTP_CWND_LOGGING_ENABLE
	.comm	_SCTP_CWND_INITIALIZATION,4,2   ## @SCTP_CWND_INITIALIZATION
	.no_dead_strip	_sctp_set_initial_cc_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_set_initial_cc_param
_sctp_set_initial_cc_param:             ; @sctp_set_initial_cc_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	add	x21, x0, #16
Lloh0:
	adrp	x8, _sctp_initial_cwnd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_initial_cwnd@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, w0, sxtw
	ccmp	x8, #0, #4, lt
	csel	w8, w8, w0, gt
	ldr	w9, [x19, #4]
	sub	w9, w9, #4
	mul	w0, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #4]
	lsl	w22, w8, #2
	lsl	w0, w8, #1
Lloh3:
	adrp	x8, _SCTP_INITIAL_CWND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_INITIAL_CWND@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_max
	mov	x1, x0
	mov	x0, x22
	bl	_min
LBB0_3:
	str	w0, [x19]
	ldr	x8, [x20, #24]
Lloh6:
	adrp	x9, _SCTP_CMT_RPV1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCTP_CMT_RPV1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _SCTP_CMT_RPV2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SCTP_CMT_RPV2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x20, #32]
	sdiv	w9, w0, w8
	str	w9, [x19]
	ldrsw	x8, [x19, #4]
	sub	x8, x8, #4
	cmp	x8, w9, sxtw
	b.ls	LBB0_6
; %bb.5:
	str	w8, [x19]
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	bl	_sctp_enforce_cwnd_limit
	ldp	w4, w8, [x20, #36]
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _sctp@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sctp@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _cwnd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cwnd@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _init@GOTPAGE
Lloh19:
	ldr	x8, [x8, _init@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w5, w9, w8, lsl #16
	ldr	w8, [x19]
	str	w8, [sp]
	mov	x2, x19
	mov	x6, x19
	mov	w7, #0
	bl	_SDT_PROBE5
Lloh21:
	adrp	x8, _sctp_logging_level@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sctp_logging_level@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
Lloh24:
	adrp	x8, _SCTP_CWND_MONITOR_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SCTP_CWND_MONITOR_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _SCTP_CWND_LOGGING_ENABLE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SCTP_CWND_LOGGING_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _SCTP_CWND_INITIALIZATION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SCTP_CWND_INITIALIZATION@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_sctp_log_cwnd
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_initial_cwnd,4,2          ; @sctp_initial_cwnd
	.comm	_SCTP_INITIAL_CWND,4,2          ; @SCTP_INITIAL_CWND
	.comm	_SCTP_CMT_RPV1,8,3              ; @SCTP_CMT_RPV1
	.comm	_SCTP_CMT_RPV2,8,3              ; @SCTP_CMT_RPV2
	.comm	_sctp,4,2                       ; @sctp
	.comm	_cwnd,4,2                       ; @cwnd
	.comm	_init,4,2                       ; @init
	.comm	_sctp_logging_level,4,2         ; @sctp_logging_level
	.comm	_SCTP_CWND_MONITOR_ENABLE,4,2   ; @SCTP_CWND_MONITOR_ENABLE
	.comm	_SCTP_CWND_LOGGING_ENABLE,4,2   ; @SCTP_CWND_LOGGING_ENABLE
	.comm	_SCTP_CWND_INITIALIZATION,4,2   ; @SCTP_CWND_INITIALIZATION
	.no_dead_strip	_sctp_set_initial_cc_param
.subsections_via_symbols
