	.file	"extr_zstd_v07.c_HUFv07_decompress4X4_usingDTable_internal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	HUFv07_decompress4X4_usingDTable_internal, @function
HUFv07_decompress4X4_usingDTable_internal:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR [rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	cmp	rcx, 9
	jbe	.L16
	mov	rbx, rdx
	mov	rbp, rdi
	mov	rdi, rdx
	mov	r15, rcx
	call	MEM_readLE16@PLT
	lea	rdi, 8[rbx]
	lea	r12, -6[r15]
	mov	r13, rax
	call	MEM_readLE16@PLT
	sub	r12, r13
	lea	rdi, 16[rbx]
	mov	r14, rax
	call	MEM_readLE16@PLT
	sub	r12, r14
	mov	rdi, QWORD PTR [rsp]
	sub	r12, rax
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 24[rsp], r12
	call	HUFv07_getDTableDesc@PLT
	mov	DWORD PTR 36[rsp], eax
	cmp	r15, r12
	jb	.L16
	lea	rcx, 24[rbx]
	lea	rbx, 72[rsp]
	mov	rdx, r13
	mov	rdi, rbx
	mov	rsi, rcx
	mov	QWORD PTR 40[rsp], rcx
	call	BITv07_initDStream@PLT
	mov	rdi, rax
	mov	r12, rax
	call	HUFv07_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rcx, QWORD PTR 40[rsp]
	mov	rdx, r14
	lea	rcx, [rcx+r13*4]
	lea	r13, 76[rsp]
	mov	rdi, r13
	mov	rsi, rcx
	mov	QWORD PTR 40[rsp], rcx
	call	BITv07_initDStream@PLT
	mov	rdi, rax
	mov	r12, rax
	call	HUFv07_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rcx, QWORD PTR 40[rsp]
	mov	r15, QWORD PTR 16[rsp]
	lea	rcx, [rcx+r14*4]
	lea	r14, 80[rsp]
	mov	rdx, r15
	mov	rdi, r14
	mov	rsi, rcx
	mov	QWORD PTR 16[rsp], rcx
	call	BITv07_initDStream@PLT
	mov	rdi, rax
	mov	r12, rax
	call	HUFv07_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	lea	rsi, [rcx+r15*4]
	lea	r15, 84[rsp]
	mov	rdi, r15
	call	BITv07_initDStream@PLT
	mov	rdi, rax
	mov	r12, rax
	call	HUFv07_isError@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, rbx
	lea	rdx, 0[rbp+rax*4]
	add	rax, 3
	and	rax, -4
	mov	QWORD PTR 56[rsp], rdx
	lea	rdx, 0[rbp+rax]
	mov	QWORD PTR 16[rsp], rdx
	add	rdx, rax
	add	rax, rdx
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 48[rsp], rax
	call	BITv07_reloadDStream@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	BITv07_reloadDStream@PLT
	mov	rdi, r14
	or	r12d, eax
	call	BITv07_reloadDStream@PLT
	mov	rdi, r15
	or	r12d, eax
	call	BITv07_reloadDStream@PLT
	or	r12d, eax
	cmp	r12d, DWORD PTR BITv07_DStream_unfinished[rip]
	jne	.L9
	mov	rax, QWORD PTR 56[rsp]
	mov	rdx, QWORD PTR 48[rsp]
	sub	rax, 28
	cmp	rdx, rax
	jnb	.L9
	mov	r12, rdx
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, rbx
	mov	rdi, rbp
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, r13
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rsi, r15
	mov	rdi, r12
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	HUFv07_DECODE_SYMBOLX4_1@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, r13
	call	HUFv07_DECODE_SYMBOLX4_1@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	HUFv07_DECODE_SYMBOLX4_1@PLT
	mov	rsi, r15
	mov	rdi, r12
	call	HUFv07_DECODE_SYMBOLX4_1@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, r13
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rsi, r15
	mov	rdi, r12
	call	HUFv07_DECODE_SYMBOLX4_2@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	HUFv07_DECODE_SYMBOLX4_0@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	rsi, r13
	call	HUFv07_DECODE_SYMBOLX4_0@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r14
	call	HUFv07_DECODE_SYMBOLX4_0@PLT
	mov	rsi, r15
	mov	rdi, r12
	call	HUFv07_DECODE_SYMBOLX4_0@PLT
	mov	rdi, rbx
	call	BITv07_reloadDStream@PLT
	mov	rdi, r13
	mov	DWORD PTR 40[rsp], eax
	call	BITv07_reloadDStream@PLT
	mov	rdi, r14
	or	eax, DWORD PTR 40[rsp]
	mov	DWORD PTR 40[rsp], eax
	call	BITv07_reloadDStream@PLT
	mov	rdi, r15
	or	eax, DWORD PTR 40[rsp]
	mov	DWORD PTR 40[rsp], eax
	call	BITv07_reloadDStream@PLT
	or	eax, DWORD PTR 40[rsp]
	cmp	DWORD PTR BITv07_DStream_unfinished[rip], eax
	je	.L10
.L9:
	cmp	rbp, QWORD PTR 16[rsp]
	ja	.L16
	mov	rdx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 24[rsp]
	cmp	rdx, rax
	ja	.L16
	mov	rcx, QWORD PTR 48[rsp]
	cmp	rax, rcx
	ja	.L16
	mov	r12, QWORD PTR [rsp]
	mov	r8d, DWORD PTR 36[rsp]
	mov	rsi, rbx
	mov	rdi, rbp
	add	r12, 4
	mov	rcx, r12
	call	HUFv07_decodeStreamX4@PLT
	mov	rbp, QWORD PTR 24[rsp]
	mov	rcx, r12
	mov	rsi, r13
	mov	r8d, DWORD PTR 36[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	rdx, rbp
	call	HUFv07_decodeStreamX4@PLT
	mov	r8d, DWORD PTR 36[rsp]
	mov	rcx, r12
	mov	rsi, r14
	mov	rdx, QWORD PTR 48[rsp]
	mov	rdi, rbp
	call	HUFv07_decodeStreamX4@PLT
	mov	r8d, DWORD PTR 36[rsp]
	mov	rcx, r12
	mov	rsi, r15
	mov	rdx, QWORD PTR 56[rsp]
	mov	rdi, QWORD PTR 48[rsp]
	call	HUFv07_decodeStreamX4@PLT
	mov	rdi, rbx
	call	BITv07_endOfDStream@PLT
	mov	rdi, r13
	mov	ebx, eax
	call	BITv07_endOfDStream@PLT
	mov	rdi, r14
	and	ebx, eax
	call	BITv07_endOfDStream@PLT
	mov	rdi, r15
	and	ebx, eax
	call	BITv07_endOfDStream@PLT
	mov	r12, QWORD PTR 8[rsp]
	test	ebx, eax
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR corruption_detected[rip]
	call	ERROR@PLT
	mov	r12, rax
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HUFv07_decompress4X4_usingDTable_internal, .-HUFv07_decompress4X4_usingDTable_internal
	.comm	corruption_detected,4,4
	.comm	BITv07_DStream_unfinished,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_v07.c_HUFv07_decompress4X4_usingDTable_internal.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HUFv07_decompress4X4_usingDTable_internal, %function
HUFv07_decompress4X4_usingDTable_internal:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	cmp	r3, #9
	sub	sp, sp, #52
	mov	r8, r3
	ldr	r3, .L19
	str	r1, [sp, #12]
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	fp, [sp, #88]
	bls	.L16
	mov	r6, r0
	mov	r0, r2
	mov	r4, r2
	bl	MEM_readLE16
	mov	r7, r0
	add	r0, r4, #8
	bl	MEM_readLE16
	mov	r9, r0
	add	r0, r4, #16
	bl	MEM_readLE16
	mov	r10, r0
	mov	r0, fp
	bl	HUFv07_getDTableDesc
	sub	r5, r8, #6
	sub	r5, r5, r7
	sub	r5, r5, r9
	sub	r5, r5, r10
	cmp	r8, r5
	str	r0, [sp, #16]
	bcc	.L16
	add	r1, r4, #24
	mov	r2, r7
	add	r0, sp, #28
	str	r1, [sp, #20]
	bl	BITv07_initDStream
	mov	r4, r0
	bl	HUFv07_isError
	cmp	r0, #0
	bne	.L1
	ldr	r1, [sp, #20]
	mov	r2, r9
	add	r7, r1, r7, lsl #2
	mov	r1, r7
	add	r0, sp, #32
	bl	BITv07_initDStream
	mov	r4, r0
	bl	HUFv07_isError
	cmp	r0, #0
	bne	.L1
	add	r7, r7, r9, lsl #2
	mov	r1, r7
	mov	r2, r10
	add	r0, sp, #36
	bl	BITv07_initDStream
	mov	r4, r0
	bl	HUFv07_isError
	cmp	r0, #0
	bne	.L1
	mov	r2, r5
	add	r1, r7, r10, lsl #2
	add	r0, sp, #40
	bl	BITv07_initDStream
	mov	r4, r0
	bl	HUFv07_isError
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #12]
	add	r0, sp, #28
	add	r4, r3, #3
	bl	BITv07_reloadDStream
	mov	r9, r0
	add	r0, sp, #32
	bl	BITv07_reloadDStream
	mov	r3, r0
	add	r0, sp, #36
	orr	r9, r9, r3
	bl	BITv07_reloadDStream
	mov	r10, r0
	add	r0, sp, #40
	bl	BITv07_reloadDStream
	orr	r8, r9, r10
	ldr	r9, .L19+4
	bic	r4, r4, #3
	ldr	r2, [r9]
	orr	r0, r8, r0
	ldr	r3, [sp, #12]
	add	r5, r6, r4, lsl #1
	cmp	r0, r2
	add	r7, r5, r4
	add	r8, r6, r3, lsl #2
	add	r4, r6, r4
	bne	.L9
	sub	r2, r8, #28
	cmp	r7, r2
	bcs	.L9
.L10:
	add	r1, sp, #28
	mov	r0, r6
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #32
	mov	r0, r4
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #36
	mov	r0, r5
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #40
	mov	r0, r7
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #28
	mov	r0, r6
	bl	HUFv07_DECODE_SYMBOLX4_1
	add	r1, sp, #32
	mov	r0, r4
	bl	HUFv07_DECODE_SYMBOLX4_1
	add	r1, sp, #36
	mov	r0, r5
	bl	HUFv07_DECODE_SYMBOLX4_1
	add	r1, sp, #40
	mov	r0, r7
	bl	HUFv07_DECODE_SYMBOLX4_1
	add	r1, sp, #28
	mov	r0, r6
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #32
	mov	r0, r4
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #36
	mov	r0, r5
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #40
	mov	r0, r7
	bl	HUFv07_DECODE_SYMBOLX4_2
	add	r1, sp, #28
	mov	r0, r6
	bl	HUFv07_DECODE_SYMBOLX4_0
	add	r1, sp, #32
	mov	r0, r4
	bl	HUFv07_DECODE_SYMBOLX4_0
	add	r1, sp, #36
	mov	r0, r5
	bl	HUFv07_DECODE_SYMBOLX4_0
	add	r1, sp, #40
	mov	r0, r7
	bl	HUFv07_DECODE_SYMBOLX4_0
	add	r0, sp, #28
	bl	BITv07_reloadDStream
	mov	r10, r0
	add	r0, sp, #32
	bl	BITv07_reloadDStream
	mov	r2, r0
	add	r0, sp, #36
	orr	r10, r10, r2
	bl	BITv07_reloadDStream
	mov	r2, r0
	add	r0, sp, #40
	orr	r10, r10, r2
	bl	BITv07_reloadDStream
	ldr	r2, [r9]
	orr	r10, r10, r0
	cmp	r2, r10
	beq	.L10
.L9:
	cmp	r6, r4
	bhi	.L16
	cmp	r4, r5
	bhi	.L16
	cmp	r5, r7
	bhi	.L16
	ldr	r9, [sp, #16]
	add	fp, fp, #4
	mov	r2, r4
	mov	r3, fp
	add	r1, sp, #28
	mov	r0, r6
	str	r9, [sp]
	bl	HUFv07_decodeStreamX4
	mov	r0, r4
	mov	r3, fp
	mov	r2, r5
	add	r1, sp, #32
	str	r9, [sp]
	bl	HUFv07_decodeStreamX4
	mov	r3, fp
	mov	r2, r7
	add	r1, sp, #36
	mov	r0, r5
	str	r9, [sp]
	bl	HUFv07_decodeStreamX4
	mov	r2, r8
	add	r1, sp, #40
	mov	r3, fp
	mov	r0, r7
	str	r9, [sp]
	bl	HUFv07_decodeStreamX4
	add	r0, sp, #28
	bl	BITv07_endOfDStream
	mov	r4, r0
	add	r0, sp, #32
	bl	BITv07_endOfDStream
	mov	r3, r0
	add	r0, sp, #36
	and	r4, r4, r3
	bl	BITv07_endOfDStream
	mov	r3, r0
	add	r0, sp, #40
	and	r4, r4, r3
	bl	BITv07_endOfDStream
	tst	r4, r0
	ldrne	r4, [sp, #12]
	bne	.L1
.L16:
	ldr	r3, .L19+8
	ldr	r0, [r3]
	bl	ERROR
	mov	r4, r0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	BITv07_DStream_unfinished
	.word	corruption_detected
	.size	HUFv07_decompress4X4_usingDTable_internal, .-HUFv07_decompress4X4_usingDTable_internal
	.comm	corruption_detected,4,4
	.comm	BITv07_DStream_unfinished,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
