	.file	"extr_schroedinger.c_SetVideoFormat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	SetVideoFormat, @function
SetVideoFormat:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 48[rdi]
	mov	edi, DWORD PTR 16[rbp]
	call	schro_decoder_get_video_format@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L1
	mov	edi, 1
	call	VLC_TICK_FROM_SEC@PLT
	mov	rcx, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rcx]
	mov	esi, DWORD PTR 4[rcx]
	imul	eax, edi
	cdq
	idiv	esi
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 8[rcx]
	cmp	eax, 129
	je	.L3
	cmp	eax, 130
	je	.L4
	cmp	eax, 128
	je	.L14
	mov	DWORD PTR 40[rbx], 0
.L7:
	mov	eax, DWORD PTR 40[rcx]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR 36[rcx]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR 32[rcx]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR 28[rcx]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR 24[rcx]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR 20[rcx]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 16[rcx]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 12[rcx]
	mov	DWORD PTR [rbx], esi
	mov	DWORD PTR 8[rbx], eax
	mov	DWORD PTR 4[rbx], edi
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR VLC_CODEC_I444[rip]
	mov	DWORD PTR 40[rbx], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR VLC_CODEC_I420[rip]
	mov	DWORD PTR 40[rbx], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR VLC_CODEC_I422[rip]
	mov	DWORD PTR 40[rbx], eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	SetVideoFormat, .-SetVideoFormat
	.comm	VLC_CODEC_I444,4,4
	.comm	VLC_CODEC_I422,4,4
	.comm	VLC_CODEC_I420,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_schroedinger.c_SetVideoFormat.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetVideoFormat, %function
SetVideoFormat:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0, #44]
	mov	r4, r0
	ldr	r0, [r6, #8]
	bl	schro_decoder_get_video_format
	cmp	r0, #0
	str	r0, [r6, #4]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, #1
	bl	VLC_TICK_FROM_SEC
	ldr	r5, [r6, #4]
	ldm	r5, {r7, r8}
	mov	r1, r8
	mul	r0, r7, r0
	bl	__aeabi_idiv
	ldr	r3, [r5, #8]
	str	r0, [r6]
	cmp	r3, #129
	beq	.L3
	cmp	r3, #130
	beq	.L4
	cmp	r3, #128
	movne	r3, #0
	strne	r3, [r4, #40]
	beq	.L14
.L7:
	ldr	r3, [r5, #40]
	ldr	r2, [r5, #36]
	str	r3, [r4, #36]
	ldr	r3, [r5, #32]
	str	r2, [r4, #32]
	ldr	r2, [r5, #28]
	str	r3, [r4, #28]
	ldr	r3, [r5, #24]
	ldr	r1, [r5, #20]
	str	r2, [r4, #24]
	str	r3, [r4, #20]
	ldr	r2, [r5, #16]
	ldr	r3, [r5, #12]
	str	r1, [r4, #16]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	str	r8, [r4]
	str	r7, [r4, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [r4, #40]
	b	.L7
.L4:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	str	r3, [r4, #40]
	b	.L7
.L3:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	str	r3, [r4, #40]
	b	.L7
.L16:
	.align	2
.L15:
	.word	VLC_CODEC_I444
	.word	VLC_CODEC_I420
	.word	VLC_CODEC_I422
	.size	SetVideoFormat, .-SetVideoFormat
	.comm	VLC_CODEC_I444,4,4
	.comm	VLC_CODEC_I422,4,4
	.comm	VLC_CODEC_I420,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
