	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2                               ## -- Begin function set_tcp_state
LCPI0_0:
	.long	0x428c0000                      ## float 70
	.long	0x42380000                      ## float 46
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_tcp_state:                         ## @set_tcp_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_IP_VS_TCP_S_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_tcp_state_off@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %r15d
	movl	(%rsi), %eax
	movq	_IP_VS_CONN_F_NOOUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.1:
	movq	_TCP_DIR_OUTPUT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r15d
	jne	LBB0_3
## %bb.2:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_3:
	movq	_TCP_DIR_INPUT_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movq	%r13, %rdi
	callq	_tcp_state_idx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_tcp_state_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	%r15d, %eax
	cltq
	movq	(%rcx,%rax,8), %rcx
	movq	8(%rbx), %rax
	movl	(%rcx,%rax,4), %r14d
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$8, %edi
	movl	%eax, %edx
	callq	_IP_VS_DBG
	movq	8(%rbx), %rax
LBB0_7:
	movslq	%r14d, %rdx
	cmpq	%rdx, %rax
	je	LBB0_16
## %bb.8:
	movq	48(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	8(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_TCP_DIR_OUTPUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	cmpq	$0, 16(%r13)
	sete	%al
	cmpq	$0, 8(%r13)
	movl	$46, %ecx
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movl	$65, %r12d
	cmovel	%ecx, %r12d
	cmpq	$0, (%r13)
	leaq	40(%rbx), %rsi
	movl	$82, %edi
	cmovel	%ecx, %edi
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	cmpq	$0, 24(%r13)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	LCPI0_0(%rip), %rdx
	movss	(%rdx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	32(%rbx), %edi
	movl	$83, %r13d
	cmovel	%ecx, %r13d
	callq	_IP_VS_DBG_ADDR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	36(%rbx), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	32(%rbx), %edi
	leaq	28(%rbx), %rsi
	callq	_IP_VS_DBG_ADDR
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %edi
	callq	_ntohs
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_tcp_state_name
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_tcp_state_name
	movl	%eax, %r15d
	leaq	20(%rbx), %rdi
	callq	_atomic_read
                                        ## kill: def $eax killed $eax def $rax
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%r13d, %r8d
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%r12d, %r9d
	movq	-128(%rbp), %r12                ## 8-byte Reload
	pushq	%rax
	pushq	%r15
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-112(%rbp)                      ## 8-byte Folded Reload
	callq	_IP_VS_DBG_BUF
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$64, %rsp
	testq	%r13, %r13
	je	LBB0_16
## %bb.9:
	movq	_IP_VS_CONN_F_INACTIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_IP_VS_TCP_S_ESTABLISHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rbx), %eax
	jne	LBB0_12
## %bb.10:
	cmpl	%ecx, %r14d
	je	LBB0_12
## %bb.11:
	leaq	4(%r13), %rdi
	callq	_atomic_dec
	movq	%r13, %rdi
	callq	_atomic_inc
	movl	(%rbx), %eax
	orl	(%r15), %eax
	jmp	LBB0_15
LBB0_12:
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	cmpl	%ecx, %r14d
	jne	LBB0_16
## %bb.14:
	leaq	4(%r13), %rdi
	callq	_atomic_inc
	movq	%r13, %rdi
	callq	_atomic_dec
	movl	(%r15), %eax
	notl	%eax
	andl	(%rbx), %eax
LBB0_15:
	movl	%eax, (%rbx)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_16:
	movq	(%r12), %rax
	movq	%rdx, 8(%rbx)
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 16(%rbx)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_VS_TCP_S_CLOSE,4,2          ## @IP_VS_TCP_S_CLOSE
	.comm	_tcp_state_off,8,3              ## @tcp_state_off
	.comm	_IP_VS_CONN_F_NOOUTPUT,4,2      ## @IP_VS_CONN_F_NOOUTPUT
	.comm	_TCP_DIR_OUTPUT,4,2             ## @TCP_DIR_OUTPUT
	.comm	_TCP_DIR_INPUT_ONLY,4,2         ## @TCP_DIR_INPUT_ONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_state_idx=%d!!!\n"

	.comm	_tcp_state_table,8,3            ## @tcp_state_table
L_.str.1:                               ## @.str.1
	.asciz	"%s %s [%c%c%c%c] %s:%d->%s:%d state: %s->%s conn->refcnt:%d\n"

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

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

	.comm	_IP_VS_CONN_F_INACTIVE,4,2      ## @IP_VS_CONN_F_INACTIVE
	.comm	_IP_VS_TCP_S_ESTABLISHED,4,2    ## @IP_VS_TCP_S_ESTABLISHED
	.no_dead_strip	_set_tcp_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tcp_state
_set_tcp_state:                         ; @set_tcp_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x23, x3
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _IP_VS_TCP_S_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IP_VS_TCP_S_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _tcp_state_off@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tcp_state_off@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w24, [x8, w2, sxtw #2]
	ldr	w8, [x1]
Lloh6:
	adrp	x9, _IP_VS_CONN_F_NOOUTPUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IP_VS_CONN_F_NOOUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x25, _TCP_DIR_OUTPUT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TCP_DIR_OUTPUT@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w10, [x25]
	cmp	w24, w10
	b.ne	LBB0_3
; %bb.2:
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _TCP_DIR_INPUT_ONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCP_DIR_INPUT_ONLY@GOTPAGEOFF]
Lloh13:
	ldr	w24, [x8]
LBB0_4:
	mov	x0, x23
	bl	_tcp_state_idx
	mov	x2, x0
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh14:
	adrp	x8, _tcp_state_table@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tcp_state_table@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	w9, w2, w24
	ldr	x9, [x8, w9, sxtw #3]
	ldr	x8, [x19, #8]
	ldr	w21, [x9, x8, lsl #2]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #8
	bl	_IP_VS_DBG
	ldr	x8, [x19, #8]
LBB0_7:
	sxtw	x21, w21
	cmp	x8, x21
	b.eq	LBB0_16
; %bb.8:
	ldr	x11, [x19, #48]
	ldr	w8, [x22, #8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w8, [x25]
Lloh19:
	adrp	x9, l_.str.3@PAGE
Lloh20:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh21:
	adrp	x10, l_.str.2@PAGE
Lloh22:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w24, w8
	csel	x8, x10, x9, eq
	stp	x11, x8, [sp, #40]              ; 16-byte Folded Spill
	ldr	x8, [x23, #24]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x8, [x23, #16]
	cmp	x8, #0
	mov	w8, #1116471296
	fmov	s0, w8
	mov	w8, #1110966272
	fmov	s1, w8
	fcsel	s8, s1, s0, eq
	mov	x20, x22
	ldp	x23, x22, [x23]
	ldr	w0, [x19, #32]
	add	x1, x19, #40
	bl	_IP_VS_DBG_ADDR
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	ldr	w0, [x19, #36]
	bl	_ntohs
	mov	x26, x0
	ldr	w0, [x19, #32]
	add	x1, x19, #28
	bl	_IP_VS_DBG_ADDR
	mov	x27, x0
	ldr	w0, [x19, #24]
	bl	_ntohs
	mov	x28, x0
	ldr	w0, [x19, #8]
	bl	_tcp_state_name
	mov	x24, x0
	mov	x0, x21
	bl	_tcp_state_name
	mov	x25, x0
	add	x0, x19, #20
	bl	_atomic_read
	stp	w25, w0, [sp, #16]
	stp	w28, w24, [sp, #8]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x8, #0
	mov	w8, #83
	mov	w9, #46
	stp	w26, w27, [sp]
	csel	w4, w9, w8, eq
	cmp	x22, #0
	mov	x22, x20
	mov	w8, #65
	csel	w5, w9, w8, eq
	cmp	x23, #0
	ldp	x23, x3, [sp, #40]              ; 16-byte Folded Reload
	mov	w8, #82
	csel	w6, w9, w8, eq
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	fmov	s0, s8
	mov	w0, #8
	ldr	w2, [sp, #60]                   ; 4-byte Folded Reload
	ldr	w7, [sp, #36]                   ; 4-byte Folded Reload
	bl	_IP_VS_DBG_BUF
	cbz	x23, LBB0_16
; %bb.9:
Lloh25:
	adrp	x20, _IP_VS_CONN_F_INACTIVE@GOTPAGE
Lloh26:
	ldr	x20, [x20, _IP_VS_CONN_F_INACTIVE@GOTPAGEOFF]
	ldr	w9, [x19]
	ldr	w10, [x20]
Lloh27:
	adrp	x8, _IP_VS_TCP_S_ESTABLISHED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IP_VS_TCP_S_ESTABLISHED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ands	w9, w10, w9
	b.ne	LBB0_12
; %bb.10:
	cmp	w21, w8
	b.eq	LBB0_12
; %bb.11:
	add	x0, x23, #4
	bl	_atomic_dec
	mov	x0, x23
	bl	_atomic_inc
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_15
LBB0_12:
	cbz	w9, LBB0_16
; %bb.13:
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.14:
	add	x0, x23, #4
	bl	_atomic_inc
	mov	x0, x23
	bl	_atomic_dec
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_15:
	str	w8, [x19]
LBB0_16:
	ldr	x8, [x22]
	str	x21, [x19, #8]
	ldr	w8, [x8, x21, lsl #2]
	str	w8, [x19, #16]
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_VS_TCP_S_CLOSE,4,2          ; @IP_VS_TCP_S_CLOSE
	.comm	_tcp_state_off,8,3              ; @tcp_state_off
	.comm	_IP_VS_CONN_F_NOOUTPUT,4,2      ; @IP_VS_CONN_F_NOOUTPUT
	.comm	_TCP_DIR_OUTPUT,4,2             ; @TCP_DIR_OUTPUT
	.comm	_TCP_DIR_INPUT_ONLY,4,2         ; @TCP_DIR_INPUT_ONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_state_idx=%d!!!\n"

	.comm	_tcp_state_table,8,3            ; @tcp_state_table
l_.str.1:                               ; @.str.1
	.asciz	"%s %s [%c%c%c%c] %s:%d->%s:%d state: %s->%s conn->refcnt:%d\n"

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

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

	.comm	_IP_VS_CONN_F_INACTIVE,4,2      ; @IP_VS_CONN_F_INACTIVE
	.comm	_IP_VS_TCP_S_ESTABLISHED,4,2    ; @IP_VS_TCP_S_ESTABLISHED
	.no_dead_strip	_set_tcp_state
.subsections_via_symbols
