	.file	"extr_msdosfs_denode.c_deextend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	deextend
	.type	deextend, @function
deextend:
.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	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	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, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR 24[rdi], 0
	mov	rbx, QWORD PTR 32[rdi]
	je	.L2
	mov	rdi, rbx
	call	FAT32@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	test	eax, eax
	je	.L1
.L2:
	mov	r12d, DWORD PTR 0[rbp]
	and	r12d, DWORD PTR ATTR_DIRECTORY[rip]
	jne	.L13
	cmp	QWORD PTR 8[rbp], r13
	jl	.L5
	mov	r12d, DWORD PTR E2BIG[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbx
	call	de_clcount@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, rbx
	mov	r15, rax
	call	de_clcount@PLT
	sub	r15, rax
	test	r15, r15
	jle	.L6
	cmp	QWORD PTR [rbx], r15
	jge	.L7
	mov	r12d, DWORD PTR ENOSPC[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, DWORD PTR EISDIR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, DWORD PTR DE_CLEAR[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, r15
	mov	rdi, rbp
	call	extendfile@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L14
.L6:
	mov	eax, DWORD PTR DE_UPDATE[rip]
	or	eax, DWORD PTR DE_MODIFIED[rip]
	mov	QWORD PTR 8[rbp], r13
	or	DWORD PTR 16[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, QWORD PTR 8[rbp]
	mov	rcx, r14
	xor	edx, edx
	mov	rdi, rbp
	mov	r12d, ebx
	call	detrunc@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	deextend, .-deextend
	.comm	ENOSPC,4,4
	.comm	EISDIR,4,4
	.comm	EINVAL,4,4
	.comm	E2BIG,4,4
	.comm	DE_UPDATE,4,4
	.comm	DE_MODIFIED,4,4
	.comm	DE_CLEAR,4,4
	.comm	ATTR_DIRECTORY,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_msdosfs_denode.c_deextend.c"
	.text
	.align	2
	.global	deextend
	.syntax unified
	.arm
	.fpu softvfp
	.type	deextend, %function
deextend:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #12]
	mov	r4, r0
	cmp	r3, #0
	mov	r6, r1
	mov	r8, r2
	ldr	r7, [r0, #16]
	sub	sp, sp, #12
	beq	.L2
	mov	r0, r7
	bl	FAT32
	cmp	r0, #0
	beq	.L16
.L2:
	ldr	r3, .L19
	ldr	r5, [r4]
	ldr	r3, [r3]
	ands	r5, r5, r3
	bne	.L17
	ldr	r3, [r4, #4]
	cmp	r3, r6
	blt	.L5
	ldr	r3, .L19+4
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r1, r6
	mov	r0, r7
	bl	de_clcount
	ldr	r1, [r4, #4]
	mov	r9, r0
	mov	r0, r7
	bl	de_clcount
	sub	r1, r9, r0
	cmp	r1, #0
	ble	.L6
	ldr	r3, [r7]
	cmp	r3, r1
	bge	.L7
	ldr	r3, .L19+8
	ldr	r5, [r3]
	b	.L1
.L17:
	ldr	r3, .L19+12
	ldr	r5, [r3]
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r3, .L19+16
	ldr	r5, [r3]
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r3, .L19+20
	mov	r0, r4
	ldr	r2, [r3]
	mov	r3, r5
	str	r2, [sp]
	mov	r2, r5
	bl	extendfile
	subs	ip, r0, #0
	bne	.L18
.L6:
	mov	r0, r5
	ldr	r3, .L19+24
	ldr	r2, .L19+28
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #8]
	orr	r2, r2, r1
	orr	r3, r3, r2
	str	r6, [r4, #4]
	str	r3, [r4, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	mov	r2, r5
	mov	r3, r8
	mov	r0, r4
	ldr	r1, [r4, #4]
	mov	r5, ip
	bl	detrunc
	b	.L1
.L20:
	.align	2
.L19:
	.word	ATTR_DIRECTORY
	.word	E2BIG
	.word	ENOSPC
	.word	EISDIR
	.word	EINVAL
	.word	DE_CLEAR
	.word	DE_MODIFIED
	.word	DE_UPDATE
	.size	deextend, .-deextend
	.comm	ENOSPC,4,4
	.comm	EISDIR,4,4
	.comm	EINVAL,4,4
	.comm	E2BIG,4,4
	.comm	DE_UPDATE,4,4
	.comm	DE_MODIFIED,4,4
	.comm	DE_CLEAR,4,4
	.comm	ATTR_DIRECTORY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
