	.file	"extr_zstd_decompress.c_decode_literals_simple.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	decode_literals_simple, @function
decode_literals_simple:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	ecx, 2
	je	.L2
	jg	.L3
	test	ecx, ecx
	je	.L2
	cmp	ecx, 1
	jne	.L5
	mov	esi, 12
	call	IO_read_bits@PLT
	mov	r12, rax
.L7:
	cmp	QWORD PTR MAX_LITERALS_SIZE[rip], r12
	jb	.L23
.L8:
	mov	rdi, r12
	call	malloc@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L24
.L9:
	test	ebx, ebx
	je	.L10
	cmp	ebx, 1
	je	.L11
	xor	eax, eax
	call	IMPOSSIBLE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	cmp	ecx, 3
	jne	.L5
	mov	esi, 20
	call	IO_read_bits@PLT
	mov	r12, rax
	cmp	QWORD PTR MAX_LITERALS_SIZE[rip], r12
	jnb	.L8
.L23:
	xor	eax, eax
	call	CORRUPTION@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, r12d
	mov	rdi, r13
	call	IO_get_read_ptr@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rdx, r12
	mov	rsi, rax
	call	memcpy@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L11:
	.cfi_restore_state
	mov	rdi, r13
	mov	esi, 1
	call	IO_get_read_ptr@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	rdx, r12
	mov	esi, DWORD PTR [rax]
	call	memset@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L5:
	.cfi_restore_state
	xor	eax, eax
	call	IMPOSSIBLE@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, 1
	mov	rdi, r13
	call	IO_rewind_bits@PLT
	mov	esi, 5
	mov	rdi, r13
	call	IO_read_bits@PLT
	mov	r12, rax
	jmp	.L7
.L24:
	call	BAD_ALLOC@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	decode_literals_simple, .-decode_literals_simple
	.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_simple.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_literals_simple, %function
decode_literals_simple:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r6, r1
	mov	r5, r2
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L5
	.word	.L6
	.word	.L5
	.word	.L3
.L5:
	mov	r1, #1
	bl	IO_rewind_bits
	mov	r1, #5
	mov	r0, r7
	bl	IO_read_bits
	mov	r4, r0
.L7:
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, r4
	bcc	.L17
.L8:
	mov	r0, r4
	bl	malloc
	cmp	r0, #0
	str	r0, [r6]
	beq	.L18
.L9:
	cmp	r5, #0
	beq	.L10
	cmp	r5, #1
	beq	.L11
	bl	IMPOSSIBLE
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, #20
	bl	IO_read_bits
	mov	r4, r0
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, r4
	bcs	.L8
.L17:
	bl	CORRUPTION
	b	.L8
.L6:
	mov	r1, #12
	bl	IO_read_bits
	mov	r4, r0
	b	.L7
.L11:
	mov	r1, r5
	mov	r0, r7
	bl	IO_get_read_ptr
	mov	r2, r4
	ldr	r1, [r0]
	ldr	r0, [r6]
	bl	memset
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, r4
	mov	r0, r7
	bl	IO_get_read_ptr
	mov	r2, r4
	mov	r1, r0
	ldr	r0, [r6]
	bl	memcpy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	bl	BAD_ALLOC
	b	.L9
.L2:
	bl	IMPOSSIBLE
	b	.L7
.L20:
	.align	2
.L19:
	.word	MAX_LITERALS_SIZE
	.size	decode_literals_simple, .-decode_literals_simple
	.comm	MAX_LITERALS_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
