	.file	"extr_hevc_filter.c_restore_tqb_pixels.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	restore_tqb_pixels, @function
restore_tqb_pixels:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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, 104
	.cfi_def_cfa_offset 160
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 56[rsp], rdx
	mov	rdx, QWORD PTR 8[rdi]
	mov	QWORD PTR 48[rsp], rsi
	cmp	QWORD PTR [rdx], 0
	mov	DWORD PTR 44[rsp], ecx
	mov	DWORD PTR 64[rsp], r8d
	mov	DWORD PTR 40[rsp], r9d
	jne	.L2
	cmp	QWORD PTR 40[rax], 0
	je	.L1
	cmp	QWORD PTR 32[rax], 0
	je	.L1
.L2:
	movsx	rdx, DWORD PTR 184[rsp]
	mov	rsi, QWORD PTR 8[rax]
	mov	ebp, 1
	mov	edi, DWORD PTR 40[rsp]
	mov	ecx, DWORD PTR [rax]
	mov	ebx, DWORD PTR [rsi+rdx*4]
	mov	rsi, QWORD PTR 16[rax]
	sal	ebp, cl
	mov	r10d, DWORD PTR [rsi+rdx*4]
	mov	esi, edi
	add	edi, DWORD PTR 168[rsp]
	mov	r12d, ebp
	mov	edx, edi
	sar	esi, cl
	mov	DWORD PTR 68[rsp], ebx
	sar	edx, cl
	mov	DWORD PTR 88[rsp], esi
	mov	esi, DWORD PTR 160[rsp]
	mov	DWORD PTR 24[rsp], edx
	mov	edx, DWORD PTR 160[rsp]
	add	edx, DWORD PTR 176[rsp]
	sar	esi, cl
	mov	DWORD PTR 72[rsp], r10d
	mov	edi, edx
	mov	DWORD PTR 20[rsp], esi
	sar	edi, cl
	mov	ecx, ebx
	sar	r12d, cl
	mov	ecx, DWORD PTR 24[rax]
	mov	DWORD PTR 92[rsp], edi
	sal	r12d, cl
	cmp	esi, edi
	jge	.L1
	movsx	r14, DWORD PTR 44[rsp]
	movsx	r13, DWORD PTR 64[rsp]
	mov	ecx, r10d
	sar	ebp, cl
	lea	rax, 0[0+r14*4]
	mov	DWORD PTR 76[rsp], ebp
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 0[0+r13*4]
	mov	QWORD PTR 80[rsp], rax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 88[rsp]
	mov	esi, DWORD PTR 24[rsp]
	mov	ebx, eax
	cmp	eax, esi
	jl	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	add	ebx, 1
	cmp	DWORD PTR 24[rsp], ebx
	je	.L7
