	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopListener                   ## -- Begin function StopListener
	.p2align	4, 0x90
_StopListener:                          ## @StopListener
	.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
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movl	44(%rdi), %edi
	callq	_Lock
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.14:
	movl	44(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Unlock                         ## TAILCALL
LBB0_2:
	movl	$1, (%rbx)
	movq	48(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_AddRef
LBB0_4:
	movl	44(%rbx), %edi
	callq	_Unlock
	movl	40(%rbx), %r14d
	cmpl	$0, 4(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	8(%rbx), %rax
	movq	_LISTENER_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_SLog
LBB0_7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_Disconnect
	movq	%r15, %rdi
	callq	_ReleaseSock
LBB0_9:
	movl	36(%rbx), %edi
	callq	_Set
	movl	32(%rbx), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	cmpl	$0, 4(%rbx)
	je	LBB0_10
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_StopListener
	movq	24(%rbx), %rdi
	callq	_ReleaseListener
	movq	$0, 24(%rbx)
	cmpl	$0, 4(%rbx)
	jne	LBB0_13
LBB0_12:
	movq	8(%rbx), %rax
	movq	_LISTENER_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.15:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SLog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LISTENER_TCP,8,3               ## @LISTENER_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LS_LISTENER_STOP_1"

	.comm	_INFINITE,4,2                   ## @INFINITE
L_.str.1:                               ## @.str.1
	.asciz	"LS_LISTENER_STOP_2"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopListener                   ; -- Begin function StopListener
	.p2align	2
_StopListener:                          ; @StopListener
	.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
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #44]
	bl	_Lock
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	w0, [x19, #44]
	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
	b	_Unlock
LBB0_3:
	mov	w8, #1
	str	w8, [x19]
	ldr	x21, [x19, #48]
	cbz	x21, LBB0_5
; %bb.4:
	ldr	w0, [x21]
	bl	_AddRef
LBB0_5:
	ldr	w0, [x19, #44]
	bl	_Unlock
	ldr	w20, [x19, #40]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_8
; %bb.6:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _LISTENER_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LISTENER_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_SLog
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_Disconnect
	mov	x0, x21
	bl	_ReleaseSock
LBB0_10:
	ldr	w0, [x19, #36]
	bl	_Set
	ldr	w0, [x19, #32]
Lloh5:
	adrp	x8, _INFINITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_WaitThread
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
LBB0_11:
	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
LBB0_12:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_StopListener
	ldr	x0, [x19, #24]
	bl	_ReleaseListener
	str	xzr, [x19, #24]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_11
LBB0_14:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _LISTENER_TCP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LISTENER_TCP@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.15:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, 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
	b	_SLog
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LISTENER_TCP,8,3               ; @LISTENER_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LS_LISTENER_STOP_1"

	.comm	_INFINITE,4,2                   ; @INFINITE
l_.str.1:                               ; @.str.1
	.asciz	"LS_LISTENER_STOP_2"

.subsections_via_symbols
