	.file	"extr_algo_phosphor.c_RenderPhosphor.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	RenderPhosphor
	.type	RenderPhosphor, @function
RenderPhosphor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	VLC_UNUSED@PLT
	xor	edi, edi
	test	rbp, rbp
	setne	dil
	call	assert@PLT
	xor	edi, edi
	test	r13, r13
	setne	dil
	call	assert@PLT
	xor	edi, edi
	cmp	r14d, 2
	setbe	dil
	call	assert@PLT
	xor	edi, edi
	cmp	ebx, 1
	setbe	dil
	call	assert@PLT
	mov	r15, QWORD PTR 8[rbp]
	movsx	rax, DWORD PTR HISTORY_SIZE[rip]
	mov	rcx, QWORD PTR 24[r15]
	sal	rax, 3
	mov	r12, QWORD PTR -16[rcx+rax]
	mov	rdx, QWORD PTR -8[rcx+rax]
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
	test	r12, r12
	cmove	r12, rdx
	test	rdx, rdx
	je	.L1
	xor	edi, edi
	test	r12, r12
	mov	QWORD PTR [rsp], rdx
	setne	dil
	call	assert@PLT
	mov	edi, 1
	call	assert@PLT
	test	r14d, r14d
	mov	rdx, QWORD PTR [rsp]
	je	.L25
	mov	r12, rdx
.L5:
	mov	rax, QWORD PTR [r15]
	mov	r8d, DWORD PTR CC_ALTLINE[rip]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rcx]
	add	eax, eax
	cmp	eax, DWORD PTR 12[rcx]
	je	.L26
.L6:
	mov	rax, QWORD PTR VLC_CODEC_YV12[rip]
	xor	r9d, r9d
	mov	rcx, r12
	mov	rsi, r13
	cmp	QWORD PTR 0[rbp], rax
	mov	rdi, rbp
	sete	r9b
	call	ComposeFrame@PLT
	mov	rdx, QWORD PTR 16[r15]
	test	rdx, rdx
	jle	.L13
	mov	rax, QWORD PTR [r15]
	xor	ecx, ecx
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR 12[rax]
	cmp	DWORD PTR 8[rax], esi
	jne	.L14
	xor	ecx, ecx
	mov	esi, DWORD PTR 20[rax]
	cmp	DWORD PTR 16[rax], esi
	sete	cl
.L14:
	xor	esi, esi
	test	ebx, ebx
	mov	rdi, r13
	sete	sil
	call	DarkenField@PLT
