	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SaveMovieInState               ## -- Begin function SaveMovieInState
	.p2align	4, 0x90
_SaveMovieInState:                      ## @SaveMovieInState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_fseek
	movq	_Movie@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_Recording@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.1:
	movq	_Playback@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rax), %edi
	callq	_ReadMovieIntoABuffer
	movl	%eax, -24(%rbp)
	movq	%rdx, -16(%rbp)
	leaq	-24(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movq	-16(%rbp), %rdi
	movl	-24(%rbp), %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_Movie,16,3                     ## @Movie
	.comm	_Recording,8,3                  ## @Recording
	.comm	_Playback,8,3                   ## @Playback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SaveMovieInState               ; -- Begin function SaveMovieInState
	.p2align	2
_SaveMovieInState:                      ; @SaveMovieInState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
Lloh3:
	adrp	x8, _Movie@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Movie@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh5:
	adrp	x10, _Recording@GOTPAGE
Lloh6:
	ldr	x10, [x10, _Recording@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _Playback@GOTPAGE
Lloh9:
	ldr	x11, [x11, _Playback@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x8, #8]
	bl	_ReadMovieIntoABuffer
	stp	x0, x1, [sp]
	mov	x0, sp
	mov	w1, #4
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	x0, [sp, #8]
	ldr	w1, [sp]
	mov	w2, #1
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fwrite
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_Movie,16,3                     ; @Movie
	.comm	_Recording,8,3                  ; @Recording
	.comm	_Playback,8,3                   ; @Playback
.subsections_via_symbols
