	.file	"extr_fd.c_FreeFile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"FreeFile: Allocated %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"file passed to FreeFile was not obtained from AllocateFile"
	.text
	.p2align 4
	.globl	FreeFile
	.type	FreeFile, @function
FreeFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, DWORD PTR numAllocatedDescs[rip]
	mov	rbp, rdi
	xor	eax, eax
	mov	edi, DWORD PTR LOG[rip]
	lea	rsi, .LC0[rip]
	call	elog@PLT
	mov	edi, eax
	call	DO_DB@PLT
	mov	ecx, DWORD PTR numAllocatedDescs[rip]
	test	ecx, ecx
	jle	.L2
	mov	rsi, QWORD PTR allocatedDescs[rip]
	movsx	rax, ecx
	sub	ecx, 1
	mov	rdx, QWORD PTR AllocateDescFile[rip]
	sal	rax, 4
	sal	rcx, 4
	lea	rdi, -16[rsi+rax]
	lea	rax, -32[rsi+rax]
	sub	rax, rcx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	sub	rdi, 16
	cmp	rdi, rax
	je	.L2
.L4:
	cmp	QWORD PTR [rdi], rdx
	jne	.L3
	cmp	QWORD PTR 8[rdi], rbp
	jne	.L3
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	FreeDesc@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR WARNING[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	elog@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	fclose@PLT
	.cfi_endproc
.LFE0:
	.size	FreeFile, .-FreeFile
	.comm	numAllocatedDescs,4,4
	.comm	allocatedDescs,8,8
	.comm	WARNING,4,4
	.comm	LOG,4,4
	.comm	AllocateDescFile,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_fd.c_FreeFile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FreeFile: Allocated %d\000"
	.align	2
.LC1:
	.ascii	"file passed to FreeFile was not obtained from Alloc"
	.ascii	"ateFile\000"
	.text
	.align	2
	.global	FreeFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	FreeFile, %function
FreeFile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L8
	ldr	r5, .L8+4
	ldr	r1, .L8+8
	ldr	r2, [r5]
	mov	r4, r0
	ldr	r0, [r3]
	bl	elog
	bl	DO_DB
	ldr	r2, [r5]
	subs	r3, r2, #1
	bmi	.L2
	ldr	r1, .L8+12
	ldr	r0, .L8+16
	ldr	r1, [r1]
	sub	r2, r2, #-536870911
	ldr	ip, [r0]
	add	r0, r1, r2, lsl #3
	b	.L4
.L3:
	cmn	r3, #1
	sub	r0, r0, #8
	beq	.L2
.L4:
	ldr	r2, [r1, r3, lsl #3]
	sub	r3, r3, #1
	cmp	r2, ip
	bne	.L3
	ldr	r2, [r0, #4]
	cmp	r2, r4
	bne	.L3
	pop	{r4, r5, r6, lr}
	b	FreeDesc
.L2:
	ldr	r3, .L8+20
	ldr	r1, .L8+24
	ldr	r0, [r3]
	bl	elog
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	fclose
.L9:
	.align	2
.L8:
	.word	LOG
	.word	numAllocatedDescs
	.word	.LC0
	.word	allocatedDescs
	.word	AllocateDescFile
	.word	WARNING
	.word	.LC1
	.size	FreeFile, .-FreeFile
	.comm	numAllocatedDescs,4,4
	.comm	allocatedDescs,4,4
	.comm	WARNING,4,4
	.comm	LOG,4,4
	.comm	AllocateDescFile,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
