	.file	"extr_zstd_v01.c_ZSTDv01_decodeLiteralsBlock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTDv01_decodeLiteralsBlock, @function
ZSTDv01_decodeLiteralsBlock:
.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, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	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, r9
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	QWORD PTR 8[rsp], rdi
	mov	r15, QWORD PTR 128[rsp]
	mov	rdi, r9
	lea	rdx, 32[rsp]
	mov	QWORD PTR [rsp], r8
	mov	rsi, r15
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	ZSTDv01_getcBlockSize@PLT
	mov	rdi, rax
	mov	r14, rax
	call	ZSTDv01_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR ZSTD_blockHeaderSize[rip]
	mov	rdx, r15
	sub	rdx, rax
	cmp	rdx, r14
	jb	.L10
	lea	rcx, [rbx+rax*4]
	mov	eax, DWORD PTR 32[rsp]
	lea	r10, 0[rbp+r12*4]
	cmp	eax, 129
	je	.L4
	cmp	eax, 131
	je	.L5
	cmp	eax, 128
	je	.L19
	mov	edi, DWORD PTR GENERIC[rip]
	call	ERROR@PLT
	mov	r14, rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
.L19:
	.cfi_restore_state
	mov	rbp, QWORD PTR 40[rsp]
	cmp	r12, rbp
	jb	.L21
	test	r15, r15
	je	.L10
	lea	rax, 0[0+rbp*4]
	mov	esi, DWORD PTR [rcx]
	mov	rdx, rbp
	mov	QWORD PTR 8[rsp], rcx
	sub	r10, rax
	mov	rdi, r10
	mov	r12, r10
	call	memset@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR 0[r13], r12
	mov	QWORD PTR [rax], rbp
	lea	rax, 4[rcx]
.L8:
	sub	rax, rbx
	mov	r8, rax
	sar	r8, 2
	mov	r14, r8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, rbp
	mov	r8, r14
	mov	rdx, r12
	mov	QWORD PTR 24[rsp], r10
	mov	QWORD PTR 16[rsp], rcx
	call	ZSTD_decompressLiterals@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	ZSTDv01_isError@PLT
	test	rax, rax
	jne	.L12
	mov	r10, QWORD PTR 24[rsp]
	lea	rax, 0[0+rbp*4]
	mov	rcx, QWORD PTR 16[rsp]
	sub	r10, rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[r13], r10
	mov	QWORD PTR [rax], rbp
	lea	rax, [rcx+r14*4]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR [rsp]
	mov	QWORD PTR 0[r13], rcx
	lea	rax, [rcx+r14*4]
	mov	QWORD PTR [rsi], r14
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR srcSize_wrong[rip]
	call	ERROR@PLT
	mov	r14, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r14, rbp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR dstSize_tooSmall[rip]
	call	ERROR@PLT
	mov	r14, rax
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ZSTDv01_decodeLiteralsBlock, .-ZSTDv01_decodeLiteralsBlock
	.comm	srcSize_wrong,4,4
	.comm	dstSize_tooSmall,4,4
	.comm	ZSTD_blockHeaderSize,8,8
	.comm	GENERIC,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_zstd_v01.c_ZSTDv01_decodeLiteralsBlock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTDv01_decodeLiteralsBlock, %function
ZSTDv01_decodeLiteralsBlock:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	ldr	r9, [sp, #76]
	ldr	r10, [sp, #80]
	mov	r7, r3
	ldr	r3, .L22
	mov	r8, r0
	mov	r6, r1
	mov	r5, r2
	mov	r1, r10
	add	r2, sp, #20
	mov	r0, r9
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	fp, [sp, #72]
	bl	ZSTDv01_getcBlockSize
	mov	r4, r0
	bl	ZSTDv01_isError
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L22+4
	ldr	r1, [r3]
	sub	r3, r10, r1
	cmp	r3, r4
	bcc	.L10
	ldr	r2, [sp, #20]
	add	r3, r6, r5, lsl #2
	cmp	r2, #129
	str	r3, [sp, #8]
	add	r3, r9, r1, lsl #2
	beq	.L4
	cmp	r2, #131
	beq	.L5
	cmp	r2, #128
	beq	.L19
	ldr	r3, .L22+8
	ldr	r0, [r3]
	bl	ERROR
	mov	r4, r0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r4, [sp, #24]
	cmp	r5, r4
	bcc	.L21
	cmp	r10, #0
	str	r3, [sp, #12]
	beq	.L10
	ldr	r3, [sp, #8]
	mov	r2, r4
	sub	r5, r3, r4, lsl #2
	mov	r0, r5
	ldr	r1, [r9, r1, lsl #2]
	bl	memset
	ldr	r3, [sp, #12]
	str	r5, [r7]
	add	r3, r3, #4
	str	r4, [fp]
.L8:
	sub	r0, r3, r9
	asr	r4, r0, #2
	b	.L1
.L5:
	mov	r2, r5
	mov	r1, r6
	str	r4, [sp]
	mov	r0, r8
	str	r3, [sp, #12]
	bl	ZSTD_decompressLiterals
	mov	r5, r0
	bl	ZSTDv01_isError
	cmp	r0, #0
	movne	r4, r5
	bne	.L1
	ldr	r3, [sp, #8]
	sub	r2, r3, r5, lsl #2
	ldr	r3, [sp, #12]
	str	r2, [r7]
	add	r3, r3, r4, lsl #2
	str	r5, [fp]
	b	.L8
.L4:
	str	r3, [r7]
	add	r3, r3, r4, lsl #2
	str	r4, [fp]
	b	.L8
.L10:
	ldr	r3, .L22+12
	ldr	r0, [r3]
	bl	ERROR
	mov	r4, r0
	b	.L1
.L21:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	bl	ERROR
	mov	r4, r0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	ZSTD_blockHeaderSize
	.word	GENERIC
	.word	srcSize_wrong
	.word	dstSize_tooSmall
	.size	ZSTDv01_decodeLiteralsBlock, .-ZSTDv01_decodeLiteralsBlock
	.comm	srcSize_wrong,4,4
	.comm	dstSize_tooSmall,4,4
	.comm	ZSTD_blockHeaderSize,4,4
	.comm	GENERIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
