	.file	"extr_Ppmd8.c_GlueFreeBlocks.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	GlueFreeBlocks, @function
GlueFreeBlocks:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 4
	xor	esi, esi
	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
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rdi], 8192
	mov	edi, DWORD PTR 32[rdi]
	mov	QWORD PTR [rsp], 0
	call	memset@PLT
	mov	rax, QWORD PTR 8[rbx]
	cmp	rax, QWORD PTR 16[rbx]
	je	.L2
	mov	QWORD PTR [rax], 0
.L2:
	mov	eax, DWORD PTR PPMD_NUM_INDEXES[rip]
	test	eax, eax
	je	.L16
	xor	r12d, r12d
	mov	rbp, rsp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR 24[rbx]
	mov	eax, r12d
	lea	rax, [rdx+rax*8]
	mov	r13, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	test	r13, r13
	jne	.L7
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13, QWORD PTR 16[rax]
	test	r13, r13
	je	.L4
.L7:
	mov	rdi, r13
	call	NODE@PLT
	cmp	QWORD PTR 8[rax], 0
	je	.L5
	mov	QWORD PTR 0[rbp], r13
	mov	rdx, QWORD PTR 8[rax]
	lea	rbp, 16[rax]
	mov	rsi, QWORD PTR EMPTY_NODE[rip]
	lea	rcx, [rdx+rdx*2]
	lea	rcx, [rax+rcx*8]
	cmp	rsi, QWORD PTR [rcx]
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	add	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR 8[rax], rdx
	mov	QWORD PTR 8[rcx], 0
	mov	rdx, QWORD PTR 8[rax]
	lea	rcx, [rdx+rdx*2]
	lea	rcx, [rax+rcx*8]
	cmp	QWORD PTR [rcx], rsi
	je	.L6
	mov	r13, QWORD PTR 16[rax]
	test	r13, r13
	jne	.L7
.L4:
	add	r12d, 1
	cmp	DWORD PTR PPMD_NUM_INDEXES[rip], r12d
	ja	.L8
.L3:
	mov	QWORD PTR 0[rbp], 0
	mov	r14, QWORD PTR [rsp]
	.p2align 4,,10
	.p2align 3
.L10:
	test	r14, r14
	je	.L28