.L13:
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	test	ebx, ebx
	je	.L5
	mov	rax, rdx
	mov	rdx, r12
	mov	r12, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR 16[rcx]
	add	eax, eax
	cmp	eax, DWORD PTR 20[rcx]
	jne	.L6
	mov	eax, DWORD PTR 8[r15]
	cmp	eax, 130
	je	.L7
	jg	.L8
	cmp	eax, 128
	je	.L9
	cmp	eax, 129
	jne	.L11
	mov	r8d, DWORD PTR CC_SOURCE_TOP[rip]
	test	ebx, ebx
	cmovne	r8d, DWORD PTR CC_SOURCE_BOTTOM[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	eax, 131
	je	.L6
.L11:
	xor	eax, eax
	mov	DWORD PTR 12[rsp], r8d
	mov	QWORD PTR [rsp], rdx
	call	vlc_assert_unreachable@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	rdx, QWORD PTR [rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, DWORD PTR CC_UPCONVERT[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, DWORD PTR CC_MERGE[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	RenderPhosphor, .-RenderPhosphor
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VLC_CODEC_YV12,8,8
	.comm	HISTORY_SIZE,4,4
	.comm	CC_UPCONVERT,4,4
	.comm	CC_SOURCE_TOP,4,4
	.comm	CC_SOURCE_BOTTOM,4,4
	.comm	CC_MERGE,4,4
	.comm	CC_ALTLINE,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_algo_phosphor.c_RenderPhosphor.c"
	.text
	.align	2
	.global	RenderPhosphor
	.syntax unified
	.arm
	.fpu softvfp
	.type	RenderPhosphor, %function
RenderPhosphor:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r6, r1
	mov	r8, r3
	mov	r0, r2
	sub	sp, sp, #8
	ldr	r9, [sp, #40]
	bl	VLC_UNUSED
	subs	r0, r5, #0
	movne	r0, #1
	bl	assert
	subs	r0, r6, #0
	movne	r0, #1
	bl	assert
	cmp	r8, #2
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	cmp	r9, #1
	movhi	r0, #0
	movls	r0, #1
	bl	assert
	ldr	r3, .L23
	ldr	r10, [r5, #4]
	ldr	r2, [r3]
	ldr	r3, [r10, #12]
	sub	r2, r2, #-1073741823
	add	r1, r3, r2, lsl #2
	ldr	r4, [r1, #-4]
	ldr	r7, [r3, r2, lsl #2]
	cmp	r4, #0
	moveq	r4, r7
	cmp	r7, #0
	beq	.L21
	subs	r0, r4, #0
	movne	r0, #1
	bl	assert
	mov	r0, #1
	bl	assert
	cmp	r8, #0
	movne	r4, r7
	bne	.L5
	cmp	r9, #0
	movne	r3, r7
	moveq	r3, r4
	movne	r7, r4
	mov	r4, r3
.L5:
	ldr	r3, [r10]
	ldr	r2, .L23+4
	ldr	r3, [r3]
	ldr	r8, [r2]
	ldr	r1, [r3, #8]
	ldr	r2, [r3, #12]
	cmp	r2, r1, lsl #1
	beq	.L22
.L6:
	ldr	r3, .L23+8
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r2, r7
	sub	r1, r1, r3
	clz	r1, r1
	lsr	r1, r1, #5
	str	r1, [sp, #4]
	mov	r3, r4
	mov	r0, r5
	mov	r1, r6
	str	r8, [sp]
	bl	ComposeFrame
	ldr	r2, [r10, #8]
	cmp	r2, #0
	ble	.L13
	ldr	r3, [r10]
	clz	r1, r9
	ldr	r0, [r3]
	lsr	r1, r1, #5
	ldr	r3, [r0, #12]
	ldr	ip, [r0, #8]
	cmp	ip, r3
	ldreq	r3, [r0, #16]
	ldreq	r0, [r0, #20]
	movne	r3, #0
	subeq	r3, r3, r0
	clzeq	r3, r3
	mov	r0, r6
	lsreq	r3, r3, #5
	bl	DarkenField
.L13:
	ldr	r3, .L23+12
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r2, [r3, #16]
	ldr	r3, [r3, #20]
	cmp	r3, r2, lsl #1
	bne	.L6
	ldr	r3, [r10, #4]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L8:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L6
.L21:
	ldr	r3, .L23+16
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L23+20
	ldr	r8, [r3]
	b	.L6
.L10:
	cmp	r9, #0
	ldreq	r3, .L23+24
	ldrne	r3, .L23+28
	ldr	r8, [r3]
	b	.L6
.L11:
	ldr	r3, .L23+32
	ldr	r8, [r3]
	b	.L6
.L7:
	bl	vlc_assert_unreachable
	b	.L6
.L24:
	.align	2
.L23:
	.word	HISTORY_SIZE
	.word	CC_ALTLINE
	.word	VLC_CODEC_YV12
	.word	VLC_SUCCESS
	.word	VLC_EGENERIC
	.word	CC_MERGE
	.word	CC_SOURCE_TOP
	.word	CC_SOURCE_BOTTOM
	.word	CC_UPCONVERT
	.size	RenderPhosphor, .-RenderPhosphor
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.comm	VLC_CODEC_YV12,4,4
	.comm	HISTORY_SIZE,4,4
	.comm	CC_UPCONVERT,4,4
	.comm	CC_SOURCE_TOP,4,4
	.comm	CC_SOURCE_BOTTOM,4,4
	.comm	CC_MERGE,4,4
	.comm	CC_ALTLINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
