	.file	"extr_..retroarch.c_recording_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[recording] %s\n"
.LC1:
	.string	"[recording] %s.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"[recording] %s: FPS: %.4f, Sample rate: %.4f\n"
	.section	.rodata.str1.1
.LC3:
	.string	"udp://127.0.0.1:%u"
.LC4:
	.string	"mkv"
.LC5:
	.string	"webm"
.LC6:
	.string	"gif"
.LC7:
	.string	"png"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"[recording] Failed to get viewport information from video driver. Cannot start recording ...\n"
	.section	.rodata.str1.1
.LC10:
	.string	"[recording] %s %u x %u\n"
	.section	.rodata.str1.8
	.align 8
.LC11:
	.string	"[recording] %s %s @ %ux%u. (FB size: %ux%u pix_fmt: %u)\n"
	.text
	.p2align 4
	.type	recording_init, @function
recording_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 200
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PATH_MAX_LENGTH[rip]
	mov	rbx, rsp
	mov	r14, rax
	add	rax, 15
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rbx, rcx
	mov	rcx, rbx
	cmp	rsp, rcx
	je	.L3
.L76:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L76
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L77
.L4:
	mov	rdx, rax
	mov	rsi, rsp
	and	rax, -4096
	mov	r13, rsp
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L78:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L78
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L79
.L7:
	mov	r12d, DWORD PTR recording_enable[rip]
	lea	rdi, -144[rbp]
	mov	ecx, 11
	xor	eax, eax
	mov	QWORD PTR -232[rbp], rdi
	mov	r15, rsp
	rep stosq
	test	r12d, r12d
	je	.L1
	mov	rax, QWORD PTR CORE_TYPE_DUMMY[rip]
	cmp	QWORD PTR current_core_type[rip], rax
	mov	BYTE PTR 0[r13], 0
	mov	rbx, QWORD PTR configuration_settings[rip]
	je	.L80
	cmp	QWORD PTR 16[rbx], 0
	jne	.L10
	xor	eax, eax
	call	video_driver_is_hw_context@PLT
	test	rax, rax
	jne	.L81
