	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_disconnect                ## -- Begin function sctp_disconnect
	.p2align	4, 0x90
_sctp_disconnect:                       ## @sctp_disconnect
	.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	24(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	%r13, %rdi
	callq	_SCTP_INP_RLOCK
	movl	(%r13), %eax
	movq	_SCTP_PCB_FLAGS_TCPTYPE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_46
LBB0_4:
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_LIST_EMPTY
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_SCTP_TCB_LOCK
	movq	_SCTP_STATE_ABOUT_TO_BE_FREED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_SCTP_TCB_UNLOCK
LBB0_5:
	movq	%r13, %rdi
	callq	_SCTP_INP_RUNLOCK
	xorl	%eax, %eax
	jmp	LBB0_49
LBB0_1:
	movq	_SCTP_FROM_SCTP_USRREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_ENOTCONN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	xorl	%edi, %edi
	jmp	LBB0_48
LBB0_46:
	movq	%r13, %rdi
	callq	_SCTP_INP_RUNLOCK
	movq	_SCTP_FROM_SCTP_USRREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rbx
	jmp	LBB0_47
LBB0_7:
	movq	%r13, %rdi
	callq	_SCTP_INP_RUNLOCK
	movq	_SCTP_FROM_SCTP_USRREQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rbx
LBB0_47:
	movl	(%rbx), %r8d
	movq	%r13, %rdi
LBB0_48:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%rbx), %eax
LBB0_49:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_SO_LINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.11:
	cmpq	$0, 8(%r15)
	je	LBB0_13
LBB0_12:
	cmpq	$0, 16(%r15)
	jle	LBB0_20
LBB0_13:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_COOKIE_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	_SCTP_CAUSE_USER_INITIATED_ABT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sctp_generate_cause
	movq	_SCTP_SO_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sctp_send_abort_tcb
	movq	_sctps_aborted@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_INCR_COUNTER32
LBB0_15:
	movq	%r13, %rdi
	callq	_SCTP_INP_RUNLOCK
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
LBB0_17:
	movq	_sctps_currestab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_DECR_GAUGE32
LBB0_18:
	movq	_SCTP_NORMAL_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCTP_FROM_SCTP_USRREQ@GOTPCREL(%rip), %rax
	movq	_SCTP_LOC_3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
LBB0_19:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_sctp_free_assoc
	xorl	%eax, %eax
	jmp	LBB0_49
LBB0_20:
	leaq	8(%r14), %r12
	leaq	28(%r14), %rbx
	movq	%rbx, %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_32
## %bb.21:
	leaq	24(%r14), %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_32
## %bb.22:
	cmpq	$0, 16(%r14)
	je	LBB0_23
LBB0_32:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rbx
	movq	48(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_34
## %bb.33:
	movq	40(%r14), %r12
LBB0_34:
	movq	_SCTP_STATE_SHUTDOWN_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SCTP_ADD_SUBSTATE
	movq	_SCTP_TIMER_TYPE_SHUTDOWNGUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_sctp_timer_start
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	*32(%r14)
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	_SCTP_STATE_PARTIAL_MSG_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SCTP_ADD_SUBSTATE
LBB0_36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_43
## %bb.37:
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_43
## %bb.38:
	movq	_SCTP_STATE_PARTIAL_MSG_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_39
LBB0_43:
	movq	_SCTP_OUTPUT_FROM_CLOSING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCTP_SO_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
LBB0_44:
	movq	%r14, %rsi
	callq	_sctp_chunk_output
LBB0_45:
	movq	%r15, %rdi
	callq	_soisdisconnecting
	jmp	LBB0_9
LBB0_23:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*32(%r14)
	testq	%rax, %rax
	je	LBB0_24
LBB0_39:
	movq	_SCTP_CAUSE_USER_INITIATED_ABT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sctp_generate_cause
	movq	_SCTP_FROM_SCTP_USRREQ@GOTPCREL(%rip), %rbx
	movq	_SCTP_LOC_4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rbx), %rcx
	movq	(%r14), %rdx
	movq	%rcx, 8(%rdx)
	movq	_SCTP_SO_LOCKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_sctp_send_abort_tcb
	movq	_sctps_aborted@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_INCR_COUNTER32
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_41
## %bb.40:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
LBB0_41:
	movq	_sctps_currestab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_DECR_GAUGE32
