	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_remove_net                ## -- Begin function sctp_remove_net
	.p2align	4, 0x90
_sctp_remove_net:                       ## @sctp_remove_net
	.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	%rdi, %rbx
	decl	48(%rdi)
	movq	%rsi, %r14
	leaq	16(%rdi), %r15
	movq	_sctp_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_TAILQ_REMOVE
	cmpq	%r14, 32(%rbx)
	je	LBB0_1
## %bb.7:
	cmpq	%r14, 24(%rbx)
	je	LBB0_8
LBB0_9:
	cmpq	%r14, 8(%rbx)
	je	LBB0_10
LBB0_11:
	cmpq	%r14, (%rbx)
	je	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sctp_free_remote_addr          ## TAILCALL
LBB0_1:
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, %r12
	movl	56(%rbx), %edi
	movq	_SCTP_MOBILITY_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sctp_is_mobility_feature_on
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	56(%rbx), %edi
	movq	_SCTP_MOBILITY_FASTHANDOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sctp_is_mobility_feature_on
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movq	_SCTP_DEBUG_ASCONF1@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_SCTPDBG
	cmpq	$0, 40(%rbx)
	je	LBB0_5
## %bb.4:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_SCTPDBG
	jmp	LBB0_6
LBB0_5:
	movq	%r14, 40(%rbx)
	leaq	8(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	leaq	4(%r14), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	56(%rbx), %edi
	movq	_SCTP_MOBILITY_PRIM_DELETED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sctp_mobility_feature_on
	movq	_SCTP_TIMER_TYPE_PRIM_DELETED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%rbx), %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_sctp_timer_start
LBB0_6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sctp_find_alternate_net
	movq	%rax, 32(%rbx)
	cmpq	%r14, 24(%rbx)
	jne	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_TAILQ_FIRST
	movq	%rax, 24(%rbx)
	cmpq	%r14, 8(%rbx)
	jne	LBB0_11
LBB0_10:
	movq	$0, 8(%rbx)
	cmpq	%r14, (%rbx)
	jne	LBB0_13
LBB0_12:
	movq	%r14, %rdi
	callq	_sctp_free_remote_addr
	movq	$0, (%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_sctp_next,4,2                  ## @sctp_next
	.comm	_SCTP_MOBILITY_BASE,4,2         ## @SCTP_MOBILITY_BASE
	.comm	_SCTP_MOBILITY_FASTHANDOFF,4,2  ## @SCTP_MOBILITY_FASTHANDOFF
	.comm	_SCTP_DEBUG_ASCONF1,4,2         ## @SCTP_DEBUG_ASCONF1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remove_net: primary dst is deleting\n"

L_.str.1:                               ## @.str.1
	.asciz	"remove_net: deleted primary may be already stored\n"

	.comm	_SCTP_MOBILITY_PRIM_DELETED,4,2 ## @SCTP_MOBILITY_PRIM_DELETED
	.comm	_SCTP_TIMER_TYPE_PRIM_DELETED,4,2 ## @SCTP_TIMER_TYPE_PRIM_DELETED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_remove_net                ; -- Begin function sctp_remove_net
	.p2align	2
_sctp_remove_net:                       ; @sctp_remove_net
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #48]
	sub	w8, w8, #1
	str	w8, [x0, #48]
	add	x21, x0, #16
Lloh0:
	adrp	x8, _sctp_next@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sctp_next@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_TAILQ_REMOVE
	ldr	x8, [x20, #32]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_TAILQ_FIRST
	mov	x22, x0
	ldr	w0, [x20, #56]
Lloh3:
	adrp	x8, _SCTP_MOBILITY_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_MOBILITY_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_sctp_is_mobility_feature_on
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #56]
Lloh6:
	adrp	x8, _SCTP_MOBILITY_FASTHANDOFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_MOBILITY_FASTHANDOFF@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_sctp_is_mobility_feature_on
	cbz	x0, LBB0_6
LBB0_3:
Lloh9:
	adrp	x23, _SCTP_DEBUG_ASCONF1@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SCTP_DEBUG_ASCONF1@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SCTPDBG
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x23]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_6
LBB0_5:
	str	x19, [x20, #40]
	add	x0, x19, #8
	mov	w1, #1
	bl	_atomic_add_int
	add	x0, x19, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #56]
Lloh15:
	adrp	x8, _SCTP_MOBILITY_PRIM_DELETED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SCTP_MOBILITY_PRIM_DELETED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_sctp_mobility_feature_on
Lloh18:
	adrp	x8, _SCTP_TIMER_TYPE_PRIM_DELETED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SCTP_TIMER_TYPE_PRIM_DELETED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20, #56]
	mov	x2, x20
	mov	x3, #0
	bl	_sctp_timer_start
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_sctp_find_alternate_net
	str	x0, [x20, #32]
LBB0_7:
	ldr	x8, [x20, #24]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_TAILQ_FIRST
	str	x0, [x20, #24]
LBB0_9:
	ldr	x8, [x20, #8]
	cmp	x8, x19
	b.ne	LBB0_11
; %bb.10:
	str	xzr, [x20, #8]
LBB0_11:
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_sctp_free_remote_addr
	str	xzr, [x20]
LBB0_13:
	mov	x0, x19
	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
	b	_sctp_free_remote_addr
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_sctp_next,4,2                  ; @sctp_next
	.comm	_SCTP_MOBILITY_BASE,4,2         ; @SCTP_MOBILITY_BASE
	.comm	_SCTP_MOBILITY_FASTHANDOFF,4,2  ; @SCTP_MOBILITY_FASTHANDOFF
	.comm	_SCTP_DEBUG_ASCONF1,4,2         ; @SCTP_DEBUG_ASCONF1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remove_net: primary dst is deleting\n"

l_.str.1:                               ; @.str.1
	.asciz	"remove_net: deleted primary may be already stored\n"

	.comm	_SCTP_MOBILITY_PRIM_DELETED,4,2 ; @SCTP_MOBILITY_PRIM_DELETED
	.comm	_SCTP_TIMER_TYPE_PRIM_DELETED,4,2 ; @SCTP_TIMER_TYPE_PRIM_DELETED
.subsections_via_symbols
