	.file	"extr_vf_hysteresis.c_process_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_frame, @function
process_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	ecx, ecx
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbx, QWORD PTR 8[rdi]
	mov	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdx, 24[rsp]
	mov	rax, QWORD PTR 8[rbx]
	lea	rbp, 28[r13]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rax
	call	ff_framesync_get_frame@PLT
	test	eax, eax
	js	.L1
	xor	ecx, ecx
	lea	rdx, 32[rsp]
	mov	esi, 1
	mov	rdi, rbp
	call	ff_framesync_get_frame@PLT
	test	eax, eax
	js	.L1
	cmp	QWORD PTR [rbx], 0
	je	.L3
	mov	rdi, QWORD PTR 24[rsp]
	call	av_frame_clone@PLT
	mov	r14, rax
	test	rax, rax
	je	.L17
.L4:
	mov	rbx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 28[r13]
	mov	edi, DWORD PTR 32[r13]
	mov	edx, DWORD PTR [rbx]
	call	av_rescale_q@PLT
	mov	rsi, r14
	mov	rdi, rbx
	mov	DWORD PTR 8[r14], eax
	call	ff_filter_frame@PLT
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.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
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR 8[rdi]
	call	ff_get_video_buffer@PLT
	mov	r14, rax
	test	rax, rax
	je	.L17
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, rax
	call	av_frame_copy_props@PLT
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 4[r13]
	mov	rax, QWORD PTR 16[r13]
	lea	rbp, 0[0+rbx*8]
	lea	r12, 0[0+rbx*4]
	mov	rdx, QWORD PTR 8[r13]
	bt	esi, ebx
	mov	r9d, DWORD PTR [rax+rbx*4]
	jnc	.L6
	xor	r15d, r15d
	test	r9d, r9d
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR [r14]
	mov	edx, DWORD PTR [rdx+r12]
	xor	esi, esi
	mov	edi, DWORD PTR [rax+r12]
	mov	rax, QWORD PTR 16[r14]
	imul	edi, r15d
	add	r15d, 1
	movsx	rdi, edi
	add	rdi, QWORD PTR [rax+rbp]
	call	memset@PLT
	mov	rax, QWORD PTR 16[r13]
	mov	rdx, QWORD PTR 8[r13]
	cmp	DWORD PTR [rax+r12], r15d
	jg	.L7
.L8:
	mov	DWORD PTR 24[r13], -1
	mov	edx, DWORD PTR [rdx]
	xor	esi, esi
	imul	edx, DWORD PTR [rax]
	mov	rdi, QWORD PTR 56[r13]
	call	memset@PLT
	mov	rdx, QWORD PTR 8[r13]
	mov	rax, QWORD PTR 16[r13]
	xor	esi, esi
	mov	rdi, QWORD PTR 48[r13]
	mov	edx, DWORD PTR [rdx]
	imul	edx, DWORD PTR [rax]
	sal	edx, 2
	call	memset@PLT
	mov	rdx, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR 24[rsp]
	mov	rdi, r13
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR 16[rdx]
	mov	r9d, DWORD PTR [rsi+r12]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR [rdx+rbp]
	mov	r8d, DWORD PTR [rsi+r12]
	mov	rsi, QWORD PTR 16[r14]
	mov	r10, QWORD PTR [rsi+rbp]
	mov	rsi, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR 16[r13]
	mov	rcx, r10
	mov	eax, DWORD PTR [rax+r12]
	push	rax
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 8[r13]
	mov	eax, DWORD PTR [rax+r12]
	push	rax
	.cfi_def_cfa_offset 136
	mov	rax, QWORD PTR [r14]
	mov	eax, DWORD PTR [rax+r12]
	push	rax
	.cfi_def_cfa_offset 144
	call	[QWORD PTR 40[r13]]
	add	rsp, 32
	.cfi_def_cfa_offset 112
.L9:
	add	rbx, 1
	cmp	DWORD PTR 0[r13], ebx
	jg	.L11
	jmp	.L4
.L17:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[rsp]
	mov	r8d, DWORD PTR [rdx+rbx*4]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	mov	r10, QWORD PTR [rax+rbx*8]
	mov	rax, QWORD PTR [r14]
	mov	ecx, DWORD PTR [rcx+rbx*4]
	mov	esi, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR 16[r14]
	mov	rdx, r10
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	av_image_copy_plane@PLT
	jmp	.L9
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	process_frame, .-process_frame
	.comm	ENOMEM,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_vf_hysteresis.c_process_frame.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_frame, %function