.L10:
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	mov	edi, DWORD PTR MSG_CUSTOM_TIMING_GIVEN[rip]
	cvtsi2ss	xmm1, QWORD PTR video_driver_av_info[rip]
	cvtsi2ss	xmm0, QWORD PTR video_driver_av_info[rip+8]
	cvtss2sd	xmm1, xmm1
	movsd	QWORD PTR -224[rbp], xmm1
	cvtss2sd	xmm0, xmm0
	movsd	QWORD PTR -216[rbp], xmm0
	call	msg_hash_to_str@PLT
	movsd	xmm1, QWORD PTR -224[rbp]
	movsd	xmm0, QWORD PTR -216[rbp]
	lea	rdi, .LC2[rip]
	mov	esi, eax
	mov	eax, 2
	call	RARCH_LOG@PLT
	mov	rdi, QWORD PTR g_extern[rip+16]
	call	string_is_empty@PLT
	test	eax, eax
	je	.L82
	cmp	QWORD PTR streaming_enable[rip], 0
	je	.L13
	mov	rdi, QWORD PTR 64[rbx]
	call	string_is_empty@PLT
	test	eax, eax
	jne	.L14
	mov	rsi, QWORD PTR 64[rbx]
	mov	edx, r14d
	mov	rdi, r13
	call	strlcpy@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR video_driver_av_info[rip+16]
	mov	rsi, QWORD PTR RETRO_PIXEL_FORMAT_XRGB8888[rip]
	mov	QWORD PTR -128[rbp], r13
	cmp	QWORD PTR video_driver_pix_fmt[rip], rsi
	mov	DWORD PTR -136[rbp], 2
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR video_driver_av_info[rip+32]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR video_driver_av_info[rip+24]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR video_driver_av_info[rip+8]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR video_driver_av_info[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR FFEMU_PIX_RGB565[rip]
	jne	.L19
	mov	rax, QWORD PTR FFEMU_PIX_ARGB8888[rip]
.L19:
	mov	rdi, QWORD PTR g_extern[rip]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -88[rbp], 0
	call	string_is_empty@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR g_extern[rip]
	mov	QWORD PTR -88[rbp], rax
.L21:
	cmp	QWORD PTR 16[rbx], 0
	je	.L23
	mov	rax, QWORD PTR current_video[rip]
	cmp	QWORD PTR [rax], 0
	jne	.L83
.L23:
	mov	edx, DWORD PTR recording_width[rip]
	mov	eax, DWORD PTR recording_height[rip]
	mov	edi, edx
	or	edi, eax
	je	.L37
	mov	DWORD PTR -144[rbp], edx
	mov	DWORD PTR -140[rbp], eax
.L37:
	cmp	QWORD PTR 8[rbx], 0
	je	.L38
	movss	xmm0, DWORD PTR video_driver_aspect_ratio[rip]
	comiss	xmm0, DWORD PTR .LC9[rip]
	jbe	.L38
.L39:
	cmp	QWORD PTR [rbx], 0
	movss	DWORD PTR -116[rbp], xmm0
	je	.L45
	mov	edi, DWORD PTR video_driver_state_filter[rip]
	test	edi, edi
	je	.L45
	mov	rax, QWORD PTR FFEMU_PIX_RGB565[rip]
	cmp	QWORD PTR video_driver_state_out_rgb32[rip], 0
	mov	DWORD PTR -196[rbp], 0
	mov	DWORD PTR -192[rbp], 0
	mov	QWORD PTR -112[rbp], rax
	je	.L46
	mov	rax, QWORD PTR FFEMU_PIX_ARGB8888[rip]
	mov	QWORD PTR -112[rbp], rax
.L46:
	lea	rdx, -192[rbp]
	lea	rsi, -196[rbp]
	call	rarch_softfilter_get_max_output_size@PLT
	mov	edi, DWORD PTR -196[rbp]
	call	next_pow2@PLT
	mov	edi, DWORD PTR -192[rbp]
	mov	QWORD PTR -96[rbp], rax
	call	next_pow2@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	rbx, rax
.L36:
	mov	r9, QWORD PTR -96[rbp]
	mov	r14, QWORD PTR -112[rbp]
	mov	edi, DWORD PTR MSG_RECORDING_TO[rip]
	mov	r12d, DWORD PTR -144[rbp]
	mov	QWORD PTR -216[rbp], r9
	mov	r15d, DWORD PTR -140[rbp]
	call	msg_hash_to_str@PLT
	push	r14
	mov	ecx, r12d
	mov	rdx, r13
	push	rbx
	mov	r9, QWORD PTR -216[rbp]
	mov	esi, eax
	mov	r8d, r15d
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	RARCH_LOG@PLT
	mov	rdx, QWORD PTR -232[rbp]
	lea	rsi, recording_data[rip]
	lea	rdi, recording_driver[rip]
	call	record_driver_init_first@PLT
	mov	r12d, eax
	pop	rax
	pop	rdx
	test	r12d, r12d
	je	.L84
	mov	r12d, 1
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L85
	lea	rsp, -40[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L77:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L83:
	lea	rdi, -192[rbp]
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	call	video_driver_get_viewport_info@PLT
	mov	edi, DWORD PTR -192[rbp]
	test	edi, edi
	je	.L24
	mov	eax, DWORD PTR -188[rbp]
	test	eax, eax
	je	.L24
	mov	DWORD PTR -144[rbp], edi
	mov	DWORD PTR -140[rbp], eax
	call	next_pow2@PLT
	mov	edi, DWORD PTR -188[rbp]
	mov	QWORD PTR -96[rbp], rax
	call	next_pow2@PLT
	cmp	QWORD PTR 8[rbx], 0
	mov	QWORD PTR -104[rbp], rax
	jne	.L27
	mov	eax, DWORD PTR -188[rbp]
	pxor	xmm1, xmm1
	mov	r12d, DWORD PTR -192[rbp]
	cvtsi2ss	xmm1, rax
	mov	r15, rax
.L30:
	mov	eax, r12d
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	divss	xmm0, xmm1
.L33:
	mov	rax, QWORD PTR FFEMU_PIX_BGR24[rip]
	mov	edi, DWORD PTR MSG_DETECTED_VIEWPORT_OF[rip]
	movss	DWORD PTR -116[rbp], xmm0
	movss	DWORD PTR recording_gpu_height[rip], xmm1
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR recording_gpu_width[rip], r12d
	call	msg_hash_to_str@PLT
	lea	rdi, .LC10[rip]
	mov	ecx, r15d
	mov	edx, r12d
	mov	esi, eax
	xor	eax, eax
	call	RARCH_LOG@PLT
	mov	eax, DWORD PTR -192[rbp]
	imul	eax, DWORD PTR -188[rbp]
	lea	edi, [rax+rax*2]
	call	video_driver_gpu_record_init@PLT
	test	eax, eax
	je	.L26
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rbx, QWORD PTR -104[rbp]
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L38:
	mov	eax, DWORD PTR -144[rbp]
	pxor	xmm0, xmm0
	pxor	xmm1, xmm1
	cvtsi2ss	xmm0, rax
	mov	eax, DWORD PTR -140[rbp]
	cvtsi2ss	xmm1, rax
	divss	xmm0, xmm1
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	QWORD PTR streaming_enable[rip], 0
	je	.L22
	mov	rax, QWORD PTR 56[rbx]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR 40[rbx]
	mov	DWORD PTR -120[rbp], eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR RARCH_PATH_BASENAME[rip]
	call	path_get@PLT
	mov	edi, eax
	call	path_basename@PLT
	mov	ecx, r14d
	lea	rdx, .LC4[rip]
	mov	rsi, rax
	mov	rax, QWORD PTR 32[rbx]
	cmp	rax, QWORD PTR RECORD_CONFIG_TYPE_RECORDING_WEBM_FAST[rip]
	jl	.L74
	cmp	rax, QWORD PTR RECORD_CONFIG_TYPE_RECORDING_GIF[rip]
	lea	rdx, .LC5[rip]
	jl	.L74
	cmp	rax, QWORD PTR RECORD_CONFIG_TYPE_RECORDING_APNG[rip]
	lea	rdx, .LC6[rip]
	jl	.L74
	lea	rdx, .LC7[rip]
.L74:
	mov	rdi, r15
	call	fill_str_dated_filename@PLT
	mov	ecx, r14d
	mov	rdx, r15
	mov	rdi, r13
	mov	esi, DWORD PTR g_extern[rip+8]
	call	fill_pathname_join@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L82:
	mov	rsi, QWORD PTR g_extern[rip+16]
	mov	edx, r14d
	mov	rdi, r13
	call	strlcpy@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR 48[rbx]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR -120[rbp], eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L84:
	mov	edi, DWORD PTR MSG_FAILED_TO_START_RECORDING[rip]
	call	msg_hash_to_str@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	RARCH_ERR@PLT
	xor	eax, eax
	call	video_driver_gpu_record_deinit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, DWORD PTR 24[rbx]
	lea	rdx, .LC3[rip]
	mov	esi, r14d
	mov	rdi, r13
	call	snprintf@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	RARCH_ERR@PLT
.L26:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L80:
	mov	edi, DWORD PTR MSG_USING_LIBRETRO_DUMMY_CORE_RECORDING_SKIPPED[rip]
	xor	r12d, r12d
	call	msg_hash_to_str@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	RARCH_WARN@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L81:
	mov	edi, DWORD PTR MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING[rip]
	xor	r12d, r12d
	call	msg_hash_to_str@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	RARCH_WARN@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L79:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	movss	xmm0, DWORD PTR video_driver_aspect_ratio[rip]
	comiss	xmm0, DWORD PTR .LC9[rip]
	pxor	xmm1, xmm1
	mov	eax, DWORD PTR -188[rbp]
	mov	r12d, DWORD PTR -192[rbp]
	cvtsi2ss	xmm1, rax
	mov	r15, rax
	ja	.L33
	jmp	.L30
.L85:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	recording_init, .-recording_init
	.comm	video_driver_state_out_rgb32,8,8
	.comm	video_driver_state_filter,4,4
	.comm	video_driver_pix_fmt,8,8
	.comm	video_driver_av_info,40,32
	.comm	video_driver_aspect_ratio,4,4
	.comm	streaming_enable,8,8
	.comm	recording_width,4,4
	.comm	recording_height,4,4
	.comm	recording_gpu_width,4,4
	.comm	recording_gpu_height,4,4
	.comm	recording_enable,4,4
	.comm	recording_driver,4,4
	.comm	recording_data,4,4
	.comm	g_extern,24,16
	.comm	current_video,8,8
	.comm	current_core_type,8,8
	.comm	configuration_settings,8,8
	.comm	RETRO_PIXEL_FORMAT_XRGB8888,8,8
	.comm	RECORD_CONFIG_TYPE_RECORDING_WEBM_FAST,8,8
	.comm	RECORD_CONFIG_TYPE_RECORDING_GIF,8,8
	.comm	RECORD_CONFIG_TYPE_RECORDING_APNG,8,8
	.comm	RARCH_PATH_BASENAME,4,4
	.comm	PATH_MAX_LENGTH,4,4
	.comm	MSG_USING_LIBRETRO_DUMMY_CORE_RECORDING_SKIPPED,4,4
	.comm	MSG_RECORDING_TO,4,4
	.comm	MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING,4,4
	.comm	MSG_FAILED_TO_START_RECORDING,4,4
	.comm	MSG_DETECTED_VIEWPORT_OF,4,4
	.comm	MSG_CUSTOM_TIMING_GIVEN,4,4
	.comm	FFEMU_PIX_RGB565,8,8
	.comm	FFEMU_PIX_BGR24,8,8
	.comm	FFEMU_PIX_ARGB8888,8,8
	.comm	CORE_TYPE_DUMMY,8,8
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC9:
	.long	0
	.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_recording_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[recording] %s\012\000"
	.align	2
.LC1:
	.ascii	"[recording] %s.\012\000"
	.global	__aeabi_i2f
	.global	__aeabi_f2d
	.align	2
.LC2:
	.ascii	"[recording] %s: FPS: %.4f, Sample rate: %.4f\012\000"
	.align	2
.LC3:
	.ascii	"udp://127.0.0.1:%u\000"
	.align	2
.LC4:
	.ascii	"mkv\000"
	.align	2
.LC5:
	.ascii	"webm\000"
	.align	2
.LC6:
	.ascii	"gif\000"
	.align	2
.LC7:
	.ascii	"png\000"
	.align	2
.LC8:
	.ascii	"[recording] Failed to get viewport information from"
	.ascii	" video driver. Cannot start recording ...\012\000"
	.global	__aeabi_ui2f
	.global	__aeabi_fcmpgt
	.global	__aeabi_fdiv
	.align	2
.LC9:
	.ascii	"[recording] %s %u x %u\012\000"
	.align	2
.LC10:
	.ascii	"[recording] %s %s @ %ux%u. (FB size: %ux%u pix_fmt:"
	.ascii	" %u)\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	recording_init, %function
recording_init:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #116
	ldr	r3, .L75
	mov	r2, #52
	ldr	r6, [r3]
	mov	r1, #0
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r5, sp, #16
	sub	sp, sp, r3
	ldr	r3, .L75+4
	sub	r0, fp, #92
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	memset
	ldr	r3, .L75+8
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L1
	mov	r4, #0
	ldr	r2, .L75+12
	ldr	r3, .L75+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	strb	r4, [r5]
	cmp	r2, r3
	ldr	r3, .L75+20
	ldr	r7, [r3]
	beq	.L67
	ldr	r4, [r7, #8]
	add	r8, sp, #16
	cmp	r4, #0
	bne	.L4
	bl	video_driver_is_hw_context
	cmp	r0, #0
	bne	.L68
.L4:
	ldr	r3, .L75+24
	ldr	r4, .L75+28
	ldr	r0, [r3]
	bl	msg_hash_to_str
	mov	r10, r0
	ldr	r0, [r4, #4]
	bl	__aeabi_i2f
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [r4]
	str	r2, [fp, #-132]
	str	r3, [fp, #-128]
	bl	__aeabi_i2f
	bl	__aeabi_f2d
	sub	r3, fp, #132
	ldmia	r3, {r2-r3}
	ldr	r9, .L75+32
	stm	sp, {r0-r1}
	mov	r1, r10
	ldr	r0, .L75+36
	bl	RARCH_LOG
	ldr	r0, [r9, #8]
	bl	string_is_empty
	cmp	r0, #0
	beq	.L69
	ldr	r3, .L75+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L70
	ldr	r3, .L75+44
	ldr	r0, [r3]
	bl	path_get
	bl	path_basename
	ldr	r2, .L75+48
	ldr	r3, [r7, #16]
	ldr	r2, [r2]
	mov	r1, r0
	cmp	r3, r2
	blt	.L71
	ldr	r2, .L75+52
	ldr	r2, [r2]
	cmp	r3, r2
	blt	.L72
	ldr	r2, .L75+56
	ldr	r2, [r2]
	cmp	r3, r2
	mov	r3, r6
	ldrlt	r2, .L75+60
	ldrge	r2, .L75+64
.L65:
	mov	r0, r8
	bl	fill_str_dated_filename
	mov	r3, r6
	mov	r2, r8
	mov	r0, r5
	ldr	r1, [r9, #4]
	bl	fill_pathname_join
.L6:
	mov	r1, #2
	ldr	r2, .L75+68
	ldr	r3, .L75+72
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r4, #20]
	cmp	r2, r3
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	str	r3, [fp, #-88]
	ldr	r3, [r4]
	str	r1, [fp, #-84]
	ldr	r1, [r4, #16]
	str	r3, [fp, #-52]
	str	r2, [fp, #-92]
	ldreq	r3, .L75+76
	ldrne	r3, .L75+80
	ldr	r2, [r4, #4]
	str	r0, [fp, #-60]
	str	r5, [fp, #-80]
	str	r1, [fp, #-64]
	str	r2, [fp, #-48]
	ldr	r2, [r3]
	mov	r3, #0
	ldr	r0, [r9]
	str	r2, [fp, #-68]
	str	r3, [fp, #-56]
	bl	string_is_empty
	cmp	r0, #0
	bne	.L14
	ldr	r3, [r9]
	str	r3, [fp, #-56]
.L15:
	ldr	r3, [r7, #8]
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L75+84
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L73
.L17:
	ldr	r2, .L75+88
	ldr	r3, .L75+92
	ldr	r2, [r2]
	ldr	r3, [r3]
	orrs	r1, r2, r3
	strne	r3, [fp, #-88]
	ldr	r3, [r7, #4]
	strne	r2, [fp, #-92]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L75+96
	mov	r1, #0
	ldr	r4, [r3]	@ float
	mov	r0, r4
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	beq	.L26
.L27:
	ldr	r3, [r7]
	str	r4, [fp, #-72]	@ float
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L75+100
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L24
	mov	r3, #0
	ldr	r1, .L75+104
	ldr	r2, .L75+80
	ldr	r1, [r1]
	str	r3, [fp, #-120]
	cmp	r1, r3
	str	r3, [fp, #-116]
	ldrne	r3, .L75+76
	ldr	r2, [r2]
	ldrne	r3, [r3]
	str	r2, [fp, #-68]
	sub	r1, fp, #120
	sub	r2, fp, #116
	strne	r3, [fp, #-68]
	bl	rarch_softfilter_get_max_output_size
	ldr	r0, [fp, #-120]
	bl	next_pow2
	mov	r3, r0
	ldr	r0, [fp, #-116]
	str	r3, [fp, #-60]
	bl	next_pow2
	str	r0, [fp, #-64]
.L24:
	ldr	r3, .L75+108
	ldr	r0, [r3]
	bl	msg_hash_to_str
	ldr	r4, [fp, #-68]
	ldr	lr, [fp, #-64]
	ldr	ip, [fp, #-60]
	ldr	r3, [fp, #-88]
	mov	r1, r0
	stm	sp, {r3, ip, lr}
	mov	r2, r5
	ldr	r3, [fp, #-92]
	str	r4, [sp, #12]
	ldr	r0, .L75+112
	bl	RARCH_LOG
	ldr	r1, .L75+116
	ldr	r0, .L75+120
	sub	r2, fp, #92
	bl	record_driver_init_first
	subs	r4, r0, #0
	movne	r4, #1
	bne	.L1
	ldr	r3, .L75+124
	ldr	r0, [r3]
	bl	msg_hash_to_str
	mov	r1, r0
	ldr	r0, .L75+128
	bl	RARCH_ERR
	bl	video_driver_gpu_record_deinit
.L1:
	ldr	r3, .L75+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L74
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L70:
	ldr	r0, [r7, #32]
	bl	string_is_empty
	cmp	r0, #0
	bne	.L8
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r7, #32]
	bl	strlcpy
	b	.L6
.L69:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [r9, #8]
	bl	strlcpy
	b	.L6
.L68:
	ldr	r3, .L75+132
	ldr	r0, [r3]
	bl	msg_hash_to_str
	mov	r1, r0
	ldr	r0, .L75+136
	bl	RARCH_WARN
	b	.L1
.L26:
	ldr	r0, [fp, #-92]
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r0, [fp, #-88]
	bl	__aeabi_ui2f
	mov	r1, r0
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r4, r0
	b	.L27
.L14:
	ldr	r3, .L75+40
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r3, [r7, #20]
	ldreq	r3, [r7, #16]
	ldrne	r2, [r7, #28]
	ldreq	r2, [r7, #24]
	str	r3, [fp, #-76]
	str	r2, [fp, #-56]
	b	.L15
.L8:
	mov	r1, r6
	mov	r0, r5
	ldr	r3, [r7, #12]
	ldr	r2, .L75+140
	bl	snprintf
	b	.L6
.L73:
	mov	r3, #0
	sub	r0, fp, #116
	str	r3, [fp, #-96]
	str	r3, [fp, #-100]
	str	r3, [fp, #-116]
	str	r3, [fp, #-112]
	str	r3, [fp, #-104]
	str	r3, [fp, #-108]
	bl	video_driver_get_viewport_info
	ldr	r0, [fp, #-116]
	cmp	r0, #0
	beq	.L18
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L19
.L18:
	ldr	r0, .L75+144
	bl	RARCH_ERR
.L20:
	mov	r4, #0
	b	.L1
.L67:
	ldr	r3, .L75+148
	ldr	r0, [r3]
	bl	msg_hash_to_str
	mov	r1, r0
	ldr	r0, .L75+128
	bl	RARCH_WARN
	b	.L1
.L71:
	mov	r3, r6
	ldr	r2, .L75+152
	b	.L65
.L19:
	str	r3, [fp, #-88]
	str	r0, [fp, #-92]
	bl	next_pow2
	mov	r3, r0
	ldr	r0, [fp, #-112]
	str	r3, [fp, #-60]
	bl	next_pow2
	ldr	r3, [r7, #4]
	str	r0, [fp, #-64]
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-112]
	bl	__aeabi_ui2f
	mov	r4, r0
	ldr	r7, [fp, #-116]
.L22:
	mov	r0, r7
	bl	__aeabi_ui2f
	mov	r1, r4
	bl	__aeabi_fdiv
	mov	r6, r0
.L23:
	ldr	r3, .L75+156
	ldr	r2, .L75+160
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [fp, #-68]
	ldr	r2, .L75+164
	ldr	r3, .L75+168
	str	r7, [r2]
	str	r4, [r3]	@ float
	str	r6, [fp, #-72]	@ float
	bl	msg_hash_to_str
	ldr	r3, [fp, #-112]
	mov	r1, r0
	ldr	r2, [fp, #-116]
	ldr	r0, .L75+172
	bl	RARCH_LOG
	ldr	r0, [fp, #-116]
	ldr	r3, [fp, #-112]
	mul	r0, r3, r0
	add	r0, r0, r0, lsl #1
	bl	video_driver_gpu_record_init
	cmp	r0, #0
	bne	.L24
	b	.L20
.L72:
	mov	r3, r6
	ldr	r2, .L75+176
	b	.L65
.L21:
	ldr	r3, .L75+96
	ldr	r0, [fp, #-112]
	ldr	r6, [r3]	@ float
	bl	__aeabi_ui2f
	mov	r1, #0
	mov	r4, r0
	mov	r0, r6
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldr	r7, [fp, #-116]
	bne	.L23
	b	.L22
.L74:
	bl	__stack_chk_fail
.L76:
	.align	2
.L75:
	.word	PATH_MAX_LENGTH
	.word	.LC11
	.word	recording_enable
	.word	current_core_type
	.word	CORE_TYPE_DUMMY
	.word	configuration_settings
	.word	MSG_CUSTOM_TIMING_GIVEN
	.word	video_driver_av_info
	.word	g_extern
	.word	.LC2
	.word	streaming_enable
	.word	RARCH_PATH_BASENAME
	.word	RECORD_CONFIG_TYPE_RECORDING_WEBM_FAST
	.word	RECORD_CONFIG_TYPE_RECORDING_GIF
	.word	RECORD_CONFIG_TYPE_RECORDING_APNG
	.word	.LC6
	.word	.LC7
	.word	video_driver_pix_fmt
	.word	RETRO_PIXEL_FORMAT_XRGB8888
	.word	FFEMU_PIX_ARGB8888
	.word	FFEMU_PIX_RGB565
	.word	current_video
	.word	recording_width
	.word	recording_height
	.word	video_driver_aspect_ratio
	.word	video_driver_state_filter
	.word	video_driver_state_out_rgb32
	.word	MSG_RECORDING_TO
	.word	.LC10
	.word	recording_data
	.word	recording_driver
	.word	MSG_FAILED_TO_START_RECORDING
	.word	.LC0
	.word	MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING
	.word	.LC1
	.word	.LC3
	.word	.LC8
	.word	MSG_USING_LIBRETRO_DUMMY_CORE_RECORDING_SKIPPED
	.word	.LC4
	.word	FFEMU_PIX_BGR24
	.word	MSG_DETECTED_VIEWPORT_OF
	.word	recording_gpu_width
	.word	recording_gpu_height
	.word	.LC9
	.word	.LC5
	.size	recording_init, .-recording_init
	.comm	video_driver_state_out_rgb32,4,4
	.comm	video_driver_state_filter,4,4
	.comm	video_driver_pix_fmt,4,4
	.comm	video_driver_av_info,24,4
	.comm	video_driver_aspect_ratio,4,4
	.comm	streaming_enable,4,4
	.comm	recording_width,4,4
	.comm	recording_height,4,4
	.comm	recording_gpu_width,4,4
	.comm	recording_gpu_height,4,4
	.comm	recording_enable,4,4
	.comm	recording_driver,4,4
	.comm	recording_data,4,4
	.comm	g_extern,12,4
	.comm	current_video,4,4
	.comm	current_core_type,4,4
	.comm	configuration_settings,4,4
	.comm	RETRO_PIXEL_FORMAT_XRGB8888,4,4
	.comm	RECORD_CONFIG_TYPE_RECORDING_WEBM_FAST,4,4
	.comm	RECORD_CONFIG_TYPE_RECORDING_GIF,4,4
	.comm	RECORD_CONFIG_TYPE_RECORDING_APNG,4,4
	.comm	RARCH_PATH_BASENAME,4,4
	.comm	PATH_MAX_LENGTH,4,4
	.comm	MSG_USING_LIBRETRO_DUMMY_CORE_RECORDING_SKIPPED,4,4
	.comm	MSG_RECORDING_TO,4,4
	.comm	MSG_HW_RENDERED_MUST_USE_POSTSHADED_RECORDING,4,4
	.comm	MSG_FAILED_TO_START_RECORDING,4,4
	.comm	MSG_DETECTED_VIEWPORT_OF,4,4
	.comm	MSG_CUSTOM_TIMING_GIVEN,4,4
	.comm	FFEMU_PIX_RGB565,4,4
	.comm	FFEMU_PIX_BGR24,4,4
	.comm	FFEMU_PIX_ARGB8888,4,4
	.comm	CORE_TYPE_DUMMY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
