	.file	"extr_lodepng.c_generateFixedDistanceTree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	generateFixedDistanceTree, @function
generateFixedDistanceTree:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	eax, DWORD PTR NUM_DISTANCE_SYMBOLS[rip]
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 83
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	edi, 0[0+rax*4]
	call	lodepng_malloc@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR NUM_DISTANCE_SYMBOLS[rip]
	mov	rbp, rax
	test	edx, edx
	je	.L3
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, eax
	add	eax, 1
	mov	DWORD PTR 0[rbp+rdx*4], 5
	mov	edx, DWORD PTR NUM_DISTANCE_SYMBOLS[rip]
	cmp	edx, eax
	ja	.L4
.L3:
	mov	rdi, r13
	mov	ecx, 15
	mov	rsi, rbp
	call	HuffmanTree_makeFromLengths@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	lodepng_free@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	generateFixedDistanceTree, .-generateFixedDistanceTree
	.comm	NUM_DISTANCE_SYMBOLS,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_lodepng.c_generateFixedDistanceTree.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	generateFixedDistanceTree, %function
generateFixedDistanceTree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L12
	mov	r6, r0
	ldr	r0, [r4]
	lsl	r0, r0, #2
	bl	lodepng_malloc
	subs	r5, r0, #0
	moveq	r4, #83
	beq	.L1
	ldr	r2, [r4]
	cmp	r2, #0
	beq	.L3
	mov	ip, r5
	mov	r3, #0
	mov	lr, #5
.L4:
	str	lr, [ip], #4
	ldr	r2, [r4]
	add	r3, r3, #1
	cmp	r2, r3
	bhi	.L4
.L3:
	mov	r0, r6
	mov	r3, #15
	mov	r1, r5
	bl	HuffmanTree_makeFromLengths
	mov	r4, r0
	mov	r0, r5
	bl	lodepng_free
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	NUM_DISTANCE_SYMBOLS
	.size	generateFixedDistanceTree, .-generateFixedDistanceTree
	.comm	NUM_DISTANCE_SYMBOLS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
