	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_clean_up_stream_reset
_sctp_clean_up_stream_reset:            ## @sctp_clean_up_stream_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	$0, 16(%rdi)
	movq	_SCTP_TIMER_TYPE_STRRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	8(%r14), %ecx
	movq	_SCTP_FROM_SCTP_INPUT@GOTPCREL(%rip), %rax
	movq	_SCTP_LOC_28@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	addq	(%rax), %r8
	movq	%rbx, %rdx
	callq	_sctp_timer_stop
	leaq	12(%rbx), %rdi
	movq	_sctp_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	decl	8(%rbx)
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_sctp_m_freem
	movq	$0, (%r14)
LBB0_3:
	movq	_SCTP_SO_NOT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sctp_free_a_chunk              ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_TIMER_TYPE_STRRESET,4,2   ## @SCTP_TIMER_TYPE_STRRESET
	.comm	_SCTP_FROM_SCTP_INPUT,8,3       ## @SCTP_FROM_SCTP_INPUT
	.comm	_SCTP_LOC_28,8,3                ## @SCTP_LOC_28
	.comm	_sctp_next,4,2                  ## @sctp_next
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ## @SCTP_SO_NOT_LOCKED
	.no_dead_strip	_sctp_clean_up_stream_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_clean_up_stream_reset
_sctp_clean_up_stream_reset:            ; @sctp_clean_up_stream_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x0
	str	xzr, [x0, #16]
Lloh0:
	adrp	x8, _SCTP_TIMER_TYPE_STRRESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_STRRESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _SCTP_FROM_SCTP_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_FROM_SCTP_INPUT@GOTPAGEOFF]
	ldr	w3, [x19, #8]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SCTP_LOC_28@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCTP_LOC_28@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x4, x9, x8
	mov	x2, x20
	bl	_sctp_timer_stop
	add	x0, x20, #12
Lloh9:
	adrp	x8, _sctp_next@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sctp_next@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_TAILQ_REMOVE
	ldr	w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_sctp_m_freem
	str	xzr, [x19]
LBB0_3:
Lloh12:
	adrp	x8, _SCTP_SO_NOT_LOCKED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCTP_SO_NOT_LOCKED@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sctp_free_a_chunk
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_TIMER_TYPE_STRRESET,4,2   ; @SCTP_TIMER_TYPE_STRRESET
	.comm	_SCTP_FROM_SCTP_INPUT,8,3       ; @SCTP_FROM_SCTP_INPUT
	.comm	_SCTP_LOC_28,8,3                ; @SCTP_LOC_28
	.comm	_sctp_next,4,2                  ; @sctp_next
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ; @SCTP_SO_NOT_LOCKED
	.no_dead_strip	_sctp_clean_up_stream_reset
.subsections_via_symbols
