	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_handle_abort
_sctp_handle_abort:                     ## @sctp_handle_abort
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_SCTP_DEBUG_INPUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_SCTPDBG
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movl	4(%r14), %edi
	callq	_ntohs
	xorl	%r13d, %r13d
	cmpl	$8, %eax
	jb	LBB0_7
## %bb.2:
	movl	8(%r14), %edi
	callq	_ntohs
	movl	%eax, %r13d
	movq	_SCTP_CAUSE_NAT_COLLIDING_STATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_4
## %bb.3:
	movq	_SCTP_DEBUG_INPUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_SCTPDBG
	movq	%rbx, %rdi
	callq	_sctp_handle_nat_colliding_state
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_7
LBB0_4:
	movq	_SCTP_CAUSE_NAT_MISSING_STATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_7
## %bb.5:
	movq	_SCTP_DEBUG_INPUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_SCTPDBG
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sctp_handle_nat_missing_state
	testq	%rax, %rax
	jne	LBB0_11
LBB0_7:
	movq	_SCTP_TIMER_TYPE_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_SCTP_FROM_SCTP_INPUT@GOTPCREL(%rip), %rcx
	movq	_SCTP_LOC_7@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	addq	(%rcx), %r8
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_sctp_timer_stop
	movq	_SCTP_SO_NOT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	movq	%r14, %rcx
	callq	_sctp_abort_notification
	movq	_sctps_aborted@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_INCR_COUNTER32
	movq	%rbx, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_SHUTDOWN_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_9:
	movq	_sctps_currestab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_STAT_DECR_GAUGE32
LBB0_10:
	movl	(%rbx), %edi
	callq	_SCTP_INP_SO
	movq	%rax, %r14
	leaq	4(%rbx), %r15
	movl	$1, %r12d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	movq	%rbx, %rdi
	callq	_SCTP_TCB_UNLOCK
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SCTP_SOCKET_LOCK
	movq	%rbx, %rdi
	callq	_SCTP_TCB_LOCK
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_atomic_subtract_int
	movq	_SCTP_STATE_WAS_ABORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_SCTP_ADD_SUBSTATE
	movl	(%rbx), %edi
	movq	_SCTP_NORMAL_PROC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SCTP_LOC_8@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_SCTP_FROM_SCTP_INPUT@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	%rbx, %rsi
	callq	_sctp_free_assoc
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_SCTP_SOCKET_UNLOCK
	movq	_SCTP_DEBUG_INPUT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_SCTPDBG
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DEBUG_INPUT2,4,2          ## @SCTP_DEBUG_INPUT2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sctp_handle_abort: handling ABORT\n"

	.comm	_SCTP_CAUSE_NAT_COLLIDING_STATE,4,2 ## @SCTP_CAUSE_NAT_COLLIDING_STATE
L_.str.1:                               ## @.str.1
	.asciz	"Received Colliding state abort flags:%x\n"

	.comm	_SCTP_CAUSE_NAT_MISSING_STATE,4,2 ## @SCTP_CAUSE_NAT_MISSING_STATE
L_.str.2:                               ## @.str.2
	.asciz	"Received missing state abort flags:%x\n"

	.comm	_SCTP_TIMER_TYPE_RECV,4,2       ## @SCTP_TIMER_TYPE_RECV
	.comm	_SCTP_FROM_SCTP_INPUT,8,3       ## @SCTP_FROM_SCTP_INPUT
	.comm	_SCTP_LOC_7,8,3                 ## @SCTP_LOC_7
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ## @SCTP_SO_NOT_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_STATE_WAS_ABORTED,4,2     ## @SCTP_STATE_WAS_ABORTED
	.comm	_SCTP_NORMAL_PROC,4,2           ## @SCTP_NORMAL_PROC
	.comm	_SCTP_LOC_8,8,3                 ## @SCTP_LOC_8
L_.str.3:                               ## @.str.3
	.asciz	"sctp_handle_abort: finished\n"

	.no_dead_strip	_sctp_handle_abort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_handle_abort
_sctp_handle_abort:                     ; @sctp_handle_abort
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _SCTP_DEBUG_INPUT2@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SCTP_DEBUG_INPUT2@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SCTPDBG
	cbz	x19, LBB0_11
; %bb.1:
	ldr	w0, [x20, #4]
	bl	_ntohs
	cmp	w0, #8
	b.lo	LBB0_4
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_ntohs
	mov	x22, x0
Lloh4:
	adrp	x8, _SCTP_CAUSE_NAT_COLLIDING_STATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCTP_CAUSE_NAT_COLLIDING_STATE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.3:
	ldr	w0, [x23]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_SCTPDBG
	mov	x0, x19
	bl	_sctp_handle_nat_colliding_state
	cbnz	x0, LBB0_11
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
Lloh9:
	adrp	x8, _SCTP_TIMER_TYPE_RECV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_RECV@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x24, _SCTP_FROM_SCTP_INPUT@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SCTP_FROM_SCTP_INPUT@GOTPAGEOFF]
	ldr	w1, [x19]
	ldr	x8, [x24]
