	.file	"extr_compress.c_generateMTFValues.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"generateMTFValues(1)"
.LC1:
	.string	"generateMTFValues(2a)"
	.text
	.p2align 4
	.type	generateMTFValues, @function
generateMTFValues:
.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
	mov	r13, rdi
	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
	sub	rsp, 2120
	.cfi_def_cfa_offset 2176
	mov	rbx, QWORD PTR [rdi]
	mov	rbp, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 2104[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	QWORD PTR 24[rsp], rax
	call	makeMaps_e@PLT
	movsx	rcx, DWORD PTR 24[r13]
	mov	rdi, QWORD PTR 56[r13]
	lea	rdx, 0[0+rcx*8]
	lea	eax, 1[rcx]
	mov	QWORD PTR 32[rsp], rdx
	cdqe
	lea	rsi, 16[rdi+rdx]
	mov	QWORD PTR 40[rsp], rax
	mov	rax, rdi
	.p2align 4,,10
	.p2align 3
.L2:
	mov	QWORD PTR [rax], 0
	add	rax, 8
	cmp	rsi, rax
	jne	.L2
	xor	eax, eax
	lea	rsi, 48[rsp]
	test	rcx, rcx
	je	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	QWORD PTR [rsi+rax*8], rax
	add	rax, 1
	cmp	rcx, rax
	jne	.L3
.L6:
	cmp	QWORD PTR 32[r13], 0
	mov	r9, rbp
	mov	esi, 1
	je	.L5
	xor	r12d, r12d
	xor	r10d, r10d
	xor	r15d, r15d
	mov	r14d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	add	r10, 1
.L8:
	add	r15, 1
	lea	r9, 0[rbp+r12*8]
	mov	rsi, r14
	cmp	QWORD PTR 32[r13], r15
	jbe	.L41
.L4:
	xor	edi, edi
	cmp	r12, r15
	lea	rsi, .LC0[rip]
	mov	QWORD PTR 16[rsp], r10
	setbe	dil
	call	AssertD@PLT
	mov	rax, QWORD PTR [rbx+r15*8]
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR -8[rdx+rax*8]
	mov	rax, QWORD PTR 40[r13]
	mov	r9, QWORD PTR [rax+rsi*8]
	movsx	rax, DWORD PTR 24[r13]
	lea	rsi, .LC1[rip]
	cmp	rax, r9
	mov	QWORD PTR 8[rsp], r9
	seta	dil
	movzx	edi, dil
	call	AssertD@PLT
	mov	r11, QWORD PTR 48[rsp]
	mov	r9, QWORD PTR 8[rsp]
	mov	r10, QWORD PTR 16[rsp]
	cmp	r11, r9
	je	.L42
	test	r10, r10
	jne	.L36
	mov	rdi, QWORD PTR 56[r13]
.L9:
	mov	rsi, QWORD PTR 56[rsp]
	mov	QWORD PTR 56[rsp], r11
	cmp	r9, rsi
	je	.L22
.L46:
	lea	rax, 56[rsp]
	.p2align 4,,10
	.p2align 3
.L15:
	add	rax, 8
	mov	r10, rsi
	mov	rsi, QWORD PTR [rax]
	mov	QWORD PTR [rax], r10
	cmp	r9, rsi
	jne	.L15
	lea	r9, 48[rsp]
	sub	rax, r9
	mov	r9, rax
	add	rax, 8
	sar	r9, 3
	add	r9, 1
.L14:
	mov	QWORD PTR 48[rsp], rsi
	xor	r10d, r10d
	mov	QWORD PTR 0[rbp+r12*8], r9
	mov	r12, r14
	add	r14, 1
	add	QWORD PTR [rdi+rax], 1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rdi, QWORD PTR 56[r13]
	test	r10, r10
	je	.L5
	cmp	QWORD PTR True[rip], 0
	lea	rax, -1[r10]
	jne	.L43
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR [r9], rax
	mov	rax, QWORD PTR 32[rsp]
	add	QWORD PTR 8[rdi+rax], 1
	mov	QWORD PTR 48[r13], rsi
	mov	rax, QWORD PTR 2104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	add	rsp, 2120
	.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
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	cmp	QWORD PTR True[rip], 0
	mov	rdi, QWORD PTR 56[r13]
	lea	rax, -1[r10]
	jne	.L13
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rsi, QWORD PTR BZ_RUNB[rip]
	mov	QWORD PTR -8[rbp+r14*8], rsi
	add	QWORD PTR [rdi+rsi*8], 1
	cmp	rax, 1
	jbe	.L38
.L12:
	sub	rax, 2
	shr	rax
	cmp	QWORD PTR True[rip], 0
	je	.L38
	add	r14, 1
.L13:
	mov	r12, r14
	test	al, 1
	jne	.L45
	mov	rsi, QWORD PTR BZ_RUNA[rip]
	mov	QWORD PTR -8[rbp+r14*8], rsi
	add	QWORD PTR [rdi+rsi*8], 1
	cmp	rax, 1
	ja	.L12
.L38:
	mov	r11, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR 56[rsp]
	add	r14, 1
	mov	QWORD PTR 56[rsp], r11
	cmp	r9, rsi
	jne	.L46
.L22:
	mov	eax, 16
	mov	r9d, 2
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L43:
	lea	r8, 0[rbp+r14*8]
	lea	rsi, 2[r12]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rcx, QWORD PTR BZ_RUNB[rip]
	mov	QWORD PTR -8[r8], rcx
	add	QWORD PTR [rdi+rcx*8], 1
.L17:
	mov	r9, r8
	cmp	rax, 1
	jbe	.L5
	sub	rax, 2
	add	r8, 8
	lea	rcx, 1[rsi]
	shr	rax
	cmp	QWORD PTR True[rip], 0
	je	.L5
	mov	rsi, rcx
.L18:
	test	al, 1
	jne	.L47
	mov	rcx, QWORD PTR BZ_RUNA[rip]
	mov	QWORD PTR -8[r8], rcx
	add	QWORD PTR [rdi+rcx*8], 1
	jmp	.L17
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	generateMTFValues, .-generateMTFValues
	.comm	True,8,8
	.comm	BZ_RUNB,8,8
	.comm	BZ_RUNA,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_compress.c_generateMTFValues.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"generateMTFValues(1)\000"
	.align	2
.LC1:
	.ascii	"generateMTFValues(2a)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generateMTFValues, %function
generateMTFValues:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L50
	sub	sp, sp, #1040
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #1044]
	mov	r3,#0
	mov	r7, r0
	ldr	r3, [r0, #4]
	ldr	r8, [r0]
	str	r3, [sp, #4]
	ldr	r3, [r0, #8]
	str	r3, [sp]
	bl	makeMaps_e
	mov	ip, #0
	ldr	r1, [r7, #12]
	ldr	r0, [r7, #28]
	add	r3, r1, #1
	add	r2, r0, #4
	lsl	lr, r1, #2
	str	r3, [sp, #8]
	add	r2, r2, r1, lsl #2
	sub	r3, r0, #4
	str	lr, [sp, #12]
.L2:
	str	ip, [r3, #4]!
	cmp	r3, r2
	bne	.L2
	cmp	r1, #0
	movne	r3, #0
	addne	r2, sp, #16
	beq	.L7
.L6:
	str	r3, [r2, #4]!
	add	r3, r3, #1
	cmp	r1, r3
	bne	.L6
.L7:
	ldr	r3, [r7, #16]
	cmp	r3, #0
	moveq	r1, #1
	ldreq	ip, [sp]
	beq	.L5
	mov	fp, #0
	mov	r6, #1
	mov	r4, fp
	mov	r9, fp
	ldr	r10, .L50+4
	sub	r8, r8, #4
	b	.L17
.L9:
	ldr	r3, [r7, #16]
	add	r9, r9, #1
	cmp	r3, r9
	ldr	r3, [sp]
	mov	r1, r6
	add	ip, r3, fp, lsl #2
	bls	.L46
.L17:
	cmp	fp, r9
	mov	r1, r10
	movhi	r0, #0
	movls	r0, #1
	bl	AssertD
	ldr	r3, [r8, #4]!
	ldr	r2, [sp, #4]
	sub	r3, r3, #1
	ldr	r1, [r7, #20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r0, [r7, #12]
	ldr	r5, [r1, r3, lsl #2]
	ldr	r1, .L50+8
	cmp	r0, r5
	movls	r0, #0
	movhi	r0, #1
	bl	AssertD
	ldr	r0, [sp, #20]
	cmp	r0, r5
	addeq	r4, r4, #1
	beq	.L9
	cmp	r4, #0
	bne	.L39
	ldr	r1, [r7, #28]
.L10:
	ldr	ip, [sp, #24]
	str	r0, [sp, #24]
	cmp	r5, ip
	beq	.L22
.L49:
	add	r3, sp, #24
.L16:
	mov	r2, ip
	ldr	ip, [r3, #4]!
	cmp	r5, ip
	str	r2, [r3]
	bne	.L16
	add	r0, sp, #20
	sub	r3, r3, r0
	asr	r0, r3, #2
	add	r0, r0, #1
	add	r3, r3, #4
.L15:
	ldr	r2, [sp]
	str	ip, [sp, #20]
	str	r0, [r2, fp, lsl #2]
	ldr	r0, [r1, r3]
	mov	fp, r6
	add	r0, r0, #1
	mov	r4, #0
	str	r0, [r1, r3]
	add	r6, r6, #1
	b	.L9
.L46:
	cmp	r4, #0
	ldr	r0, [r7, #28]
	beq	.L5
	ldr	r5, .L50+12
	sub	r3, r4, #1
	ldr	r2, [r5]
	cmp	r2, #0
	beq	.L5
	ldr	r2, [sp]
	ldr	r8, .L50+16
	add	r2, r2, r6, lsl #2
	add	r1, fp, #2
	ldr	r6, .L50+20
	b	.L20
.L47:
	ldr	lr, [r5]
	sub	r3, r3, #2
	cmp	lr, #0
	lsr	r3, r3, #1
	add	r2, r2, #4
	add	lr, r1, #1
	beq	.L5
	mov	r1, lr
.L20:
	tst	r3, #1
	ldrne	ip, [r8]
	ldreq	ip, [r6]
	cmp	r3, #1
	str	ip, [r2, #-4]
	ldr	lr, [r0, ip, lsl #2]
	add	lr, lr, #1
	str	lr, [r0, ip, lsl #2]
	mov	ip, r2
	bhi	.L47
.L5:
	ldr	r3, [sp, #8]
	str	r3, [ip]
	ldr	r3, [sp, #12]
	add	r3, r3, #4
	ldr	r2, [r0, r3]
	add	r2, r2, #1
	str	r2, [r0, r3]
	ldr	r3, .L50
	str	r1, [r7, #24]
	ldr	r2, [r3]
	ldr	r3, [sp, #1044]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L48
	add	sp, sp, #1040
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	ldr	lr, .L50+12
	sub	r3, r4, #1
	ldr	r1, [lr]
	cmp	r1, #0
	ldrne	r2, [sp]
	ldr	r1, [r7, #28]
	subne	r4, r2, #4
	bne	.L14
	b	.L10
.L13:
	ldr	r2, [lr]
	sub	r3, r3, #2
	cmp	r2, #0
	lsr	r3, r3, #1
	beq	.L41
	add	r6, r6, #1
.L14:
	tst	r3, #1
	ldrne	r2, .L50+16
	ldreq	r2, .L50+20
	cmp	r3, #1
	ldr	r2, [r2]
	mov	fp, r6
	str	r2, [r4, r6, lsl #2]
	ldr	r0, [r1, r2, lsl #2]
	add	r0, r0, #1
	str	r0, [r1, r2, lsl #2]
	bhi	.L13
	ldr	ip, [sp, #24]
	ldr	r0, [sp, #20]
	cmp	r5, ip
	add	r6, r6, #1
	str	r0, [sp, #24]
	bne	.L49
.L22:
	mov	r3, #8
	mov	r0, #2
	b	.L15
.L41:
	ldr	r0, [sp, #20]
	add	r6, r6, #1
	b	.L10
.L48:
	bl	__stack_chk_fail
.L51:
	.align	2
.L50:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	True
	.word	BZ_RUNB
	.word	BZ_RUNA
	.size	generateMTFValues, .-generateMTFValues
	.comm	True,4,4
	.comm	BZ_RUNB,4,4
	.comm	BZ_RUNA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
