	.file	"extr_check.c_auto_rename.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%07lu"
.LC1:
	.string	"FSCK"
.LC2:
	.string	"Too many files need repair."
	.text
	.p2align 4
	.type	auto_rename, @function
auto_rename:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 16[rdi]
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR 40[rdi]
	mov	r13, QWORD PTR root[rip]
	mov	rbp, rdi
	test	rax, rax
	je	.L4
	mov	r13, QWORD PTR [rax]
.L4:
	xor	r12d, r12d
	mov	r14, rsp
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	sprintf@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, 4
	lea	rsi, .LC1[rip]
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, 7
	mov	rsi, r14
	lea	rdi, 64[rax]
	call	memcpy@PLT
	mov	r15, QWORD PTR MSDOS_NAME[rip]
	test	r13, r13
	je	.L9
	mov	rbx, r13
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	rbp, rbx
	je	.L6
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 8[rbx]
	mov	rdx, r15
	call	strncmp@PLT
	test	eax, eax
	je	.L7
.L6:
	mov	rbx, QWORD PTR 32[rbx]
	test	rbx, rbx
	jne	.L8
.L9:
	mov	edx, DWORD PTR 0[rbp]
	mov	eax, DWORD PTR FAT_NO_83NAME[rip]
	mov	edi, DWORD PTR 16[rbp]
	test	edx, eax
	je	.L23
	not	eax
	lea	rsi, 2[r15]
	and	eax, edx
	mov	rdx, rbp
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR ATTR_DIR[rip]
	or	eax, DWORD PTR ATTR_VOLUME[rip]
	not	eax
	and	DWORD PTR 4[rbp], eax
	call	fs_write@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.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
.L7:
	.cfi_restore_state
	lea	eax, 1[r12]
	cmp	eax, 9999999
	jg	.L26
.L14:
	add	r12, 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC2[rip]
	call	die@PLT
	jmp	.L14
.L23:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rsi, r15
	call	fs_write@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L1
.L24:
	mov	rdx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 20[rbp]
	call	lfn_fix_checksum@PLT
	jmp	.L1
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	auto_rename, .-auto_rename
	.comm	root,8,8
	.comm	MSDOS_NAME,8,8
	.comm	FAT_NO_83NAME,4,4
	.comm	ATTR_VOLUME,4,4
	.comm	ATTR_DIR,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_check.c_auto_rename.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%07lu\000"
	.align	2
.LC1:
	.ascii	"FSCK\000"
	.align	2
.LC2:
	.ascii	"Too many files need repair.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	auto_rename, %function
auto_rename:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r0, #12]
	ldr	r3, .L32
	sub	sp, sp, #20
	cmp	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L1
	mov	r10, r0
	mov	r5, #0
	ldr	r2, [r0, #28]
	ldr	r7, .L32+4
	cmp	r2, #0
	ldreq	r2, .L32+8
	ldr	r9, .L32+12
	ldr	r6, [r2]
	ldr	r8, .L32+16
.L12:
	mov	r2, r5
	mov	r1, r9
	add	r0, sp, #4
	bl	sprintf
	mov	r2, #4
	mov	r1, r8
	ldr	r0, [r10, #8]
	bl	memcpy
	ldr	r0, [r10, #8]
	mov	r2, #7
	add	r0, r0, #48
	add	r1, sp, #4
	bl	memcpy
	cmp	r6, #0
	beq	.L5
	mov	r4, r6
	ldr	fp, [r7]
.L8:
	cmp	r10, r4
	beq	.L6
	mov	r2, fp
	ldr	r1, [r10, #8]
	ldr	r0, [r4, #8]
	bl	strncmp
	cmp	r0, #0
	beq	.L7
.L6:
	ldr	r4, [r4, #24]
	cmp	r4, #0
	bne	.L8
.L9:
	ldr	r0, .L32+20
	ldr	r1, [r10]
	ldr	ip, [r0]
	ldr	r0, [r10, #12]
	tst	r1, ip
	beq	.L29
	ldr	lr, .L32+24
	ldr	r4, .L32+28
	ldr	lr, [lr]
	ldr	r4, [r4]
	bic	r1, r1, ip
	ldr	ip, [r10, #4]
	orr	lr, lr, r4
	bic	ip, ip, lr
	mov	r2, r10
	str	r1, [r10]
	str	ip, [r10, #4]
	add	r1, fp, #2
	bl	fs_write
	ldr	r2, [r10, #20]
	cmp	r2, #0
	bne	.L30
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, .L32+32
	add	r5, r5, #1
	cmp	r5, r3
	ble	.L12
	ldr	r0, .L32+36
	bl	die
	b	.L12
.L5:
	ldr	fp, [r7]
	b	.L9
.L29:
	ldr	r2, [r10, #8]
	mov	r1, fp
	bl	fs_write
	ldr	r2, [r10, #20]
	cmp	r2, #0
	beq	.L1
.L30:
	ldr	r2, [r10, #8]
	ldr	r1, [r10, #12]
	ldr	r0, [r10, #16]
	bl	lfn_fix_checksum
	b	.L1
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC3
	.word	MSDOS_NAME
	.word	root
	.word	.LC0
	.word	.LC1
	.word	FAT_NO_83NAME
	.word	ATTR_DIR
	.word	ATTR_VOLUME
	.word	9999999
	.word	.LC2
	.size	auto_rename, .-auto_rename
	.comm	root,4,4
	.comm	MSDOS_NAME,4,4
	.comm	FAT_NO_83NAME,4,4
	.comm	ATTR_VOLUME,4,4
	.comm	ATTR_DIR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
