	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sctp_state
_set_sctp_state:                        ## @set_sctp_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rcx, %rdi
	callq	_ip_hdrlen
	movl	%eax, %ebx
	addl	$4, %ebx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_skb_header_pointer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movb	(%rax), %r13b
	movq	_SCTP_CID_COOKIE_ECHO@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %r13b
	je	LBB0_4
## %bb.3:
	movq	_SCTP_CID_COOKIE_ACK@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %r13b
	jne	LBB0_6
LBB0_4:
	addl	4(%rax), %ebx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_skb_header_pointer
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %eax
	movq	_SCTP_CID_ABORT@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	movzbl	%r13b, %r13d
	cmovel	%eax, %r13d
LBB0_6:
	movq	_sctp_events@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%r13b, %ecx
	movslq	(%rax,%rcx,4), %rcx
	movq	_IP_VS_DIR_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	cmpl	%r12d, %eax
	sete	%dl
	addq	%rcx, %rdx
	movq	_sctp_states_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r14), %rsi
	movq	(%rcx,%rsi,8), %rcx
	movslq	(%rcx,%rdx,4), %r15
	cmpq	%r15, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
## %bb.7:
	cmpl	%r12d, %eax
	movq	(%r14), %rdi
	movq	48(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r12
	cmoveq	%rax, %r12
	leaq	40(%r14), %rsi
	callq	_IP_VS_DBG_ADDR
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	36(%r14), %edi
	callq	_ntohs
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rdi
	leaq	32(%r14), %rsi
	callq	_IP_VS_DBG_ADDR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	28(%r14), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %edi
	callq	_sctp_state_name
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_sctp_state_name
	movl	%eax, %r13d
	leaq	24(%r14), %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movl	$8, %edi
	movl	%ebx, %edx
	movq	%r12, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r13
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_IP_VS_DBG_BUF
	addq	$48, %rsp
	testq	%r13, %r13
	je	LBB0_15
## %bb.8:
	movq	_IP_VS_CONN_F_INACTIVE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_IP_VS_SCTP_S_ESTABLISHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	16(%r14), %eax
	jne	LBB0_11
## %bb.9:
	cmpl	%ecx, %r15d
	je	LBB0_11
## %bb.10:
	leaq	4(%r13), %rdi
	callq	_atomic_dec
	movq	%r13, %rdi
	callq	_atomic_inc
	movl	16(%r14), %eax
	orl	(%r12), %eax
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_11:
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	cmpl	%ecx, %r15d
	jne	LBB0_15
## %bb.13:
	leaq	4(%r13), %rdi
	callq	_atomic_inc
	movq	%r13, %rdi
	callq	_atomic_dec
	movl	(%r12), %eax
	notl	%eax
	andl	16(%r14), %eax
LBB0_14:
	movl	%eax, 16(%r14)
LBB0_15:
	movq	(%rbx), %rax
	movq	%r15, 8(%r14)
	movl	(%rax,%r15,4), %eax
	movl	%eax, 20(%r14)
	movl	$1, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_CID_COOKIE_ECHO,1,0       ## @SCTP_CID_COOKIE_ECHO
	.comm	_SCTP_CID_COOKIE_ACK,1,0        ## @SCTP_CID_COOKIE_ACK
	.comm	_SCTP_CID_ABORT,1,0             ## @SCTP_CID_ABORT
	.comm	_sctp_events,8,3                ## @sctp_events
	.comm	_IP_VS_DIR_OUTPUT,4,2           ## @IP_VS_DIR_OUTPUT
	.comm	_sctp_states_table,8,3          ## @sctp_states_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %s  %s:%d->%s:%d state: %s->%s conn->refcnt:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"output "

L_.str.2:                               ## @.str.2
	.asciz	"input "

	.comm	_IP_VS_CONN_F_INACTIVE,4,2      ## @IP_VS_CONN_F_INACTIVE
	.comm	_IP_VS_SCTP_S_ESTABLISHED,4,2   ## @IP_VS_SCTP_S_ESTABLISHED
	.comm	_AF_INET,8,3                    ## @AF_INET
	.no_dead_strip	_set_sctp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_sctp_state
_set_sctp_state:                        ; @set_sctp_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x3
	bl	_ip_hdrlen
	add	w22, w0, #4
	add	x3, sp, #24
	mov	x0, x21
	mov	x1, x22
	mov	w2, #8
	bl	_skb_header_pointer
	cbz	x0, LBB0_14
; %bb.1:
	ldrb	w24, [x0]
Lloh0:
	adrp	x8, _SCTP_CID_COOKIE_ECHO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_CID_COOKIE_ECHO@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _SCTP_CID_COOKIE_ACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCTP_CID_COOKIE_ACK@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x0, #4]
	add	w1, w8, w22
	add	x3, sp, #24
	mov	x0, x21
	mov	w2, #8
	bl	_skb_header_pointer
	cbz	x0, LBB0_4
; %bb.3:
	ldrb	w8, [x0]
Lloh4:
	adrp	x9, _SCTP_CID_ABORT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SCTP_CID_ABORT@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	csel	w24, w8, w24, eq
LBB0_4:
Lloh6:
	adrp	x8, _sctp_events@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sctp_events@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [x8, w24, uxtw #2]
Lloh9:
	adrp	x8, _IP_VS_DIR_OUTPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IP_VS_DIR_OUTPUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w23
	cinc	w9, w9, eq
Lloh12:
	adrp	x10, _sctp_states_table@GOTPAGE
Lloh13:
	ldr	x10, [x10, _sctp_states_table@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x11, [x19, #8]
	ldr	x10, [x10, x11, lsl #3]
	ldrsw	x21, [x10, w9, sxtw #2]
	cmp	x11, x21
	b.eq	LBB0_13
; %bb.5:
	ldr	x9, [x19, #48]
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w9, [x20, #8]
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh17:
	adrp	x10, l_.str.1@PAGE
Lloh18:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w23
	csel	x23, x10, x9, eq
	ldr	x0, [x19]
	add	x1, x19, #40
	bl	_IP_VS_DBG_ADDR
	mov	x25, x0
	ldr	w0, [x19, #36]
	bl	_ntohs
	mov	x26, x0
	ldr	x0, [x19]
	add	x1, x19, #32
	bl	_IP_VS_DBG_ADDR
	mov	x27, x0
	ldr	w0, [x19, #28]
	bl	_ntohs
	mov	x28, x0
	ldr	w0, [x19, #8]
	bl	_sctp_state_name
	mov	x22, x0
	mov	x0, x21
	bl	_sctp_state_name
	mov	x24, x0
	add	x0, x19, #24
	bl	_atomic_read
	stp	w24, w0, [sp, #4]
	str	w22, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #8
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	mov	x3, x23
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	mov	x7, x28
	bl	_IP_VS_DBG_BUF
	cbz	x23, LBB0_13
; %bb.6:
Lloh21:
	adrp	x22, _IP_VS_CONN_F_INACTIVE@GOTPAGE
Lloh22:
	ldr	x22, [x22, _IP_VS_CONN_F_INACTIVE@GOTPAGEOFF]
	ldr	w9, [x19, #16]
	ldr	w10, [x22]
Lloh23:
	adrp	x8, _IP_VS_SCTP_S_ESTABLISHED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IP_VS_SCTP_S_ESTABLISHED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ands	w9, w10, w9
	b.ne	LBB0_9
; %bb.7:
	cmp	w21, w8
	b.eq	LBB0_9
; %bb.8:
	add	x0, x23, #4
	bl	_atomic_dec
	mov	x0, x23
	bl	_atomic_inc
	ldr	w8, [x22]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_9:
	cbz	w9, LBB0_13
; %bb.10:
	cmp	w21, w8
	b.ne	LBB0_13
; %bb.11:
	add	x0, x23, #4
	bl	_atomic_inc
	mov	x0, x23
	bl	_atomic_dec
	ldr	w8, [x22]
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
LBB0_12:
	str	w8, [x19, #16]
LBB0_13:
	ldr	x8, [x20]
	str	x21, [x19, #8]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [x19, #20]
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_CID_COOKIE_ECHO,1,0       ; @SCTP_CID_COOKIE_ECHO
	.comm	_SCTP_CID_COOKIE_ACK,1,0        ; @SCTP_CID_COOKIE_ACK
	.comm	_SCTP_CID_ABORT,1,0             ; @SCTP_CID_ABORT
	.comm	_sctp_events,8,3                ; @sctp_events
	.comm	_IP_VS_DIR_OUTPUT,4,2           ; @IP_VS_DIR_OUTPUT
	.comm	_sctp_states_table,8,3          ; @sctp_states_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %s  %s:%d->%s:%d state: %s->%s conn->refcnt:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"output "

l_.str.2:                               ; @.str.2
	.asciz	"input "

	.comm	_IP_VS_CONN_F_INACTIVE,4,2      ; @IP_VS_CONN_F_INACTIVE
	.comm	_IP_VS_SCTP_S_ESTABLISHED,4,2   ; @IP_VS_SCTP_S_ESTABLISHED
	.comm	_AF_INET,8,3                    ; @AF_INET
	.no_dead_strip	_set_sctp_state
.subsections_via_symbols
