	.file	"extr_xfs_vnodeops.c_xfs_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	xfs_create
	.type	xfs_create, @function
xfs_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	r13, rsi
	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
	mov	edi, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	DWORD PTR 36[rsp], edx
	mov	DWORD PTR 32[rsp], ecx
	mov	QWORD PTR 40[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	call	S_ISDIR@PLT
	mov	rbx, QWORD PTR 24[rbp]
	mov	rdi, rbp
	mov	rsi, r13
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR B_FALSE[rip]
	mov	QWORD PTR 88[rsp], 0
	mov	QWORD PTR 96[rsp], 0
	mov	QWORD PTR 8[rsp], rax
	mov	QWORD PTR 104[rsp], 0
	mov	QWORD PTR 112[rsp], 0
	call	trace_xfs_create@PLT
	mov	rdi, rbx
	call	XFS_FORCED_SHUTDOWN@PLT
	test	rax, rax
	jne	.L43
	mov	ecx, DWORD PTR XFS_PROJID_DEFAULT[rip]
	mov	r12, rax
	mov	eax, DWORD PTR 8[rbp]
	mov	DWORD PTR [rsp], ecx
	test	DWORD PTR XFS_DIFLAG_PROJINHERIT[rip], eax
	jne	.L44
.L5:
	xor	eax, eax
	mov	r15d, DWORD PTR XFS_QMOPT_QUOTALL[rip]
	or	r15d, DWORD PTR XFS_QMOPT_INHERIT[rip]
	call	current_fsgid@PLT
	mov	r14d, eax
	xor	eax, eax
	call	current_fsuid@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	r8d, r15d
	mov	edx, r14d
	mov	esi, eax
	lea	rax, 120[rsp]
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 208
	mov	ecx, DWORD PTR 16[rsp]
	lea	r9, 120[rsp]
	call	xfs_qm_vop_dqalloc@PLT
	pop	r11
	.cfi_def_cfa_offset 200
	pop	r14
	.cfi_def_cfa_offset 192
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	mov	r10d, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbx
	test	r10d, r10d
	jne	.L45
	call	XFS_CREATE_SPACE_RES@PLT
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], rax
	call	XFS_CREATE_LOG_RES@PLT
	mov	esi, DWORD PTR XFS_TRANS_CREATE[rip]
	mov	rdi, rbx
	mov	r14, rax
	mov	rax, QWORD PTR XFS_CREATE_LOG_COUNT[rip]
	mov	QWORD PTR 24[rsp], rax
	call	xfs_trans_alloc@PLT
	mov	QWORD PTR 96[rsp], rax
	mov	rdi, rax
.L7:
	mov	r9, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 16[rsp]
	xor	ecx, ecx
	mov	rdx, r14
	mov	rax, QWORD PTR XFS_TRANS_RELEASE_LOG_RES[rip]
	mov	r8d, DWORD PTR XFS_TRANS_PERM_LOG_RES[rip]
	mov	QWORD PTR 48[rsp], rax
	call	xfs_trans_reserve@PLT
	cmp	DWORD PTR ENOSPC[rip], eax
	mov	r15d, eax
	je	.L46
.L8:
	test	r15d, r15d
	jne	.L9
	mov	esi, DWORD PTR XFS_ILOCK_EXCL[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR XFS_ILOCK_PARENT[rip]
	call	xfs_ilock@PLT
	mov	rax, QWORD PTR B_TRUE[rip]
	mov	r9d, DWORD PTR 4[rsp]
	mov	QWORD PTR 8[rsp], rax
	test	r9d, r9d
	je	.L10
	mov	rax, QWORD PTR XFS_MAXLINK[rip]
	cmp	QWORD PTR 16[rbp], rax
	jge	.L47
.L10:
	lea	rax, 80[rsp]
	lea	r14, 76[rsp]
	mov	rsi, rax
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], rax
	call	xfs_bmap_init@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	r9d, 1
	mov	rsi, rbx
	push	0
	.cfi_def_cfa_offset 208
	mov	r8, QWORD PTR 32[rsp]
	mov	rcx, QWORD PTR 128[rsp]
	mov	rdx, QWORD PTR 120[rsp]
	mov	rdi, QWORD PTR 112[rsp]
	call	xfs_trans_reserve_quota@PLT
	pop	rdi
	.cfi_def_cfa_offset 200
	pop	r8
	.cfi_def_cfa_offset 192
	mov	r15d, eax
	mov	r12, QWORD PTR 48[rsp]
	test	eax, eax
	je	.L48