.L14:
	mov	rdi, r14
	call	NODE@PLT
	mov	r14, QWORD PTR 16[rax]
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR [rsp], r14
	mov	r13d, eax
	test	eax, eax
	je	.L10
	cmp	eax, 128
	jbe	.L17
	lea	r15d, -129[rax]
	shr	r15d, 7
	mov	eax, r15d
	lea	r12, 3[rax+rax*2]
	sal	r12, 10
	add	r12, rbp
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR PPMD_NUM_INDEXES[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	add	rbp, 3072
	lea	edx, -1[rax]
	call	InsertNode@PLT
	cmp	rbp, r12
	jne	.L12
	sal	r15d, 7
	neg	r15d
	lea	r13d, -128[r13+r15]
.L11:
	mov	edi, r13d
	call	U2I@PLT
	mov	edi, eax
	mov	r15d, eax
	call	I2U@PLT
	cmp	eax, r13d
	je	.L13
	sub	r15d, 1
	mov	edi, r15d
	call	I2U@PLT
	lea	edx, -1[r13]
	mov	rdi, rbx
	sub	edx, eax
	mov	eax, eax
	lea	rax, [rax+rax*2]
	lea	rsi, [r12+rax*8]
	call	InsertNode@PLT
.L13:
	mov	edx, r15d
	mov	rsi, r12
	mov	rdi, rbx
	call	InsertNode@PLT
	test	r14, r14
	jne	.L14
.L28:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 24
	.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
.L17:
	.cfi_restore_state
	mov	r12, rbp
	jmp	.L11
.L16:
	mov	rbp, rsp
	jmp	.L3
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GlueFreeBlocks, .-GlueFreeBlocks
	.comm	PPMD_NUM_INDEXES,4,4
	.comm	EMPTY_NODE,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_Ppmd8.c_GlueFreeBlocks.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	GlueFreeBlocks, %function
GlueFreeBlocks:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r3, #8192
	mov	r4, r0
	mov	r5, #0
	ldr	r2, .L33
	sub	sp, sp, #8
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	ldr	r0, [r0, #16]
	mov	r2, #4
	str	r3, [r4]
	mov	r1, r5
	str	r5, [sp]
	bl	memset
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r6, .L33+4
	cmp	r3, r2
	strne	r5, [r3]
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L16
	mov	r5, #0
	mov	r8, sp
	mov	r9, r5
	ldr	r7, .L33+8
.L8:
	ldr	r3, [r4, #12]
	ldr	r10, [r3, r5, lsl #2]
	str	r9, [r3, r5, lsl #2]
	cmp	r10, #0
	bne	.L7
	b	.L4
.L5:
	ldr	r10, [r0, #8]
	cmp	r10, #0
	beq	.L4
.L7:
	mov	r0, r10
	bl	NODE
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L5
	str	r10, [r8]
	ldr	r2, [r0, #4]
	ldr	ip, [r7]
	add	r3, r2, r2, lsl #1
	ldr	r1, [r0, r3, lsl #2]
	add	r8, r0, #8
	cmp	ip, r1
	add	r3, r0, r3, lsl #2
	bne	.L5
.L6:
	ldr	r1, [r3, #4]
	add	r2, r1, r2
	str	r2, [r0, #4]
	str	r9, [r3, #4]
	ldr	r2, [r0, #4]
	add	r3, r2, r2, lsl #1
	ldr	r1, [r0, r3, lsl #2]
	add	r3, r0, r3, lsl #2
	cmp	r1, ip
	beq	.L6
	ldr	r10, [r0, #8]
	cmp	r10, #0
	bne	.L7
.L4:
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bhi	.L8
.L3:
	mov	r3, #0
	str	r3, [r8]
	ldr	r10, [sp]
.L10:
	cmp	r10, #0
	beq	.L31
.L14:
	mov	r0, r10
	bl	NODE
	ldmib	r0, {r9, r10}
	cmp	r9, #0
	mov	r8, r0
	str	r10, [sp]
	beq	.L10
	cmp	r9, #128
	bls	.L11
	mov	r7, r9
	mov	r5, r0
.L12:
	ldr	r2, [r6]
	mov	r1, r5
	mov	r0, r4
	sub	r7, r7, #128
	sub	r2, r2, #1
	bl	InsertNode
	cmp	r7, #128
	add	r5, r5, #1536
	bhi	.L12
	sub	r3, r9, #129
	lsr	r3, r3, #7
	add	r2, r3, #1
	sub	r9, r9, #128
	rsb	r3, r3, r3, lsl #25
	add	r2, r2, r2, lsl #1
	add	r9, r9, r3, lsl #7
	add	r8, r8, r2, lsl #9
.L11:
	mov	r0, r9
	bl	U2I
	mov	r5, r0
	bl	I2U
	cmp	r0, r9
	beq	.L13
	sub	r5, r5, #1
	mov	r0, r5
	bl	I2U
	sub	r9, r9, #1
	add	r1, r0, r0, lsl #1
	sub	r2, r9, r0
	add	r1, r8, r1, lsl #2
	mov	r0, r4
	bl	InsertNode
.L13:
	mov	r2, r5
	mov	r1, r8
	mov	r0, r4
	bl	InsertNode
	cmp	r10, #0
	bne	.L14
.L31:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r8, sp
	b	.L3
.L32:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC0
	.word	PPMD_NUM_INDEXES
	.word	EMPTY_NODE
	.size	GlueFreeBlocks, .-GlueFreeBlocks
	.comm	PPMD_NUM_INDEXES,4,4
	.comm	EMPTY_NODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
