	.file	"extr_lz4frame.c_LZ4F_compressEnd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	LZ4F_compressEnd
	.type	LZ4F_compressEnd, @function
LZ4F_compressEnd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	LZ4F_flush@PLT
	mov	rdi, rax
	mov	r12, rax
	call	LZ4F_isError@PLT
	test	rax, rax
	je	.L14
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	xor	edi, edi
	cmp	rbx, r12
	setnb	dil
	sub	rbx, r12
	call	assert@PLT
	cmp	rbx, 3
	jbe	.L12
	lea	r14, 0[rbp+r12*4]
	xor	esi, esi
	mov	rdi, r14
	lea	r12, 16[r14]
	call	LZ4F_writeLE32@PLT
	mov	rax, QWORD PTR LZ4F_contentChecksumEnabled[rip]
	cmp	QWORD PTR 8[r13], rax
	je	.L15
.L4:
	mov	rax, QWORD PTR 16[r13]
	mov	QWORD PTR 32[r13], 0
	mov	QWORD PTR 24[r13], 0
	test	rax, rax
	je	.L6
	cmp	rax, QWORD PTR 0[r13]
	jne	.L16
.L6:
	sub	r12, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	sar	r12, 2
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	lea	rdi, 40[r13]
	call	XXH32_digest@PLT
	mov	esi, eax
	cmp	rbx, 7
	ja	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR LZ4F_ERROR_dstMaxSize_tooSmall[rip]
.L11:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	err0r@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	edi, DWORD PTR LZ4F_ERROR_frameSize_wrong[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	lea	r12, 32[r14]
	call	LZ4F_writeLE32@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	LZ4F_compressEnd, .-LZ4F_compressEnd
	.comm	LZ4F_contentChecksumEnabled,8,8
	.comm	LZ4F_ERROR_frameSize_wrong,4,4
	.comm	LZ4F_ERROR_dstMaxSize_tooSmall,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_lz4frame.c_LZ4F_compressEnd.c"
	.text
	.align	2
	.global	LZ4F_compressEnd
	.syntax unified
	.arm
	.fpu softvfp
	.type	LZ4F_compressEnd, %function
LZ4F_compressEnd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r8, r2
	mov	r6, r0
	bl	LZ4F_flush
	mov	r4, r0
	bl	LZ4F_isError
	subs	r5, r0, #0
	beq	.L13
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	cmp	r8, r4
	movcc	r0, #0
	movcs	r0, #1
	sub	r8, r8, r4
	bl	assert
	cmp	r8, #3
	bls	.L11
	add	r4, r7, r4, lsl #2
	mov	r1, r5
	mov	r0, r4
	bl	LZ4F_writeLE32
	ldr	r3, .L16
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	add	r5, r4, #16
	cmp	r2, r3
	beq	.L14
.L4:
	mov	r3, #0
	ldr	r2, [r6, #8]
	str	r3, [r6, #16]
	cmp	r2, r3
	str	r3, [r6, #12]
	beq	.L6
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L15
.L6:
	sub	r4, r5, r7
	asr	r4, r4, #2
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	add	r0, r6, #20
	bl	XXH32_digest
	cmp	r8, #7
	mov	r1, r0
	bhi	.L5
.L11:
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L16+4
	ldr	r0, [r3]
	b	err0r
.L15:
	ldr	r3, .L16+8
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	err0r
.L5:
	mov	r0, r5
	bl	LZ4F_writeLE32
	add	r5, r4, #32
	b	.L4
.L17:
	.align	2
.L16:
	.word	LZ4F_contentChecksumEnabled
	.word	LZ4F_ERROR_dstMaxSize_tooSmall
	.word	LZ4F_ERROR_frameSize_wrong
	.size	LZ4F_compressEnd, .-LZ4F_compressEnd
	.comm	LZ4F_contentChecksumEnabled,4,4
	.comm	LZ4F_ERROR_frameSize_wrong,4,4
	.comm	LZ4F_ERROR_dstMaxSize_tooSmall,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
