	.file	"extr_archive_read_support_format_rar5.c_parse_filter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid filter encountered"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Can't allocate memory for a filter descriptor."
	.text
	.p2align 4
	.type	parse_filter, @function
parse_filter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	get_context@PLT
	lea	rdx, 8[rsp]
	mov	rsi, r12
	mov	rdi, rax
	mov	rbp, rax
	call	parse_filter_data@PLT
	cmp	rax, QWORD PTR ARCHIVE_OK[rip]
	je	.L2
.L17:
	mov	eax, DWORD PTR ARCHIVE_EOF[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdx, 12[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	parse_filter_data@PLT
	cmp	rax, QWORD PTR ARCHIVE_OK[rip]
	jne	.L17
	lea	rdx, 16[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	read_bits_16@PLT
	cmp	rax, QWORD PTR ARCHIVE_OK[rip]
	jne	.L17
	mov	esi, 3
	mov	rdi, rbp
	sar	DWORD PTR 16[rsp], 13
	call	skip_bits@PLT
	mov	eax, DWORD PTR 12[rsp]
	sub	eax, 4
	cmp	eax, 4194300
	ja	.L7
	mov	eax, DWORD PTR FILTER_ARM[rip]
	cmp	DWORD PTR 16[rsp], eax
	jg	.L7
	mov	esi, DWORD PTR 8[rsp]
	mov	rdi, rbp
	call	is_valid_filter_block_start@PLT
	test	eax, eax
	je	.L7
	mov	rdi, rbp
	call	add_new_filter@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L20
	mov	edx, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR 8[rsp]
	add	eax, DWORD PTR 0[rbp]
	cmp	edx, DWORD PTR FILTER_DELTA[rip]
	mov	DWORD PTR 8[rbx], ecx
	mov	DWORD PTR 4[rbx], eax
	mov	DWORD PTR 4[rbp], eax
	mov	DWORD PTR 8[rbp], ecx
	je	.L21
.L9:
	mov	eax, DWORD PTR ARCHIVE_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR ARCHIVE_ERRNO_FILE_FORMAT[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r13
	call	archive_set_error@PLT
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
	jmp	.L1
.L21:
	lea	rcx, 20[rsp]
	mov	edx, 5
	mov	rsi, r12
	mov	rdi, rbp
	call	read_consume_bits@PLT
	cmp	rax, QWORD PTR ARCHIVE_OK[rip]
	jne	.L17
	mov	eax, DWORD PTR 20[rsp]
	add	eax, 1
	mov	DWORD PTR 12[rbx], eax
	jmp	.L9
.L20:
	mov	esi, DWORD PTR ENOMEM[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	call	archive_set_error@PLT
	mov	eax, DWORD PTR ARCHIVE_FATAL[rip]
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	parse_filter, .-parse_filter
	.comm	FILTER_DELTA,4,4
	.comm	FILTER_ARM,4,4
	.comm	ENOMEM,4,4
	.comm	ARCHIVE_OK,8,8
	.comm	ARCHIVE_FATAL,4,4
	.comm	ARCHIVE_ERRNO_FILE_FORMAT,4,4
	.comm	ARCHIVE_EOF,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_archive_read_support_format_rar5.c_parse_filter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid filter encountered\000"
	.align	2
.LC1:
	.ascii	"Can't allocate memory for a filter descriptor.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_filter, %function
parse_filter:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L22
	sub	sp, sp, #24
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r7, r0
	bl	get_context
	mov	r1, r4
	add	r2, sp, #4
	mov	r6, r0
	bl	parse_filter_data
	ldr	r5, .L22+4
	ldr	r3, [r5]
	cmp	r0, r3
	beq	.L2
.L17:
	ldr	r3, .L22+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #8
	bl	parse_filter_data
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L17
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #12
	bl	read_bits_16
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L17
	ldr	r3, [sp, #12]
	mov	r1, #3
	asr	r3, r3, #13
	mov	r0, r6
	str	r3, [sp, #12]
	bl	skip_bits
	ldr	r3, [sp, #8]
	ldr	r2, .L22+12
	sub	r3, r3, #4
	cmp	r3, r2
	bhi	.L7
	ldr	r3, .L22+16
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L7
	mov	r0, r6
	ldr	r1, [sp, #4]
	bl	is_valid_filter_block_start
	cmp	r0, #0
	beq	.L7
	mov	r0, r6
	bl	add_new_filter
	subs	r8, r0, #0
	beq	.L20
	ldr	r0, .L22+20
	ldr	r3, [r6]
	ldr	r2, [sp, #4]
	ldr	r1, [sp, #12]
	ldr	r0, [r0]
	add	r3, r3, r2
	ldr	r2, [sp, #8]
	cmp	r1, r0
	stm	r8, {r1, r3}
	str	r2, [r8, #8]
	str	r3, [r6, #4]
	str	r2, [r6, #8]
	beq	.L21
.L9:
	ldr	r0, [r5]
	b	.L1
.L7:
	ldr	r3, .L22+24
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L22+28
	bl	archive_set_error
	ldr	r3, .L22+32
	ldr	r0, [r3]
	b	.L1
.L21:
	add	r3, sp, #16
	mov	r1, r4
	mov	r0, r6
	mov	r2, #5
	bl	read_consume_bits
	ldr	r3, [r5]
	cmp	r0, r3
	bne	.L17
	ldr	r3, [sp, #16]
	add	r3, r3, #1
	str	r3, [r8, #12]
	b	.L9
.L20:
	ldr	r3, .L22+36
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L22+40
	bl	archive_set_error
	ldr	r3, .L22+32
	ldr	r0, [r3]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC2
	.word	ARCHIVE_OK
	.word	ARCHIVE_EOF
	.word	4194300
	.word	FILTER_ARM
	.word	FILTER_DELTA
	.word	ARCHIVE_ERRNO_FILE_FORMAT
	.word	.LC0
	.word	ARCHIVE_FATAL
	.word	ENOMEM
	.word	.LC1
	.size	parse_filter, .-parse_filter
	.comm	FILTER_DELTA,4,4
	.comm	FILTER_ARM,4,4
	.comm	ENOMEM,4,4
	.comm	ARCHIVE_OK,4,4
	.comm	ARCHIVE_FATAL,4,4
	.comm	ARCHIVE_ERRNO_FILE_FORMAT,4,4
	.comm	ARCHIVE_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
