	.file	"extr_zstd_compress.c_ZSTD_compressStream2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ZSTD_compressStream2, endOp=%u "
	.align 8
.LC1:
	.string	"ZSTD_compressStream2 : transparent init stage"
	.align 8
.LC2:
	.string	"completed ZSTD_compressStream2"
	.text
	.p2align 4
	.globl	ZSTD_compressStream2
	.type	ZSTD_compressStream2, @function
ZSTD_compressStream2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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, rdx
	mov	edx, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 5
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	DEBUGLOG@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR GENERIC[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	setg	dil
	call	RETURN_ERROR_IF@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	esi, DWORD PTR GENERIC[rip]
	xor	edi, edi
	cmp	QWORD PTR [r12], rax
	setg	dil
	call	RETURN_ERROR_IF@PLT
	xor	edi, edi
	test	rbx, rbx
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR zcss_init[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L10
.L2:
	mov	rcx, r13
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, rbx
	call	ZSTD_compressStream_generic@PLT
	mov	rdi, rax
	call	FORWARD_IF_ERROR@PLT
	lea	rsi, .LC2[rip]
	mov	edi, 5
	xor	eax, eax
	call	DEBUGLOG@PLT
	mov	rax, QWORD PTR 16[rbx]
	sub	rax, QWORD PTR 24[rbx]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR 88[rbx]
	mov	rdi, rbx
	mov	r14, QWORD PTR 48[rbx]
	mov	r15, QWORD PTR 56[rbx]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 92[rbx]
	mov	DWORD PTR 12[rsp], eax
	mov	rax, QWORD PTR 96[rbx]
	mov	QWORD PTR [rsp], rax
	call	ZSTD_initLocalDict@PLT
	mov	rdi, rax
	call	FORWARD_IF_ERROR@PLT
	lea	rdi, 88[rbx]
	xor	esi, esi
	mov	edx, 16
	call	memset@PLT
	cmp	QWORD PTR [rsp], 0
	mov	edi, 1
	je	.L3
	xor	edi, edi
	cmp	QWORD PTR 72[rbx], 0
	sete	dil
.L3:
	call	assert@PLT
	xor	eax, eax
	mov	edi, 4
	lea	rsi, .LC1[rip]
	call	DEBUGLOG@PLT
	cmp	QWORD PTR ZSTD_e_end[rip], r13
	je	.L4
	mov	rax, QWORD PTR 8[rbx]
	lea	rsi, -1[rax]
.L5:
	xor	edx, edx
	lea	rdi, 48[rbx]
	call	ZSTD_getCParamsFromCCtxParams@PLT
	mov	rdx, r15
	mov	r8, QWORD PTR 72[rbx]
	mov	rdi, rbx
	movabs	rcx, -4294967296
	mov	eax, eax
	and	rdx, rcx
	or	rdx, rax
	mov	rax, QWORD PTR 8[rbx]
	push	rdx
	.cfi_def_cfa_offset 88
	push	r14
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR 24[rsp]
	lea	r9, -1[rax]
	mov	edx, DWORD PTR 28[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	call	ZSTD_resetCStream_internal@PLT
	mov	rdi, rax
	call	FORWARD_IF_ERROR@PLT
	mov	rax, QWORD PTR zcss_load[rip]
	xor	edi, edi
	cmp	QWORD PTR [rbx], rax
	sete	dil
	call	assert@PLT
	xor	edi, edi
	cmp	QWORD PTR 64[rbx], 0
	sete	dil
	call	assert@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rsi, QWORD PTR 8[r12]
	lea	rax, 1[rsi]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ZSTD_compressStream2, .-ZSTD_compressStream2
	.comm	zcss_load,8,8
	.comm	zcss_init,8,8
	.comm	memory_allocation,4,4
	.comm	ZSTD_reset_session_only,4,4
	.comm	ZSTD_e_flush,8,8
	.comm	ZSTD_e_end,8,8
	.comm	ZSTD_e_continue,8,8
	.comm	ZSTD_dct_rawContent,4,4
	.comm	ZSTDMT_JOBSIZE_MIN,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_compress.c_ZSTD_compressStream2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ZSTD_compressStream2, endOp=%u \000"
	.align	2
.LC1:
	.ascii	"ZSTD_compressStream2 : transparent init stage\000"
	.align	2
.LC2:
	.ascii	"completed ZSTD_compressStream2\000"
	.text
	.align	2
	.global	ZSTD_compressStream2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_compressStream2, %function
ZSTD_compressStream2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	r5, r2
	mov	r4, r0
	mov	r2, r3
	sub	sp, sp, #36
	ldr	r1, .L10
	ldr	r8, .L10+4
	mov	r0, #5
	mov	r7, r3
	bl	DEBUGLOG
	ldm	r6, {r0, r3}
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, [r8]
	bl	RETURN_ERROR_IF
	ldm	r5, {r0, r3}
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, [r8]
	bl	RETURN_ERROR_IF
	subs	r0, r4, #0
	movne	r0, #1
	bl	assert
	ldr	r3, .L10+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L9
.L2:
	mov	r3, r7
	mov	r2, r5
	mov	r1, r6
	mov	r0, r4
	bl	ZSTD_compressStream_generic
	bl	FORWARD_IF_ERROR
	ldr	r1, .L10+12
	mov	r0, #5
	bl	DEBUGLOG
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	sub	r0, r0, r3
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, [r4, #44]
	add	r9, r4, #24
	add	r8, sp, #24
	ldm	r9, {r0, r1}
	stm	r8, {r0, r1}
	mov	r0, r4
	str	r3, [sp, #20]
	ldr	r10, [r4, #52]
	ldr	fp, [r4, #48]
	bl	ZSTD_initLocalDict
	bl	FORWARD_IF_ERROR
	mov	r2, #12
	mov	r1, #0
	add	r0, r4, #44
	bl	memset
	cmp	r10, #0
	ldrne	r0, [r4, #36]
	moveq	r0, #1
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldr	r1, .L10+16
	mov	r0, #4
	bl	DEBUGLOG
	ldr	r3, .L10+20
	mov	r0, r9
	ldr	r3, [r3]
	mov	r2, #0
	cmp	r3, r7
	ldreq	r1, [r5, #4]
	ldrne	r1, [r4, #4]
	addeq	r3, r1, #1
	subne	r1, r1, #1
	streq	r3, [r4, #4]
	bl	ZSTD_getCParamsFromCCtxParams
	ldr	ip, [r4, #4]
	ldr	lr, [r4, #36]
	sub	ip, ip, #1
	str	r0, [sp, #28]
	ldm	r8, {r0, r1}
	mov	r2, fp
	stmib	sp, {r0, r1}
	ldr	r3, [sp, #20]
	mov	r1, r10
	str	ip, [sp, #12]
	str	lr, [sp]
	mov	r0, r4
	bl	ZSTD_resetCStream_internal
	bl	FORWARD_IF_ERROR
	ldr	r3, .L10+24
	ldr	r0, [r4]
	ldr	r3, [r3]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r0, [r4, #32]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	b	.L2
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	GENERIC
	.word	zcss_init
	.word	.LC2
	.word	.LC1
	.word	ZSTD_e_end
	.word	zcss_load
	.size	ZSTD_compressStream2, .-ZSTD_compressStream2
	.comm	zcss_load,4,4
	.comm	zcss_init,4,4
	.comm	memory_allocation,4,4
	.comm	ZSTD_reset_session_only,4,4
	.comm	ZSTD_e_flush,4,4
	.comm	ZSTD_e_end,4,4
	.comm	ZSTD_e_continue,4,4
	.comm	ZSTD_dct_rawContent,4,4
	.comm	ZSTDMT_JOBSIZE_MIN,4,4
	.comm	GENERIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
