	.file	"extr_zstd_v04.c_ZSTD_decompress_usingDict.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTD_decompress_usingDict, @function
ZSTD_decompress_usingDict:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	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, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR [rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	ZSTD_resetDCtx@PLT
	test	r12, r12
	je	.L2
	mov	rdx, QWORD PTR 112[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	ZSTD_decompress_insertDictionary@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, r14
	mov	QWORD PTR 0[rbp], rax
	sub	rax, QWORD PTR 24[rbp]
	sub	rcx, rax
	mov	QWORD PTR 24[rbp], r14
	mov	QWORD PTR 16[rbp], rcx
.L3:
	mov	rdx, QWORD PTR ZSTD_frameHeaderSize_min[rip]
	mov	rax, QWORD PTR ZSTD_blockHeaderSize[rip]
	add	rax, rdx
	cmp	rax, rbx
	ja	.L13
	mov	rdi, rbp
	mov	rsi, r13
	call	ZSTD_decodeFrameHeader_Part1@PLT
	mov	rdi, rax
	mov	r14, rax
	call	ZSTD_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR ZSTD_blockHeaderSize[rip]
	add	rax, r14
	cmp	rax, rbx
	ja	.L13
	mov	rdi, rbp
	mov	rdx, r14
	mov	rsi, r13
	call	ZSTD_decodeFrameHeader_Part2@PLT
	mov	rdi, rax
	mov	r12, rax
	call	ZSTD_isError@PLT
	test	rax, rax
	jne	.L17
	mov	r12, QWORD PTR [rsp]
	lea	rax, 0[r13+rbx*4]
	sub	rbx, r14
	mov	QWORD PTR 8[rsp], rax
	lea	rax, [r12+r15*4]
	lea	r15, 0[r13+r14*4]
	mov	QWORD PTR 24[rsp], rax
	lea	r13, 36[rsp]
.L15:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r15
	mov	rdx, r13
	sub	rsi, r15
	sar	rsi, 2
	call	ZSTD_getcBlockSize@PLT
	mov	rdi, rax
	mov	r14, rax
	call	ZSTD_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR ZSTD_blockHeaderSize[rip]
	sub	rbx, rax
	lea	r11, [r15+rax*4]
	cmp	r14, rbx
	ja	.L13
	mov	eax, DWORD PTR 36[rsp]
	cmp	eax, 130
	je	.L8
	cmp	eax, 131
	je	.L9
	cmp	eax, 129
	je	.L23
	mov	edi, DWORD PTR GENERIC[rip]
	call	ERROR@PLT
	mov	r14, rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 56
	.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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR srcSize_wrong[rip]
	call	ERROR@PLT
	mov	r14, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	QWORD PTR 24[rbp], rax
	mov	QWORD PTR 16[rbp], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r14, r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdx, r11
	mov	rcx, r14
	mov	rdi, r12
	mov	QWORD PTR 16[rsp], r11
	sub	rsi, r12
	sar	rsi, 2
	call	ZSTD_copyRawBlock@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r15, rax
.L12:
	mov	QWORD PTR 16[rsp], r11
	test	r14, r14
	je	.L14
	mov	rdi, r15
	call	ZSTD_isError@PLT
	test	rax, rax
	jne	.L18
	mov	r11, QWORD PTR 16[rsp]
	lea	r12, [r12+r15*4]
	sub	rbx, r14
	lea	r15, [r11+r14*4]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rcx, r11
	mov	r8, r14
	mov	rsi, r12
	mov	rdi, rbp
	mov	QWORD PTR 16[rsp], r11
	sub	rdx, r12
	sar	rdx, 2
	call	ZSTD_decompressBlock_internal@PLT
	mov	r11, QWORD PTR 16[rsp]
	mov	r15, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L8:
	test	rbx, rbx
	jne	.L13
	xor	r15d, r15d
	jmp	.L12
.L14:
	mov	rax, r12
	sub	rax, QWORD PTR [rsp]
	sar	rax, 2
	mov	r14, rax
	jmp	.L1
.L18:
	mov	r14, r15
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ZSTD_decompress_usingDict, .-ZSTD_decompress_usingDict
	.comm	srcSize_wrong,4,4
	.comm	ZSTD_frameHeaderSize_min,8,8
	.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_v04.c_ZSTD_decompress_usingDict.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_decompress_usingDict, %function
ZSTD_decompress_usingDict:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r4, [sp, #68]
	mov	r6, r3
	ldr	r3, .L26
	mov	r7, r1
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	ldr	fp, [sp, #64]
	bl	ZSTD_resetDCtx
	cmp	r4, #0
	beq	.L2
	ldr	r2, [sp, #72]
	mov	r1, r4
	mov	r0, r5
	bl	ZSTD_decompress_insertDictionary
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #12]
	str	r3, [r5]
	sub	r3, r3, r2
	sub	r3, r7, r3
	str	r3, [r5, #8]
	str	r7, [r5, #12]
.L3:
	ldr	r3, .L26+4
	ldr	r8, .L26+8
	ldr	r2, [r3]
	ldr	r3, [r8]
	add	r3, r2, r3
	cmp	r3, fp
	bhi	.L13
	mov	r1, r6
	mov	r0, r5
	bl	ZSTD_decodeFrameHeader_Part1
	mov	r4, r0
	bl	ZSTD_isError
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r8]
	add	r3, r4, r3
	cmp	r3, fp
	bhi	.L13
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	ZSTD_decodeFrameHeader_Part2
	mov	r9, r0
	bl	ZSTD_isError
	cmp	r0, #0
	movne	r4, r9
	bne	.L1
	mov	r9, r7
	add	r3, r7, r10, lsl #2
	str	r3, [sp, #8]
	add	r10, r6, fp, lsl #2
	str	r7, [sp, #12]
	add	r6, r6, r4, lsl #2
	sub	fp, fp, r4
.L15:
	sub	r1, r10, r6
	asr	r1, r1, #2
	add	r2, sp, #16
	mov	r0, r6
	bl	ZSTD_getcBlockSize
	mov	r4, r0
	bl	ZSTD_isError
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r8]
	sub	fp, fp, r3
	cmp	r4, fp
	add	r6, r6, r3, lsl #2
	bhi	.L13
	ldr	r3, [sp, #16]
	cmp	r3, #130
	beq	.L8
	cmp	r3, #131
	beq	.L9
	cmp	r3, #129
	beq	.L24
	ldr	r3, .L26+12
	ldr	r0, [r3]
	bl	ERROR
	mov	r4, r0
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L26+16
	ldr	r0, [r3]
	bl	ERROR
	mov	r4, r0
	b	.L1
.L2:
	str	r7, [r5]
	str	r7, [r5, #12]
	str	r7, [r5, #8]
	b	.L3
.L8:
	cmp	fp, #0
	bne	.L13
	mov	r7, fp
.L12:
	cmp	r4, #0
	beq	.L14
	mov	r0, r7
	bl	ZSTD_isError
	cmp	r0, #0
	bne	.L18
	add	r9, r9, r7, lsl #2
	add	r6, r6, r4, lsl #2
	sub	fp, fp, r4
	b	.L15
.L24:
	ldr	r3, [sp, #8]
	mov	r2, r6
	sub	r1, r3, r9
	mov	r0, r9
	mov	r3, r4
	asr	r1, r1, #2
	bl	ZSTD_copyRawBlock
	mov	r7, r0
	b	.L12
.L9:
	ldr	r3, [sp, #8]
	mov	r1, r9
	sub	r2, r3, r9
	mov	r0, r5
	mov	r3, r6
	str	r4, [sp]
	asr	r2, r2, #2
	bl	ZSTD_decompressBlock_internal
	mov	r7, r0
	b	.L12
.L14:
	ldr	r7, [sp, #12]
	sub	r4, r9, r7
	asr	r4, r4, #2
	b	.L1
.L18:
	mov	r4, r7
	b	.L1
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	ZSTD_frameHeaderSize_min
	.word	ZSTD_blockHeaderSize
	.word	GENERIC
	.word	srcSize_wrong
	.size	ZSTD_decompress_usingDict, .-ZSTD_decompress_usingDict
	.comm	srcSize_wrong,4,4
	.comm	ZSTD_frameHeaderSize_min,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
