	.file	"extr_retroarch.c_bsv_movie_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: \"%s\".\n"
.LC1:
	.string	"%s.\n"
.LC2:
	.string	"%s \"%s\"."
.LC3:
	.string	"%s \"%s\".\n"
	.text
	.p2align 4
	.type	bsv_movie_init, @function
bsv_movie_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 4096
	.cfi_def_cfa_offset 4128
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	.cfi_def_cfa_offset 8224
	or	QWORD PTR [rsp], 0
	sub	rsp, 16
	.cfi_def_cfa_offset 8240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8200[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR bsv_movie_state[rip+24], 0
	jne	.L11
	cmp	QWORD PTR bsv_movie_state[rip+16], 0
	mov	r12d, 1
	jne	.L12
.L1:
	mov	rax, QWORD PTR 8200[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 8208
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR RARCH_MOVIE_RECORD[rip]
	mov	rdi, QWORD PTR bsv_movie_state[rip]
	call	bsv_movie_init_handle@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
	mov	edi, DWORD PTR MSG_STARTING_MOVIE_RECORD_TO[rip]
	mov	rbx, QWORD PTR bsv_movie_state[rip]
	mov	r12, rsp
	call	msg_hash_to_str@PLT
	mov	rdi, r12
	mov	r8, rbx
	mov	esi, 8192
	mov	rcx, rax
	lea	rdx, .LC2[rip]
	call	snprintf@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 8248
	xor	r8d, r8d
	mov	rdi, r12
	mov	eax, DWORD PTR MESSAGE_QUEUE_CATEGORY_INFO[rip]
	mov	ecx, 1
	mov	edx, 180
	mov	r9d, DWORD PTR MESSAGE_QUEUE_ICON_DEFAULT[rip]
	mov	esi, 1
	push	rax
	.cfi_def_cfa_offset 8256
	call	runloop_msg_queue_push@PLT
	mov	edi, DWORD PTR MSG_STARTING_MOVIE_RECORD_TO[rip]
	mov	r12, QWORD PTR bsv_movie_state[rip]
	call	msg_hash_to_str@PLT
	mov	rdx, r12
	lea	rdi, .LC3[rip]
	mov	rsi, rax
	xor	eax, eax
	call	RARCH_LOG@PLT
	pop	rax
	.cfi_def_cfa_offset 8248
	pop	rdx
	.cfi_def_cfa_offset 8240
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR RARCH_MOVIE_PLAYBACK[rip]
	mov	rdi, QWORD PTR bsv_movie_state[rip]
	call	bsv_movie_init_handle@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
	mov	edi, DWORD PTR MSG_STARTING_MOVIE_PLAYBACK[rip]
	mov	ebx, DWORD PTR MESSAGE_QUEUE_CATEGORY_INFO[rip]
	mov	DWORD PTR bsv_movie_state[rip+8], 1
	mov	r12d, DWORD PTR MESSAGE_QUEUE_ICON_DEFAULT[rip]
	call	msg_hash_to_str@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 8248
	xor	r8d, r8d
	xor	ecx, ecx
	push	rbx
	.cfi_def_cfa_offset 8256
	mov	r9d, r12d
	mov	edx, 180
	mov	esi, 2
	mov	rdi, rax
	call	runloop_msg_queue_push@PLT
	mov	edi, DWORD PTR MSG_STARTING_MOVIE_PLAYBACK[rip]
	call	msg_hash_to_str@PLT
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	xor	eax, eax
	call	RARCH_LOG@PLT
	pop	rdi
	.cfi_def_cfa_offset 8248
	pop	r8
	.cfi_def_cfa_offset 8240
.L5:
	mov	rdi, QWORD PTR configuration_settings[rip]
	mov	edx, 1
	mov	r12d, 1
	mov	esi, DWORD PTR [rdi]
	call	configuration_set_uint@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR MSG_FAILED_TO_START_MOVIE_RECORD[rip]
	mov	r13d, DWORD PTR MESSAGE_QUEUE_CATEGORY_INFO[rip]
	mov	ebx, DWORD PTR MESSAGE_QUEUE_ICON_DEFAULT[rip]
	call	msg_hash_to_str@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 8248
	mov	ecx, 1
	xor	r8d, r8d
	push	r13
	.cfi_def_cfa_offset 8256
	mov	r9d, ebx
	mov	edx, 180
	mov	esi, 1
	mov	rdi, rax
	call	runloop_msg_queue_push@PLT
	mov	edi, DWORD PTR MSG_FAILED_TO_START_MOVIE_RECORD[rip]
	call	msg_hash_to_str@PLT
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	xor	eax, eax
	call	RARCH_ERR@PLT
	pop	rcx
	.cfi_def_cfa_offset 8248
	pop	rsi
	.cfi_def_cfa_offset 8240
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR MSG_FAILED_TO_LOAD_MOVIE_FILE[rip]
	mov	r13, QWORD PTR bsv_movie_state[rip]
	call	msg_hash_to_str@PLT
	mov	rdx, r13
	lea	rdi, .LC0[rip]
	mov	rsi, rax
	xor	eax, eax
	call	RARCH_ERR@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bsv_movie_init, .-bsv_movie_init
	.comm	configuration_settings,8,8
	.comm	bsv_movie_state,32,32
	.comm	RARCH_MOVIE_RECORD,4,4
	.comm	RARCH_MOVIE_PLAYBACK,4,4
	.comm	MSG_STARTING_MOVIE_RECORD_TO,4,4
	.comm	MSG_STARTING_MOVIE_PLAYBACK,4,4
	.comm	MSG_FAILED_TO_START_MOVIE_RECORD,4,4
	.comm	MSG_FAILED_TO_LOAD_MOVIE_FILE,4,4
	.comm	MESSAGE_QUEUE_ICON_DEFAULT,4,4
	.comm	MESSAGE_QUEUE_CATEGORY_INFO,4,4
	.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_retroarch.c_bsv_movie_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: \"%s\".\012\000"
	.align	2
.LC1:
	.ascii	"%s.\012\000"
	.align	2
.LC2:
	.ascii	"%s \"%s\".\000"
	.align	2
.LC3:
	.ascii	"%s \"%s\".\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bsv_movie_init, %function
bsv_movie_init:
	@ args = 0, pretend = 0, frame = 8200
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L16
	sub	sp, sp, #8192
	ldr	r6, [r5, #12]
	sub	sp, sp, #24
	add	r3, sp, #8192
	ldr	r2, .L16+4
	cmp	r6, #0
	add	r3, r3, #20
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	bne	.L11
	ldr	r3, [r5, #8]
	cmp	r3, #0
	moveq	r4, #1
	bne	.L12
.L1:
	add	r3, sp, #8192
	ldr	r2, .L16+4
	add	r3, r3, #20
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #8192
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L16+8
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	bsv_movie_init_handle
	subs	r4, r0, #0
	beq	.L14
	ldr	r4, .L16+12
	ldr	r0, [r4]
	bl	msg_hash_to_str
	ldr	r2, [r5]
	mov	r3, r0
	str	r2, [sp]
	mov	r1, #8192
	ldr	r2, .L16+16
	add	r0, sp, #20
	bl	snprintf
	mov	r3, #1
	ldr	r1, .L16+20
	ldr	r2, .L16+24
	ldr	r1, [r1]
	ldr	r2, [r2]
	add	r0, sp, #20
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, r3
	mov	r2, #180
	str	r6, [sp]
	bl	runloop_msg_queue_push
	ldr	r0, [r4]
	bl	msg_hash_to_str
	ldr	r2, [r5]
	mov	r1, r0
	ldr	r0, .L16+28
	bl	RARCH_LOG
	b	.L5
.L11:
	ldr	r3, .L16+32
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	bsv_movie_init_handle
	subs	r4, r0, #0
	beq	.L15
	mov	r3, #1
	ldr	r4, .L16+36
	str	r3, [r5, #4]
	ldr	r0, [r4]
	bl	msg_hash_to_str
	mov	r3, #0
	ldr	r1, .L16+20
	ldr	r2, .L16+24
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, #2
	mov	r2, #180
	str	r3, [sp]
	bl	runloop_msg_queue_push
	ldr	r0, [r4]
	bl	msg_hash_to_str
	mov	r1, r0
	ldr	r0, .L16+40
	bl	RARCH_LOG
.L5:
	mov	r2, #1
	ldr	r3, .L16+44
	mov	r4, r2
	ldr	r0, [r3]
	ldr	r1, [r0]
	bl	configuration_set_uint
	b	.L1
.L14:
	ldr	r5, .L16+48
	ldr	r0, [r5]
	bl	msg_hash_to_str
	mov	r3, #1
	ldr	r1, .L16+20
	ldr	r2, .L16+24
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	mov	r1, r3
	mov	r2, #180
	str	r4, [sp]
	bl	runloop_msg_queue_push
	ldr	r0, [r5]
	bl	msg_hash_to_str
	mov	r1, r0
	ldr	r0, .L16+40
	bl	RARCH_ERR
	b	.L1
.L15:
	ldr	r3, .L16+52
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r2, [r5]
	mov	r1, r0
	ldr	r0, .L16+56
	bl	RARCH_ERR
	b	.L1
.L13:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	bsv_movie_state
	.word	.LC4
	.word	RARCH_MOVIE_RECORD
	.word	MSG_STARTING_MOVIE_RECORD_TO
	.word	.LC2
	.word	MESSAGE_QUEUE_CATEGORY_INFO
	.word	MESSAGE_QUEUE_ICON_DEFAULT
	.word	.LC3
	.word	RARCH_MOVIE_PLAYBACK
	.word	MSG_STARTING_MOVIE_PLAYBACK
	.word	.LC1
	.word	configuration_settings
	.word	MSG_FAILED_TO_START_MOVIE_RECORD
	.word	MSG_FAILED_TO_LOAD_MOVIE_FILE
	.word	.LC0
	.size	bsv_movie_init, .-bsv_movie_init
	.comm	configuration_settings,4,4
	.comm	bsv_movie_state,16,4
	.comm	RARCH_MOVIE_RECORD,4,4
	.comm	RARCH_MOVIE_PLAYBACK,4,4
	.comm	MSG_STARTING_MOVIE_RECORD_TO,4,4
	.comm	MSG_STARTING_MOVIE_PLAYBACK,4,4
	.comm	MSG_FAILED_TO_START_MOVIE_RECORD,4,4
	.comm	MSG_FAILED_TO_LOAD_MOVIE_FILE,4,4
	.comm	MESSAGE_QUEUE_ICON_DEFAULT,4,4
	.comm	MESSAGE_QUEUE_CATEGORY_INFO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
