	.file	"extr_zstd_compress.c_ZSTD_compressEnd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"end of frame : controlling src size"
	.align 8
.LC1:
	.string	"error : pledgedSrcSize = %u, while realSrcSize = %u"
	.text
	.p2align 4
	.globl	ZSTD_compressEnd
	.type	ZSTD_compressEnd, @function
ZSTD_compressEnd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r9d, 1
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 16
	.cfi_def_cfa_offset 56
	push	1
	.cfi_def_cfa_offset 64
	call	ZSTD_compressContinue_internal@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	FORWARD_IF_ERROR@PLT
	mov	rdx, r13
	lea	rsi, [r12+rbx]
	mov	rdi, rbp
	sub	rdx, rbx
	call	ZSTD_writeEpilogue@PLT
	mov	rdi, rax
	mov	r12, rax
	call	FORWARD_IF_ERROR@PLT
	cmp	QWORD PTR 16[rbp], 0
	pop	rax
	.cfi_def_cfa_offset 56
	mov	edi, 1
	pop	rdx
	.cfi_def_cfa_offset 48
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	setne	dil
.L2:
	call	assert@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rax, [rbx+r12]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR ZSTD_CONTENTSIZE_UNKNOWN[rip], -1
	sete	dil
	call	ZSTD_STATIC_ASSERT@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 4
	call	DEBUGLOG@PLT
	mov	r8, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 0[rbp]
	xor	edi, edi
	mov	esi, DWORD PTR srcSize_wrong[rip]
	lea	rdx, 1[r8]
	lea	ecx, -1[rax]
	cmp	rdx, rax
	lea	rdx, .LC1[rip]
	setne	dil
	call	RETURN_ERROR_IF@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rax, [rbx+r12]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ZSTD_compressEnd, .-ZSTD_compressEnd
	.comm	srcSize_wrong,4,4
	.comm	ZSTD_CONTENTSIZE_UNKNOWN,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_compressEnd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"end of frame : controlling src size\000"
	.align	2
.LC1:
	.ascii	"error : pledgedSrcSize = %u, while realSrcSize = %u"
	.ascii	"\000"
	.text
	.align	2
	.global	ZSTD_compressEnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_compressEnd, %function
ZSTD_compressEnd:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, #1
	sub	sp, sp, #16
	ldr	ip, [sp, #40]
	str	r5, [sp, #8]
	str	ip, [sp]
	str	r5, [sp, #4]
	mov	r7, r1
	mov	r4, r0
	mov	r8, r2
	bl	ZSTD_compressContinue_internal
	mov	r6, r0
	bl	FORWARD_IF_ERROR
	add	r1, r7, r6
	sub	r2, r8, r6
	mov	r0, r4
	bl	ZSTD_writeEpilogue
	mov	r7, r0
	bl	FORWARD_IF_ERROR
	ldr	r3, [r4, #8]
	cmp	r3, #0
	moveq	r0, r5
	beq	.L2
	ldr	r5, [r4]
	subs	r0, r5, #0
	movne	r0, #1
.L2:
	bl	assert
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L10
	add	r0, r6, r7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L11
	ldm	r3, {r0, r3}
	and	r0, r0, r3
	cmn	r0, #1
	movne	r0, #0
	moveq	r0, #1
	bl	ZSTD_STATIC_ASSERT
	ldr	r1, .L11+4
	mov	r0, #4
	bl	DEBUGLOG
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	add	r0, r2, #1
	ldr	r1, .L11+8
	str	r2, [sp]
	subs	r0, r0, r3
	movne	r0, #1
	ldr	r1, [r1]
	ldr	r2, .L11+12
	sub	r3, r3, #1
	bl	RETURN_ERROR_IF
	add	r0, r6, r7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	ZSTD_CONTENTSIZE_UNKNOWN
	.word	.LC0
	.word	srcSize_wrong
	.word	.LC1
	.size	ZSTD_compressEnd, .-ZSTD_compressEnd
	.comm	srcSize_wrong,4,4
	.comm	ZSTD_CONTENTSIZE_UNKNOWN,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
