	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeTts                        ## -- Begin function FreeTts
	.p2align	4, 0x90
_FreeTts:                               ## @FreeTts
	.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_1
## %bb.2:
	movq	%rdi, %rbx
	movl	12(%rdi), %r14d
	movl	16(%rdi), %r15d
	leaq	L_.str(%rip), %rdi
	callq	__UU
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_TtPrint
	movl	$1, (%rbx)
	movl	28(%rbx), %edi
	callq	_Disconnect
	movl	28(%rbx), %edi
	callq	_ReleaseSock
	movl	24(%rbx), %edi
	callq	_Disconnect
	movl	24(%rbx), %edi
	callq	_ReleaseSock
	movl	20(%rbx), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	movl	20(%rbx), %edi
	callq	_ReleaseThread
	movl	12(%rbx), %r14d
	movl	16(%rbx), %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	__UU
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_TtPrint
	movl	4(%rbx), %edi
	movl	8(%rbx), %r14d
	callq	_ReleaseList
	movq	%rbx, %rdi
	callq	_Free
	jmp	LBB0_3
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_INVALID_PARAMETER,4,2      ## @ERR_INVALID_PARAMETER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TTS_STOP_INIT"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeTts                        ; -- Begin function FreeTts
	.p2align	2
_FreeTts:                               ; @FreeTts
	.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_2
; %bb.1:
	mov	x19, x0
	ldp	w21, w20, [x0, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__UU
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_TtPrint
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #28]
	bl	_Disconnect
	ldr	w0, [x19, #28]
	bl	_ReleaseSock
	ldr	w0, [x19, #24]
	bl	_Disconnect
	ldr	w0, [x19, #24]
	bl	_ReleaseSock
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x8, _INFINITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_WaitThread
	ldr	w0, [x19, #20]
	bl	_ReleaseThread
	ldp	w21, w20, [x19, #12]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__UU
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_TtPrint
	ldp	w0, w20, [x19, #4]
	bl	_ReleaseList
	mov	x0, x19
	bl	_Free
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
LBB0_3:
	mov	x0, 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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_INVALID_PARAMETER,4,2      ; @ERR_INVALID_PARAMETER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TTS_STOP_INIT"

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

.subsections_via_symbols
