	.file	"extr_kobject.c_kobject_rename.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DEVPATH_OLD=%s"
	.text
	.p2align 4
	.globl	kobject_rename
	.type	kobject_rename, @function
kobject_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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	kobject_get@PLT
	test	rax, rax
	je	.L4
	mov	rbp, rax
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L12
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.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	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, rbp
	call	kobject_get_path@PLT
	mov	r13, rax
	test	rax, rax
	je	.L14
	mov	rdi, rax
	call	strlen@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	rdi, 15[rax]
	call	kmalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L15
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	sprintf@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r12
	mov	QWORD PTR [rsp], r14
	mov	QWORD PTR 8[rsp], 0
	call	kstrdup@PLT
	mov	r15, rax
	test	rax, rax
	je	.L16
	mov	rsi, r12
	mov	rdi, rbp
	call	sysfs_rename_dir@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rbx, QWORD PTR 0[rbp]
	mov	QWORD PTR 0[rbp], r15
	mov	rdx, rsp
	mov	rdi, rbp
	mov	esi, DWORD PTR KOBJ_MOVE[rip]
	mov	r15, rbx
	call	kobject_uevent_env@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r15
	call	kfree@PLT
	mov	rdi, r14
	call	kfree@PLT
	mov	rdi, r13
	call	kfree@PLT
	mov	rdi, rbp
	call	kobject_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR ENOMEM[rip]
	xor	r15d, r15d
	neg	r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR ENOMEM[rip]
	xor	r14d, r14d
	xor	r15d, r15d
	neg	r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L6
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kobject_rename, .-kobject_rename
	.comm	KOBJ_MOVE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_kobject.c_kobject_rename.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DEVPATH_OLD=%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kobject_rename
	.syntax unified
	.arm
	.fpu softvfp
	.type	kobject_rename, %function
kobject_rename:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r1
	bl	kobject_get
	subs	r5, r0, #0
	beq	.L4
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L15
.L4:
	ldr	r3, .L20+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r8, .L20+8
	ldr	r1, [r8]
	bl	kobject_get_path
	subs	r6, r0, #0
	beq	.L17
	bl	strlen
	ldr	r1, [r8]
	add	r0, r0, #15
	bl	kmalloc
	subs	r7, r0, #0
	beq	.L18
	mov	r2, r6
	ldr	r1, .L20+12
	bl	sprintf
	mov	r3, #0
	ldr	r1, [r8]
	mov	r0, r4
	str	r7, [sp, #4]
	str	r3, [sp, #8]
	bl	kstrdup
	subs	r8, r0, #0
	beq	.L19
	mov	r1, r4
	mov	r0, r5
	bl	sysfs_rename_dir
	subs	r4, r0, #0
	bne	.L6
	ldr	r2, .L20+16
	ldr	r3, [r5]
	ldr	r1, [r2]
	mov	r0, r5
	str	r8, [r5]
	add	r2, sp, #4
	mov	r8, r3
	bl	kobject_uevent_env
.L6:
	mov	r0, r8
	bl	kfree
	mov	r0, r7
	bl	kfree
	mov	r0, r6
	bl	kfree
	mov	r0, r5
	bl	kobject_put
	b	.L1
.L18:
	ldr	r3, .L20+20
	mov	r8, r7
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L17:
	ldr	r3, .L20+20
	mov	r7, r6
	ldr	r4, [r3]
	mov	r8, r6
	rsb	r4, r4, #0
	b	.L6
.L19:
	ldr	r3, .L20+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L16:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	EINVAL
	.word	GFP_KERNEL
	.word	.LC0
	.word	KOBJ_MOVE
	.word	ENOMEM
	.size	kobject_rename, .-kobject_rename
	.comm	KOBJ_MOVE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
