	.file	"extr_namei_msdos.c_msdos_add_entry.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	msdos_add_entry, @function
msdos_add_entry:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	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
	mov	ebx, ecx
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	edi, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rsi
	mov	r14, QWORD PTR 176[rsp]
	mov	DWORD PTR 4[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	call	MSDOS_SB@PLT
	mov	edx, DWORD PTR MSDOS_NAME[rip]
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 100[rsp]
	mov	r15, rax
	call	memcpy@PLT
	mov	r10d, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR ATTR_DIR[rip]
	test	r10d, r10d
	cmove	eax, DWORD PTR ATTR_ARCH[rip]
	mov	DWORD PTR 96[rsp], eax
	test	ebx, ebx
	je	.L4
	or	eax, DWORD PTR ATTR_HIDDEN[rip]
	mov	DWORD PTR 96[rsp], eax
.L4:
	lea	rcx, 24[rsp]
	lea	rdx, 16[rsp]
	xor	r8d, r8d
	mov	rdi, r15
	mov	rsi, r12
	lea	r15, 32[rsp]
	mov	QWORD PTR 88[rsp], 0
	call	fat_time_unix2fat@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	esi, r13d
	mov	rdi, r15
	mov	QWORD PTR 72[rsp], 0
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR 80[rsp], 0
	mov	QWORD PTR 64[rsp], 0
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 40[rsp], rax
	call	fat_set_start@PLT
	mov	rcx, r14
	mov	edx, 1
	mov	rsi, r15
	mov	QWORD PTR 32[rsp], 0
	mov	rdi, rbp
	call	fat_add_entries@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR S_CTIME[rip]
	mov	rsi, r12
	mov	rdi, rbp
	or	edx, DWORD PTR S_MTIME[rip]
	call	fat_truncate_time@PLT
	mov	rdi, rbp
	call	IS_DIRSYNC@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L6
	call	fat_sync_inode@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	call	mark_inode_dirty@PLT
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	msdos_add_entry, .-msdos_add_entry
	.comm	S_MTIME,4,4
	.comm	S_CTIME,4,4
	.comm	MSDOS_NAME,4,4
	.comm	ATTR_HIDDEN,4,4
	.comm	ATTR_DIR,4,4
	.comm	ATTR_ARCH,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_namei_msdos.c_msdos_add_entry.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msdos_add_entry, %function
msdos_add_entry:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r3
	ldr	r3, .L15
	sub	sp, sp, #64
	mov	r5, r0
	ldr	r0, [r0]
	mov	r7, r2
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r8, [sp, #100]
	ldr	r10, [sp, #104]
	bl	MSDOS_SB
	ldr	r3, .L15+4
	mov	r6, r0
	ldr	r2, [r3]
	mov	r1, r9
	ldr	r0, [sp, #56]
	bl	memcpy
	cmp	r7, #0
	ldrne	r3, .L15+8
	ldreq	r3, .L15+12
	cmp	r4, #0
	mov	r4, #0
	ldrne	r2, .L15+16
	ldr	r3, [r3]
	ldrne	r2, [r2]
	str	r3, [sp, #52]
	orrne	r3, r2, r3
	strne	r3, [sp, #52]
	mov	r1, r8
	str	r4, [sp]
	add	r3, sp, #16
	add	r2, sp, #12
	mov	r0, r6
	str	r4, [sp, #48]
	bl	fat_time_unix2fat
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	ldr	r1, [sp, #96]
	add	r0, sp, #20
	str	r4, [sp, #40]
	str	r4, [sp, #44]
	str	r4, [sp, #36]
	str	r4, [sp, #32]
	str	r2, [sp, #28]
	str	r3, [sp, #24]
	bl	fat_set_start
	mov	r3, r10
	mov	r2, #1
	mov	r0, r5
	add	r1, sp, #20
	str	r4, [sp, #20]
	bl	fat_add_entries
	subs	r4, r0, #0
	beq	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r2, .L15+20
	ldr	r3, .L15+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r8
	orr	r2, r2, r3
	mov	r0, r5
	bl	fat_truncate_time
	mov	r0, r5
	bl	IS_DIRSYNC
	cmp	r0, #0
	mov	r0, r5
	beq	.L6
	bl	fat_sync_inode
	b	.L1
.L6:
	bl	mark_inode_dirty
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	MSDOS_NAME
	.word	ATTR_DIR
	.word	ATTR_ARCH
	.word	ATTR_HIDDEN
	.word	S_CTIME
	.word	S_MTIME
	.size	msdos_add_entry, .-msdos_add_entry
	.comm	S_MTIME,4,4
	.comm	S_CTIME,4,4
	.comm	MSDOS_NAME,4,4
	.comm	ATTR_HIDDEN,4,4
	.comm	ATTR_DIR,4,4
	.comm	ATTR_ARCH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
