	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_cwnd_update_after_packet_dropped
_sctp_cwnd_update_after_packet_dropped: ## @sctp_cwnd_update_after_packet_dropped
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movslq	(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %edi
	callq	_ntohl
	movq	%rax, (%r13)
	movl	(%rbx), %edi
	callq	_ntohl
	movq	%rax, (%r15)
	movq	8(%r12), %rdx
	cmpq	%rdx, %rax
	cmovgq	%rax, %rdx
	movq	%rdx, (%r15)
	movq	(%r13), %rax
	movl	16(%r12), %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$50, %rcx
	addl	%esi, %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, %rbx
	subq	%rdx, %rbx
	jge	LBB0_8
## %bb.1:
	movq	$0, 32(%r12)
	movq	(%r15), %r9
	movl	%r9d, %r10d
	movq	24(%r14), %rax
	testq	%rax, %rax
	movl	$20, %edx
	cmoveq	%rax, %rdx
	movslq	(%r12,%rdx), %rbx
	movq	8(%r12), %r8
	movslq	24(%r12), %rsi
	movq	%r8, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r8, %rax
	cqto
	idivq	%rsi
	movq	%rax, %rdi
	jmp	LBB0_4
LBB0_8:
	shrq	$2, %rbx
	movl	16(%r14), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	imull	24(%r12), %eax
	cmpl	%ebx, %eax
	cmovael	%ebx, %eax
	movl	%eax, %ebx
LBB0_10:
	addl	(%r12), %ebx
	movl	%ebx, (%r12)
	jmp	LBB0_11
LBB0_2:
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %edi
LBB0_4:
	subl	%ecx, %r10d
	movq	%r9, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r9, %rax
	cqto
	idivq	%rsi
	movq	%rax, %r9
	jmp	LBB0_7
LBB0_5:
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r9d
LBB0_7:
	imull	%r10d, %edi
	xorl	%r10d, %r10d
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%r9d
	movl	%ebx, %edx
	subl	%r8d, %edx
	movl	%eax, %edi
	subl	%edx, %edi
	cmovll	%r10d, %edi
	cmpq	%rbx, %r8
	cmovgel	%eax, %edi
	subl	%edi, %ebx
	cmpl	%esi, %ebx
	cmovlel	%esi, %ebx
	movl	%ebx, (%r12)
	leal	-1(%rbx), %eax
	movl	%eax, 28(%r12)
LBB0_11:
	movslq	%ebx, %rax
	cmpq	%rax, %rcx
	jge	LBB0_13
## %bb.12:
	movl	%ecx, (%r12)
	movl	%ecx, %ebx
LBB0_13:
	movl	24(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_15
## %bb.14:
	movl	%eax, (%r12)
LBB0_15:
	leaq	16(%r14), %rdi
	movq	%r12, %rsi
	callq	_sctp_enforce_cwnd_limit
	movslq	(%r12), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%ebx, %eax
	je	LBB0_17
## %bb.16:
	movq	_sctp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_cwnd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_pd@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	20(%r14), %r8d
	movq	8(%r14), %rdx
	movl	(%rdx), %r9d
	shll	$16, %r9d
	orl	(%r14), %r9d
	subq	$8, %rsp
	movq	%r12, %rdx
	pushq	%rax
	pushq	%rbx
	pushq	%r12
	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
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.18:
	movslq	(%r12), %rdx
	subq	%rbx, %rdx
	movq	_SCTP_CWND_LOG_FROM_SAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_log_cwnd                  ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp,4,2                       ## @sctp
	.comm	_cwnd,4,2                       ## @cwnd
	.comm	_pd,4,2                         ## @pd
	.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_SAT,4,2     ## @SCTP_CWND_LOG_FROM_SAT
	.no_dead_strip	_sctp_cwnd_update_after_packet_dropped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_cwnd_update_after_packet_dropped
_sctp_cwnd_update_after_packet_dropped: ; @sctp_cwnd_update_after_packet_dropped
	.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	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	ldrsw	x21, [x1]
	ldr	w0, [x2, #4]
	bl	_ntohl
	str	x0, [x23]
	ldr	w0, [x24]
	bl	_ntohl
	str	x0, [x22]
	ldr	x8, [x19, #8]
	cmp	x0, x8
	csel	x9, x0, x8, gt
	str	x9, [x22]
	ldr	x8, [x23]
	ldr	w10, [x19, #16]
	mul	w10, w10, w8
	mov	w11, #56963
	movk	w11, #17179, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #50
	add	w10, w10, w11
	sxtw	x10, w10
	cmp	x8, x10
	csel	x8, x8, x10, lt
	subs	x9, x8, x9
	b.ge	LBB0_2
; %bb.1:
	str	xzr, [x19, #32]
	ldr	x9, [x22]
	ldr	x10, [x20, #24]
	mov	w11, #20
	cmp	x10, #0
	csel	x10, xzr, x11, eq
	ldrsw	x10, [x19, x10]
	sub	w11, w9, w8
	ldr	x12, [x19, #8]
	ldrsw	x13, [x19, #24]
	sdiv	x14, x12, x13
	sdiv	x9, x9, x13
	mul	w11, w14, w11
	udiv	w9, w11, w9
	sub	w11, w10, w12
	subs	w11, w9, w11
	csel	w11, wzr, w11, lt
	cmp	x12, x10
	csel	w9, w11, w9, lt
	sub	w9, w10, w9
	cmp	w9, w13
	csel	w9, w9, w13, gt
	str	w9, [x19]
	sub	w10, w9, #1
	str	w10, [x19, #28]
	cmp	x8, w9, sxtw
	b.lt	LBB0_5
	b	LBB0_6
LBB0_2:
	lsr	x9, x9, #2
	ldr	w10, [x20, #16]
	cbz	w10, LBB0_4
; %bb.3:
	ldr	w11, [x19, #24]
	mul	w10, w11, w10
	cmp	w10, w9
	csel	w9, w10, w9, lo
LBB0_4:
	ldr	w10, [x19]
	add	w9, w10, w9
	str	w9, [x19]
	cmp	x8, w9, sxtw
	b.ge	LBB0_6
LBB0_5:
	str	w8, [x19]
	mov	x9, x8
LBB0_6:
	ldr	w8, [x19, #24]
	cmp	w9, w8
	b.ge	LBB0_8
; %bb.7:
	str	w8, [x19]
LBB0_8:
	add	x0, x20, #16
	mov	x1, x19
	bl	_sctp_enforce_cwnd_limit
	ldrsw	x8, [x19]
	cmp	w8, w21
	b.eq	LBB0_11
; %bb.9:
Lloh0:
	adrp	x9, _sctp@GOTPAGE
Lloh1:
	ldr	x9, [x9, _sctp@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _cwnd@GOTPAGE
Lloh4:
	ldr	x9, [x9, _cwnd@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _pd@GOTPAGE
Lloh7:
	ldr	x9, [x9, _pd@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x9]
	ldr	w4, [x20, #20]
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	ldr	w10, [x20]
	orr	w5, w10, w9, lsl #16
	str	x8, [sp]
	mov	x2, x19
	mov	x6, x19
	mov	x7, x21
	bl	_SDT_PROBE5
Lloh9:
	adrp	x8, _sctp_logging_level@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sctp_logging_level@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_SCTP_BASE_SYSCTL
Lloh12:
	adrp	x8, _SCTP_CWND_MONITOR_ENABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCTP_CWND_MONITOR_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	ldrsw	x8, [x19]
Lloh15:
	adrp	x9, _SCTP_CWND_LOG_FROM_SAT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SCTP_CWND_LOG_FROM_SAT@GOTPAGEOFF]
	sub	x2, x8, x21
Lloh17:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x1, x19
	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
	b	_sctp_log_cwnd
LBB0_11:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp,4,2                       ; @sctp
	.comm	_cwnd,4,2                       ; @cwnd
	.comm	_pd,4,2                         ; @pd
	.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_SAT,4,2     ; @SCTP_CWND_LOG_FROM_SAT
	.no_dead_strip	_sctp_cwnd_update_after_packet_dropped
.subsections_via_symbols
