	.file	"extr_namei.c_filename_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	filename_create, @function
filename_create:
.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, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR EEXIST[rip]
	mov	QWORD PTR [rsp], rsi
	lea	r14, 32[rsp]
	neg	edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	ERR_PTR@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	edi, r13d
	mov	r8, r14
	mov	r15d, DWORD PTR LOOKUP_REVAL[rip]
	mov	r12, rax
	mov	eax, DWORD PTR LOOKUP_DIRECTORY[rip]
	mov	rcx, rbp
	lea	r9, 28[rsp]
	and	r15d, ebx
	mov	DWORD PTR 12[rsp], eax
	mov	edx, r15d
	call	filename_parentat@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	xor	edi, edi
	mov	eax, DWORD PTR LAST_NORM[rip]
	cmp	DWORD PTR 28[rsp], eax
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L17
.L4:
	mov	rdi, rbp
	call	path_put@PLT
.L14:
	mov	rdi, r13
	call	putname@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	mnt_want_write@PLT
	mov	esi, DWORD PTR I_MUTEX_PARENT[rip]
	mov	edx, DWORD PTR LOOKUP_CREATE[rip]
	mov	DWORD PTR [rsp], eax
	mov	rax, QWORD PTR 8[rbp]
	or	edx, DWORD PTR LOOKUP_EXCL[rip]
	mov	edi, DWORD PTR [rax]
	or	r15d, edx
	call	inode_lock_nested@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, r14
	mov	edx, r15d
	call	__lookup_hash@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L19
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	inode_unlock@PLT
	mov	eax, DWORD PTR [rsp]
	test	eax, eax
	jne	.L4
	mov	edi, DWORD PTR 0[rbp]
	call	mnt_drop_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	call	ERR_CAST@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, r12
	mov	r14d, DWORD PTR EEXIST[rip]
	call	d_is_positive@PLT
	test	rax, rax
	jne	.L6
	xor	edi, edi
	test	DWORD PTR 12[rsp], ebx
	jne	.L7
	mov	rdx, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR 40[rsp]
	xor	edi, edi
	cmp	QWORD PTR [rax+rdx*8], 0
	setne	dil
.L7:
	call	unlikely@PLT
	test	rax, rax
	je	.L8
	mov	r14d, DWORD PTR ENOENT[rip]
	neg	r14d
.L9:
	mov	rdi, r12
	call	dput@PLT
	mov	edi, r14d
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	neg	r14d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r14d, DWORD PTR [rsp]
	mov	edi, r14d
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
	jmp	.L14
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	filename_create, .-filename_create
	.comm	LOOKUP_REVAL,4,4
	.comm	LOOKUP_EXCL,4,4
	.comm	LOOKUP_DIRECTORY,4,4
	.comm	LOOKUP_CREATE,4,4
	.comm	LAST_NORM,4,4
	.comm	I_MUTEX_PARENT,4,4
	.comm	ENOENT,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_namei.c_filename_create.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	filename_create, %function
filename_create:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, .L19
	mov	r7, r3
	ldr	r3, [fp]
	mov	r8, r0
	rsb	r0, r3, #0
	ldr	r3, .L19+4
	sub	sp, sp, #28
	mov	r9, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	ERR_PTR
	ldr	r3, .L19+8
	ldr	ip, .L19+12
	ldr	r6, [r3]
	add	lr, sp, #8
	and	r6, r6, r7
	add	r10, sp, #12
	mov	r1, r9
	mov	r2, r6
	mov	r3, r5
	stm	sp, {r10, lr}
	mov	r4, r0
	mov	r0, r8
	ldr	r9, [ip]
	bl	filename_parentat
	mov	r8, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L19+16
	ldr	r0, [sp, #8]
	ldr	r3, [r3]
	subs	r0, r0, r3
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	beq	.L16
.L4:
	mov	r0, r5
	bl	path_put
.L13:
	mov	r0, r8
	bl	putname
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r0, [r5]
	bl	mnt_want_write
	mov	r3, r0
	ldr	r1, .L19+20
	ldr	r2, .L19+24
	ldr	r4, [r1]
	ldr	r2, [r2]
	ldr	r1, .L19+28
	orr	r4, r4, r2
	ldr	r2, [r5, #4]
	orr	r4, r4, r6
	ldr	r1, [r1]
	ldr	r0, [r2]
	mov	r6, r3
	bl	inode_lock_nested
	mov	r2, r4
	ldr	r1, [r5, #4]
	mov	r0, r10
	bl	__lookup_hash
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L18
.L5:
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	bl	inode_unlock
	cmp	r6, #0
	bne	.L4
	ldr	r0, [r5]
	bl	mnt_drop_write
	b	.L4
.L15:
	mov	r0, r8
	bl	ERR_CAST
	mov	r4, r0
	b	.L1
.L18:
	mov	r0, r4
	ldr	r10, [fp]
	bl	d_is_positive
	cmp	r0, #0
	bne	.L6
	tst	r9, r7
	bne	.L7
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	ldr	r0, [r3, r2, lsl #2]
	subs	r0, r0, #0
	movne	r0, #1
.L7:
	bl	unlikely
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L19+32
	ldr	r10, [r3]
	rsb	r10, r10, #0
.L9:
	mov	r0, r4
	bl	dput
	mov	r0, r10
	bl	ERR_PTR
	mov	r4, r0
	b	.L5
.L6:
	rsb	r10, r10, #0
	b	.L9
.L8:
	mov	r0, r6
	bl	unlikely
	cmp	r0, #0
	movne	r10, r6
	bne	.L9
	b	.L13
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	EEXIST
	.word	.LC0
	.word	LOOKUP_REVAL
	.word	LOOKUP_DIRECTORY
	.word	LAST_NORM
	.word	LOOKUP_CREATE
	.word	LOOKUP_EXCL
	.word	I_MUTEX_PARENT
	.word	ENOENT
	.size	filename_create, .-filename_create
	.comm	LOOKUP_REVAL,4,4
	.comm	LOOKUP_EXCL,4,4
	.comm	LOOKUP_DIRECTORY,4,4
	.comm	LOOKUP_CREATE,4,4
	.comm	LAST_NORM,4,4
	.comm	I_MUTEX_PARENT,4,4
	.comm	ENOENT,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
