	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddSctpAssocLocal
_AddSctpAssocLocal:                     ## @AddSctpAssocLocal
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_LIBALIAS_LOCK_ASSERT
	movl	20(%rbx), %esi
	movl	16(%rbx), %ecx
	movl	12(%rbx), %r8d
	movq	(%rbx), %r9
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_FindSctpLocal
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movl	8(%rax), %eax
	movq	_SN_LOCAL_TBL@GOTPCREL(%rip), %rcx
	movq	_SN_ADD_CLASH@GOTPCREL(%rip), %r12
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.2:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_RmSctpAssoc
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_sctp_RmTimeOut
	movq	%r15, %rdi
	callq	_freeGlobalAddressList
	movq	%r15, %rdi
	callq	_sn_free
LBB0_4:
	movq	16(%r14), %r15
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movl	8(%r14), %edx
	callq	_SN_TABLE_HASH
	leaq	(%r15,%rax,4), %rdi
	movq	_list_L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	_SN_LOCAL_TBL@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	incl	4(%r14)
	movq	_SN_BOTH_TBL@GOTPCREL(%rip), %rax
	movq	_SN_ADD_OK@GOTPCREL(%rip), %r12
	cmpl	(%rax), %ecx
	jne	LBB0_8
## %bb.5:
	movq	_PKT_ALIAS_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_SctpShowAliasStats
LBB0_7:
	movq	_SN_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_logsctpassoc
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_SN_LOG
LBB0_8:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SN_LOCAL_TBL,4,2               ## @SN_LOCAL_TBL
	.comm	_SN_ADD_CLASH,4,2               ## @SN_ADD_CLASH
	.comm	_list_L,4,2                     ## @list_L
	.comm	_SN_BOTH_TBL,4,2                ## @SN_BOTH_TBL
	.comm	_PKT_ALIAS_LOG,4,2              ## @PKT_ALIAS_LOG
	.comm	_SN_LOG_INFO,4,2                ## @SN_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"^"

	.comm	_SN_ADD_OK,4,2                  ## @SN_ADD_OK
	.no_dead_strip	_AddSctpAssocLocal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddSctpAssocLocal
_AddSctpAssocLocal:                     ; @AddSctpAssocLocal
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_LIBALIAS_LOCK_ASSERT
	ldp	w3, w1, [x19, #16]
	ldr	w4, [x19, #12]
	and	x2, x21, #0xffffffff
	ldr	x5, [x19]
	mov	x0, x20
	bl	_FindSctpLocal
Lloh0:
	adrp	x22, _SN_LOCAL_TBL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SN_LOCAL_TBL@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_RmSctpAssoc
	mov	x0, x20
	mov	x1, x21
	bl	_sctp_RmTimeOut
	mov	x0, x21
	bl	_freeGlobalAddressList
	mov	x0, x21
	bl	_sn_free
LBB0_4:
	ldr	x21, [x20, #16]
	ldp	w1, w0, [x19, #12]
	ldr	w2, [x20, #8]
	bl	_SN_TABLE_HASH
	add	x0, x21, x0, lsl #2
Lloh2:
	adrp	x8, _list_L@GOTPAGE
Lloh3:
	ldr	x8, [x8, _list_L@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	ldr	w8, [x22]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w9, [x20, #4]
	add	w9, w9, #1
	str	w9, [x20, #4]
Lloh5:
	adrp	x9, _SN_BOTH_TBL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SN_BOTH_TBL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _PKT_ALIAS_LOG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PKT_ALIAS_LOG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_SctpShowAliasStats
LBB0_7:
Lloh11:
	adrp	x8, _SN_LOG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SN_LOG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_logsctpassoc
	mov	x1, x0
	mov	x0, x20
	bl	_SN_LOG
LBB0_8:
Lloh16:
	adrp	x8, _SN_ADD_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SN_ADD_OK@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x8, _SN_ADD_CLASH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SN_ADD_CLASH@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SN_LOCAL_TBL,4,2               ; @SN_LOCAL_TBL
	.comm	_SN_ADD_CLASH,4,2               ; @SN_ADD_CLASH
	.comm	_list_L,4,2                     ; @list_L
	.comm	_SN_BOTH_TBL,4,2                ; @SN_BOTH_TBL
	.comm	_PKT_ALIAS_LOG,4,2              ; @PKT_ALIAS_LOG
	.comm	_SN_LOG_INFO,4,2                ; @SN_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"^"

	.comm	_SN_ADD_OK,4,2                  ; @SN_ADD_OK
	.no_dead_strip	_AddSctpAssocLocal
.subsections_via_symbols
