	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TtsListenThread                ## -- Begin function TtsListenThread
	.p2align	4, 0x90
_TtsListenThread:                       ## @TtsListenThread
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%r14, %r14
	je	LBB0_18
## %bb.1:
	testq	%r13, %r13
	je	LBB0_18
## %bb.2:
	movq	$0, 32(%r13)
	movl	64(%r13), %edi
	xorl	%esi, %esi
	callq	_ListenEx
	movq	%rax, 32(%r13)
	movl	64(%r13), %edi
	xorl	%esi, %esi
	callq	_ListenEx6
	movq	%rax, 24(%r13)
	shll	$2, %r12d
	orq	32(%r13), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__UU
	movl	64(%r13), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_UniFormat
	movl	40(%r13), %esi
	movl	44(%r13), %edi
	movq	%r15, %rdx
	callq	_TtPrint
	movq	%r14, %rdi
	callq	_NoticeThreadInit
	movq	_ERR_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	__UU
	movl	64(%r13), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_UniFormat
	movl	40(%r13), %esi
	movl	44(%r13), %edi
	movq	%r15, %rdx
	callq	_TtPrint
	cmpq	$0, 24(%r13)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	__UU
	movl	64(%r13), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_UniFormat
	movl	40(%r13), %esi
	movl	44(%r13), %edi
	movq	%r15, %rdx
	callq	_TtPrint
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %edi
	callq	_AddRef
LBB0_6:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %edi
	callq	_AddRef
LBB0_8:
	xorl	%eax, %eax
	callq	_GetNumberOfCpu
	testq	%rax, %rax
	jle	LBB0_11
## %bb.9:
	movq	%rax, %r15
	movq	_TtsWorkerThread@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$72, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movq	%r13, 56(%rax)
	movl	(%r12), %edi
	movq	%rax, %rsi
	callq	_NewThread
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_WaitThreadInit
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	callq	_Add
	decq	%r15
	jne	LBB0_10
LBB0_11:
	movq	%r14, %rdi
	callq	_NoticeThreadInit
	movq	$0, 48(%r13)
	cmpq	$0, 24(%r13)
	je	LBB0_13
## %bb.12:
	movq	_TtsIPv6AcceptThread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_NewThread
	movq	%rax, 48(%r13)
LBB0_13:
	movq	32(%r13), %rsi
	movq	%r13, %rdi
	callq	_TtsAcceptProc
	movq	48(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	movq	48(%r13), %rdi
	callq	_ReleaseThread
LBB0_15:
	movl	40(%r13), %r14d
	movl	44(%r13), %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	__UU
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%rax, %rdx
	callq	_TtPrint
	movq	32(%r13), %rdi
	callq	_ReleaseSock
	movq	24(%r13), %rdi
	callq	_ReleaseSock
	movl	16(%r13), %edi
	callq	_LIST_NUM
	testq	%rax, %rax
	jle	LBB0_18
## %bb.16:
	xorl	%r14d, %r14d
	movq	_INFINITE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r13), %edi
	movq	%r14, %rsi
	callq	_LIST_DATA
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_SetSockEvent
	movq	8(%rbx), %rdi
	movl	(%r15), %esi
	callq	_WaitThread
	movq	8(%rbx), %rdi
	callq	_ReleaseThread
	movl	(%rbx), %edi
	callq	_ReleaseSockEvent
	movq	%rbx, %rdi
	callq	_Free
	incq	%r14
	movl	16(%r13), %edi
	callq	_LIST_NUM
	cmpq	%rax, %r14
	jl	LBB0_17
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TT_LISTEN_FAILED"

	.comm	_ERR_INTERNAL_ERROR,4,2         ## @ERR_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"TTS_LISTEN_STARTED"

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

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

	.comm	_TtsWorkerThread,4,2            ## @TtsWorkerThread
	.comm	_TtsIPv6AcceptThread,4,2        ## @TtsIPv6AcceptThread
	.comm	_INFINITE,4,2                   ## @INFINITE
L_.str.4:                               ## @.str.4
	.asciz	"TTS_LISTEN_STOP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TtsListenThread                ; -- Begin function TtsListenThread
	.p2align	2
_TtsListenThread:                       ; @TtsListenThread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	lsl	x8, x22, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbz	x0, LBB0_18
; %bb.1:
	cbz	x19, LBB0_18
