	.file	"extr_alloc.c_hpfs_free_sectors.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Trying to free reserved sector %08x"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"free"
.LC2:
	.string	"sector %08x not allocated"
	.text
	.p2align 4
	.globl	hpfs_free_sectors
	.type	hpfs_free_sectors, @function
hpfs_free_sectors:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	hpfs_sb@PLT
	test	ebx, ebx
	je	.L1
	cmp	r12d, 17
	jle	.L19
	mov	rdi, rbp
	mov	r13, rax
	call	lock_super@PLT
	cmp	ebx, 65535
	mov	eax, 65535
	mov	edx, 16777215
	cmovbe	eax, ebx
	add	eax, DWORD PTR 0[r13]
	cmp	eax, 16777215
	cmovg	eax, edx
	mov	DWORD PTR 0[r13], eax
	lea	r13, 4[rsp]
.L10:
	mov	esi, r12d
	lea	rcx, .LC1[rip]
	mov	rdx, r13
	mov	rdi, rbp
	sar	esi, 14
	call	hpfs_map_bitmap@PLT
	test	rax, rax
	je	.L17
	lea	esi, -1[r12+rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	bts	edx, edi
	mov	ebx, esi
	mov	DWORD PTR [rcx], edx
	sub	ebx, r12d
	cmp	r12d, esi
	je	.L20
	add	r12d, 1
	test	r12d, 16383
	je	.L21
.L7:
	mov	edx, r12d
	mov	edi, r12d
	sar	edx, 5
	and	edi, 31
	and	edx, 511
	lea	rcx, [rax+rdx*4]
	mov	edx, DWORD PTR [rcx]
	bt	edx, r12d
	jnc	.L8
	mov	rdi, rbp
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	call	hpfs_error@PLT
	mov	rdi, r13
	call	hpfs_brelse4@PLT
.L17:
	mov	rdi, rbp
	call	unlock_super@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	hpfs_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r13
	call	hpfs_mark_4buffers_dirty@PLT
	mov	rdi, r13
	call	hpfs_brelse4@PLT
	mov	rdi, rbp
	call	unlock_super@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r13
	call	hpfs_mark_4buffers_dirty@PLT
	mov	rdi, r13
	call	hpfs_brelse4@PLT
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpfs_free_sectors, .-hpfs_free_sectors
	.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_alloc.c_hpfs_free_sectors.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Trying to free reserved sector %08x\000"
	.align	2
.LC1:
	.ascii	"free\000"
	.align	2
.LC2:
	.ascii	"sector %08x not allocated\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hpfs_free_sectors
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpfs_free_sectors, %function
hpfs_free_sectors:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r2
	ldr	r3, .L24
	sub	sp, sp, #12
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	hpfs_sb
	cmp	r8, #0
	beq	.L1
	cmp	r4, #17
	ble	.L20
	mov	r5, r0
	mov	r0, r6
	bl	lock_super
	ldr	r3, [r5]
	ldr	r2, .L24+4
	ldr	r7, .L24+8
	cmp	r8, r2
	addls	r3, r3, r8
	addhi	r3, r3, r2
	cmp	r3, #16777216
	mvnge	r3, #-16777216
	str	r3, [r5]
	ldr	r5, .L24+12
.L10:
	mov	r3, r7
	mov	r2, sp
	mov	r0, r6
	asr	r1, r4, #14
	bl	hpfs_map_bitmap
	subs	lr, r0, #0
	beq	.L18
	sub	r3, r8, #1
	mov	r9, #1
	ldr	r0, .L24+16
	add	r3, r3, r4
	b	.L7
.L8:
	orr	r2, r2, r9, lsl ip
	cmp	r4, r3
	str	r2, [lr, r1, lsl #2]
	sub	r8, r3, r4
	beq	.L21
	add	r4, r4, #1
	tst	r4, r5
	beq	.L22
.L7:
	and	r1, r0, r4, asr #5
	ldr	r2, [lr, r1, lsl #2]
	and	ip, r4, #31
	lsr	r8, r2, ip
	tst	r8, #1
	beq	.L8
	mov	r2, r4
	mov	r0, r6
	ldr	r1, .L24+20
	bl	hpfs_error
	mov	r0, sp
	bl	hpfs_brelse4
.L18:
	mov	r0, r6
	bl	unlock_super
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L20:
	mov	r2, r4
	mov	r0, r6
	ldr	r1, .L24+24
	bl	hpfs_error
	b	.L1
.L21:
	mov	r0, sp
	bl	hpfs_mark_4buffers_dirty
	mov	r0, sp
	bl	hpfs_brelse4
	mov	r0, r6
	bl	unlock_super
	b	.L1
.L22:
	mov	r0, sp
	bl	hpfs_mark_4buffers_dirty
	mov	r0, sp
	bl	hpfs_brelse4
	b	.L10
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC3
	.word	65535
	.word	.LC1
	.word	16383
	.word	511
	.word	.LC2
	.word	.LC0
	.size	hpfs_free_sectors, .-hpfs_free_sectors
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