LBB0_42:
	movq	%r13, %rdi
	callq	_SCTP_INP_RUNLOCK
	movq	_SCTP_NORMAL_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCTP_LOC_5@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	(%rbx), %rcx
	jmp	LBB0_19
LBB0_24:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_SENT@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	je	LBB0_45
## %bb.25:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_ACK_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_45
## %bb.26:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_28
## %bb.27:
	movq	%r14, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
LBB0_28:
	movq	_sctps_currestab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_DECR_GAUGE32
LBB0_29:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_SCTP_SET_STATE
	movq	%r14, %rdi
	callq	_sctp_stop_timers_for_shutdown
	movq	48(%r14), %r12
	testq	%r12, %r12
	jne	LBB0_31
## %bb.30:
	movq	40(%r14), %r12
LBB0_31:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sctp_send_shutdown
	movq	_SCTP_TIMER_TYPE_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_sctp_timer_start
	movq	_SCTP_TIMER_TYPE_SHUTDOWNGUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_sctp_timer_start
	movq	(%r14), %rdi
	movq	_SCTP_OUTPUT_FROM_T3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCTP_SO_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_FROM_SCTP_USRREQ,8,3      ## @SCTP_FROM_SCTP_USRREQ
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_SCTP_PCB_FLAGS_TCPTYPE,4,2     ## @SCTP_PCB_FLAGS_TCPTYPE
	.comm	_SCTP_PCB_FLAGS_IN_TCPPOOL,4,2  ## @SCTP_PCB_FLAGS_IN_TCPPOOL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCTP_STATE_ABOUT_TO_BE_FREED,4,2 ## @SCTP_STATE_ABOUT_TO_BE_FREED
	.comm	_SO_LINGER,4,2                  ## @SO_LINGER
	.comm	_SCTP_STATE_COOKIE_WAIT,8,3     ## @SCTP_STATE_COOKIE_WAIT
	.comm	_SCTP_CAUSE_USER_INITIATED_ABT,4,2 ## @SCTP_CAUSE_USER_INITIATED_ABT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_SCTP_SO_LOCKED,4,2             ## @SCTP_SO_LOCKED
	.comm	_sctps_aborted,4,2              ## @sctps_aborted
	.comm	_SCTP_STATE_OPEN,8,3            ## @SCTP_STATE_OPEN
	.comm	_SCTP_STATE_SHUTDOWN_RECEIVED,8,3 ## @SCTP_STATE_SHUTDOWN_RECEIVED
	.comm	_sctps_currestab,4,2            ## @sctps_currestab
	.comm	_SCTP_NORMAL_PROC,4,2           ## @SCTP_NORMAL_PROC
	.comm	_SCTP_LOC_3,8,3                 ## @SCTP_LOC_3
	.comm	_SCTP_STATE_SHUTDOWN_SENT,8,3   ## @SCTP_STATE_SHUTDOWN_SENT
	.comm	_SCTP_STATE_SHUTDOWN_ACK_SENT,8,3 ## @SCTP_STATE_SHUTDOWN_ACK_SENT
	.comm	_SCTP_TIMER_TYPE_SHUTDOWN,4,2   ## @SCTP_TIMER_TYPE_SHUTDOWN
	.comm	_SCTP_TIMER_TYPE_SHUTDOWNGUARD,4,2 ## @SCTP_TIMER_TYPE_SHUTDOWNGUARD
	.comm	_SCTP_OUTPUT_FROM_T3,4,2        ## @SCTP_OUTPUT_FROM_T3
	.comm	_SCTP_STATE_SHUTDOWN_PENDING,4,2 ## @SCTP_STATE_SHUTDOWN_PENDING
	.comm	_SCTP_STATE_PARTIAL_MSG_LEFT,4,2 ## @SCTP_STATE_PARTIAL_MSG_LEFT
	.comm	_SCTP_LOC_4,8,3                 ## @SCTP_LOC_4
	.comm	_SCTP_LOC_5,8,3                 ## @SCTP_LOC_5
	.comm	_SCTP_OUTPUT_FROM_CLOSING,4,2   ## @SCTP_OUTPUT_FROM_CLOSING
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_disconnect                ; -- Begin function sctp_disconnect
	.p2align	2