Lloh14:
	adrp	x9, _SCTP_LOC_7@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SCTP_LOC_7@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x4, x9, x8
	mov	x2, x19
	mov	x3, x21
	bl	_sctp_timer_stop
Lloh17:
	adrp	x8, _SCTP_SO_NOT_LOCKED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SCTP_SO_NOT_LOCKED@GOTPAGEOFF]
Lloh19:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x22
	mov	x3, x20
	bl	_sctp_abort_notification
Lloh20:
	adrp	x8, _sctps_aborted@GOTPAGE
Lloh21:
	ldr	x8, [x8, _sctps_aborted@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_SCTP_STAT_INCR_COUNTER32
	mov	x0, x19
	bl	_SCTP_GET_STATE
Lloh23:
	adrp	x8, _SCTP_STATE_OPEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SCTP_STATE_OPEN@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_SCTP_GET_STATE
Lloh26:
	adrp	x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SCTP_STATE_SHUTDOWN_RECEIVED@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_7:
Lloh29:
	adrp	x8, _sctps_currestab@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sctps_currestab@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_SCTP_STAT_DECR_GAUGE32
LBB0_8:
	ldr	w0, [x19]
	bl	_SCTP_INP_SO
	mov	x21, x0
	add	x22, x19, #4
	mov	w20, #1
	mov	x0, x22
	mov	w1, #1
	bl	_atomic_add_int
	mov	x0, x19
	bl	_SCTP_TCB_UNLOCK
	mov	x0, x21
	mov	w1, #1
	bl	_SCTP_SOCKET_LOCK
	mov	x0, x19
	bl	_SCTP_TCB_LOCK
	mov	x0, x22
	mov	w1, #1
	bl	_atomic_subtract_int
Lloh32:
	adrp	x8, _SCTP_STATE_WAS_ABORTED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCTP_STATE_WAS_ABORTED@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SCTP_ADD_SUBSTATE
	ldr	w0, [x19]
Lloh35:
	adrp	x8, _SCTP_NORMAL_PROC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SCTP_NORMAL_PROC@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	ldr	x8, [x24]
Lloh38:
	adrp	x9, _SCTP_LOC_8@GOTPAGE
Lloh39:
	ldr	x9, [x9, _SCTP_LOC_8@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	add	x3, x9, x8
	mov	x1, x19
	bl	_sctp_free_assoc
	mov	x0, x21
	mov	w1, #1
	bl	_SCTP_SOCKET_UNLOCK
	ldr	w0, [x23]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_12
LBB0_9:
Lloh43:
	adrp	x8, _SCTP_CAUSE_NAT_MISSING_STATE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SCTP_CAUSE_NAT_MISSING_STATE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.10:
	ldr	w0, [x23]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_SCTPDBG
	mov	x0, x19
	mov	x1, x21
	bl	_sctp_handle_nat_missing_state
	cbz	x0, LBB0_5
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DEBUG_INPUT2,4,2          ; @SCTP_DEBUG_INPUT2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sctp_handle_abort: handling ABORT\n"

	.comm	_SCTP_CAUSE_NAT_COLLIDING_STATE,4,2 ; @SCTP_CAUSE_NAT_COLLIDING_STATE
l_.str.1:                               ; @.str.1
	.asciz	"Received Colliding state abort flags:%x\n"

	.comm	_SCTP_CAUSE_NAT_MISSING_STATE,4,2 ; @SCTP_CAUSE_NAT_MISSING_STATE
l_.str.2:                               ; @.str.2
	.asciz	"Received missing state abort flags:%x\n"

	.comm	_SCTP_TIMER_TYPE_RECV,4,2       ; @SCTP_TIMER_TYPE_RECV
	.comm	_SCTP_FROM_SCTP_INPUT,8,3       ; @SCTP_FROM_SCTP_INPUT
	.comm	_SCTP_LOC_7,8,3                 ; @SCTP_LOC_7
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ; @SCTP_SO_NOT_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_STATE_WAS_ABORTED,4,2     ; @SCTP_STATE_WAS_ABORTED
	.comm	_SCTP_NORMAL_PROC,4,2           ; @SCTP_NORMAL_PROC
	.comm	_SCTP_LOC_8,8,3                 ; @SCTP_LOC_8
l_.str.3:                               ; @.str.3
	.asciz	"sctp_handle_abort: finished\n"

	.no_dead_strip	_sctp_handle_abort
.subsections_via_symbols
