	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CnReleaseSocket                ## -- Begin function CnReleaseSocket
	.p2align	4, 0x90
_CnReleaseSocket:                       ## @CnReleaseSocket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_PackGetInt
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	_cn_listener_lock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_Lock
	movq	_cn_listener@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%rdi)
	jne	LBB0_6
## %bb.5:
	callq	_StopListener
	xorl	%eax, %eax
	callq	_Tick64
	addq	$6000, %rax                     ## imm = 0x1770
	movq	_cn_next_allow@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_6:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Unlock                         ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pid"

	.comm	_cn_listener_lock,4,2           ## @cn_listener_lock
	.comm	_cn_listener,8,3                ## @cn_listener
	.comm	_cn_next_allow,8,3              ## @cn_next_allow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CnReleaseSocket                ; -- Begin function CnReleaseSocket
	.p2align	2
_CnReleaseSocket:                       ; @CnReleaseSocket
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x1, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_PackGetInt
	cbz	x0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x19, _cn_listener_lock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _cn_listener_lock@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_Lock
Lloh4:
	adrp	x8, _cn_listener@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cn_listener@GOTPAGEOFF]
Lloh6:
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w8, [x0]
	cbnz	w8, LBB0_6
; %bb.5:
	bl	_StopListener
	bl	_Tick64
	mov	w8, #6000
	add	x8, x0, x8
Lloh7:
	adrp	x9, _cn_next_allow@GOTPAGE
Lloh8:
	ldr	x9, [x9, _cn_next_allow@GOTPAGEOFF]
Lloh9:
	str	x8, [x9]
LBB0_6:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Unlock
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pid"

	.comm	_cn_listener_lock,4,2           ; @cn_listener_lock
	.comm	_cn_listener,8,3                ; @cn_listener
	.comm	_cn_next_allow,8,3              ; @cn_next_allow
.subsections_via_symbols
