	.file	"extr_huffman.c_Huff_Compress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	Huff_Compress
	.type	Huff_Compress, @function
Huff_Compress:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	lea	r11, -262144[rsp]
	.cfi_def_cfa 11, 262200
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	sub	rsp, 88
	.cfi_def_cfa_offset 262288
	mov	r14d, DWORD PTR [rdi]
	mov	DWORD PTR 4[rsp], esi
	sub	r14d, esi
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 262216[rsp], rcx
	xor	ecx, ecx
	test	r14d, r14d
	jle	.L1
	lea	rbp, 16[rsp]
	mov	r15, QWORD PTR 8[rdi]
	movsx	rbx, esi
	mov	r13, rdi
	mov	edx, 40
	xor	esi, esi
	mov	rdi, rbp
	call	Com_Memset@PLT
	movsx	rax, DWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 24[rsp]
	lea	rcx, 0[0+rbx*4]
	mov	QWORD PTR 8[rsp], rcx
	lea	edx, 1[rax]
	lea	rax, [rax+rax*2]
	mov	DWORD PTR 40[rsp], edx
	mov	rdx, QWORD PTR NYT[rip]
	sal	rax, 4
	add	rax, QWORD PTR 48[rsp]
	mov	QWORD PTR 32[rsp], rax
	mov	QWORD PTR 40[rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	DWORD PTR 32[rax], 0
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR [rsi+rdx*8], rax
	mov	eax, r14d
	lea	edx, -1[r14]
	mov	DWORD PTR bloc[rip], 16
	sar	eax, 8
	mov	DWORD PTR 64[rsp], eax
	movzx	eax, r14b
	mov	DWORD PTR 68[rsp], eax
	mov	rax, rbx
	lea	rbx, [r15+rcx]
	add	rax, rdx
	lea	r14, 4[r15+rax*4]
	lea	r15, 64[rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR [rbx]
	mov	rdx, r15
	mov	rdi, rbp
	add	rbx, 4
	mov	esi, r12d
	call	Huff_transmit@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	Huff_addRef@PLT
	cmp	rbx, r14
	jne	.L4
	mov	eax, DWORD PTR bloc[rip]
	mov	r12d, DWORD PTR 4[rsp]
	mov	rsi, r15
	mov	rdi, QWORD PTR 8[rsp]
	add	rdi, QWORD PTR 8[r13]
	lea	edx, 8[rax]
	mov	DWORD PTR bloc[rip], edx
	sar	edx, 3
	add	r12d, edx
	mov	DWORD PTR 0[r13], r12d
	call	Com_Memcpy@PLT
.L1:
	mov	rax, QWORD PTR 262216[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 262232
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Huff_Compress, .-Huff_Compress
	.comm	bloc,4,4
	.comm	NYT,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_huffman.c_Huff_Compress.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Huff_Compress
	.syntax unified
	.arm
	.fpu softvfp
	.type	Huff_Compress, %function
Huff_Compress:
	@ args = 0, pretend = 0, frame = 262168
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, [r0]
	sub	sp, sp, #262144
	sub	sp, sp, #24
	add	r3, sp, #262144
	ldr	r2, .L10
	sub	r6, r6, r1
	cmp	r6, #0
	add	r3, r3, #20
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r2,#0
	ble	.L1
	mov	r8, r0
	mov	r7, r1
	mov	r2, #20
	mov	r1, #0
	mov	r0, sp
	ldr	r4, [r8, #4]
	bl	Com_Memset
	mov	r2, #0
	mov	r0, #16
	ldr	r3, [sp, #12]
	ldr	r1, .L10+4
	ldr	ip, [sp, #16]
	ldr	r5, [sp, #4]
	rsb	lr, r3, r3, lsl #3
	ldr	r1, [r1]
	add	r3, r3, #1
	str	r3, [sp, #12]
	ldr	r9, .L10+8
	add	r3, ip, lr, lsl #2
	str	r3, [sp, #8]
	str	r3, [sp, #0]
	str	r1, [ip, lr, lsl #2]
	str	r2, [r3, #24]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r3, [r5, r1, lsl #2]
	asr	r2, r6, #8
	and	r3, r6, #255
	add	r6, r6, r7
	add	r6, r4, r6, lsl #2
	str	r2, [sp, #20]
	str	r3, [sp, #24]
	add	r4, r4, r7, lsl #2
	str	r0, [r9]
	lsl	r10, r7, #2
.L4:
	ldr	r5, [r4], #4
	add	r2, sp, #20
	mov	r1, r5
	mov	r0, sp
	bl	Huff_transmit
	mov	r1, r5
	mov	r0, sp
	bl	Huff_addRef
	cmp	r4, r6
	bne	.L4
	ldr	r2, [r9]
	ldr	r0, [r8, #4]
	add	r2, r2, #8
	add	r7, r7, r2, asr #3
	str	r2, [r9]
	add	r1, sp, #20
	asr	r2, r2, #3
	str	r7, [r8]
	add	r0, r0, r10
	bl	Com_Memcpy
.L1:
	add	r3, sp, #262144
	ldr	r2, .L10
	add	r3, r3, #20
	ldr	r1, [r2]
	ldr	r2, [r3]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L9
	add	sp, sp, #262144
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	NYT
	.word	bloc
	.size	Huff_Compress, .-Huff_Compress
	.comm	bloc,4,4
	.comm	NYT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
