	.file	"extr_zstd_v04.c_ZSTD_decompressSequences.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTD_decompressSequences, @function
ZSTD_decompressSequences:
.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, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rbx, QWORD PTR 56[rdi]
	mov	rbp, QWORD PTR 48[rdi]
	mov	r15, QWORD PTR 40[rdi]
	mov	r14, QWORD PTR 32[rdi]
	mov	QWORD PTR 48[rsp], rsi
	lea	rsi, 104[rsp]
	mov	QWORD PTR 64[rsp], rdx
	lea	rdx, 88[rsp]
	mov	r9, r14
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR 96[rsp], rbx
	mov	DWORD PTR 60[rsp], eax
	mov	rax, QWORD PTR 24[rdi]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 16[rdi]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, 80[rsp]
	mov	QWORD PTR 24[rsp], rax
	lea	rax, 0[0+r8*4]
	mov	QWORD PTR 40[rsp], rax
	push	r8
	.cfi_def_cfa_offset 232
	mov	r8, r15
	push	rcx
	.cfi_def_cfa_offset 240
	mov	rcx, rbp
	call	ZSTD_decodeSeqHeaders@PLT
	mov	rdi, rax
	mov	r13, rax
	call	ZSTD_isError@PLT
	pop	rsi
	.cfi_def_cfa_offset 232
	pop	rdi
	.cfi_def_cfa_offset 224
	test	rax, rax
	je	.L21
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L21:
	.cfi_restore_state
	lea	rcx, 84[rsp]
	lea	r8, 0[0+r13*4]
	xor	esi, esi
	mov	edx, 4
	mov	rdi, rcx
	lea	r13, [r12+r8]
	mov	QWORD PTR 72[rsp], r8
	lea	r12, 116[rsp]
	mov	QWORD PTR 32[rsp], rcx
	call	memset@PLT
	mov	rax, QWORD PTR 104[rsp]
	mov	rdi, r12
	mov	rsi, r13
	mov	rdx, QWORD PTR 88[rsp]
	mov	r8, QWORD PTR 72[rsp]
	mov	DWORD PTR 84[rsp], 4
	mov	QWORD PTR 144[rsp], rax
	lea	rax, [rax+rdx*4]
	mov	rdx, QWORD PTR 40[rsp]
	mov	DWORD PTR 112[rsp], 4
	mov	QWORD PTR 136[rsp], rax
	sub	rdx, r8
	sar	rdx, 2
	call	BIT_initDStream@PLT
	mov	rdi, rax
	call	ERR_isError@PLT
	test	rax, rax
	jne	.L7
	mov	r13, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR 64[rsp]
	mov	rdx, rbp
	mov	rsi, r12
	lea	rdi, 128[rsp]
	lea	rax, 0[r13+rax*4]
	mov	rbp, r13
	mov	QWORD PTR 40[rsp], rax
	movsx	rax, DWORD PTR 60[rsp]
	lea	rbx, [rbx+rax*4]
	call	FSE_initDState@PLT
	mov	rdx, r14
	lea	rdi, 124[rsp]
	mov	rsi, r12
	call	FSE_initDState@PLT
	mov	rdx, r15
	lea	rdi, 120[rsp]
	mov	rsi, r12
	call	FSE_initDState@PLT
	lea	r15, 112[rsp]
	lea	r14, 96[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 80[rsp]
	test	eax, eax
	je	.L10
	mov	rdi, QWORD PTR 32[rsp]
	sub	eax, 1
	mov	rsi, r15
	mov	DWORD PTR 80[rsp], eax
	call	ZSTD_decodeSequence@PLT
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 232
	mov	rcx, r14
	mov	r8, rbx
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 240
	mov	rdi, rbp
	mov	r9, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR 100[rsp]
	mov	rsi, QWORD PTR 56[rsp]
	call	ZSTD_execSequence@PLT
	mov	rdi, rax
	mov	r13, rax
	call	ZSTD_isError@PLT
	pop	rdx
	.cfi_def_cfa_offset 232
	pop	rcx
	.cfi_def_cfa_offset 224
	test	rax, rax
	jne	.L1
	lea	rbp, 0[rbp+r13*4]
.L5:
	mov	rdi, r12
	call	BIT_reloadDStream@PLT
	cmp	rax, QWORD PTR BIT_DStream_completed[rip]
	jle	.L6
.L10:
	mov	rdi, r12
	call	BIT_endOfDStream@PLT
	test	eax, eax
	je	.L7
	mov	rsi, QWORD PTR 96[rsp]
	mov	rdx, rbx
	sub	rdx, rsi
	cmp	rsi, rbx
	ja	.L7
	lea	rbx, 0[rbp+rdx]
	cmp	rbx, QWORD PTR 40[rsp]
	ja	.L23
	cmp	rsi, rbp
	je	.L12
	sar	rdx, 2
	mov	rdi, rbp
	call	memcpy@PLT
.L12:
	mov	rax, rbx
	sub	rax, QWORD PTR 48[rsp]
	sar	rax, 2
	mov	r13, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR corruption_detected[rip]
	call	ERROR@PLT
	mov	r13, rax
	jmp	.L1
.L23:
	mov	edi, DWORD PTR dstSize_tooSmall[rip]
	call	ERROR@PLT
	mov	r13, rax
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ZSTD_decompressSequences, .-ZSTD_decompressSequences
	.comm	dstSize_tooSmall,4,4
	.comm	corruption_detected,4,4
	.comm	BIT_DStream_completed,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_v04.c_ZSTD_decompressSequences.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_decompressSequences, %function
ZSTD_decompressSequences:
	@ args = 4, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	lr, r2
	mov	r7, r1
	mov	ip, r0
	sub	sp, sp, #100
	ldr	r5, [sp, #136]
	ldr	r8, [r0, #28]
	ldr	r10, [r0, #20]
	ldr	r4, [r0, #16]
	lsl	r5, r5, #2
	str	lr, [sp, #36]
	asr	r2, r5, #2
	ldr	lr, .L24
	ldr	r6, [r0, #24]
	str	r8, [sp, #28]
	str	r3, [sp, #8]
	str	r2, [sp, #12]
	str	r10, [sp]
	str	r4, [sp, #4]
	str	r3, [sp, #20]
	str	r7, [sp, #24]
	ldr	lr, [lr]
	str	lr, [sp, #92]
	mov	lr,#0
	ldr	lr, [ip]
	mov	r3, r6
	add	r2, sp, #44
	add	r1, sp, #56
	add	r0, sp, #52
	ldr	r7, [ip, #12]
	ldr	r9, [ip, #4]
	str	r8, [sp, #48]
	str	lr, [sp, #32]
	ldr	r8, [ip, #8]
	bl	ZSTD_decodeSeqHeaders
	mov	fp, r0
	bl	ZSTD_isError
	cmp	r0, #0
	beq	.L21
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, fp
	add	sp, sp, #100
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	ip, #4
	ldr	r0, [sp, #56]
	ldr	r3, [sp, #20]
	ldr	lr, [sp, #44]
	sub	r2, r5, fp, lsl #2
	add	lr, r0, lr, lsl #2
	asr	r2, r2, #2
	add	r1, r3, fp, lsl #2
	str	r0, [sp, #88]
	add	r0, sp, #68
	str	lr, [sp, #84]
	str	ip, [sp, #60]
	str	ip, [sp, #64]
	bl	BIT_initDStream
	bl	ERR_isError
	cmp	r0, #0
	bne	.L7
	mov	r2, r6
	add	r1, sp, #68
	add	r0, sp, #80
	bl	FSE_initDState
	mov	r2, r4
	add	r1, sp, #68
	add	r0, sp, #76
	bl	FSE_initDState
	ldr	r3, [sp, #36]
	ldr	r5, [sp, #24]
	ldr	ip, [sp, #32]
	add	r6, r5, r3, lsl #2
	ldr	r3, [sp, #28]
	mov	r2, r10
	add	r1, sp, #68
	add	r0, sp, #72
	add	r4, r3, ip, lsl #2
	ldr	r10, .L24+4
	bl	FSE_initDState
	b	.L5
.L6:
	ldr	r3, [sp, #52]
	cmp	r3, #0
	beq	.L10
	sub	r3, r3, #1
	add	r1, sp, #64
	add	r0, sp, #60
	str	r3, [sp, #52]
	bl	ZSTD_decodeSequence
	mov	r1, r6
	ldr	r2, [sp, #60]
	add	r3, sp, #48
	mov	r0, r5
	stm	sp, {r4, r7, r8, r9}
	bl	ZSTD_execSequence
	mov	fp, r0
	bl	ZSTD_isError
	cmp	r0, #0
	bne	.L1
	add	r5, r5, fp, lsl #2
.L5:
	add	r0, sp, #68
	bl	BIT_reloadDStream
	ldr	r3, [r10]
	cmp	r0, r3
	ble	.L6
.L10:
	add	r0, sp, #68
	bl	BIT_endOfDStream
	cmp	r0, #0
	beq	.L7
	ldr	r1, [sp, #48]
	cmp	r1, r4
	sub	r4, r4, r1
	bhi	.L7
	add	r7, r5, r4
	cmp	r7, r6
	bhi	.L23
	cmp	r1, r5
	beq	.L12
	mov	r0, r5
	asr	r2, r4, #2
	bl	memcpy
.L12:
	ldr	r3, [sp, #24]
	sub	r1, r7, r3
	asr	fp, r1, #2
	b	.L1
.L7:
	ldr	r3, .L24+8
	ldr	r0, [r3]
	bl	ERROR
	mov	fp, r0
	b	.L1
.L23:
	ldr	r3, .L24+12
	ldr	r0, [r3]
	bl	ERROR
	mov	fp, r0
	b	.L1
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	BIT_DStream_completed
	.word	corruption_detected
	.word	dstSize_tooSmall
	.size	ZSTD_decompressSequences, .-ZSTD_decompressSequences
	.comm	dstSize_tooSmall,4,4
	.comm	corruption_detected,4,4
	.comm	BIT_DStream_completed,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