.L6:
	mov	rsi, QWORD PTR [r15]
	mov	eax, DWORD PTR 20[rsp]
	mov	rdx, QWORD PTR 16[r15]
	imul	eax, DWORD PTR 28[rsi]
	add	eax, ebx
	cdqe
	cmp	QWORD PTR [rdx+rax*8], 0
	je	.L8
	mov	edx, DWORD PTR [rsi]
	mov	eax, DWORD PTR 20[rsp]
	mov	edi, ebx
	mov	ecx, edx
	sal	eax, cl
	movzx	ecx, BYTE PTR 72[rsp]
	sub	eax, DWORD PTR 160[rsp]
	sar	eax, cl
	mov	ecx, edx
	sal	edi, cl
	movzx	ecx, BYTE PTR 68[rsp]
	mov	edx, edi
	sub	edx, DWORD PTR 40[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	sar	edx, cl
	mov	ecx, DWORD PTR 24[rsi]
	sal	edx, cl
	mov	ecx, DWORD PTR 44[rsp]
	movsx	rdx, edx
	imul	ecx, eax
	imul	eax, DWORD PTR 64[rsp]
	movsx	rcx, ecx
	cdqe
	add	rcx, rdx
	add	rdx, rax
	mov	rax, QWORD PTR 56[rsp]
	lea	r14, [rdi+rcx*4]
	lea	rbp, [rax+rdx*4]
	mov	eax, DWORD PTR 76[rsp]
	test	eax, eax
	jle	.L8
	xor	r13d, r13d
	mov	QWORD PTR 32[rsp], r15
	mov	r15, rbp
	mov	ebp, r13d
	mov	r13, QWORD PTR 80[rsp]
	mov	DWORD PTR 28[rsp], ebx
	mov	rbx, r14
	mov	r14d, eax
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, r15
	mov	rdi, rbx
	mov	edx, r12d
	add	ebp, 1
	call	memcpy@PLT
	add	r15, r13
	add	rbx, QWORD PTR 8[rsp]
	cmp	ebp, r14d
	jne	.L9
	mov	ebx, DWORD PTR 28[rsp]
	mov	r15, QWORD PTR 32[rsp]
	add	ebx, 1
	cmp	DWORD PTR 24[rsp], ebx
	jne	.L6
.L7:
	add	DWORD PTR 20[rsp], 1
	mov	eax, DWORD PTR 20[rsp]
	cmp	DWORD PTR 92[rsp], eax
	jne	.L4
.L1:
	add	rsp, 104
	.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
	.cfi_endproc
.LFE0:
	.size	restore_tqb_pixels, .-restore_tqb_pixels
	.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_hevc_filter.c_restore_tqb_pixels.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	restore_tqb_pixels, %function
restore_tqb_pixels:
	@ args = 24, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	ldr	r0, [r0, #4]
	sub	sp, sp, #44
	str	r1, [sp, #16]
	ldr	r1, [r0]
	ldr	ip, [sp, #100]
	cmp	r1, #0
	str	r2, [sp, #20]
	ldr	r1, [r8]
	str	r3, [sp, #12]
	bne	.L2
	ldr	r3, [r1, #24]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r1, #20]
	cmp	r3, #0
	beq	.L1
.L2:
	mov	r5, #1
	ldr	r2, [r1, #4]
	ldr	r3, [r1]
	ldr	lr, [r2, ip, lsl #2]
	ldr	r0, [sp, #96]
	ldr	r2, [sp, #88]
	lsl	r5, r5, r3
	add	r0, r2, r0
	ldr	r2, [r1, #12]
	ldr	r1, [r1, #8]
	asr	r4, r0, r3
	asr	r0, r5, lr
	str	lr, [sp, #24]
	lsl	r10, r0, r2
	ldr	lr, [sp, #88]
	ldr	r2, [r1, ip, lsl #2]
	ldr	r1, [sp, #84]
	cmp	r4, lr, asr r3
	asr	r1, r1, r3
	ldr	lr, [sp, #84]
	str	r4, [sp, #36]
	ldr	r4, [sp, #92]
	str	r1, [sp, #32]
	ldr	r1, [sp, #88]
	add	lr, lr, r4
	asr	r1, r1, r3
	asr	r3, lr, r3
	str	r2, [sp, #28]
	str	r1, [sp, #4]
	str	r3, [sp, #8]
	ble	.L1
	mov	fp, r10
	ldr	r3, [sp, #12]
	asr	r5, r5, r2
	lsl	r7, r3, #2
	ldr	r3, [sp, #80]
	lsl	r6, r3, #2
.L4:
	ldr	r3, [sp, #32]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	bge	.L7
	ldr	r10, [sp, #32]
	mov	r3, r10
	mov	r10, fp
	mov	fp, r3
	b	.L6
.L8:
	ldr	r3, [sp, #8]
	add	fp, fp, #1
	cmp	r3, fp
	beq	.L21
.L6:
	ldr	r0, [r8]
	ldr	r2, [sp, #4]
	ldr	r3, [r0, #16]
	ldr	r1, [r8, #8]
	mla	r2, r3, r2, fp
	ldr	r3, [r1, r2, lsl #2]
	cmp	r3, #0
	beq	.L8
	ldr	r1, [r0]
	ldr	r2, [sp, #84]
	ldr	r3, [r0, #12]
	rsb	r0, r2, fp, lsl r1
	ldr	r2, [sp, #24]
	ldr	ip, [sp, #4]
	asr	r0, r0, r2
	ldr	r2, [sp, #88]
	lsl	r0, r0, r3
	ldr	r3, [sp, #28]
	rsb	r1, r2, ip, lsl r1
	ldr	r2, [sp, #80]
	asr	r1, r1, r3
	mla	r2, r1, r2, r0
	ldr	r3, [sp, #12]
	cmp	r5, #0
	mla	r3, r1, r3, r0
	mov	r1, r2
	ldr	r2, [sp, #16]
	add	r3, r2, r3, lsl #2
	ldr	r2, [sp, #20]
	add	r9, r2, r1, lsl #2
	ble	.L8
	mov	r4, #0
.L9:
	mov	r1, r9
	mov	r0, r3
	mov	r2, r10
	bl	memcpy
	add	r4, r4, #1
	cmp	r4, r5
	add	r9, r9, r6
	add	r3, r0, r7
	bne	.L9
	ldr	r3, [sp, #8]
	add	fp, fp, #1
	cmp	r3, fp
	bne	.L6
.L21:
	mov	fp, r10
.L7:
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #36]
	add	r3, r3, #1
	cmp	r2, r3
	str	r3, [sp, #4]
	bne	.L4
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	restore_tqb_pixels, .-restore_tqb_pixels
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
