	.file	"extr_zstd_v06.c_ZSTDv06_decompressSequences.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTDv06_decompressSequences, @function
ZSTDv06_decompressSequences:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r9, rcx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	rdx, QWORD PTR 40[rdi]
	mov	r15, QWORD PTR 56[rdi]
	mov	r10, QWORD PTR 48[rdi]
	mov	r14, QWORD PTR 32[rdi]
	mov	QWORD PTR 40[rsp], rsi
	mov	QWORD PTR 64[rsp], r8
	movsx	r12, DWORD PTR [rdi]
	mov	rsi, r10
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rcx
	xor	ecx, ecx
	mov	rcx, QWORD PTR 24[rdi]
	mov	QWORD PTR 88[rsp], r15
	mov	QWORD PTR 72[rsp], rdx
	mov	QWORD PTR 16[rsp], rcx
	mov	rcx, QWORD PTR 16[rdi]
	mov	QWORD PTR 24[rsp], rcx
	mov	rcx, QWORD PTR 8[rdi]
	lea	rdi, 84[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 232
	mov	QWORD PTR 40[rsp], rcx
	mov	rcx, r14
	push	r8
	.cfi_def_cfa_offset 240
	mov	r8d, DWORD PTR 4[rbx]
	mov	QWORD PTR 72[rsp], r9
	mov	QWORD PTR 64[rsp], r10
	call	ZSTDv06_decodeSeqHeaders@PLT
	mov	rdi, rax
	mov	r13, rax
	call	ZSTDv06_isError@PLT
	pop	rcx
	.cfi_def_cfa_offset 232
	pop	rsi
	.cfi_def_cfa_offset 224
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR 84[rsp]
	mov	DWORD PTR 4[rbx], 0
	lea	r12, [r15+r12*4]
	lea	rsi, [rax+rbp*4]
	mov	rbp, rax
	mov	QWORD PTR 8[rsp], rsi
	test	edx, edx
	jne	.L24
.L3:
	mov	rsi, QWORD PTR 88[rsp]
	mov	rdx, r12
	sub	rdx, rsi
	cmp	rsi, r12
	ja	.L22
	lea	rbx, 0[rbp+rdx]
	cmp	rbx, QWORD PTR 8[rsp]
	ja	.L25
	sar	rdx, 2
	mov	rdi, rbp
	call	memcpy@PLT
	mov	rax, rbx
	sub	rax, QWORD PTR 40[rsp]
	sar	rax, 2
	mov	r13, rax
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	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
.L24:
	.cfi_restore_state
	lea	r15, 96[rsp]
	xor	esi, esi
	mov	edx, 24
	mov	rdi, r15
	call	memset@PLT
	mov	r10, QWORD PTR 48[rsp]
	mov	r9, QWORD PTR 56[rsp]
	mov	rsi, QWORD PTR ZSTDv06_REP_INIT[rip]
	mov	rdx, QWORD PTR REPCODE_STARTVALUE[rip]
	test	rsi, rsi
	mov	QWORD PTR 96[rsp], rdx
	je	.L4
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdx, QWORD PTR REPCODE_STARTVALUE[rip]
.L5:
	mov	rcx, QWORD PTR 144[rsp]
	mov	QWORD PTR [rcx+rax*8], rdx
	add	rax, 1
	cmp	rax, rsi
	jne	.L27
.L4:
	mov	rdx, QWORD PTR 64[rsp]
	lea	rax, 0[0+r13*4]
	mov	QWORD PTR 48[rsp], r10
	lea	rbx, 128[rsp]
	lea	rsi, [r9+rax]
	mov	rdi, rbx
	sal	rdx, 2
	sub	rdx, rax
	sar	rdx, 2
	call	BITv06_initDStream@PLT
	mov	rdi, rax
	call	ERR_isError@PLT
	mov	r10, QWORD PTR 48[rsp]
	test	rax, rax
	jne	.L22
	mov	rdx, r10
	lea	rdi, 140[rsp]
	mov	rsi, rbx
	call	FSEv06_initDState@PLT
	mov	rdx, r14
	mov	rsi, rbx
	lea	r14, 88[rsp]
	lea	rdi, 136[rsp]
	call	FSEv06_initDState@PLT
	mov	rdx, QWORD PTR 72[rsp]
	lea	rdi, 132[rsp]
	mov	rsi, rbx
	call	FSEv06_initDState@PLT
	mov	rbp, QWORD PTR 40[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	mov	eax, DWORD PTR 84[rsp]
	test	eax, eax
	je	.L3
	sub	eax, 1
	mov	rsi, rbx
	mov	rdi, r15
	mov	DWORD PTR 84[rsp], eax
	call	ZSTDv06_decodeSequence@PLT
	push	QWORD PTR 32[rsp]
	.cfi_def_cfa_offset 232
	mov	rdi, rbp
	mov	rcx, r12
	push	QWORD PTR 120[rsp]
	.cfi_def_cfa_offset 240
	mov	rdx, r14
	push	QWORD PTR 120[rsp]
	.cfi_def_cfa_offset 248
	push	QWORD PTR 120[rsp]
	.cfi_def_cfa_offset 256
	mov	r9, QWORD PTR 56[rsp]
	mov	r8, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	call	ZSTDv06_execSequence@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 224
	mov	rdi, rax
	mov	r13, rax
	call	ZSTDv06_isError@PLT
	test	rax, rax
	jne	.L1
	lea	rbp, 0[rbp+r13*4]
.L8:
	mov	rdi, rbx
	call	BITv06_reloadDStream@PLT
	cmp	rax, QWORD PTR BITv06_DStream_completed[rip]
	jle	.L28
	mov	eax, DWORD PTR 84[rsp]
	test	eax, eax
	je	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR corruption_detected[rip]
	call	ERROR@PLT
	mov	r13, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR dstSize_tooSmall[rip]
	call	ERROR@PLT
	mov	r13, rax
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ZSTDv06_decompressSequences, .-ZSTDv06_decompressSequences
	.comm	dstSize_tooSmall,4,4
	.comm	corruption_detected,4,4
	.comm	ZSTDv06_REP_INIT,8,8
	.comm	REPCODE_STARTVALUE,8,8
	.comm	BITv06_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_v06.c_ZSTDv06_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	ZSTDv06_decompressSequences, %function
ZSTDv06_decompressSequences:
	@ args = 4, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r10, [r0, #28]
	ldr	r6, [r0, #24]
	ldr	fp, [r0, #20]
	ldr	r0, [r0, #4]
	sub	sp, sp, #100
	ldr	r5, [r4, #32]
	str	r0, [sp]
	ldr	r0, [sp, #136]
	ldr	ip, .L34
	str	r3, [sp, #4]
	str	r0, [sp, #8]
	str	r3, [sp, #40]
	ldr	ip, [ip]
	str	ip, [sp, #92]
	mov	ip,#0
	ldr	ip, [r4]
	mov	r3, fp
	str	ip, [sp, #36]
	ldr	ip, [r4, #16]
	mov	r8, r1
	str	ip, [sp, #28]
	ldr	ip, [r4, #12]
	mov	r1, r10
	str	ip, [sp, #32]
	ldr	ip, [r4, #8]
	mov	r7, r2
	add	r0, sp, #56
	mov	r2, r6
	str	ip, [sp, #44]
	str	r5, [sp, #52]
	bl	ZSTDv06_decodeSeqHeaders
	mov	r9, r0
	bl	ZSTDv06_isError
	cmp	r0, #0
	bne	.L1
	ldr	r2, [sp, #56]
	ldr	ip, [sp, #36]
	cmp	r2, #0
	str	r0, [r4, #4]
	add	r7, r8, r7, lsl #2
	moveq	r4, r8
	add	r5, r5, ip, lsl #2
	bne	.L28
.L3:
	ldr	r1, [sp, #52]
	cmp	r1, r5
	sub	r5, r5, r1
	bhi	.L26
	add	r6, r4, r5
	cmp	r6, r7
	bhi	.L29
	mov	r0, r4
	asr	r2, r5, #2
	bl	memcpy
	sub	r1, r6, r8
	asr	r9, r1, #2
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #92]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r9
	add	sp, sp, #100
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r2, .L34+4
	ldr	r4, .L34+8
	ldr	lr, [r2]
	ldr	r2, [r4]
	cmp	lr, #0
	str	r0, [sp, #64]
	str	r0, [sp, #68]
	str	r2, [sp, #60]
	bne	.L5
.L4:
	ldr	r3, [sp, #136]
	add	r0, sp, #72
	lsl	r2, r3, #2
	ldr	r3, [sp, #40]
	sub	r2, r2, r9, lsl #2
	asr	r2, r2, #2
	add	r1, r3, r9, lsl #2
	bl	BITv06_initDStream
	bl	ERR_isError
	cmp	r0, #0
	bne	.L26
	mov	r2, r10
	add	r1, sp, #72
	add	r0, sp, #84
	bl	FSEv06_initDState
	mov	r2, fp
	add	r1, sp, #72
	add	r0, sp, #80
	bl	FSEv06_initDState
	mov	r2, r6
	add	r1, sp, #72
	add	r0, sp, #76
	bl	FSEv06_initDState
	mov	r4, r8
	ldr	r10, .L34+12
	ldr	r9, [sp, #44]
	add	r6, sp, #60
	add	fp, sp, #52
	str	r8, [sp, #36]
	b	.L8
.L32:
	ldr	r3, [sp, #56]
	cmp	r3, #0
	beq	.L31
	sub	r3, r3, #1
	add	r1, sp, #72
	mov	r0, r6
	str	r3, [sp, #56]
	bl	ZSTDv06_decodeSequence
	ldm	r6, {r2, r3}
	ldr	r0, [sp, #32]
	ldr	r1, [sp, #68]
	str	r0, [sp, #16]
	ldr	r0, [sp, #28]
	stm	sp, {r1, fp}
	str	r0, [sp, #12]
	mov	r1, r7
	mov	r0, r4
	str	r9, [sp, #20]
	str	r5, [sp, #8]
	bl	ZSTDv06_execSequence
	mov	r8, r0
	bl	ZSTDv06_isError
	cmp	r0, #0
	bne	.L24
	add	r4, r4, r8, lsl #2
.L8:
	add	r0, sp, #72
	bl	BITv06_reloadDStream
	ldr	r3, [r10]
	cmp	r0, r3
	ble	.L32
	ldr	r3, [sp, #56]
	ldr	r8, [sp, #36]
	cmp	r3, #0
	beq	.L3
.L26:
	ldr	r3, .L34+16
	ldr	r0, [r3]
	bl	ERROR
	mov	r9, r0
	b	.L1
.L33:
	ldr	r2, [r4]
.L5:
	ldr	r3, [sp, #88]
	str	r2, [r3, r0, lsl #2]
	add	r0, r0, #1
	cmp	r0, lr
	bne	.L33
	b	.L4
.L29:
	ldr	r3, .L34+20
	ldr	r0, [r3]
	bl	ERROR
	mov	r9, r0
	b	.L1
.L31:
	ldr	r8, [sp, #36]
	b	.L3
.L24:
	mov	r9, r8
	b	.L1
.L30:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	ZSTDv06_REP_INIT
	.word	REPCODE_STARTVALUE
	.word	BITv06_DStream_completed
	.word	corruption_detected
	.word	dstSize_tooSmall
	.size	ZSTDv06_decompressSequences, .-ZSTDv06_decompressSequences
	.comm	dstSize_tooSmall,4,4
	.comm	corruption_detected,4,4
	.comm	ZSTDv06_REP_INIT,4,4
	.comm	REPCODE_STARTVALUE,4,4
	.comm	BITv06_DStream_completed,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
