	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_set_state                  ## -- Begin function tcp_set_state
	.p2align	4, 0x90
_tcp_set_state:                         ## @tcp_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	cmpl	$129, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$128, %r14d
	jne	LBB0_10
## %bb.2:
	cmpl	$128, %r15d
	je	LBB0_12
## %bb.3:
	movq	%rbx, %rdi
	callq	_sock_net
	movq	_TCP_MIB_CURRESTAB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TCP_INC_STATS
	jmp	LBB0_12
LBB0_4:
	cmpl	$128, %r15d
	je	LBB0_6
## %bb.5:
	movq	_TCP_CLOSE_WAIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_sock_net
	movq	_TCP_MIB_ESTABRESETS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TCP_INC_STATS
LBB0_7:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_inet_csk
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_SOCK_BINDPORT_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_inet_put_port
LBB0_10:
	cmpl	$128, %r15d
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_sock_net
	movq	_TCP_MIB_CURRESTAB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_TCP_DEC_STATS
LBB0_12:
	movl	%r14d, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_MIB_CURRESTAB,4,2          ## @TCP_MIB_CURRESTAB
	.comm	_TCP_CLOSE_WAIT,4,2             ## @TCP_CLOSE_WAIT
	.comm	_TCP_MIB_ESTABRESETS,4,2        ## @TCP_MIB_ESTABRESETS
	.comm	_SOCK_BINDPORT_LOCK,4,2         ## @SOCK_BINDPORT_LOCK
	.comm	_statename,8,3                  ## @statename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_set_state                  ; -- Begin function tcp_set_state
	.p2align	2
_tcp_set_state:                         ; @tcp_set_state
	.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	x19, x1
	mov	x20, x0
	ldr	w21, [x0]
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_9
; %bb.2:
	cmp	w21, #128
	b.eq	LBB0_11
; %bb.3:
	mov	x0, x20
	bl	_sock_net
Lloh0:
	adrp	x8, _TCP_MIB_CURRESTAB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCP_MIB_CURRESTAB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_TCP_INC_STATS
	b	LBB0_11
LBB0_4:
Lloh3:
	adrp	x8, _TCP_CLOSE_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_CLOSE_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, #128
	ccmp	w21, w8, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_sock_net
Lloh6:
	adrp	x8, _TCP_MIB_ESTABRESETS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCP_MIB_ESTABRESETS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_TCP_INC_STATS
LBB0_6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_inet_csk
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _SOCK_BINDPORT_LOCK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCK_BINDPORT_LOCK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_inet_put_port
LBB0_9:
	cmp	w21, #128
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_sock_net
Lloh12:
	adrp	x8, _TCP_MIB_CURRESTAB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TCP_MIB_CURRESTAB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_TCP_DEC_STATS
LBB0_11:
	str	w19, [x20]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_MIB_CURRESTAB,4,2          ; @TCP_MIB_CURRESTAB
	.comm	_TCP_CLOSE_WAIT,4,2             ; @TCP_CLOSE_WAIT
	.comm	_TCP_MIB_ESTABRESETS,4,2        ; @TCP_MIB_ESTABRESETS
	.comm	_SOCK_BINDPORT_LOCK,4,2         ; @SOCK_BINDPORT_LOCK
	.comm	_statename,8,3                  ; @statename
.subsections_via_symbols
