	.file	"extr_zstd_compress.c_ZSTD_compressBlock_internal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ZSTD_compressBlock_internal (dstCapacity=%u, dictLimit=%u, nextToUpdate=%u)"
	.text
	.p2align 4
	.type	ZSTD_compressBlock_internal, @function
ZSTD_compressBlock_internal:
.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
	lea	rsi, .LC0[rip]
	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, r8
	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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r8d, DWORD PTR 16[rdi]
	mov	ecx, DWORD PTR 24[rdi]
	mov	edi, 5
	mov	QWORD PTR 8[rsp], r9
	call	DEBUGLOG@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, rbp
	call	ZSTD_buildSeqStore@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	FORWARD_IF_ERROR@PLT
	cmp	QWORD PTR ZSTDbss_noCompress[rip], rbx
	je	.L27
	cmp	QWORD PTR 56[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR 36[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	lea	rcx, 44[rbp]
	lea	rdi, 48[rbp]
	mov	rsi, QWORD PTR 0[rbp]
	mov	r9, r15
	mov	r8, r14
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR HUF_WORKSPACE_SIZE[rip]
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 40[rbp]
	push	rax
	.cfi_def_cfa_offset 104
	push	r12
	.cfi_def_cfa_offset 112
	call	ZSTD_compressSequences@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 8[rsp], 0
	mov	rbx, rax
	je	.L6
	mov	eax, DWORD PTR 32[rbp]
	test	eax, eax
	jne	.L6
	cmp	rbx, 24
	jbe	.L29
.L6:
	mov	rdi, rbx
	call	ZSTD_isError@PLT
	test	eax, eax
	jne	.L9
	cmp	rbx, 1
	jbe	.L9
	mov	rdx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rbp], rdx
	mov	QWORD PTR 0[rbp], rax
.L3:
	mov	rcx, QWORD PTR FSE_repeat_valid[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L1
	mov	rdx, QWORD PTR FSE_repeat_check[rip]
	mov	QWORD PTR [rax], rdx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, rbx
	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
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	xor	ebx, ebx
	call	ZSTD_copyBlockSequences@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	xor	edi, edi
	xor	ebx, ebx
	call	ZSTD_isError@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rsi, r12
	mov	rdi, r13
	call	ZSTD_isRLE@PLT
	test	rax, rax
	je	.L6
	mov	eax, DWORD PTR 0[r13]
	mov	edi, 1
	mov	ebx, 1
	mov	DWORD PTR [r14], eax
	call	ZSTD_isError@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ZSTD_compressBlock_internal, .-ZSTD_compressBlock_internal
	.comm	ZSTDbss_noCompress,8,8
	.comm	HUF_WORKSPACE_SIZE,4,4
	.comm	FSE_repeat_valid,8,8
	.comm	FSE_repeat_check,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_compress.c_ZSTD_compressBlock_internal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ZSTD_compressBlock_internal (dstCapacity=%u, dictLi"
	.ascii	"mit=%u, nextToUpdate=%u)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_compressBlock_internal, %function
ZSTD_compressBlock_internal:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	mov	r6, r3
	mov	r7, r1
	ldr	r1, [r0, #8]
	sub	sp, sp, #28
	str	r1, [sp]
	ldr	r9, [sp, #56]
	ldr	r3, [r0, #12]
	ldr	r1, .L22
	mov	r0, #5
	mov	r8, r2
	bl	DEBUGLOG
	mov	r2, r9
	mov	r1, r6
	mov	r0, r4
	bl	ZSTD_buildSeqStore
	mov	r5, r0
	bl	FORWARD_IF_ERROR
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L19
	ldr	r3, [r4, #36]
	mov	r0, r4
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L22+8
	ldr	r2, [r4, #20]
	ldr	ip, [r3]
	ldr	r1, [r0], #32
	stmib	sp, {r8, r9}
	ldr	r3, [r4, #24]
	str	r7, [sp]
	str	r3, [sp, #12]
	str	ip, [sp, #16]
	str	r2, [sp, #20]
	add	r3, r4, #28
	ldr	r2, [r4, #4]
	bl	ZSTD_compressSequences
	ldr	r3, [sp, #60]
	mov	r5, r0
	cmp	r3, #0
	bne	.L21
.L6:
	mov	r0, r5
	bl	ZSTD_isError
	cmp	r5, #1
	movls	r3, #0
	movhi	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	ldreq	r3, [r4]
	ldmne	r4, {r2, r3}
	strne	r2, [r4, #4]
	strne	r3, [r4]
.L3:
	mov	r0, r5
	ldr	r2, .L22+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	ldreq	r2, .L22+16
	ldreq	r2, [r2]
	streq	r2, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L21:
	ldr	r3, [r4, #16]
	cmp	r0, #24
	cmpls	r3, #0
	bne	.L6
	mov	r1, r9
	mov	r0, r6
	bl	ZSTD_isRLE
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r6]
	mov	r0, #1
	str	r3, [r7]
	bl	ZSTD_isError
	mov	r5, #1
	ldr	r3, [r4]
	b	.L3
.L20:
	mov	r5, #0
	bl	ZSTD_copyBlockSequences
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L19:
	mov	r0, #0
	bl	ZSTD_isError
	mov	r5, #0
	ldr	r3, [r4]
	b	.L3
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	ZSTDbss_noCompress
	.word	HUF_WORKSPACE_SIZE
	.word	FSE_repeat_valid
	.word	FSE_repeat_check
	.size	ZSTD_compressBlock_internal, .-ZSTD_compressBlock_internal
	.comm	ZSTDbss_noCompress,4,4
	.comm	HUF_WORKSPACE_SIZE,4,4
	.comm	FSE_repeat_valid,4,4
	.comm	FSE_repeat_check,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
