	.file	"extr_ea.c_hpfs_ea_ext_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"anode"
.LC1:
	.string	"sectors"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"EAs don't end correctly, %s %08x, len %08x"
	.align 8
.LC3:
	.string	"ea->indirect set while ea->valuelen!=8, %s %08x, pos %08x"
	.text
	.p2align 4
	.globl	hpfs_ea_ext_remove
	.type	hpfs_ea_ext_remove, @function
hpfs_ea_ext_remove:
.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
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 328
	.cfi_def_cfa_offset 384
	mov	DWORD PTR [rsp], ecx
	mov	rdx, QWORD PTR fs:40
	mov	QWORD PTR 312[rsp], rdx
	xor	edx, edx
	test	ecx, ecx
	je	.L3
	cmp	DWORD PTR [rsp], 3
	jbe	.L13
	lea	rax, 36[rsp]
	xor	ebx, ebx
	mov	r15d, 4
	mov	QWORD PTR 8[rsp], rax
	lea	r12, 32[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	cmp	QWORD PTR 48[rsp], 0
	mov	eax, DWORD PTR 32[rsp]
	je	.L8
	cmp	eax, 8
	jne	.L25
	mov	eax, DWORD PTR 36[rsp]
	mov	r9, QWORD PTR 8[rsp]
	mov	ecx, r15d
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	lea	r8d, 9[rax]
	call	hpfs_ea_read@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, r12
	call	ea_len@PLT
	mov	r15d, DWORD PTR 40[rsp]
	mov	rdi, r12
	mov	DWORD PTR 4[rsp], eax
	call	ea_sec@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, r15d
	mov	rdi, rbp
	mov	esi, eax
	call	hpfs_ea_remove@PLT
	mov	eax, DWORD PTR 32[rsp]
.L8:
	add	eax, DWORD PTR 36[rsp]
	lea	ebx, 5[rbx+rax]
	cmp	DWORD PTR [rsp], ebx
	jbe	.L3
	lea	r15d, 4[rbx]
	cmp	r15d, DWORD PTR [rsp]
	ja	.L13
.L4:
	mov	r9, r12
	mov	r8d, 4
	mov	ecx, ebx
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	hpfs_ea_read@PLT
	test	rax, rax
	je	.L26
.L1:
	mov	rax, QWORD PTR 312[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 328
	.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
.L3:
	.cfi_restore_state
	test	r14d, r14d
	je	.L28
	mov	esi, r13d
	lea	rdx, 24[rsp]
	mov	rdi, rbp
	call	hpfs_map_anode@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	hpfs_remove_btree@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	brelse@PLT
	mov	edx, 1
	mov	esi, r13d
	mov	rdi, rbp
	call	hpfs_free_sectors@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	test	r14d, r14d
	lea	rdx, .LC0[rip]
	mov	ecx, r13d
	mov	rdi, rbp
	lea	rax, .LC1[rip]
	mov	r8d, DWORD PTR [rsp]
	lea	rsi, .LC2[rip]
	cmove	rdx, rax
	call	hpfs_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, DWORD PTR [rsp]
	mov	esi, r13d
	mov	rdi, rbp
	add	edx, 511
	shr	edx, 9
	call	hpfs_free_sectors@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	test	r14d, r14d
	lea	rdx, .LC0[rip]
	mov	r8d, ebx
	mov	ecx, r13d
	lea	rax, .LC1[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	cmove	rdx, rax
	call	hpfs_error@PLT
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpfs_ea_ext_remove, .-hpfs_ea_ext_remove
	.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_ea.c_hpfs_ea_ext_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"anode\000"
	.align	2
.LC1:
	.ascii	"sectors\000"
	.align	2
.LC2:
	.ascii	"EAs don't end correctly, %s %08x, len %08x\000"
	.align	2
.LC3:
	.ascii	"ea->indirect set while ea->valuelen!=8, %s %08x, po"
	.ascii	"s %08x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hpfs_ea_ext_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpfs_ea_ext_remove, %function
hpfs_ea_ext_remove:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r6, r3, #0
	ldr	r3, .L32
	sub	sp, sp, #300
	mov	r7, r0
	mov	r9, r1
	mov	r10, r2
	ldr	r3, [r3]
	str	r3, [sp, #292]
	mov	r3,#0
	beq	.L3
	cmp	r6, #3
	bls	.L13
	mov	r5, #4
	mov	r4, #0
	mov	fp, r5
	add	r8, sp, #24
	b	.L4
.L29:
	ldr	r2, [sp, #36]
	ldr	r3, [sp, #24]
	cmp	r2, #0
	beq	.L8
	cmp	r3, #8
	bne	.L28
	ldr	r2, [sp, #28]
	add	r3, sp, #28
	add	r2, r2, #9
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r5
	mov	r2, r10
	mov	r1, r9
	mov	r0, r7
	bl	hpfs_ea_read
	cmp	r0, #0
	bne	.L1
	mov	r0, r8
	bl	ea_sec
	ldr	r2, [sp, #32]
	mov	r5, r0
	mov	r0, r8
	str	r2, [sp, #12]
	bl	ea_len
	mov	r1, r5
	mov	r3, r0
	ldr	r2, [sp, #12]
	mov	r0, r7
	bl	hpfs_ea_remove
	ldr	r3, [sp, #24]
.L8:
	ldr	r2, [sp, #28]
	add	r3, r3, r2
	add	r3, r3, #5
	add	r4, r4, r3
	cmp	r6, r4
	bls	.L3
	add	r5, r4, #4
	cmp	r5, r6
	bhi	.L13
.L4:
	mov	r3, r4
	mov	r2, r10
	mov	r1, r9
	mov	r0, r7
	str	r8, [sp, #4]
	str	fp, [sp]
	bl	hpfs_ea_read
	cmp	r0, #0
	beq	.L29
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #292]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #300
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	cmp	r10, #0
	beq	.L31
	mov	r1, r9
	mov	r0, r7
	add	r2, sp, #20
	bl	hpfs_map_anode
	subs	r1, r0, #0
	beq	.L1
	mov	r0, r7
	bl	hpfs_remove_btree
	ldr	r0, [sp, #20]
	bl	brelse
	mov	r1, r9
	mov	r0, r7
	mov	r2, #1
	bl	hpfs_free_sectors
	b	.L1
.L13:
	ldr	r1, .L32+4
	cmp	r10, #0
	ldr	r2, .L32+8
	mov	r3, r9
	movne	r2, r1
	mov	r0, r7
	ldr	r1, .L32+12
	str	r6, [sp]
	bl	hpfs_error
	b	.L1
.L31:
	add	r2, r6, #508
	add	r2, r2, #3
	mov	r1, r9
	mov	r0, r7
	lsr	r2, r2, #9
	bl	hpfs_free_sectors
	b	.L1
.L28:
	ldr	r1, .L32+4
	cmp	r10, #0
	ldr	r2, .L32+8
	mov	r3, r9
	movne	r2, r1
	mov	r0, r7
	ldr	r1, .L32+16
	str	r4, [sp]
	bl	hpfs_error
	b	.L1
.L30:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	hpfs_ea_ext_remove, .-hpfs_ea_ext_remove
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
