	.file	"extr_movie.c_MovieLoadState.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Recording Resumed"
	.text
	.p2align 4
	.globl	MovieLoadState
	.type	MovieLoadState, @function
MovieLoadState:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	cmp	DWORD PTR Movie[rip], 1
	mov	rax, QWORD PTR Movie[rip+8]
	je	.L11
.L2:
	cmp	QWORD PTR Recording[rip], rax
	je	.L8
.L4:
	cmp	QWORD PTR Playback[rip], rax
	je	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR Movie[rip]
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR MovieStatus[rip]
	mov	rax, QWORD PTR Recording[rip]
	lea	rsi, .LC0[rip]
	mov	DWORD PTR RecordingFileOpened[rip], 1
	mov	QWORD PTR Movie[rip+8], rax
	call	strcpy@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 24
	push	QWORD PTR Movie[rip+16]
	.cfi_def_cfa_offset 32
	push	QWORD PTR Movie[rip+8]
	.cfi_def_cfa_offset 40
	push	QWORD PTR Movie[rip]
	.cfi_def_cfa_offset 48
	call	TruncateMovie@PLT
	mov	esi, DWORD PTR framecounter[rip]
	imul	esi, DWORD PTR framelength[rip]
	add	rsp, 32
	.cfi_def_cfa_offset 16
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	edi, DWORD PTR Movie[rip+20]
	movsx	rsi, esi
	add	rsi, QWORD PTR headersize[rip]
	call	fseek@PLT
	add	DWORD PTR Movie[rip+16], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	QWORD PTR Playback[rip], rax
	je	.L13
	cmp	QWORD PTR Recording[rip], rax
	jne	.L1
.L8:
	mov	esi, DWORD PTR framecounter[rip]
	imul	esi, DWORD PTR framelength[rip]
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	edi, DWORD PTR Movie[rip+20]
	movsx	rsi, esi
	add	rsi, QWORD PTR headersize[rip]
	call	fseek@PLT
	add	DWORD PTR Movie[rip+16], 1
	mov	rax, QWORD PTR Movie[rip+8]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR framecounter[rip]
	imul	esi, DWORD PTR framelength[rip]
	mov	edx, DWORD PTR SEEK_SET[rip]
	mov	edi, DWORD PTR Movie[rip+20]
	movsx	rsi, esi
	add	rsi, QWORD PTR headersize[rip]
	call	fseek@PLT
	mov	rax, QWORD PTR Movie[rip+8]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	MovieLoadState, .-MovieLoadState
	.comm	headersize,8,8
	.comm	framelength,4,4
	.comm	framecounter,4,4
	.comm	SEEK_SET,4,4
	.comm	RecordingFileOpened,4,4
	.comm	Recording,8,8
	.comm	Playback,8,8
	.comm	MovieStatus,4,4
	.comm	Movie,24,16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_movie.c_MovieLoadState.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Recording Resumed\000"
	.text
	.align	2
	.global	MovieLoadState
	.syntax unified
	.arm
	.fpu softvfp
	.type	MovieLoadState, %function
MovieLoadState:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L14
	ldr	r5, .L14+4
	ldm	r4, {r2, r3}
	cmp	r2, #1
	beq	.L10
.L2:
	ldr	r6, .L14+8
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L8
.L4:
	ldr	r2, [r5]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
	ldr	r3, [r4]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	mov	r2, #1
	ldr	r1, .L14+12
	ldr	ip, [r6]
	ldr	r3, .L14+16
	ldr	r0, [r1]
	ldr	r1, .L14+20
	str	ip, [r4, #4]
	str	r2, [r3]
	bl	strcpy
	ldm	r4, {r0, r1, r2, r3}
	bl	TruncateMovie
	ldr	r2, .L14+24
	ldr	r3, .L14+28
	ldr	r1, .L14+32
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r3]
	ldr	r3, .L14+36
	mla	r1, r0, r1, r2
	ldr	r2, [r3]
	ldr	r0, [r4, #12]
	bl	fseek
	ldr	r3, [r4, #8]
	add	r3, r3, #1
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L13
	ldr	r6, .L14+8
	ldr	r2, [r6]
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
.L8:
	ldr	r2, .L14+24
	ldr	r3, .L14+28
	ldr	r1, .L14+32
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r3]
	ldr	r3, .L14+36
	mla	r1, r0, r1, r2
	ldr	r2, [r3]
	ldr	r0, [r4, #12]
	bl	fseek
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	add	r2, r2, #1
	str	r2, [r4, #8]
	b	.L4
.L13:
	ldr	r2, .L14+24
	ldr	r3, .L14+28
	ldr	r1, .L14+32
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r3]
	ldr	r3, .L14+36
	mla	r1, r0, r1, r2
	ldr	r2, [r3]
	ldr	r0, [r4, #12]
	bl	fseek
	ldr	r3, [r4, #4]
	b	.L2
.L15:
	.align	2
.L14:
	.word	Movie
	.word	Playback
	.word	Recording
	.word	MovieStatus
	.word	RecordingFileOpened
	.word	.LC0
	.word	framelength
	.word	headersize
	.word	framecounter
	.word	SEEK_SET
	.size	MovieLoadState, .-MovieLoadState
	.comm	headersize,4,4
	.comm	framelength,4,4
	.comm	framecounter,4,4
	.comm	SEEK_SET,4,4
	.comm	RecordingFileOpened,4,4
	.comm	Recording,4,4
	.comm	Playback,4,4
	.comm	MovieStatus,4,4
	.comm	Movie,16,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
