	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_handle_nat_colliding_state
_sctp_handle_nat_colliding_state:       ## @sctp_handle_nat_colliding_state
	.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
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_COOKIE_WAIT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_SCTP_GET_STATE
	movq	_SCTP_STATE_COOKIE_ECHOED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_2:
	movq	(%rbx), %rdi
	movl	(%rdi), %esi
	movl	24(%rbx), %edx
	movl	$1, %ecx
	callq	_sctp_select_a_tag
	movq	%rax, %r15
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_atomic_add_int
	movq	%rbx, %rdi
	callq	_SCTP_TCB_UNLOCK
	xorl	%eax, %eax
	callq	_SCTP_INP_INFO_WLOCK
	movq	%rbx, %rdi
	callq	_SCTP_TCB_LOCK
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_atomic_subtract_int
	movq	%rbx, %rdi
	callq	_SCTP_GET_STATE
	movq	%rax, %r12
	movq	(%r13), %r14
	movq	_sctp_asocs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	cmpq	%r14, %r12
	je	LBB0_4
## %bb.3:
	leaq	8(%rbx), %r12
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_SCTP_SET_STATE
	movq	%rbx, %rdi
	callq	_sctp_stop_all_cookie_timers
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_sctp_toss_old_cookies
LBB0_4:
	movq	%r15, 8(%rbx)
	movq	_sctp_asochash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_INFO
	movq	%rax, %r15
	movq	8(%rbx), %r12
	movq	_hashasocmark@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SCTP_BASE_INFO
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_SCTP_PCBHASH_ASOC
	leaq	(%r15,%rax,4), %rdi
	movq	_sctp_asocs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	xorl	%eax, %eax
	callq	_SCTP_INP_INFO_WUNLOCK
	movq	(%rbx), %rdi
	movq	_SCTP_SO_NOT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_sctp_send_initiate
	movl	$1, %edx
LBB0_5:
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_STATE_COOKIE_WAIT,8,3     ## @SCTP_STATE_COOKIE_WAIT
	.comm	_SCTP_STATE_COOKIE_ECHOED,8,3   ## @SCTP_STATE_COOKIE_ECHOED
	.comm	_sctp_asocs,4,2                 ## @sctp_asocs
	.comm	_sctp_asochash,4,2              ## @sctp_asochash
	.comm	_hashasocmark,4,2               ## @hashasocmark
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ## @SCTP_SO_NOT_LOCKED
	.no_dead_strip	_sctp_handle_nat_colliding_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_handle_nat_colliding_state
_sctp_handle_nat_colliding_state:       ; @sctp_handle_nat_colliding_state
	.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, x0
	bl	_SCTP_GET_STATE
Lloh0:
	adrp	x22, _SCTP_STATE_COOKIE_WAIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCTP_STATE_COOKIE_WAIT@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_SCTP_GET_STATE
Lloh2:
	adrp	x8, _SCTP_STATE_COOKIE_ECHOED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCTP_STATE_COOKIE_ECHOED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_2:
	ldr	x0, [x19]
	ldr	w1, [x0]
	ldr	w2, [x19, #24]
	mov	w3, #1
	bl	_sctp_select_a_tag
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_add_int
	mov	x0, x19
	bl	_SCTP_TCB_UNLOCK
	bl	_SCTP_INP_INFO_WLOCK
	mov	x0, x19
	bl	_SCTP_TCB_LOCK
	mov	x0, x21
	mov	w1, #1
	bl	_atomic_subtract_int
	mov	x0, x19
	bl	_SCTP_GET_STATE
	mov	x21, x0
	ldr	x24, [x22]
Lloh5:
	adrp	x23, _sctp_asocs@GOTPAGE
Lloh6:
	ldr	x23, [x23, _sctp_asocs@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_LIST_REMOVE
	cmp	x21, x24
	b.eq	LBB0_4
; %bb.3:
	add	x21, x19, #8
	ldr	x1, [x22]
	mov	x0, x19
	bl	_SCTP_SET_STATE
	mov	x0, x19
	bl	_sctp_stop_all_cookie_timers
	mov	x0, x19
	mov	x1, x21
	bl	_sctp_toss_old_cookies
LBB0_4:
	str	x20, [x19, #8]
Lloh7:
	adrp	x8, _sctp_asochash@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sctp_asochash@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_SCTP_BASE_INFO
	mov	x20, x0
	ldr	x21, [x19, #8]
Lloh10:
	adrp	x8, _hashasocmark@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hashasocmark@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_SCTP_BASE_INFO
	mov	x1, x0
	mov	x0, x21
	bl	_SCTP_PCBHASH_ASOC
	add	x0, x20, x0, lsl #2
	ldr	w2, [x23]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	bl	_SCTP_INP_INFO_WUNLOCK
	ldr	x0, [x19]
Lloh13:
	adrp	x8, _SCTP_SO_NOT_LOCKED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SCTP_SO_NOT_LOCKED@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_sctp_send_initiate
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_STATE_COOKIE_WAIT,8,3     ; @SCTP_STATE_COOKIE_WAIT
	.comm	_SCTP_STATE_COOKIE_ECHOED,8,3   ; @SCTP_STATE_COOKIE_ECHOED
	.comm	_sctp_asocs,4,2                 ; @sctp_asocs
	.comm	_sctp_asochash,4,2              ; @sctp_asochash
	.comm	_hashasocmark,4,2               ; @hashasocmark
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ; @SCTP_SO_NOT_LOCKED
	.no_dead_strip	_sctp_handle_nat_colliding_state
.subsections_via_symbols
