	.file	"extr_error_resilience.c_filter181.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	filter181, @function
filter181:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, -1[rsi]
	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
	lea	ebx, -1[rdx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR [rsp], rdi
	mov	DWORD PTR 16[rsp], esi
	mov	DWORD PTR 28[rsp], ecx
	mov	DWORD PTR 8[rsp], eax
	cmp	ebx, 1
	jle	.L7
	mov	eax, DWORD PTR 16[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	r13d, 1
	movsx	rdx, DWORD PTR 28[rsp]
	sub	eax, 3
	lea	r14, 0[0+rdx*4]
	add	rax, rdx
	lea	r12, [rcx+r14]
	lea	rbp, 4[rcx+rax*4]
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	DWORD PTR 8[rsp], 1
	mov	r8d, DWORD PTR [r12]
	mov	r15, r12
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movsx	rdx, DWORD PTR INT_MAX[rip]
	movsx	rsi, DWORD PTR INT_MIN[rip]
	add	r15, 4
	mov	rax, rdx
	imul	rdx, rdx, 805281793
	sar	eax, 31
	sar	rdx, 43
	sub	edx, eax
	mov	rax, rsi
	imul	rsi, rsi, 805281793
	sar	eax, 31
	sub	edx, 32768
	sar	rsi, 43
	sub	esi, eax
	mov	eax, DWORD PTR [r15]
	lea	edi, 0[0+rax*8]
	sub	edi, r8d
	sub	edi, DWORD PTR 4[r15]
	call	av_clip@PLT
	mov	r8d, DWORD PTR [r15]
	imul	eax, eax, 10923
	add	eax, 32768
	sar	eax, 16
	mov	DWORD PTR [r15], eax
	cmp	rbp, r15
	jne	.L5
.L8:
	add	r13d, 1
	add	r12, r14
	add	rbp, r14
	cmp	r13d, ebx
	jne	.L6
.L7:
	cmp	DWORD PTR 8[rsp], 1
	jle	.L1
	mov	eax, DWORD PTR 16[rsp]
	movsx	rbp, DWORD PTR 28[rsp]
	mov	r13d, 1
	sub	eax, 3
	lea	r12, 0[0+rbp*4]
	add	rax, 2
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR [rsp]
	add	rax, r12
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rsp]
	mov	r14d, 1
	mov	r9d, DWORD PTR [rax+r13*4]
	mov	rax, QWORD PTR 8[rsp]
	lea	r15, [rax+r13*4]
	cmp	ebx, 1
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	movsx	rdx, DWORD PTR INT_MAX[rip]
	movsx	rsi, DWORD PTR INT_MIN[rip]
	add	r14d, 1
	mov	rax, rdx
	imul	rdx, rdx, 805281793
	sar	eax, 31
	sar	rdx, 43
	sub	edx, eax
	mov	rax, rsi
	imul	rsi, rsi, 805281793
	sar	eax, 31
	sub	edx, 32768
	sar	rsi, 43
	sub	esi, eax
	mov	eax, DWORD PTR [r15]
	lea	edi, 0[0+rax*8]
	sub	edi, r9d
	sub	edi, DWORD PTR [r15+rbp*4]
	call	av_clip@PLT
	mov	r9d, DWORD PTR [r15]
	imul	eax, eax, 10923
	add	eax, 32768
	sar	eax, 16
	mov	DWORD PTR [r15], eax
	add	r15, r12
	cmp	r14d, ebx
	jne	.L11
.L12:
	add	r13, 1
	cmp	QWORD PTR 16[rsp], r13
	jne	.L10
.L1:
	add	rsp, 40
	.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	filter181, .-filter181
	.comm	INT_MIN,4,4
	.comm	INT_MAX,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_error_resilience.c_filter181.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filter181, %function
filter181:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	r7, r2, #1
	sub	sp, sp, #28
	mov	r8, r3
	cmp	r7, #1
	sub	r3, r1, #1
	str	r1, [sp, #16]
	str	r0, [sp, #12]
	str	r3, [sp, #4]
	ble	.L7
	ldr	r2, [sp, #16]
	lsl	r3, r8, #2
	add	r2, r2, r8
	str	r8, [sp, #20]
	mov	r4, #1
	mov	r8, r3
	ldr	r1, [sp, #12]
	add	r10, r3, #4
	sub	r6, r1, #4
	ldr	fp, .L20
	ldr	r9, .L20+4
	ldr	r5, .L20+8
	add	r10, r1, r10
	add	r6, r6, r2, lsl #2
	str	r7, [sp, #8]
.L6:
	ldr	r3, [sp, #4]
	ldr	ip, [r10, #-4]
	cmp	r3, #1
	movgt	r7, r10
	ble	.L8
.L5:
	ldr	r3, [fp]
	ldr	r1, [r9]
	smull	r0, r2, r5, r3
	smull	r0, lr, r5, r1
	ldr	r0, [r7]
	asr	r3, r3, #31
	rsb	ip, ip, r0, lsl #3
	ldr	r0, [r7, #4]!
	rsb	r2, r3, r2, asr #11
	asr	r1, r1, #31
	sub	r0, ip, r0
	sub	r2, r2, #32768
	rsb	r1, r1, lr, asr #11
	bl	av_clip
	add	r3, r0, r0, lsl #2
	add	r3, r3, r3, lsl #5
	add	r0, r0, r3, lsl #1
	add	r0, r0, r0, lsl #5
	add	r0, r0, #32768
	asr	r0, r0, #16
	cmp	r6, r7
	ldr	ip, [r7, #-4]
	str	r0, [r7, #-4]
	bne	.L5
.L8:
	ldr	r3, [sp, #8]
	add	r4, r4, #1
	cmp	r4, r3
	add	r10, r10, r8
	add	r6, r6, r8
	bne	.L6
	mov	r7, r3
	ldr	r8, [sp, #20]
.L7:
	ldr	r3, [sp, #4]
	cmp	r3, #1
	ble	.L1
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	str	r3, [sp, #4]
	sub	r3, r3, #8
	add	r3, r3, r2, lsl #2
	ldr	r10, .L20
	ldr	r9, .L20+4
	ldr	r6, .L20+8
	str	r3, [sp, #8]
	lsl	fp, r8, #2
.L10:
	ldr	r3, [sp, #4]
	cmp	r7, #1
	ldr	ip, [r3, #4]!
	str	r3, [sp, #4]
	ble	.L12
	mov	r5, #1
	ldr	r3, [sp, #4]
	add	r4, fp, r3
.L11:
	ldr	r3, [r10]
	ldr	r1, [r9]
	smull	r0, r2, r6, r3
	smull	r0, lr, r6, r1
	ldr	r0, [r4]
	asr	r3, r3, #31
	rsb	ip, ip, r0, lsl #3
	ldr	r0, [r4, r8, lsl #2]
	rsb	r2, r3, r2, asr #11
	asr	r1, r1, #31
	sub	r0, ip, r0
	sub	r2, r2, #32768
	rsb	r1, r1, lr, asr #11
	bl	av_clip
	add	r3, r0, r0, lsl #2
	add	r3, r3, r3, lsl #5
	add	r0, r0, r3, lsl #1
	add	r0, r0, r0, lsl #5
	add	r5, r5, #1
	add	r0, r0, #32768
	asr	r0, r0, #16
	cmp	r5, r7
	ldr	ip, [r4]
	str	r0, [r4], fp
	bne	.L11
.L12:
	ldmib	sp, {r2, r3}
	cmp	r3, r2
	bne	.L10
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	INT_MAX
	.word	INT_MIN
	.word	805281793
	.size	filter181, .-filter181
	.comm	INT_MIN,4,4
	.comm	INT_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
