	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeTtc                        ## -- Begin function FreeTtc
	.p2align	4, 0x90
_FreeTtc:                               ## @FreeTtc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WaitThread
	movl	24(%rbx), %edi
	callq	_ReleaseThread
	movl	16(%rbx), %r15d
	movl	20(%rbx), %r12d
	leaq	L_.str(%rip), %rdi
	callq	__UU
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TtPrint
	movq	(%rbx), %r15
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movq	_ERR_NO_ERROR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_5
## %bb.4:
	leaq	12(%rbx), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_Copy
LBB0_5:
	movl	8(%rbx), %edi
	callq	_ReleaseEvent
	movq	%rbx, %rdi
	callq	_Free
	jmp	LBB0_6
LBB0_1:
	movq	_ERR_INVALID_PARAMETER@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_6:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_INVALID_PARAMETER,8,3      ## @ERR_INVALID_PARAMETER
	.comm	_INFINITE,4,2                   ## @INFINITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TTC_FREE"

	.comm	_ERR_NO_ERROR,8,3               ## @ERR_NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FreeTtc                        ; -- Begin function FreeTtc
	.p2align	2
_FreeTtc:                               ; @FreeTtc
	.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_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _INFINITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_WaitThread
	ldr	w0, [x19, #24]
	bl	_ReleaseThread
	ldp	w22, w21, [x19, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__UU
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_TtPrint
	ldr	x21, [x19]
	cbz	x20, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _ERR_NO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_NO_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_4
; %bb.3:
	add	x1, x19, #12
	mov	x0, x20
	mov	w2, #4
	bl	_Copy
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_ReleaseEvent
	mov	x0, x19
	bl	_Free
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ERR_INVALID_PARAMETER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_INVALID_PARAMETER@GOTPAGEOFF]
Lloh10:
	ldr	x21, [x8]
LBB0_6:
	mov	x0, x21
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_INVALID_PARAMETER,8,3      ; @ERR_INVALID_PARAMETER
	.comm	_INFINITE,4,2                   ; @INFINITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TTC_FREE"

	.comm	_ERR_NO_ERROR,8,3               ; @ERR_NO_ERROR
.subsections_via_symbols
