	.file	"extr_lz4hc.c_LZ4_compress_HC_extStateHC_fastReset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	LZ4_compress_HC_extStateHC_fastReset
	.type	LZ4_compress_HC_extStateHC_fastReset, @function
LZ4_compress_HC_extStateHC_fastReset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, r8d
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	DWORD PTR 12[rsp], ecx
	call	LZ4_streamHC_t_alignment@PLT
	xor	edi, edi
	sub	eax, 1
	cdqe
	test	rbp, rax
	sete	dil
	call	assert@PLT
	xor	eax, eax
	test	bpl, 7
	je	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, rbp
	call	LZ4_resetStreamHC_fast@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	LZ4HC_init_internal@PLT
	mov	edi, DWORD PTR 12[rsp]
	call	LZ4_compressBound@PLT
	lea	rcx, 12[rsp]
	cmp	eax, ebx
	jle	.L3
	mov	eax, DWORD PTR limitedOutput[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
.L6:
	push	rax
	.cfi_def_cfa_offset 80
	mov	rdx, r14
	mov	r9d, r13d
	mov	r8d, ebx
	mov	rsi, r12
	mov	rdi, rbp
	call	LZ4HC_compress_generic@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR notLimited[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	LZ4_compress_HC_extStateHC_fastReset, .-LZ4_compress_HC_extStateHC_fastReset
	.comm	notLimited,4,4
	.comm	limitedOutput,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_lz4hc.c_LZ4_compress_HC_extStateHC_fastReset.c"
	.text
	.align	2
	.global	LZ4_compress_HC_extStateHC_fastReset
	.syntax unified
	.arm
	.fpu softvfp
	.type	LZ4_compress_HC_extStateHC_fastReset, %function
LZ4_compress_HC_extStateHC_fastReset:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #24
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	str	r3, [sp, #20]
	bl	LZ4_streamHC_t_alignment
	sub	r0, r0, #1
	tst	r4, r0
	moveq	r0, #1
	movne	r0, #0
	bl	assert
	tst	r4, #3
	movne	r0, #0
	bne	.L1
	ldr	r1, [sp, #44]
	mov	r0, r4
	bl	LZ4_resetStreamHC_fast
	mov	r1, r6
	mov	r0, r4
	bl	LZ4HC_init_internal
	ldr	r0, [sp, #20]
	bl	LZ4_compressBound
	ldr	r3, [sp, #40]
	ldr	r2, [sp, #44]
	cmp	r0, r3
	ldrgt	r3, .L8
	ldrle	r3, .L8+4
	str	r2, [sp, #4]
	ldr	r3, [r3]
	ldr	r2, [sp, #40]
	str	r3, [sp, #8]
	str	r2, [sp]
	mov	r1, r6
	mov	r2, r5
	mov	r0, r4
	add	r3, sp, #20
	bl	LZ4HC_compress_generic
.L1:
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	limitedOutput
	.word	notLimited
	.size	LZ4_compress_HC_extStateHC_fastReset, .-LZ4_compress_HC_extStateHC_fastReset
	.comm	notLimited,4,4
	.comm	limitedOutput,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