_sctp_disconnect:                       ; @sctp_disconnect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0, #24]
	cbz	x19, LBB0_8
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_SCTP_INP_RLOCK
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _SCTP_PCB_FLAGS_TCPTYPE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_TCPTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCTP_PCB_FLAGS_IN_TCPPOOL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_3:
	add	x20, x19, #16
	mov	x0, x20
	bl	_LIST_EMPTY
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_LIST_FIRST
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	bl	_SCTP_TCB_LOCK
	mov	x22, x20
	ldr	w8, [x22, #8]!
Lloh6:
	adrp	x9, _SCTP_STATE_ABOUT_TO_BE_FREED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SCTP_STATE_ABOUT_TO_BE_FREED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_6:
	mov	x0, x20
	bl	_SCTP_TCB_UNLOCK
LBB0_7:
	mov	x0, x19
	bl	_SCTP_INP_RUNLOCK
	mov	w0, #0
	b	LBB0_12
LBB0_8:
Lloh9:
	adrp	x8, _SCTP_FROM_SCTP_USRREQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCTP_FROM_SCTP_USRREQ@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
Lloh12:
	adrp	x19, _ENOTCONN@GOTPAGE
Lloh13:
	ldr	x19, [x19, _ENOTCONN@GOTPAGEOFF]
	ldr	w4, [x19]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w0, [x19]
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_SCTP_INP_RUNLOCK
Lloh14:
	adrp	x8, _SCTP_FROM_SCTP_USRREQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCTP_FROM_SCTP_USRREQ@GOTPAGEOFF]
Lloh16:
	ldr	x3, [x8]
Lloh17:
	adrp	x20, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x20, [x20, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_SCTP_INP_RUNLOCK
Lloh19:
	adrp	x8, _SCTP_FROM_SCTP_USRREQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SCTP_FROM_SCTP_USRREQ@GOTPAGEOFF]
Lloh21:
	ldr	x3, [x8]
Lloh22:
	adrp	x20, _EINVAL@GOTPAGE
Lloh23:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w0, [x20]
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x21]
Lloh24:
	adrp	x9, _SO_LINGER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SO_LINGER@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_16
