	.file	"extr_cdg.c_Open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".cdg"
.LC1:
	.string	"cdg"
	.text
	.p2align 4
	.type	Open, @function
Open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	demux_IsPathExtension@PLT
	test	eax, eax
	jne	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	demux_IsForced@PLT
	test	eax, eax
	je	.L9
.L2:
	mov	rdi, rbx
	mov	esi, 32
	call	vlc_obj_malloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L4
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_ENOMEM[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR VLC_CODEC_CDG[rip]
	mov	esi, DWORD PTR VIDEO_ES[rip]
	lea	r12, 16[rbp]
	mov	rdi, r12
	call	es_format_Init@PLT
	mov	rsi, r12
	movabs	rax, 824633721120
	mov	QWORD PTR 16[rbp], rax
	mov	QWORD PTR 24[rbp], rax
	mov	edi, DWORD PTR 16[rbx]
	call	es_out_Add@PLT
	xor	edi, edi
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L7
	mov	esi, DWORD PTR CDG_FRAME_RATE[rip]
	mov	rdi, rbp
	mov	edx, 1
	call	date_Init@PLT
	mov	esi, DWORD PTR VLC_TICK_0[rip]
	mov	rdi, rbp
	call	date_Set@PLT
	mov	eax, DWORD PTR Demux[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR Control[rip]
	mov	QWORD PTR [rbx], rbp
	mov	DWORD PTR 8[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	Open, .-Open
	.comm	VLC_TICK_0,4,4
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VLC_CODEC_CDG,4,4
	.comm	VIDEO_ES,4,4
	.comm	Demux,4,4
	.comm	Control,4,4
	.comm	CDG_FRAME_RATE,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_cdg.c_Open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".cdg\000"
	.align	2
.LC1:
	.ascii	"cdg\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Open, %function
Open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r1, .L10
	mov	r5, r0
	bl	demux_IsPathExtension
	cmp	r0, #0
	bne	.L2
	mov	r0, r5
	ldr	r1, .L10+4
	bl	demux_IsForced
	cmp	r0, #0
	beq	.L9
.L2:
	mov	r1, #24
	mov	r0, r5
	bl	vlc_obj_malloc
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L4
.L7:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L10+12
	ldr	r2, .L10+16
	add	r6, r4, #8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r6
	bl	es_format_Init
	mov	r2, #288
	mov	r3, #192
	mov	r1, r6
	str	r2, [r4, #8]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	str	r3, [r4, #20]
	ldr	r0, [r5, #12]
	bl	es_out_Add
	mov	r3, r0
	clz	r0, r0
	str	r3, [r4, #4]
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L7
	ldr	r3, .L10+20
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	date_Init
	ldr	r3, .L10+24
	mov	r0, r4
	ldr	r1, [r3]
	bl	date_Set
	ldr	r2, .L10+28
	ldr	r3, .L10+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L10+36
	str	r2, [r5, #8]
	ldr	r0, [r1]
	str	r3, [r5, #4]
	str	r4, [r5]
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L10+40
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	VLC_ENOMEM
	.word	VIDEO_ES
	.word	VLC_CODEC_CDG
	.word	CDG_FRAME_RATE
	.word	VLC_TICK_0
	.word	Demux
	.word	Control
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.size	Open, .-Open
	.comm	VLC_TICK_0,4,4
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_ENOMEM,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VLC_CODEC_CDG,4,4
	.comm	VIDEO_ES,4,4
	.comm	Demux,4,4
	.comm	Control,4,4
	.comm	CDG_FRAME_RATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
