	.file	"extr_zstd_decompress.c_decode_literals_compressed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode_literals_compressed, @function
decode_literals_compressed:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	r8d, 2
	je	.L2
	jg	.L3
	test	r8d, r8d
	je	.L16
	cmp	r8d, 1
	jne	.L5
	mov	r15d, 4
.L4:
	mov	esi, 10
	mov	rdi, rbp
	call	IO_read_bits@PLT
	mov	esi, 10
	mov	rdi, rbp
	mov	r12, rax
	call	IO_read_bits@PLT
	mov	r14, rax
.L7:
	cmp	QWORD PTR MAX_LITERALS_SIZE[rip], r12
	jb	.L21
.L8:
	mov	rdi, r12
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	test	rax, rax
	je	.L22
.L9:
	mov	rsi, r12
	call	IO_make_ostream@PLT
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	call	IO_make_sub_istream@PLT
	cmp	DWORD PTR 12[rsp], 2
	mov	DWORD PTR 20[rsp], eax
	je	.L23
	mov	eax, DWORD PTR 0[r13]
	lea	r14, 20[rsp]
	test	eax, eax
	je	.L24
.L11:
	lea	rsi, 16[rsp]
	mov	rdx, r14
	mov	rdi, r13
	cmp	r15d, 1
	je	.L25
	call	HUF_decompress_4stream@PLT
.L13:
	cmp	r12, rax
	je	.L1
	xor	eax, eax
	call	CORRUPTION@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	cmp	r8d, 3
	jne	.L5
	mov	esi, 18
	mov	rdi, rbp
	mov	r15d, 4
	call	IO_read_bits@PLT
	mov	esi, 18
	mov	rdi, rbp
	mov	r12, rax
	call	IO_read_bits@PLT
	cmp	QWORD PTR MAX_LITERALS_SIZE[rip], r12
	mov	r14, rax
	jnb	.L8
.L21:
	xor	eax, eax
	call	CORRUPTION@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r15d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	call	HUF_decompress_1stream@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	xor	eax, eax
	call	CORRUPTION@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r13
	lea	r14, 20[rsp]
	call	HUF_free_dtable@PLT
	mov	rsi, r14
	mov	rdi, r13
	call	decode_huf_table@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	mov	r15d, 4
	call	IMPOSSIBLE@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, 14
	mov	rdi, rbp
	mov	r15d, 4
	call	IO_read_bits@PLT
	mov	esi, 14
	mov	rdi, rbp
	mov	r12, rax
	call	IO_read_bits@PLT
	mov	r14, rax
	jmp	.L7
.L26:
	call	__stack_chk_fail@PLT
.L22:
	xor	eax, eax
	call	BAD_ALLOC@PLT
	mov	rdi, QWORD PTR [rbx]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	decode_literals_compressed, .-decode_literals_compressed
	.comm	MAX_LITERALS_SIZE,8,8
	.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_zstd_decompress.c_decode_literals_compressed.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_literals_compressed, %function
decode_literals_compressed:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #16
	mov	r8, r3
	ldr	ip, [sp, #48]
	ldr	r3, .L28
	mov	r6, r0
	mov	r5, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	cmp	ip, #3
	ldrls	pc, [pc, ip, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L17
	.word	.L5
	.word	.L3
.L17:
	mov	r10, #4
.L6:
	mov	r1, #10
	mov	r0, r5
	bl	IO_read_bits
	mov	r1, #10
	mov	r4, r0
	mov	r0, r5
	bl	IO_read_bits
	mov	r9, r0
.L8:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	cmp	r3, r4
	bcc	.L23
.L9:
	mov	r0, r4
	bl	malloc
	cmp	r0, #0
	str	r0, [r7]
	beq	.L24
.L10:
	mov	r1, r4
	bl	IO_make_ostream
	mov	r3, r0
	mov	r1, r9
	mov	r0, r5
	str	r3, [sp, #4]
	bl	IO_make_sub_istream
	cmp	r8, #2
	str	r0, [sp, #8]
	beq	.L25
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L19
.L21:
	add	r5, sp, #8
.L12:
	cmp	r10, #1
	mov	r2, r5
	mov	r0, r6
	add	r1, sp, #4
	beq	.L26
	bl	HUF_decompress_4stream
.L14:
	cmp	r4, r0
	beq	.L1
	bl	CORRUPTION
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r10, #1
	b	.L6
.L26:
	bl	HUF_decompress_1stream
	b	.L14
.L23:
	bl	CORRUPTION
	b	.L9
.L19:
	bl	CORRUPTION
	b	.L21
.L25:
	mov	r0, r6
	add	r5, sp, #8
	bl	HUF_free_dtable
	mov	r1, r5
	mov	r0, r6
	bl	decode_huf_table
	b	.L12
.L3:
	mov	r1, #18
	mov	r0, r5
	bl	IO_read_bits
	mov	r1, #18
	mov	r4, r0
	mov	r0, r5
	bl	IO_read_bits
	mov	r10, #4
	mov	r9, r0
	b	.L8
.L5:
	mov	r1, #14
	mov	r0, r5
	bl	IO_read_bits
	mov	r1, #14
	mov	r4, r0
	mov	r0, r5
	bl	IO_read_bits
	mov	r10, #4
	mov	r9, r0
	b	.L8
.L27:
	bl	__stack_chk_fail
.L24:
	bl	BAD_ALLOC
	ldr	r0, [r7]
	b	.L10
.L2:
	bl	IMPOSSIBLE
	mov	r10, #4
	b	.L8
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	MAX_LITERALS_SIZE
	.size	decode_literals_compressed, .-decode_literals_compressed
	.comm	MAX_LITERALS_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