.L9:
	mov	rdi, QWORD PTR 96[rsp]
	mov	rsi, r12
	call	xfs_trans_cancel@PLT
.L21:
	mov	rdi, QWORD PTR 88[rsp]
	test	rdi, rdi
	je	.L22
	call	IRELE@PLT
.L22:
	mov	rdi, QWORD PTR 104[rsp]
	call	xfs_qm_dqrele@PLT
	mov	rdi, QWORD PTR 112[rsp]
	call	xfs_qm_dqrele@PLT
	cmp	QWORD PTR 8[rsp], 0
	jne	.L49
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L50
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L45:
	.cfi_restore_state
	call	XFS_MKDIR_SPACE_RES@PLT
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], rax
	call	XFS_MKDIR_LOG_RES@PLT
	mov	esi, DWORD PTR XFS_TRANS_MKDIR[rip]
	mov	rdi, rbx
	mov	r14, rax
	mov	rax, QWORD PTR XFS_MKDIR_LOG_COUNT[rip]
	mov	QWORD PTR 24[rsp], rax
	call	xfs_trans_alloc@PLT
	mov	DWORD PTR 32[rsp], 0
	mov	QWORD PTR 96[rsp], rax
	mov	rdi, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rdi, rbp
	call	xfs_get_projid@PLT
	mov	DWORD PTR [rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L43:
	mov	edi, DWORD PTR EIO[rip]
	call	XFS_ERROR@PLT
	mov	r15d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L49:
	mov	esi, DWORD PTR XFS_ILOCK_EXCL[rip]
	mov	rdi, rbp
	call	xfs_iunlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 96[rsp]
	mov	rdx, r13
	mov	rsi, rbp
	call	xfs_dir_canenter@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L9
	mov	esi, DWORD PTR 4[rsp]
	xor	eax, eax
	cmp	QWORD PTR 16[rsp], 0
	lea	r12, 96[rsp]
	setg	al
	xor	ecx, ecx
	mov	rdi, r12
	test	esi, esi
	mov	rsi, rbp
	setne	cl
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	lea	rdx, 92[rsp]
	add	ecx, 1
	mov	QWORD PTR 64[rsp], rdx
	push	rdx
	.cfi_def_cfa_offset 208
	lea	rdx, 104[rsp]
	push	rdx
	.cfi_def_cfa_offset 216
	push	rax
	.cfi_def_cfa_offset 224
	mov	r9d, DWORD PTR 32[rsp]
	mov	r8d, DWORD PTR 64[rsp]
	mov	edx, DWORD PTR 68[rsp]
	call	xfs_dir_ialloc@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 192
	mov	r15d, eax
	test	eax, eax
	je	.L12
	cmp	DWORD PTR ENOSPC[rip], eax
	mov	r12, QWORD PTR 48[rsp]
	je	.L9
.L13:
	mov	r12, QWORD PTR 48[rsp]
	or	r12, QWORD PTR XFS_TRANS_ABORT[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdi, rbp
	call	xfs_flush_inodes@PLT
	mov	r9, QWORD PTR 24[rsp]
	xor	ecx, ecx
	mov	rdx, r14
	mov	r8d, DWORD PTR XFS_TRANS_PERM_LOG_RES[rip]
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 96[rsp]
	call	xfs_trans_reserve@PLT
	cmp	DWORD PTR ENOSPC[rip], eax
	mov	r15d, eax
	jne	.L8
	mov	r9, QWORD PTR 24[rsp]
	mov	r8d, DWORD PTR XFS_TRANS_PERM_LOG_RES[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	rdi, QWORD PTR 96[rsp]
	mov	rdx, r14
	call	xfs_trans_reserve@PLT
	mov	QWORD PTR 16[rsp], 0
	mov	r15d, eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L47:
	mov	edi, DWORD PTR EMLINK[rip]
	call	XFS_ERROR@PLT
	mov	r12, QWORD PTR 48[rsp]
	mov	r15d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR XFS_ILOCK_EXCL[rip]
	mov	rdi, QWORD PTR 96[rsp]
	mov	rsi, rbp
	call	xfs_trans_ijoin_ref@PLT
	mov	rax, QWORD PTR B_FALSE[rip]
	cmp	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], rax
	jne	.L51
.L14:
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	rdx, r13
	mov	r9, r14
	mov	rsi, rbp
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 208
	mov	rax, QWORD PTR 104[rsp]
	mov	r8, QWORD PTR 40[rsp]
	mov	rdi, QWORD PTR 112[rsp]
	mov	ecx, DWORD PTR [rax]
	call	xfs_dir_createname@PLT
	pop	rdx
	.cfi_def_cfa_offset 200
	pop	rcx
	.cfi_def_cfa_offset 192
	mov	r15d, eax
	test	eax, eax
	jne	.L52
	mov	rdi, QWORD PTR 96[rsp]
	mov	edx, DWORD PTR XFS_ICHGTIME_MOD[rip]
	mov	rsi, rbp
	or	edx, DWORD PTR XFS_ICHGTIME_CHG[rip]
	call	xfs_trans_ichgtime@PLT
	mov	edx, DWORD PTR XFS_ILOG_CORE[rip]
	mov	rdi, QWORD PTR 96[rsp]
	mov	rsi, rbp
	call	xfs_trans_log_inode@PLT
	mov	eax, DWORD PTR 4[rsp]
	test	eax, eax
	jne	.L16
.L20:
	mov	eax, DWORD PTR XFS_MOUNT_WSYNC[rip]
	mov	rdi, QWORD PTR 96[rsp]
	or	eax, DWORD PTR XFS_MOUNT_DIRSYNC[rip]
	test	DWORD PTR [rbx], eax
	jne	.L53
.L18:
	mov	rcx, QWORD PTR 112[rsp]
	mov	rdx, QWORD PTR 104[rsp]
	mov	rsi, QWORD PTR 88[rsp]
	call	xfs_qm_vop_create_dqattach@PLT
	mov	rdx, QWORD PTR 56[rsp]
	mov	rsi, r14
	mov	rdi, r12
	call	xfs_bmap_finish@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L19
	mov	rsi, QWORD PTR XFS_TRANS_RELEASE_LOG_RES[rip]
	mov	rdi, QWORD PTR 96[rsp]
	call	xfs_trans_commit@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L21
	mov	rdi, QWORD PTR 104[rsp]
	call	xfs_qm_dqrele@PLT
	mov	rdi, QWORD PTR 112[rsp]
	call	xfs_qm_dqrele@PLT
	mov	rax, QWORD PTR 88[rsp]
	mov	rbx, QWORD PTR 40[rsp]
	mov	QWORD PTR [rbx], rax
	jmp	.L1
.L16:
	mov	rsi, QWORD PTR 88[rsp]
	mov	rdi, QWORD PTR 96[rsp]
	mov	rdx, rbp
	call	xfs_dir_init@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L19
	mov	rdi, QWORD PTR 96[rsp]
	mov	rsi, rbp
	call	xfs_bumplink@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L20
.L19:
	mov	rdi, r14
	call	xfs_bmap_cancel@PLT
	jmp	.L13
.L52:
	xor	edi, edi
	cmp	DWORD PTR ENOSPC[rip], eax
	setne	dil
	call	ASSERT@PLT
	jmp	.L13
.L51:
	mov	rdi, rbx
	call	XFS_IALLOC_SPACE_RES@PLT
	sub	QWORD PTR 16[rsp], rax
	jmp	.L14
.L53:
	call	xfs_trans_set_sync@PLT
	mov	rdi, QWORD PTR 96[rsp]
	jmp	.L18
.L50:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_create, .-xfs_create
	.comm	XFS_TRANS_RELEASE_LOG_RES,8,8
	.comm	XFS_TRANS_PERM_LOG_RES,4,4
	.comm	XFS_TRANS_MKDIR,4,4
	.comm	XFS_TRANS_CREATE,4,4
	.comm	XFS_TRANS_ABORT,8,8
	.comm	XFS_QMOPT_QUOTALL,4,4
	.comm	XFS_QMOPT_INHERIT,4,4
	.comm	XFS_PROJID_DEFAULT,4,4
	.comm	XFS_MOUNT_WSYNC,4,4
	.comm	XFS_MOUNT_DIRSYNC,4,4
	.comm	XFS_MKDIR_LOG_COUNT,8,8
	.comm	XFS_MAXLINK,8,8
	.comm	XFS_ILOG_CORE,4,4
	.comm	XFS_ILOCK_PARENT,4,4
	.comm	XFS_ILOCK_EXCL,4,4
	.comm	XFS_ICHGTIME_MOD,4,4
	.comm	XFS_ICHGTIME_CHG,4,4
	.comm	XFS_DIFLAG_PROJINHERIT,4,4
	.comm	XFS_CREATE_LOG_COUNT,8,8
	.comm	ENOSPC,4,4
	.comm	EMLINK,4,4
	.comm	EIO,4,4
	.comm	B_TRUE,8,8
	.comm	B_FALSE,8,8
	.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_xfs_vnodeops.c_xfs_create.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	xfs_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_create, %function
xfs_create:
	@ args = 4, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #92
	str	r3, [sp, #36]
	ldr	r3, .L53
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	ldr	r3, [sp, #128]
	mov	r0, r2
	mov	r7, r2
	mov	r6, r1
	str	r3, [sp, #48]
	bl	S_ISDIR
	mov	r3, #0
	mov	r2, r0
	str	r3, [sp, #56]
	str	r3, [sp, #60]
	str	r3, [sp, #76]
	str	r3, [sp, #80]
	ldr	r3, .L53+4
	ldr	r8, [r4, #12]
	ldr	r3, [r3]
	mov	r1, r6
	mov	r0, r4
	str	r2, [sp, #28]
	str	r3, [sp, #32]
	bl	trace_xfs_create
	mov	r0, r8
	bl	XFS_FORCED_SHUTDOWN
	cmp	r0, #0
	bne	.L42
	ldr	r3, .L53+8
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L43
	ldr	r3, .L53+12
	ldr	fp, [r3]
.L5:
	bl	current_fsuid
	mov	r5, r0
	bl	current_fsgid
	ldr	r1, .L53+16
	ldr	r3, .L53+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	add	lr, sp, #80
	orr	r3, r1, r3
	add	ip, sp, #76
	mov	r2, r0
	mov	r1, r5
	stm	sp, {r3, ip, lr}
	mov	r0, r4
	mov	r3, fp
	bl	xfs_qm_vop_dqalloc
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [sp, #28]
	mov	r0, r8
	cmp	r3, #0
	ldr	r1, [r6]
	bne	.L44
	bl	XFS_CREATE_SPACE_RES
	mov	r10, r0
	mov	r0, r8
	bl	XFS_CREATE_LOG_RES
	mov	r9, r0
	ldr	r3, .L53+24
	ldr	r2, .L53+28
	ldr	r3, [r3]
	mov	r0, r8
	ldr	r1, [r2]
	str	r9, [sp, #40]
	str	r3, [sp, #44]
	bl	xfs_trans_alloc
	str	r0, [sp, #60]
.L7:
	ldr	r9, .L53+32
	ldr	r2, [sp, #44]
	ldr	r3, [r9]
	ldr	ip, .L53+36
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	ip, [ip]
	mov	r3, #0
	ldr	r2, [sp, #40]
	mov	r1, r10
	str	ip, [sp, #52]
	bl	xfs_trans_reserve
	ldr	r2, .L53+40
	mov	r3, r0
	ldr	r2, [r2]
	cmp	r2, r0
	beq	.L45
.L8:
	cmp	r3, #0
	bne	.L9
	ldr	r5, .L53+44
	ldr	r3, .L53+48
	ldr	r1, [r5]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	xfs_ilock
	ldr	r3, .L53+52
	ldr	r2, [sp, #28]
	ldr	r3, [r3]
	cmp	r2, #0
	str	r3, [sp, #32]
	beq	.L10
	ldr	r3, .L53+56
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L46
.L10:
	add	r1, sp, #68
	add	r0, sp, #64
	bl	xfs_bmap_init
	mov	r2, #0
	mov	r3, #1
	str	r2, [sp, #8]
	str	r3, [sp, #4]
	mov	r1, r8
	ldr	r3, [sp, #80]
	ldr	r2, [sp, #76]
	ldr	r0, [sp, #60]
	str	r10, [sp]
	bl	xfs_trans_reserve_quota
	subs	r3, r0, #0
	beq	.L47
.L27:
	ldr	r5, [sp, #52]
.L9:
	mov	r1, r5
	ldr	r0, [sp, #60]
	mov	r5, r3
	bl	xfs_trans_cancel
.L21:
	ldr	r0, [sp, #56]
	cmp	r0, #0
	beq	.L22
	bl	IRELE
.L22:
	ldr	r0, [sp, #76]
	bl	xfs_qm_dqrele
	ldr	r0, [sp, #80]
	bl	xfs_qm_dqrele
	ldr	r3, [sp, #32]
	cmp	r3, #0
	bne	.L48
.L1:
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L49
	mov	r0, r5
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	bl	XFS_MKDIR_SPACE_RES
	mov	r10, r0
	mov	r0, r8
	bl	XFS_MKDIR_LOG_RES
	mov	r9, r0
	ldr	r3, .L53+60
	ldr	r2, .L53+64
	ldr	r3, [r3]
	mov	r0, r8
	ldr	r1, [r2]
	str	r9, [sp, #40]
	str	r3, [sp, #44]
	bl	xfs_trans_alloc
	str	r5, [sp, #36]
	str	r0, [sp, #60]
	b	.L7
.L43:
	mov	r0, r4
	bl	xfs_get_projid
	mov	fp, r0
	b	.L5
.L42:
	ldr	r3, .L53+68
	ldr	r0, [r3]
	bl	XFS_ERROR
	mov	r5, r0
	b	.L1
.L48:
	ldr	r3, .L53+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	xfs_iunlock
	b	.L1
.L47:
	mov	r3, r10
	mov	r2, r6
	mov	r1, r4
	ldr	r0, [sp, #60]
	bl	xfs_dir_canenter
	subs	r3, r0, #0
	bne	.L27
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #36]
	cmp	r3, #0
	movne	r3, #2
	moveq	r3, #1
	cmp	r10, #0
	movle	r0, #0
	movgt	r0, #1
	add	r1, sp, #56
	add	r9, sp, #72
	str	r2, [sp]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	mov	r2, r7
	mov	r1, r4
	str	fp, [sp, #4]
	add	r0, sp, #60
	str	r9, [sp, #16]
	bl	xfs_dir_ialloc
	subs	r3, r0, #0
	beq	.L12
	ldr	r2, .L53+40
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L27
.L13:
	ldr	r2, .L53+72
	ldr	r5, [r2]
	ldr	r2, [sp, #52]
	orr	r5, r2, r5
	b	.L9
.L45:
	mov	r0, r4
	bl	xfs_flush_inodes
	ldr	r3, [r9]
	ldr	r2, [sp, #44]
	str	r3, [sp]
	str	r2, [sp, #4]
	mov	r3, #0
	ldr	r2, [sp, #40]
	mov	r1, r10
	ldr	r0, [sp, #60]
	bl	xfs_trans_reserve
	mov	r3, r0
	ldr	r0, .L53+40
	ldr	r2, [r0]
	cmp	r2, r3
	bne	.L8
	mov	r3, #0
	ldr	r2, [r9]
	ldr	r1, [sp, #44]
	str	r2, [sp]
	str	r1, [sp, #4]
	ldr	r2, [sp, #40]
	mov	r1, r3
	ldr	r0, [sp, #60]
	bl	xfs_trans_reserve
	mov	r10, #0
	mov	r3, r0
	b	.L8
.L46:
	ldr	r3, .L53+76
	ldr	r5, [sp, #52]
	ldr	r0, [r3]
	bl	XFS_ERROR
	mov	r3, r0
	b	.L9
.L12:
	ldr	r2, [r5]
	mov	r1, r4
	ldr	r0, [sp, #60]
	bl	xfs_trans_ijoin_ref
	ldr	r2, .L53+4
	ldr	r3, [sp, #56]
	ldr	r2, [r2]
	cmp	r10, #0
	ldr	r7, [r3]
	ldr	r5, [sp, #60]
	str	r2, [sp, #32]
	bne	.L50
.L14:
	add	r3, sp, #64
	str	r3, [sp, #4]
	add	r3, sp, #68
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r7
	mov	r0, r5
	mov	r1, r4
	str	r10, [sp, #8]
	bl	xfs_dir_createname
	subs	r3, r0, #0
	bne	.L51
	ldr	r2, .L53+80
	ldr	r3, .L53+84
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, r4
	orr	r2, r2, r3
	ldr	r0, [sp, #60]
	bl	xfs_trans_ichgtime
	ldr	r3, .L53+88
	mov	r1, r4
	ldr	r2, [r3]
	ldr	r0, [sp, #60]
	bl	xfs_trans_log_inode
	ldr	r3, [sp, #28]
	cmp	r3, #0
	bne	.L16
.L20:
	ldr	r2, .L53+92
	ldr	r3, .L53+96
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r8]
	orr	r3, r3, r1
	tst	r3, r2
	ldr	r0, [sp, #60]
	bne	.L52
.L18:
	ldr	r3, [sp, #80]
	ldr	r2, [sp, #76]
	ldr	r1, [sp, #56]
	bl	xfs_qm_vop_create_dqattach
	mov	r2, r9
	add	r1, sp, #64
	add	r0, sp, #60
	bl	xfs_bmap_finish
	subs	r3, r0, #0
	bne	.L19
	ldr	r3, .L53+36
	ldr	r0, [sp, #60]
	ldr	r1, [r3]
	bl	xfs_trans_commit
	subs	r5, r0, #0
	bne	.L21
	ldr	r0, [sp, #76]
	bl	xfs_qm_dqrele
	ldr	r0, [sp, #80]
	bl	xfs_qm_dqrele
	ldr	r3, [sp, #56]
	ldr	r2, [sp, #48]
	str	r3, [r2]
	b	.L1
.L16:
	mov	r2, r4
	ldr	r1, [sp, #56]
	ldr	r0, [sp, #60]
	bl	xfs_dir_init
	subs	r3, r0, #0
	bne	.L19
	mov	r1, r4
	ldr	r0, [sp, #60]
	bl	xfs_bumplink
	subs	r3, r0, #0
	beq	.L20
.L19:
	add	r0, sp, #64
	str	r3, [sp, #28]
	bl	xfs_bmap_cancel
	ldr	r3, [sp, #28]
	b	.L13
.L51:
	ldr	r2, .L53+40
	str	r3, [sp, #28]
	ldr	r0, [r2]
	subs	r0, r0, r3
	movne	r0, #1
	bl	ASSERT
	ldr	r3, [sp, #28]
	b	.L13
.L50:
	mov	r0, r8
	bl	XFS_IALLOC_SPACE_RES
	sub	r10, r10, r0
	b	.L14
.L52:
	bl	xfs_trans_set_sync
	ldr	r0, [sp, #60]
	b	.L18
.L49:
	bl	__stack_chk_fail
.L54:
	.align	2
.L53:
	.word	.LC0
	.word	B_FALSE
	.word	XFS_DIFLAG_PROJINHERIT
	.word	XFS_PROJID_DEFAULT
	.word	XFS_QMOPT_QUOTALL
	.word	XFS_QMOPT_INHERIT
	.word	XFS_CREATE_LOG_COUNT
	.word	XFS_TRANS_CREATE
	.word	XFS_TRANS_PERM_LOG_RES
	.word	XFS_TRANS_RELEASE_LOG_RES
	.word	ENOSPC
	.word	XFS_ILOCK_EXCL
	.word	XFS_ILOCK_PARENT
	.word	B_TRUE
	.word	XFS_MAXLINK
	.word	XFS_MKDIR_LOG_COUNT
	.word	XFS_TRANS_MKDIR
	.word	EIO
	.word	XFS_TRANS_ABORT
	.word	EMLINK
	.word	XFS_ICHGTIME_MOD
	.word	XFS_ICHGTIME_CHG
	.word	XFS_ILOG_CORE
	.word	XFS_MOUNT_DIRSYNC
	.word	XFS_MOUNT_WSYNC
	.size	xfs_create, .-xfs_create
	.comm	XFS_TRANS_RELEASE_LOG_RES,4,4
	.comm	XFS_TRANS_PERM_LOG_RES,4,4
	.comm	XFS_TRANS_MKDIR,4,4
	.comm	XFS_TRANS_CREATE,4,4
	.comm	XFS_TRANS_ABORT,4,4
	.comm	XFS_QMOPT_QUOTALL,4,4
	.comm	XFS_QMOPT_INHERIT,4,4
	.comm	XFS_PROJID_DEFAULT,4,4
	.comm	XFS_MOUNT_WSYNC,4,4
	.comm	XFS_MOUNT_DIRSYNC,4,4
	.comm	XFS_MKDIR_LOG_COUNT,4,4
	.comm	XFS_MAXLINK,4,4
	.comm	XFS_ILOG_CORE,4,4
	.comm	XFS_ILOCK_PARENT,4,4
	.comm	XFS_ILOCK_EXCL,4,4
	.comm	XFS_ICHGTIME_MOD,4,4
	.comm	XFS_ICHGTIME_CHG,4,4
	.comm	XFS_DIFLAG_PROJINHERIT,4,4
	.comm	XFS_CREATE_LOG_COUNT,4,4
	.comm	ENOSPC,4,4
	.comm	EMLINK,4,4
	.comm	EIO,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
