	.file	"extr_dir.c_sysfs_rename_dir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sysfs_rename_dir
	.type	sysfs_rename_dir, @function
sysfs_rename_dir:
.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
	xor	r14d, r14d
	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, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR [rdi]
	lea	rdi, sysfs_rename_mutex[rip]
	call	mutex_lock@PLT
	mov	rsi, rbp
	mov	rdi, QWORD PTR [r12]
	call	strcmp@PLT
	test	rax, rax
	jne	.L13
.L2:
	lea	rdi, sysfs_rename_mutex[rip]
	call	mutex_unlock@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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	rdi, r12
	call	sysfs_get_dentry@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L14
	mov	rbx, QWORD PTR 8[r13]
	mov	rdi, QWORD PTR [rbx]
	call	mutex_lock@PLT
	lea	rdi, sysfs_mutex[rip]
	call	mutex_lock@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	rsi, rbp
	mov	r15d, DWORD PTR EEXIST[rip]
	call	sysfs_find_dirent@PLT
	test	rax, rax
	je	.L4
	neg	r15d
	xor	ebp, ebp
	mov	r14d, r15d
	xor	r15d, r15d
.L5:
	lea	rdi, sysfs_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR [rbx]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r13
	call	dput@PLT
	mov	rdi, r15
	call	dput@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	rsi, rbp
	mov	rdi, rbx
	mov	DWORD PTR 8[rsp], eax
	call	d_alloc_name@PLT
	mov	r15, rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], eax
	call	kstrdup@PLT
	test	rax, rax
	je	.L11
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], rax
	call	sysfs_unlink_sibling@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rbp, QWORD PTR [r12]
	mov	rdi, r12
	mov	QWORD PTR [r12], rdx
	call	sysfs_link_sibling@PLT
	xor	esi, esi
	mov	rdi, r15
	call	d_add@PLT
	mov	rsi, r15
	mov	rdi, r13
	call	d_move@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r14d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r14d, DWORD PTR 8[rsp]
	xor	ebp, ebp
	neg	r14d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	sysfs_rename_dir, .-sysfs_rename_dir
	.comm	sysfs_rename_mutex,4,4
	.comm	sysfs_mutex,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EEXIST,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_dir.c_sysfs_rename_dir.c"
	.text
	.align	2
	.global	sysfs_rename_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	sysfs_rename_dir, %function
sysfs_rename_dir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r6, [r0]
	ldr	r0, .L15
	bl	mutex_lock
	mov	r1, r5
	ldr	r0, [r6]
	bl	strcmp
	subs	r4, r0, #0
	bne	.L13
.L2:
	ldr	r0, .L15
	bl	mutex_unlock
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r6
	bl	sysfs_get_dentry
	mov	r8, r0
	bl	IS_ERR
	subs	r7, r0, #0
	bne	.L14
	ldr	r9, [r8, #4]
	ldr	r0, [r9]
	bl	mutex_lock
	ldr	r0, .L15+4
	bl	mutex_lock
	ldr	r3, .L15+8
	mov	r1, r5
	ldr	r0, [r6, #4]
	ldr	r10, [r3]
	bl	sysfs_find_dirent
	subs	r4, r0, #0
	beq	.L4
	mov	r5, r7
	rsb	r4, r10, #0
.L5:
	ldr	r0, .L15+4
	bl	mutex_unlock
	ldr	r0, [r9]
	bl	mutex_unlock
	mov	r0, r5
	bl	kfree
	mov	r0, r8
	bl	dput
	mov	r0, r7
	bl	dput
	b	.L2
.L4:
	ldr	fp, .L15+12
	mov	r1, r5
	mov	r0, r9
	ldr	r10, [fp]
	bl	d_alloc_name
	subs	r7, r0, #0
	moveq	r5, r7
	rsbeq	r4, r10, #0
	beq	.L5
	ldr	r3, .L15+16
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r5, [fp]
	bl	kstrdup
	subs	r10, r0, #0
	rsbeq	r4, r5, #0
	moveq	r5, r10
	beq	.L5
	mov	r0, r6
	bl	sysfs_unlink_sibling
	ldr	r5, [r6]
	mov	r0, r6
	str	r10, [r6]
	bl	sysfs_link_sibling
	mov	r1, r4
	mov	r0, r7
	bl	d_add
	mov	r1, r7
	mov	r0, r8
	bl	d_move
	b	.L5
.L14:
	mov	r0, r8
	bl	PTR_ERR
	mov	r4, r0
	b	.L2
.L16:
	.align	2
.L15:
	.word	sysfs_rename_mutex
	.word	sysfs_mutex
	.word	EEXIST
	.word	ENOMEM
	.word	GFP_KERNEL
	.size	sysfs_rename_dir, .-sysfs_rename_dir
	.comm	sysfs_rename_mutex,4,4
	.comm	sysfs_mutex,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
