	.file	"extr_zstd_v02.c_HUF_fillDTableX4Level2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	HUF_fillDTableX4Level2, @function
HUF_fillDTableX4Level2:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, r8d
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	rsi, rcx
	sub	rsp, 104
	mov	QWORD PTR -96[rbp], rdi
	mov	r15, QWORD PTR 16[rbp]
	mov	QWORD PTR -104[rbp], rdx
	mov	rdi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR HUF_ABSOLUTEMAX_TABLELOG[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	lea	rax, 15[0+rax*8]
	mov	rcx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rcx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L25
.L4:
	mov	rdi, rsp
	sal	edx, 3
	mov	QWORD PTR -88[rbp], r9
	mov	QWORD PTR -136[rbp], rdi
	call	memcpy@PLT
	cmp	r13d, 1
	mov	r9, QWORD PTR -88[rbp]
	jg	.L5
.L8:
	test	r15, r15
	je	.L1
	sal	r15, 4
	lea	r13, -64[rbp]
	mov	DWORD PTR -116[rbp], ebx
	mov	r14, r9
	lea	rax, [r9+r15]
	mov	QWORD PTR -128[rbp], r13
	mov	QWORD PTR -112[rbp], rax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 8[r14]
	mov	r13, QWORD PTR 24[rbp]
	mov	r9d, 1
	mov	rdi, QWORD PTR -136[rbp]
	mov	ecx, DWORD PTR -116[rbp]
	sub	r13, rax
	mov	rsi, QWORD PTR [r14]
	lea	r15, [rdi+rax*8]
	sub	ecx, r13d
	mov	rdi, QWORD PTR -128[rbp]
	mov	r12, QWORD PTR [r15]
	sal	r9d, cl
	sal	rsi, 8
	add	rsi, QWORD PTR 32[rbp]
	movsx	rbx, r9d
	lea	rcx, [rbx+r12]
	mov	QWORD PTR -88[rbp], rcx
	call	MEM_writeLE16@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -96[rbp]
	mov	DWORD PTR -80[rbp], 2
	mov	rsi, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	lea	r10, [rax+r13]
	lea	rax, [r12+r12*2]
	mov	QWORD PTR -72[rbp], r10
	movdqa	xmm0, XMMWORD PTR -80[rbp]
	lea	rax, [rdx+rax*8]
	.p2align 4,,10
	.p2align 3
.L10:
	add	r12, 1
	mov	QWORD PTR 16[rax], rsi
	add	rax, 24
	movups	XMMWORD PTR -24[rax], xmm0
	cmp	rcx, r12
	ja	.L10
	add	QWORD PTR [r15], rbx
	add	r14, 16
	cmp	QWORD PTR -112[rbp], r14
	jne	.L11
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR -136[rbp]
	movsx	r8, r13d
	mov	rsi, QWORD PTR 32[rbp]
	lea	r13, -64[rbp]
	mov	rdi, r13
	mov	QWORD PTR -112[rbp], r9
	mov	rdx, QWORD PTR [rax+r8*8]
	mov	QWORD PTR -88[rbp], rdx
	call	MEM_writeLE16@PLT
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR -80[rbp], 1
	mov	r9, QWORD PTR -112[rbp]
	test	rdx, rdx
	mov	QWORD PTR -72[rbp], rax
	je	.L8
	mov	rdi, QWORD PTR -96[rbp]
	lea	rdx, [rdx+rdx*2]
	movdqa	xmm0, XMMWORD PTR -80[rbp]
	lea	rcx, [rdi+rdx*8]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, rdi
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR 16[rax], rdx
	add	rax, 24
	movups	XMMWORD PTR -24[rax], xmm0
	cmp	rcx, rax
	jne	.L9
	jmp	.L8
.L25:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	HUF_fillDTableX4Level2, .-HUF_fillDTableX4Level2
	.comm	HUF_ABSOLUTEMAX_TABLELOG,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_v02.c_HUF_fillDTableX4Level2.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HUF_fillDTableX4Level2, %function
HUF_fillDTableX4Level2:
	@ args = 20, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	ldr	ip, .L19
	mov	r6, r0
	ldr	ip, [ip]
	ldr	r4, [fp, #4]
	add	r0, ip, #1
	lsl	r0, r0, #2
	add	ip, r0, #7
	bic	ip, ip, #7
	sub	sp, sp, ip
	mov	r10, sp
	mov	r8, r1
	mov	r1, r3
	ldr	r3, .L19+4
	mov	r7, r2
	mov	r2, r0
	mov	r0, r10
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r5, [fp, #8]
	ldr	r9, [fp, #12]
	bl	memcpy
	cmp	r4, #1
	bgt	.L2
.L5:
	cmp	r9, #0
	beq	.L1
	add	r3, r5, r9, lsl #3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #16]
	sub	r4, fp, #52
	sub	r3, r8, r3
	str	r3, [fp, #-60]
	ldr	r3, [fp, #16]
	add	r3, r7, r3
	str	r3, [fp, #-64]
.L8:
	ldr	r3, [fp, #-60]
	ldm	r5, {r1, r9}
	add	r8, r9, r3
	ldr	r3, [fp, #20]
	ldr	r7, [r10, r9, lsl #2]
	add	r1, r3, r1, lsl #8
	mov	r3, #1
	sub	r0, fp, #44
	add	r8, r7, r3, lsl r8
	bl	MEM_writeLE16
	ldr	r3, [fp, #-64]
	add	ip, r7, r7, lsl #1
	sub	r2, r3, r9
	mov	r3, #2
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	add	ip, r6, ip, lsl r3
.L7:
	add	r7, r7, #1
	cmp	r8, r7
	ldm	r4, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	add	ip, ip, #12
	bhi	.L7
	ldr	r3, [fp, #-56]
	add	r5, r5, #8
	cmp	r3, r5
	str	r8, [r10, r9, lsl #2]
	bne	.L8
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r1, [fp, #20]
	sub	r0, fp, #44
	ldr	r4, [r10, r4, lsl #2]
	bl	MEM_writeLE16
	mov	r2, #1
	cmp	r4, #0
	str	r7, [fp, #-48]
	str	r2, [fp, #-52]
	beq	.L5
	mov	ip, r6
	add	r4, r4, r4, lsl r2
	add	lr, r6, r4, lsl #2
	sub	r4, fp, #52
.L6:
	ldm	r4, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	add	ip, ip, #12
	cmp	lr, ip
	bne	.L6
	b	.L5
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	HUF_ABSOLUTEMAX_TABLELOG
	.word	.LC0
	.size	HUF_fillDTableX4Level2, .-HUF_fillDTableX4Level2
	.comm	HUF_ABSOLUTEMAX_TABLELOG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