; %bb.2:
	str	xzr, [x19, #32]
	ldr	w0, [x19, #64]
	mov	w1, #0
	bl	_ListenEx
	str	x0, [x19, #32]
	ldr	w0, [x19, #64]
	mov	w1, #0
	bl	_ListenEx6
	str	x0, [x19, #24]
	ldr	x8, [x19, #32]
	lsl	w22, w22, #2
	orr	x8, x8, x0
	cbnz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	__UU
	mov	x2, x0
	ldr	w3, [x19, #64]
	mov	x0, x21
	mov	x1, x22
	bl	_UniFormat
	ldp	w1, w0, [x19, #40]
	mov	x2, x21
	bl	_TtPrint
	mov	x0, x20
	bl	_NoticeThreadInit
Lloh10:
	adrp	x8, _ERR_INTERNAL_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERR_INTERNAL_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #68]
	b	LBB0_18
LBB0_4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__UU
	mov	x2, x0
	ldr	w3, [x19, #64]
	mov	x0, x21
	mov	x1, x22
	bl	_UniFormat
	ldp	w1, w0, [x19, #40]
	mov	x2, x21
	bl	_TtPrint
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x9, l_.str.2@PAGE
Lloh16:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh17:
	adrp	x10, l_.str.3@PAGE
Lloh18:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	__UU
	mov	x2, x0
	ldr	w3, [x19, #64]
	mov	x0, x21
	mov	x1, x22
	bl	_UniFormat
	ldp	w1, w0, [x19, #40]
	mov	x2, x21
	bl	_TtPrint
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x8]
	bl	_AddRef
LBB0_6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x8]
	bl	_AddRef
LBB0_8:
	bl	_GetNumberOfCpu
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x21, x0
Lloh19:
	adrp	x23, _TtsWorkerThread@GOTPAGE
Lloh20:
	ldr	x23, [x23, _TtsWorkerThread@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #72
	bl	_ZeroMalloc
	mov	x22, x0
	str	x19, [x0, #56]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_NewThread
	str	x0, [x22, #8]
	bl	_WaitThreadInit
	ldr	w0, [x19, #16]
	mov	x1, x22
	bl	_Add
	subs	x21, x21, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x20
	bl	_NoticeThreadInit
	str	xzr, [x19, #48]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_13
; %bb.12:
Lloh21:
	adrp	x8, _TtsIPv6AcceptThread@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TtsIPv6AcceptThread@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_NewThread
	str	x0, [x19, #48]
LBB0_13:
	ldr	x1, [x19, #32]
	mov	x0, x19
	bl	_TtsAcceptProc
	ldr	x0, [x19, #48]
Lloh24:
	adrp	x22, _INFINITE@GOTPAGE
Lloh25:
	ldr	x22, [x22, _INFINITE@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.14:
	ldr	w1, [x22]
	bl	_WaitThread
	ldr	x0, [x19, #48]
	bl	_ReleaseThread
LBB0_15:
	ldp	w21, w20, [x19, #40]
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__UU
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_TtPrint
	ldr	x0, [x19, #32]
	bl	_ReleaseSock
	ldr	x0, [x19, #24]
	bl	_ReleaseSock
	ldr	w0, [x19, #16]
	bl	_LIST_NUM
	cmp	x0, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x20, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_LIST_DATA
	mov	x21, x0
	ldr	w0, [x0]
	bl	_SetSockEvent
	ldr	x0, [x21, #8]
	ldr	w1, [x22]
	bl	_WaitThread
	ldr	x0, [x21, #8]
	bl	_ReleaseThread
	ldr	w0, [x21]
	bl	_ReleaseSockEvent
	mov	x0, x21
	bl	_Free
	add	x20, x20, #1
	ldr	w0, [x19, #16]
	bl	_LIST_NUM
	cmp	x20, x0
	b.lt	LBB0_17
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TT_LISTEN_FAILED"

	.comm	_ERR_INTERNAL_ERROR,4,2         ; @ERR_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"TTS_LISTEN_STARTED"

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

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

	.comm	_TtsWorkerThread,4,2            ; @TtsWorkerThread
	.comm	_TtsIPv6AcceptThread,4,2        ; @TtsIPv6AcceptThread
	.comm	_INFINITE,4,2                   ; @INFINITE
l_.str.4:                               ; @.str.4
	.asciz	"TTS_LISTEN_STOP"

.subsections_via_symbols