process_frame:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r5, r6}
	sub	sp, sp, #40
	ldr	ip, [r6, #4]
	ldr	lr, .L19
	add	r4, r5, #20
	mov	r0, r4
	mov	r1, r3
	add	r2, sp, #28
	ldr	lr, [lr]
	str	lr, [sp, #36]
	mov	lr,#0
	ldr	r9, [ip]
	bl	ff_framesync_get_frame
	cmp	r0, #0
	blt	.L1
	mov	r0, r4
	mov	r3, #0
	mov	r1, #1
	add	r2, sp, #32
	bl	ff_framesync_get_frame
	cmp	r0, #0
	blt	.L1
	ldr	r8, [r6]
	cmp	r8, #0
	beq	.L3
	ldr	r0, [sp, #28]
	bl	av_frame_clone
	subs	r7, r0, #0
	beq	.L16
.L4:
	ldr	r1, [r5, #20]
	ldr	r2, [r9]
	ldr	r0, [r5, #24]
	bl	av_rescale_q
	mov	r1, r7
	str	r0, [r7, #4]
	mov	r0, r9
	bl	ff_filter_frame
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r9
	ldr	r2, [r9, #4]
	ldr	r1, [r9, #8]
	bl	ff_get_video_buffer
	subs	r7, r0, #0
	beq	.L16
	ldr	r1, [sp, #28]
	bl	av_frame_copy_props
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L4
	mvn	r10, #0
.L11:
	ldr	r2, [r5, #4]
	ldr	r3, [r5, #12]
	asr	r2, r2, r8
	tst	r2, #1
	ldr	lr, [r3, r8, lsl #2]
	ldr	ip, [r5, #8]
	lsl	r4, r8, #2
	beq	.L6
	cmp	lr, #0
	movgt	r6, #0
	ble	.L8
.L7:
	ldr	r2, [r7]
	ldr	r3, [r7, #8]
	ldr	r0, [r2, r4]
	ldr	r3, [r3, r4]
	ldr	r2, [ip, r4]
	mla	r0, r6, r0, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [r5, #12]
	add	r6, r6, #1
	ldr	r2, [r3, r4]
	ldr	ip, [r5, #8]
	cmp	r2, r6
	bgt	.L7
.L8:
	str	r10, [r5, #16]
	ldr	r2, [ip]
	ldr	r3, [r3]
	mov	r1, #0
	mul	r2, r3, r2
	ldr	r0, [r5, #36]
	bl	memset
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #12]
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, #0
	mul	r2, r3, r2
	ldr	r0, [r5, #32]
	lsl	r2, r2, #2
	bl	memset
	ldr	r3, [r5, #12]
	ldr	ip, [sp, #28]
	ldr	lr, [sp, #32]
	ldr	r0, [r3, r4]
	ldr	r1, [ip, #8]
	ldr	r2, [lr, #8]
	ldr	r3, [r7, #8]
	ldr	r1, [r1, r4]
	ldr	r2, [r2, r4]
	ldr	r3, [r3, r4]
	str	r0, [sp, #16]
	ldr	r0, [r5, #8]
	ldr	r0, [r0, r4]
	str	r0, [sp, #12]
	ldr	r0, [r7]
	ldr	r6, [r0, r4]
	mov	r0, r5
	str	r6, [sp, #8]
	ldr	lr, [lr]
	ldr	lr, [lr, r4]
	str	lr, [sp, #4]
	ldr	ip, [ip]
	ldr	ip, [ip, r4]
	str	ip, [sp]
	ldr	r4, [r5, #28]
	blx	r4
.L9:
	ldr	r3, [r5]
	add	r8, r8, #1
	cmp	r3, r8
	bgt	.L11
	b	.L4
.L16:
	ldr	r3, .L19+4
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L6:
	ldr	r3, [sp, #28]
	ldr	r1, [r7]
	ldr	r4, [r3]
	ldr	r2, [r3, #8]
	ldr	r0, [r7, #8]
	ldr	r3, [r4, r8, lsl #2]
	ldr	r2, [r2, r8, lsl #2]
	ldr	r1, [r1, r8, lsl #2]
	ldr	r0, [r0, r8, lsl #2]
	str	lr, [sp, #4]
	ldr	ip, [ip, r8, lsl #2]
	str	ip, [sp]
	bl	av_image_copy_plane
	b	.L9
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	ENOMEM
	.size	process_frame, .-process_frame
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
