	.file	"extr_filter_units_bsf.c_filter_units_filter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to read packet.\n"
.LC1:
	.string	"Failed to write packet.\n"
	.text
	.p2align 4
	.type	filter_units_filter, @function
filter_units_filter:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR [rdi]
	call	ff_bsf_get_packet_ref@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR NOOP[rip]
	xor	r14d, r14d
	cmp	QWORD PTR [rbx], rax
	je	.L1
	mov	edi, DWORD PTR 24[rbx]
	lea	r13, 32[rbx]
	mov	rdx, r12
	mov	rsi, r13
	call	ff_cbs_read_packet@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L25
	mov	eax, DWORD PTR 32[rbx]
	lea	r15d, -1[rax]
	movsx	r14, r15d
	sal	r14, 3
	test	r15d, r15d
	js	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r9d, DWORD PTR 8[rbx]
	xor	edx, edx
	test	r9d, r9d
	jle	.L7
	mov	rax, QWORD PTR 40[rbx]
	mov	rsi, QWORD PTR 16[rbx]
	lea	r8d, -1[r9]
	mov	rdi, QWORD PTR [rax+r14]
	xor	eax, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L26:
	lea	edx, 1[rax]
	lea	rcx, 1[rax]
	cmp	rax, r8
	je	.L7
	mov	rax, rcx
.L8:
	mov	edx, eax
	cmp	rdi, QWORD PTR [rsi+rax*8]
	jne	.L26
.L7:
	cmp	edx, r9d
	mov	rsi, QWORD PTR REMOVE[rip]
	setge	al
	cmp	QWORD PTR [rbx], rsi
	jne	.L10
	cmp	edx, r9d
	setl	al
.L10:
	test	al, al
	jne	.L27
.L11:
	sub	r15d, 1
	sub	r14, 8
	cmp	r15d, -1
	jne	.L12
	mov	eax, DWORD PTR 32[rbx]
.L6:
	test	eax, eax
	je	.L28
	mov	edi, DWORD PTR 24[rbx]
	mov	rdx, r13
	mov	rsi, r12
	call	ff_cbs_write_packet@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L29
.L15:
	mov	edi, DWORD PTR 24[rbx]
	mov	rsi, r13
	call	ff_cbs_fragment_reset@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L27:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, r15d
	mov	rsi, r13
	call	ff_cbs_delete_unit@PLT
	jmp	.L11
.L28:
	mov	edi, DWORD PTR EAGAIN[rip]
	call	AVERROR@PLT
	mov	r14d, eax
	test	eax, eax
	jns	.L15
.L4:
	mov	rdi, r12
	call	av_packet_unref@PLT
	jmp	.L15
.L25:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	av_log@PLT
	jmp	.L4
.L29:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	call	av_log@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	filter_units_filter, .-filter_units_filter
	.comm	REMOVE,8,8
	.comm	NOOP,8,8
	.comm	EAGAIN,4,4
	.comm	AV_LOG_ERROR,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_filter_units_bsf.c_filter_units_filter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to read packet.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to write packet.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filter_units_filter, %function
filter_units_filter:
	@ args = 0, 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
	ldr	r4, [r0]
	bl	ff_bsf_get_packet_ref
	subs	r7, r0, #0
	blt	.L1
	ldr	r3, .L30
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r7, #0
	beq	.L1
	add	r8, r4, #16
	mov	r1, r8
	mov	r2, r6
	ldr	r0, [r4, #12]
	bl	ff_cbs_read_packet
	subs	r7, r0, #0
	blt	.L24
	ldr	r3, [r4, #16]
	subs	r9, r3, #1
	bmi	.L6
	ldr	r7, .L30+4
.L5:
	ldr	r0, [r4, #4]
	mov	r3, #0
	cmp	r0, #0
	ble	.L7
	ldr	r2, [r4, #20]
	ldr	ip, [r4, #8]
	ldr	r2, [r2, r9, lsl #2]
	sub	ip, ip, #4
	b	.L8
.L25:
	add	r3, r3, #1
	cmp	r3, r0
	beq	.L7
.L8:
	ldr	lr, [ip, #4]!
	cmp	r2, lr
	bne	.L25
.L7:
	ldr	r1, [r4]
	ldr	r2, [r7]
	cmp	r1, r2
	beq	.L26
	cmp	r3, r0
	movlt	r3, #0
	movge	r3, #1
	cmp	r3, #0
	bne	.L27
.L11:
	subs	r9, r9, #1
	bcs	.L5
	ldr	r3, [r4, #16]
.L6:
	cmp	r3, #0
	beq	.L28
	mov	r2, r8
	mov	r1, r6
	ldr	r0, [r4, #12]
	bl	ff_cbs_write_packet
	subs	r7, r0, #0
	blt	.L29
.L14:
	mov	r1, r8
	ldr	r0, [r4, #12]
	bl	ff_cbs_fragment_reset
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	cmp	r3, r0
	movge	r3, #0
	movlt	r3, #1
	cmp	r3, #0
	beq	.L11
.L27:
	mov	r2, r9
	mov	r1, r8
	ldr	r0, [r4, #12]
	bl	ff_cbs_delete_unit
	b	.L11
.L28:
	ldr	r3, .L30+8
	ldr	r0, [r3]
	bl	AVERROR
	subs	r7, r0, #0
	bge	.L14
.L4:
	mov	r0, r6
	bl	av_packet_unref
	b	.L14
.L24:
	ldr	r3, .L30+12
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L30+16
	bl	av_log
	b	.L4
.L29:
	ldr	r3, .L30+12
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L30+20
	bl	av_log
	b	.L4
.L31:
	.align	2
.L30:
	.word	NOOP
	.word	REMOVE
	.word	EAGAIN
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	.LC1
	.size	filter_units_filter, .-filter_units_filter
	.comm	REMOVE,4,4
	.comm	NOOP,4,4
	.comm	EAGAIN,4,4
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
