	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_hs_cwnd_decrease
_sctp_hs_cwnd_decrease:                 ## @sctp_hs_cwnd_decrease
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %r15d
	movl	%r15d, %edx
	sarl	$10, %edx
	movq	_sctp_cwnd_adjust@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%rcx), %eax
	cmpl	%eax, %edx
	jge	LBB0_2
## %bb.1:
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	movl	8(%rbx), %ecx
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movl	%ecx, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movslq	%r15d, %rdx
	imulq	$-1374389535, %rdx, %rsi        ## imm = 0xAE147AE1
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$37, %rsi
	addl	%edx, %esi
	movq	16(%rbx), %rdx
	movq	%rdx, %rdi
	shlq	$4, %rdi
	imull	8(%rcx,%rdi), %esi
	addl	%r15d, %esi
	movl	%esi, 4(%rbx)
	movl	%esi, (%rbx)
	sarl	$10, %esi
	cmpl	%eax, %esi
	jge	LBB0_4
## %bb.3:
	movq	$0, 16(%rbx)
	jmp	LBB0_5
LBB0_4:
	movslq	%edx, %rax
	movq	%rax, 16(%rbx)
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sctp_enforce_cwnd_limit
	movq	_sctp_logging_level@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_SYSCTL
	movq	_SCTP_CWND_MONITOR_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.7:
	movl	(%rbx), %edx
	subl	%r15d, %edx
	movq	_SCTP_CWND_LOG_FROM_FR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_log_cwnd                  ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_cwnd_adjust,8,3           ## @sctp_cwnd_adjust
	.comm	_sctp_logging_level,4,2         ## @sctp_logging_level
	.comm	_SCTP_CWND_MONITOR_ENABLE,4,2   ## @SCTP_CWND_MONITOR_ENABLE
	.comm	_SCTP_CWND_LOG_FROM_FR,4,2      ## @SCTP_CWND_LOG_FROM_FR
	.no_dead_strip	_sctp_hs_cwnd_decrease
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_hs_cwnd_decrease
_sctp_hs_cwnd_decrease:                 ; @sctp_hs_cwnd_decrease
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x1]
Lloh0:
	adrp	x8, _sctp_cwnd_adjust@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_cwnd_adjust@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w8, [x9]
	cmp	w8, w21, asr #10
	b.le	LBB0_2
; %bb.1:
	cmp	w21, #0
	cinc	w8, w21, lt
	asr	w8, w8, #1
	ldr	w9, [x19, #8]
	lsl	w9, w9, #1
	cmp	w8, w9
	csel	w8, w8, w9, gt
	stp	w8, w8, [x19]
	b	LBB0_5
LBB0_2:
	mov	w10, #31457
	movk	w10, #44564, lsl #16
	smull	x10, w21, w10
	lsr	x11, x10, #63
	asr	x10, x10, #37
	add	w11, w10, w11
	ldr	x10, [x19, #16]
	add	x9, x9, x10, lsl #4
	ldr	w9, [x9, #8]
	madd	w9, w11, w9, w21
	stp	w9, w9, [x19]
	cmp	w8, w9, asr #10
	b.le	LBB0_4
; %bb.3:
	str	xzr, [x19, #16]
	b	LBB0_5
LBB0_4:
	sxtw	x8, w10
	str	x8, [x19, #16]
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_sctp_enforce_cwnd_limit
Lloh3:
	adrp	x8, _sctp_logging_level@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sctp_logging_level@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
Lloh6:
	adrp	x8, _SCTP_CWND_MONITOR_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_CWND_MONITOR_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _SCTP_CWND_LOG_FROM_FR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SCTP_CWND_LOG_FROM_FR@GOTPAGEOFF]
	sub	w2, w8, w21
Lloh11:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, 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	_sctp_log_cwnd
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_cwnd_adjust,8,3           ; @sctp_cwnd_adjust
	.comm	_sctp_logging_level,4,2         ; @sctp_logging_level
	.comm	_SCTP_CWND_MONITOR_ENABLE,4,2   ; @SCTP_CWND_MONITOR_ENABLE
	.comm	_SCTP_CWND_LOG_FROM_FR,4,2      ; @SCTP_CWND_LOG_FROM_FR
	.no_dead_strip	_sctp_hs_cwnd_decrease
.subsections_via_symbols
