	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ANIMATE_DoStop
_ANIMATE_DoStop:                        ## @ANIMATE_DoStop
	.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
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_EnterCriticalSection
	movq	40(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	$0, 40(%rbx)
	movq	32(%rbx), %rdi
	callq	_SetEvent
	movq	(%rbx), %r12
	xorl	%eax, %eax
	callq	_GetCurrentThreadId
	cmpq	%rax, %r12
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_LeaveCriticalSection
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_WaitForSingleObject
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
	movq	%r14, %rdi
	callq	_EnterCriticalSection
LBB0_3:
	movq	%r15, %rdi
	callq	_CloseHandle
	movq	32(%rbx), %rdi
	callq	_CloseHandle
	movq	$0, 32(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_4:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movl	24(%rbx), %edi
	callq	_KillTimer
	movq	$0, 16(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_6:
	movq	%r14, %rdi
	callq	_LeaveCriticalSection
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	_ACN_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ANIMATE_Notify
LBB0_8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stopping animation thread\n"

	.comm	_INFINITE,4,2                   ## @INFINITE
L_.str.1:                               ## @.str.1
	.asciz	"animation thread stopped\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_ACN_STOP,4,2                   ## @ACN_STOP
	.no_dead_strip	_ANIMATE_DoStop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ANIMATE_DoStop
_ANIMATE_DoStop:                        ; @ANIMATE_DoStop
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	add	x20, x0, #8
	mov	x0, x20
	bl	_EnterCriticalSection
	ldr	x21, [x19, #40]
Lloh3:
	adrp	x22, _TRUE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	cbz	x21, LBB0_4
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	str	xzr, [x19, #40]
	ldr	x0, [x19, #32]
	bl	_SetEvent
	ldr	x23, [x19]
	bl	_GetCurrentThreadId
	cmp	x23, x0
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_LeaveCriticalSection
Lloh7:
	adrp	x8, _INFINITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_WaitForSingleObject
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_EnterCriticalSection
LBB0_3:
	mov	x0, x21
	bl	_CloseHandle
	ldr	x0, [x19, #32]
	bl	_CloseHandle
	str	xzr, [x19, #32]
	ldr	x23, [x22]
LBB0_4:
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	w0, [x19, #24]
	bl	_KillTimer
	str	xzr, [x19, #16]
	ldr	x23, [x22]
LBB0_6:
	mov	x0, x20
	bl	_LeaveCriticalSection
	cbz	x23, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _ACN_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACN_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ANIMATE_Notify
LBB0_8:
	ldr	x0, [x22]
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stopping animation thread\n"

	.comm	_INFINITE,4,2                   ; @INFINITE
l_.str.1:                               ; @.str.1
	.asciz	"animation thread stopped\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_ACN_STOP,4,2                   ; @ACN_STOP
	.no_dead_strip	_ANIMATE_DoStop
.subsections_via_symbols
