	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopMovie                      ## -- Begin function StopMovie
	.p2align	4, 0x90
_StopMovie:                             ## @StopMovie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Movie@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_Recording@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_RecordingFileOpened@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %edi
	callq	_WriteHeader
	movl	16(%rbx), %edi
	callq	_fclose
	movq	$0, (%r14)
	movq	_Stopped@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_ClearInput
	movq	_MovieStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	(%rbx), %rax
LBB0_3:
	movq	_Playback@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_PlaybackFileOpened@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.7:
	movl	16(%rbx), %edi
	callq	_fclose
	movq	$0, (%r14)
	movq	_Stopped@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_ClearInput
	movq	_MovieStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Movie,24,3                     ## @Movie
	.comm	_Recording,8,3                  ## @Recording
	.comm	_RecordingFileOpened,8,3        ## @RecordingFileOpened
	.comm	_Stopped,8,3                    ## @Stopped
	.comm	_MovieStatus,4,2                ## @MovieStatus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recording Stopped"

	.comm	_Playback,8,3                   ## @Playback
	.comm	_PlaybackFileOpened,8,3         ## @PlaybackFileOpened
L_.str.1:                               ## @.str.1
	.asciz	"Playback Stopped"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StopMovie                      ; -- Begin function StopMovie
	.p2align	2
_StopMovie:                             ; @StopMovie
	.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
Lloh0:
	adrp	x19, _Movie@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Movie@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _Recording@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Recording@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x22, _RecordingFileOpened@GOTPAGE
Lloh6:
	ldr	x22, [x22, _RecordingFileOpened@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x10, #0, #4, eq
Lloh7:
	adrp	x21, _Stopped@GOTPAGE
Lloh8:
	ldr	x21, [x21, _Stopped@GOTPAGEOFF]
Lloh9:
	adrp	x20, _MovieStatus@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MovieStatus@GOTPAGEOFF]
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_WriteHeader
	ldr	w0, [x19, #16]
	bl	_fclose
	str	xzr, [x22]
	ldr	x8, [x21]
	str	x8, [x19]
	bl	_ClearInput
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	x8, [x19]
LBB0_2:
Lloh13:
	adrp	x9, _Playback@GOTPAGE
Lloh14:
	ldr	x9, [x9, _Playback@GOTPAGEOFF]
Lloh15:
	adrp	x22, _PlaybackFileOpened@GOTPAGE
Lloh16:
	ldr	x22, [x22, _PlaybackFileOpened@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x10, [x22]
	ldr	x11, [x19, #8]
	cmp	x8, x9
	ccmp	x10, #0, #4, eq
	ccmp	x11, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	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_4:
	ldr	w0, [x19, #16]
	bl	_fclose
	str	xzr, [x22]
	ldr	x8, [x21]
	str	x8, [x19]
	bl	_ClearInput
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	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	_strcpy
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_Movie,24,3                     ; @Movie
	.comm	_Recording,8,3                  ; @Recording
	.comm	_RecordingFileOpened,8,3        ; @RecordingFileOpened
	.comm	_Stopped,8,3                    ; @Stopped
	.comm	_MovieStatus,4,2                ; @MovieStatus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recording Stopped"

	.comm	_Playback,8,3                   ; @Playback
	.comm	_PlaybackFileOpened,8,3         ; @PlaybackFileOpened
l_.str.1:                               ; @.str.1
	.asciz	"Playback Stopped"

.subsections_via_symbols
