	.file	"extr_zstd_opt.c_ZSTD_updateRep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ZSTD_updateRep, @function
ZSTD_updateRep:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR ZSTD_REP_NUM[rip]
	cmp	rax, rsi
	jg	.L2
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rsp]
	sub	rsi, QWORD PTR ZSTD_REP_MOVE[rip]
	mov	QWORD PTR 16[rax], rdx
	mov	rdx, QWORD PTR [rdi]
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdx
.L3:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	rax, QWORD PTR [rsp]
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	rsi, rdx
	test	rsi, rsi
	jle	.L4
	cmp	rax, rsi
	je	.L13
	mov	rdx, QWORD PTR [rdi+rsi*8]
.L6:
	cmp	rsi, 1
	je	.L7
	mov	rcx, QWORD PTR 8[rdi]
.L8:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 16[rax], rcx
	mov	rcx, QWORD PTR [rdi]
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r8, rsp
	mov	rsi, rdi
	mov	edx, 8
	mov	rdi, r8
	call	memcpy@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rcx, QWORD PTR 16[rdi]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR [rdi]
	lea	rdx, -1[rax]
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ZSTD_updateRep, .-ZSTD_updateRep
	.comm	ZSTD_REP_NUM,8,8
	.comm	ZSTD_REP_MOVE,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_opt.c_ZSTD_updateRep.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ZSTD_updateRep, %function
ZSTD_updateRep:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L13
	ldr	ip, .L13+4
	ldr	r3, [r3]
	sub	sp, sp, #12
	cmp	r3, r1
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bgt	.L2
	ldr	ip, [r0, #4]
	ldr	r3, [sp]
	ldr	r2, .L13+8
	str	ip, [r3, #8]
	ldr	ip, [r2]
	ldr	r2, [r0]
	sub	r1, r1, ip
	stm	r3, {r1, r2}
.L3:
	ldr	r3, .L13+4
	ldr	r0, [sp]
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #12
	@ sp needed
	ldr	pc, [sp], #4
.L2:
	add	r2, r1, r2
	cmp	r2, #0
	ble	.L4
	cmp	r3, r2
	ldreq	r1, [r0]
	ldrne	r1, [r0, r2, lsl #2]
	subeq	r1, r1, #1
	cmp	r2, #1
	ldrne	r2, [r0, #4]
	ldreq	r2, [r0, #8]
	ldr	r3, [sp]
	str	r2, [r3, #8]
	ldr	r2, [r0]
	stm	r3, {r1, r2}
	b	.L3
.L4:
	mov	r1, r0
	mov	r2, #4
	mov	r0, sp
	bl	memcpy
	b	.L3
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	ZSTD_REP_NUM
	.word	.LC0
	.word	ZSTD_REP_MOVE
	.size	ZSTD_updateRep, .-ZSTD_updateRep
	.comm	ZSTD_REP_NUM,4,4
	.comm	ZSTD_REP_MOVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
