	.file	"extr_vf_scale_cuda.c_cudascale_filter_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cudascale_filter_frame, @function
cudascale_filter_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	r12, QWORD PTR 8[r14]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [r14]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR 8[rax]
	mov	rbp, QWORD PTR [rax]
	xor	eax, eax
	mov	QWORD PTR 32[rsp], 0
	call	av_frame_alloc@PLT
	mov	QWORD PTR 32[rsp], rax
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR [rax]
	call	[QWORD PTR 8[rbp]]
	mov	edi, eax
	call	CHECK_CU@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r14
	call	cudascale_scale@PLT
	lea	rdi, 28[rsp]
	mov	r12d, eax
	call	[QWORD PTR 0[rbp]]
	mov	edi, eax
	call	CHECK_CU@PLT
	test	r12d, r12d
	js	.L3
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	ecx, DWORD PTR 4[r13]
	mov	edx, DWORD PTR 0[r13]
	imul	ecx, DWORD PTR [rax]
	mov	r8d, DWORD PTR INT_MAX[rip]
	lea	rdi, 8[rsi]
	imul	ecx, DWORD PTR [rbx]
	imul	edx, DWORD PTR 8[rax]
	imul	edx, DWORD PTR 4[rbx]
	call	av_reduce@PLT
	lea	rdi, 8[rsp]
	call	av_frame_free@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r13
	call	ff_filter_frame@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, 8[rsp]
	call	av_frame_free@PLT
	lea	rdi, 32[rsp]
	call	av_frame_free@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cudascale_filter_frame, .-cudascale_filter_frame
	.comm	INT_MAX,4,4
	.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_scale_cuda.c_cudascale_filter_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	cudascale_filter_frame, %function
cudascale_filter_frame:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, [r0, #8]
	sub	sp, sp, #32
	str	r1, [sp, #12]
	ldm	r8, {r1, r4}
	ldr	r2, [r4]
	mov	r5, r0
	ldr	r2, [r2, #4]
	ldr	r0, .L10
	ldr	r7, [r1]
	ldr	r0, [r0]
	str	r0, [sp, #28]
	mov	r0,#0
	ldr	r6, [r2]
	str	r3, [sp, #20]
	bl	av_frame_alloc
	cmp	r0, #0
	str	r0, [sp, #20]
	beq	.L8
	ldr	r2, [r4]
	ldr	r3, [r6, #4]
	ldr	r0, [r2]
	blx	r3
	bl	CHECK_CU
	subs	r4, r0, #0
	blt	.L3
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #20]
	mov	r0, r8
	bl	cudascale_scale
	mov	r4, r0
	ldr	r3, [r6]
	add	r0, sp, #24
	blx	r3
	bl	CHECK_CU
	cmp	r4, #0
	blt	.L3
	ldr	r2, [sp, #12]
	ldr	r0, [r7, #4]
	ldr	r3, [r2]
	ldr	r1, [r7]
	ldr	r2, [r2, #4]
	mul	r3, r0, r3
	mul	r2, r1, r2
	ldm	r5, {r1, ip}
	ldr	r0, .L10+4
	mul	r3, r1, r3
	ldr	r0, [r0]
	ldr	r1, [sp, #20]
	mul	r2, ip, r2
	str	r0, [sp]
	add	r0, r1, #4
	bl	av_reduce
	add	r0, sp, #12
	bl	av_frame_free
	mov	r0, r7
	ldr	r1, [sp, #20]
	bl	ff_filter_frame
	mov	r4, r0
	b	.L1
.L8:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
.L3:
	add	r0, sp, #12
	bl	av_frame_free
	add	r0, sp, #20
	bl	av_frame_free
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	INT_MAX
	.word	ENOMEM
	.size	cudascale_filter_frame, .-cudascale_filter_frame
	.comm	INT_MAX,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
