	.file	"extr_namei.c_affs_rename.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"AFFS: rename(old=%u,\"%*s\" to new=%u,\"%*s\")\n"
	.text
	.p2align 4
	.globl	affs_rename
	.type	affs_rename, @function
affs_rename:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR 16[r14]
	mov	ecx, DWORD PTR 16[rsi]
	mov	r13, QWORD PTR 8[rdi]
	mov	rsi, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	r8d, DWORD PTR [rdx]
	mov	r9d, DWORD PTR 8[r14]
	push	rax
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR 8[r15]
	call	pr_debug@PLT
	mov	rsi, QWORD PTR 8[r14]
	mov	edi, DWORD PTR 16[r14]
	call	affs_check_name@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR [r14], 0
	je	.L6
	mov	rdi, r14
	call	affs_remove_header@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L6:
	mov	rax, QWORD PTR [r15]
	mov	rdi, r13
	mov	esi, DWORD PTR [rax]
	call	affs_bread@PLT
	mov	r15, rax
	test	rax, rax
	je	.L11
	mov	rdi, rbp
	call	affs_lock_dir@PLT
	mov	rdi, rbp
	mov	rsi, r15
	call	affs_remove_hash@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	affs_unlock_dir@PLT
	test	r12d, r12d
	je	.L12
.L7:
	mov	rdi, r15
	mov	rsi, rbp
	call	mark_buffer_dirty_inode@PLT
	mov	rdi, r15
	call	affs_brelse@PLT
.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
.L12:
	.cfi_restore_state
	mov	rsi, r15
	mov	rdi, r13
	call	AFFS_TAIL@PLT
	mov	rsi, r14
	mov	edi, DWORD PTR [rax]
	call	affs_copy_name@PLT
	mov	rsi, r15
	mov	rdi, r13
	call	affs_fix_checksum@PLT
	mov	rdi, rbx
	call	affs_lock_dir@PLT
	mov	rsi, r15
	mov	rdi, rbx
	call	affs_insert_hash@PLT
	mov	rdi, rbx
	mov	r12d, eax
	call	affs_unlock_dir@PLT
	test	r12d, r12d
	cmove	rbp, rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	affs_rename, .-affs_rename
	.comm	EIO,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.c_affs_rename.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AFFS: rename(old=%u,\"%*s\" to new=%u,\"%*s\")\012\000"
	.text
	.align	2
	.global	affs_rename
	.syntax unified
	.arm
	.fpu softvfp
	.type	affs_rename, %function
affs_rename:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r2
	mov	r6, r0
	mov	r9, r1
	mov	r5, r3
	ldr	r1, [r0]
	ldr	r2, [r3, #4]
	ldr	r0, [r3, #8]
	ldr	r3, [r7]
	sub	sp, sp, #20
	ldr	r8, [r6, #4]
	str	r0, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldmib	r9, {r2, r3}
	ldr	r0, .L13
	bl	pr_debug
	ldr	r1, [r5, #4]
	ldr	r0, [r5, #8]
	bl	affs_check_name
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L6
	mov	r0, r5
	bl	affs_remove_header
	subs	r4, r0, #0
	bne	.L1
.L6:
	ldr	r3, [r9]
	mov	r0, r8
	ldr	r1, [r3]
	bl	affs_bread
	subs	r9, r0, #0
	beq	.L11
	mov	r0, r6
	bl	affs_lock_dir
	mov	r1, r9
	mov	r0, r6
	bl	affs_remove_hash
	mov	r4, r0
	mov	r0, r6
	bl	affs_unlock_dir
	cmp	r4, #0
	beq	.L12
.L7:
	mov	r1, r6
	mov	r0, r9
	bl	mark_buffer_dirty_inode
	mov	r0, r9
	bl	affs_brelse
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	mov	r1, r9
	mov	r0, r8
	bl	AFFS_TAIL
	mov	r1, r5
	ldr	r0, [r0]
	bl	affs_copy_name
	mov	r1, r9
	mov	r0, r8
	bl	affs_fix_checksum
	mov	r0, r7
	bl	affs_lock_dir
	mov	r1, r9
	mov	r0, r7
	bl	affs_insert_hash
	mov	r4, r0
	mov	r0, r7
	cmp	r4, #0
	moveq	r6, r7
	bl	affs_unlock_dir
	b	.L7
.L11:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	EIO
	.size	affs_rename, .-affs_rename
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