LBB0_15:
	ldr	x8, [x21, #16]
	cmp	x8, #1
	b.lt	LBB0_23
LBB0_16:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh27:
	adrp	x8, _SCTP_STATE_COOKIE_WAIT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SCTP_STATE_COOKIE_WAIT@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_18
; %bb.17:
Lloh30:
	adrp	x8, _SCTP_CAUSE_USER_INITIATED_ABT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SCTP_CAUSE_USER_INITIATED_ABT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sctp_generate_cause
	mov	x1, x0
Lloh35:
	adrp	x8, _SCTP_SO_LOCKED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SCTP_SO_LOCKED@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sctp_send_abort_tcb
Lloh38:
	adrp	x8, _sctps_aborted@GOTPAGE
Lloh39:
	ldr	x8, [x8, _sctps_aborted@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_SCTP_STAT_INCR_COUNTER32
LBB0_18:
	mov	x0, x19
	bl	_SCTP_INP_RUNLOCK
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh41:
	adrp	x8, _SCTP_STATE_OPEN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SCTP_STATE_OPEN@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh44:
	adrp	x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
LBB0_20:
Lloh47:
	adrp	x8, _sctps_currestab@GOTPAGE
Lloh48:
	ldr	x8, [x8, _sctps_currestab@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_SCTP_STAT_DECR_GAUGE32
LBB0_21:
Lloh50:
	adrp	x8, _SCTP_NORMAL_PROC@GOTPAGE
Lloh51:
	ldr	x8, [x8, _SCTP_NORMAL_PROC@GOTPAGEOFF]
Lloh52:
	adrp	x9, _SCTP_FROM_SCTP_USRREQ@GOTPAGE
Lloh53:
	ldr	x9, [x9, _SCTP_FROM_SCTP_USRREQ@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
Lloh55:
	ldr	x8, [x9]
Lloh56:
	adrp	x9, _SCTP_LOC_3@GOTPAGE
Lloh57:
	ldr	x9, [x9, _SCTP_LOC_3@GOTPAGEOFF]
LBB0_22:
	ldr	x9, [x9]
	add	x3, x9, x8
	mov	x0, x19
	mov	x1, x20
	bl	_sctp_free_assoc
	mov	w0, #0
	b	LBB0_12
LBB0_23:
	add	x23, x20, #28
	mov	x0, x23
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_26
; %bb.24:
	add	x0, x20, #24
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_36
LBB0_26:
	ldr	x24, [x20, #48]
	cbnz	x24, LBB0_28
; %bb.27:
	ldr	x24, [x20, #40]
LBB0_28:
Lloh58:
	adrp	x8, _SCTP_STATE_SHUTDOWN_PENDING@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_PENDING@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SCTP_ADD_SUBSTATE
Lloh61:
	adrp	x8, _SCTP_TIMER_TYPE_SHUTDOWNGUARD@GOTPAGE
Lloh62:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_SHUTDOWNGUARD@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	ldr	x1, [x20]
	mov	x2, x20
	mov	x3, x24
	bl	_sctp_timer_start
	ldr	x8, [x20, #32]
	mov	x0, x20
	mov	x1, x22
	blr	x8
Lloh64:
	adrp	x24, _SCTP_STATE_PARTIAL_MSG_LEFT@GOTPAGE
Lloh65:
	ldr	x24, [x24, _SCTP_STATE_PARTIAL_MSG_LEFT@GOTPAGEOFF]
	cbz	x0, LBB0_30
; %bb.29:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_SCTP_ADD_SUBSTATE
LBB0_30:
	mov	x0, x23
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_33
; %bb.31:
	add	x0, x20, #24
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_33
; %bb.32:
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_37
LBB0_33:
Lloh66:
	adrp	x8, _SCTP_OUTPUT_FROM_CLOSING@GOTPAGE
Lloh67:
	ldr	x8, [x8, _SCTP_OUTPUT_FROM_CLOSING@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
Lloh69:
	adrp	x8, _SCTP_SO_LOCKED@GOTPAGE
Lloh70:
	ldr	x8, [x8, _SCTP_SO_LOCKED@GOTPAGEOFF]
Lloh71:
	ldr	w3, [x8]
	mov	x0, x19
LBB0_34:
	mov	x1, x20
	bl	_sctp_chunk_output
LBB0_35:
	mov	x0, x21
	bl	_soisdisconnecting
	b	LBB0_6
LBB0_36:
	ldr	x8, [x20, #32]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	cbz	x0, LBB0_41
LBB0_37:
Lloh72:
	adrp	x8, _SCTP_CAUSE_USER_INITIATED_ABT@GOTPAGE
Lloh73:
	ldr	x8, [x8, _SCTP_CAUSE_USER_INITIATED_ABT@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
Lloh75:
	adrp	x1, l_.str@PAGE
Lloh76:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sctp_generate_cause
	mov	x1, x0
Lloh77:
	adrp	x21, _SCTP_FROM_SCTP_USRREQ@GOTPAGE
Lloh78:
	ldr	x21, [x21, _SCTP_FROM_SCTP_USRREQ@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh79:
	adrp	x9, _SCTP_LOC_4@GOTPAGE
Lloh80:
	ldr	x9, [x9, _SCTP_LOC_4@GOTPAGEOFF]
Lloh81:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldr	x9, [x20]
	str	x8, [x9, #8]
Lloh82:
	adrp	x8, _SCTP_SO_LOCKED@GOTPAGE
Lloh83:
	ldr	x8, [x8, _SCTP_SO_LOCKED@GOTPAGEOFF]
Lloh84:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sctp_send_abort_tcb
Lloh85:
	adrp	x8, _sctps_aborted@GOTPAGE
Lloh86:
	ldr	x8, [x8, _sctps_aborted@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
	bl	_SCTP_STAT_INCR_COUNTER32
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh88:
	adrp	x8, _SCTP_STATE_OPEN@GOTPAGE
Lloh89:
	ldr	x8, [x8, _SCTP_STATE_OPEN@GOTPAGEOFF]
Lloh90:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_39
; %bb.38:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh91:
	adrp	x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGE
Lloh92:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_40
LBB0_39:
Lloh94:
	adrp	x8, _sctps_currestab@GOTPAGE
Lloh95:
	ldr	x8, [x8, _sctps_currestab@GOTPAGEOFF]
Lloh96:
	ldr	w0, [x8]
	bl	_SCTP_STAT_DECR_GAUGE32
LBB0_40:
	mov	x0, x19
	bl	_SCTP_INP_RUNLOCK
Lloh97:
	adrp	x8, _SCTP_NORMAL_PROC@GOTPAGE
Lloh98:
	ldr	x8, [x8, _SCTP_NORMAL_PROC@GOTPAGEOFF]
Lloh99:
	ldr	w2, [x8]
	ldr	x8, [x21]
Lloh100:
	adrp	x9, _SCTP_LOC_5@GOTPAGE
Lloh101:
	ldr	x9, [x9, _SCTP_LOC_5@GOTPAGEOFF]
	b	LBB0_22
LBB0_41:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh102:
	adrp	x22, _SCTP_STATE_SHUTDOWN_SENT@GOTPAGE
Lloh103:
	ldr	x22, [x22, _SCTP_STATE_SHUTDOWN_SENT@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.42:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh104:
	adrp	x8, _SCTP_STATE_SHUTDOWN_ACK_SENT@GOTPAGE
Lloh105:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_ACK_SENT@GOTPAGEOFF]
Lloh106:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_35
; %bb.43:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh107:
	adrp	x8, _SCTP_STATE_OPEN@GOTPAGE
Lloh108:
	ldr	x8, [x8, _SCTP_STATE_OPEN@GOTPAGEOFF]
Lloh109:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_45
; %bb.44:
	mov	x0, x20
	bl	_SCTP_GET_STATE
Lloh110:
	adrp	x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGE
Lloh111:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGEOFF]
Lloh112:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_46
LBB0_45:
Lloh113:
	adrp	x8, _sctps_currestab@GOTPAGE
Lloh114:
	ldr	x8, [x8, _sctps_currestab@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
	bl	_SCTP_STAT_DECR_GAUGE32
LBB0_46:
	ldr	x1, [x22]
	mov	x0, x20
	bl	_SCTP_SET_STATE
	mov	x0, x20
	bl	_sctp_stop_timers_for_shutdown
	ldr	x22, [x20, #48]
	cbnz	x22, LBB0_48
; %bb.47:
	ldr	x22, [x20, #40]
LBB0_48:
	mov	x0, x20
	mov	x1, x22
	bl	_sctp_send_shutdown
Lloh116:
	adrp	x8, _SCTP_TIMER_TYPE_SHUTDOWN@GOTPAGE
Lloh117:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_SHUTDOWN@GOTPAGEOFF]
Lloh118:
	ldr	w0, [x8]
	ldr	x1, [x20]
	mov	x2, x20
	mov	x3, x22
	bl	_sctp_timer_start
Lloh119:
	adrp	x8, _SCTP_TIMER_TYPE_SHUTDOWNGUARD@GOTPAGE
Lloh120:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_SHUTDOWNGUARD@GOTPAGEOFF]
Lloh121:
	ldr	w0, [x8]
	ldr	x1, [x20]
	mov	x2, x20
	mov	x3, x22
	bl	_sctp_timer_start
	ldr	x0, [x20]
Lloh122:
	adrp	x8, _SCTP_OUTPUT_FROM_T3@GOTPAGE
Lloh123:
	ldr	x8, [x8, _SCTP_OUTPUT_FROM_T3@GOTPAGEOFF]
Lloh124:
	ldr	w2, [x8]
Lloh125:
	adrp	x8, _SCTP_SO_LOCKED@GOTPAGE
Lloh126:
	ldr	x8, [x8, _SCTP_SO_LOCKED@GOTPAGEOFF]
Lloh127:
	ldr	w3, [x8]
	b	LBB0_34
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh54
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGot	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_FROM_SCTP_USRREQ,8,3      ; @SCTP_FROM_SCTP_USRREQ
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_SCTP_PCB_FLAGS_TCPTYPE,4,2     ; @SCTP_PCB_FLAGS_TCPTYPE
	.comm	_SCTP_PCB_FLAGS_IN_TCPPOOL,4,2  ; @SCTP_PCB_FLAGS_IN_TCPPOOL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCTP_STATE_ABOUT_TO_BE_FREED,4,2 ; @SCTP_STATE_ABOUT_TO_BE_FREED
	.comm	_SO_LINGER,4,2                  ; @SO_LINGER
	.comm	_SCTP_STATE_COOKIE_WAIT,8,3     ; @SCTP_STATE_COOKIE_WAIT
	.comm	_SCTP_CAUSE_USER_INITIATED_ABT,4,2 ; @SCTP_CAUSE_USER_INITIATED_ABT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_SCTP_SO_LOCKED,4,2             ; @SCTP_SO_LOCKED
	.comm	_sctps_aborted,4,2              ; @sctps_aborted
	.comm	_SCTP_STATE_OPEN,8,3            ; @SCTP_STATE_OPEN
	.comm	_SCTP_STATE_SHUTDOWN_RECEIVED,8,3 ; @SCTP_STATE_SHUTDOWN_RECEIVED
	.comm	_sctps_currestab,4,2            ; @sctps_currestab
	.comm	_SCTP_NORMAL_PROC,4,2           ; @SCTP_NORMAL_PROC
	.comm	_SCTP_LOC_3,8,3                 ; @SCTP_LOC_3
	.comm	_SCTP_STATE_SHUTDOWN_SENT,8,3   ; @SCTP_STATE_SHUTDOWN_SENT
	.comm	_SCTP_STATE_SHUTDOWN_ACK_SENT,8,3 ; @SCTP_STATE_SHUTDOWN_ACK_SENT
	.comm	_SCTP_TIMER_TYPE_SHUTDOWN,4,2   ; @SCTP_TIMER_TYPE_SHUTDOWN
	.comm	_SCTP_TIMER_TYPE_SHUTDOWNGUARD,4,2 ; @SCTP_TIMER_TYPE_SHUTDOWNGUARD
	.comm	_SCTP_OUTPUT_FROM_T3,4,2        ; @SCTP_OUTPUT_FROM_T3
	.comm	_SCTP_STATE_SHUTDOWN_PENDING,4,2 ; @SCTP_STATE_SHUTDOWN_PENDING
	.comm	_SCTP_STATE_PARTIAL_MSG_LEFT,4,2 ; @SCTP_STATE_PARTIAL_MSG_LEFT
	.comm	_SCTP_LOC_4,8,3                 ; @SCTP_LOC_4
	.comm	_SCTP_LOC_5,8,3                 ; @SCTP_LOC_5
	.comm	_SCTP_OUTPUT_FROM_CLOSING,4,2   ; @SCTP_OUTPUT_FROM_CLOSING
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
.subsections_via_symbols
