	.file	"extr_xfs_dir2_node.c_xfs_dir2_node_addname_int.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xfs_dir2_node_addname_int, @function
xfs_dir2_node_addname_int:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	r14, QWORD PTR 40[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 48[rdi]
	lea	r15, 56[rsp]
	mov	edi, DWORD PTR 24[rdi]
	mov	DWORD PTR 64[rsp], 0
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR [r14]
	mov	DWORD PTR 68[rsp], 0
	call	[QWORD PTR [rax]]
	lea	r8, 60[rsp]
	lea	rcx, 80[rsp]
	mov	rdx, r15
	mov	r9d, eax
	mov	rsi, r13
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], r8
	mov	QWORD PTR 8[rsp], rcx
	mov	ebp, eax
	call	xfs_dir2_node_find_freeblk@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR XFS_DA_OP_JUSTCHECK[rip]
	mov	esi, DWORD PTR 56[rsp]
	mov	rcx, QWORD PTR 8[rsp]
	mov	DWORD PTR 36[rsp], eax
	mov	r8, QWORD PTR 16[rsp]
	jne	.L18
	cmp	esi, -1
	je	.L19
	mov	edi, DWORD PTR 32[rbx]
	call	xfs_dir2_db_to_da@PLT
	mov	rdi, QWORD PTR 24[rsp]
	lea	r8, 72[rsp]
	mov	rsi, r14
	mov	edx, eax
	mov	ecx, -1
	call	xfs_dir3_data_read@PLT
	mov	r12d, eax
.L5:
	test	r12d, r12d
	jne	.L1
	mov	rax, QWORD PTR 72[rsp]
	mov	r15, QWORD PTR [rax]
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR 40[rsp], r15
	mov	rdi, r15
	call	[QWORD PTR 32[rax]]
	mov	edi, DWORD PTR [rax]
	mov	r13, rax
	call	be16_to_cpu@PLT
	xor	edi, edi
	cmp	eax, ebp
	setge	dil
	call	ASSERT@PLT
	mov	edi, DWORD PTR 4[r13]
	call	be16_to_cpu@PLT
	lea	r9, 64[rsp]
	mov	rdi, rbx
	mov	r8d, ebp
	mov	DWORD PTR 16[rsp], eax
	sub	rsp, 8
	.cfi_def_cfa_offset 168
	movsx	rcx, eax
	lea	rax, 76[rsp]
	add	r15, rcx
	push	rax
	.cfi_def_cfa_offset 176
	mov	rsi, QWORD PTR 88[rsp]
	mov	rdx, r15
	mov	QWORD PTR 24[rsp], r9
	call	xfs_dir2_data_use_free@PLT
	pop	rsi
	.cfi_def_cfa_offset 168
	pop	rdi
	.cfi_def_cfa_offset 160
	test	eax, eax
	mov	r9, QWORD PTR 8[rsp]
	mov	r12d, eax
	jne	.L20
	mov	edi, DWORD PTR 28[rbx]
	mov	QWORD PTR 8[rsp], r9
	call	cpu_to_be64@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	esi, DWORD PTR 20[rbx]
	mov	DWORD PTR 8[r15], eax
	mov	edi, DWORD PTR 4[r15]
	mov	DWORD PTR [r15], edx
	call	memcpy@PLT
	mov	rax, QWORD PTR [r14]
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, r15
	call	[QWORD PTR 24[rax]]
	mov	rax, QWORD PTR [r14]
	mov	rdi, r15
	call	[QWORD PTR 16[rax]]
	mov	edi, DWORD PTR 16[rsp]
	mov	rbp, rax
	call	cpu_to_be16@PLT
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdx, r15
	mov	rdi, rbx
	mov	DWORD PTR 0[rbp], eax
	call	xfs_dir2_data_log_entry@PLT
	mov	ecx, DWORD PTR 68[rsp]
	mov	r9, QWORD PTR 8[rsp]
	test	ecx, ecx
	jne	.L21
.L7:
	mov	edx, DWORD PTR 64[rsp]
	test	edx, edx
	jne	.L22
.L8:
	mov	rdx, QWORD PTR 80[rsp]
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rdx]
	call	[QWORD PTR 8[rax]]
	movsx	rcx, DWORD PTR 60[rsp]
	lea	rax, [rax+rcx*4]
	mov	rdx, rcx
	mov	ecx, DWORD PTR 0[r13]
	cmp	DWORD PTR [rax], ecx
	je	.L9
	mov	DWORD PTR [rax], ecx
	mov	edx, DWORD PTR 60[rsp]
.L10:
	mov	rsi, QWORD PTR 80[rsp]
	mov	ecx, edx
	mov	rdi, rbx
	call	xfs_dir2_free_log_bests@PLT
.L11:
	movsx	rax, DWORD PTR 56[rsp]
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR 8[rbx], rax
	call	be16_to_cpu@PLT
	mov	DWORD PTR 4[rbx], eax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 104
	.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
.L18:
	.cfi_restore_state
	cmp	esi, -1
	jne	.L1
	mov	r12d, DWORD PTR ENOSPC[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	call	xfs_trans_brelse@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	lea	r11, 72[rsp]
	mov	r9, r8
	mov	rdx, r15
	mov	r8, rcx
	mov	rsi, r13
	mov	rcx, r11
	mov	rdi, rbx
	call	xfs_dir2_node_add_datablk@PLT
	mov	DWORD PTR 36[rsp], 1
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 36[rsp]
	test	eax, eax
	je	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, QWORD PTR 72[rsp]
	mov	rdi, rbx
	call	xfs_dir2_data_log_header@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdx, r9
	mov	rdi, r14
	call	xfs_dir2_data_freescan@PLT
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfs_dir2_node_addname_int, .-xfs_dir2_node_addname_int
	.comm	XFS_DA_OP_JUSTCHECK,4,4
	.comm	ENOSPC,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_xfs_dir2_node.c_xfs_dir2_node_addname_int.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfs_dir2_node_addname_int, %function
xfs_dir2_node_addname_int:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r7, [r0, #32]
	sub	sp, sp, #60
	ldr	r2, [r7]
	str	r3, [sp, #44]
	ldr	r2, [r2]
	str	r3, [sp, #48]
	ldr	r3, .L30
	ldr	r0, [r0, #20]
	mov	r10, r1
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r9, [r4, #36]
	blx	r2
	add	ip, sp, #40
	str	r0, [sp, #4]
	mov	r6, r0
	mov	r1, r10
	mov	r0, r4
	add	r3, sp, #32
	add	r2, sp, #36
	str	ip, [sp]
	bl	xfs_dir2_node_find_freeblk
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L30+4
	ldr	r8, [r4]
	ldr	r3, [r3]
	ldr	r1, [sp, #36]
	ands	r3, r8, r3
	str	r3, [sp, #16]
	bne	.L24
	cmn	r1, #1
	beq	.L25
	ldr	r0, [r4, #28]
	bl	xfs_dir2_db_to_da
	add	r3, sp, #28
	mov	r2, r0
	str	r3, [sp]
	mov	r1, r7
	mvn	r3, #0
	mov	r0, r9
	bl	xfs_dir3_data_read
	mov	r5, r0
.L5:
	cmp	r5, #0
	bne	.L1
	ldr	r2, [sp, #28]
	ldr	r3, [r7]
	ldr	fp, [r2]
	ldr	r3, [r3, #16]
	mov	r0, fp
	blx	r3
	mov	r5, r0
	str	r0, [sp, #20]
	ldr	r0, [r0]
	bl	be16_to_cpu
	cmp	r0, r6
	movlt	r0, #0
	movge	r0, #1
	bl	ASSERT
	ldr	r0, [r5, #4]
	bl	be16_to_cpu
	add	r1, sp, #48
	add	r10, fp, r0
	str	r1, [sp, #8]
	add	r1, sp, #44
	mov	r3, r0
	str	r1, [sp, #4]
	mov	r8, r0
	mov	r2, r10
	mov	r0, r4
	ldr	r1, [sp, #28]
	str	r6, [sp]
	bl	xfs_dir2_data_use_free
	subs	r5, r0, #0
	bne	.L26
	ldr	r0, [r4, #24]
	bl	cpu_to_be64
	ldr	r2, [r4, #20]
	ldr	r1, [r4, #16]
	str	r0, [r10, #8]
	str	r2, [fp, r8]
	ldr	r0, [r10, #4]
	bl	memcpy
	ldr	r2, [r7]
	ldr	r1, [r4, #12]
	ldr	r2, [r2, #12]
	mov	r0, r10
	blx	r2
	ldr	r2, [r7]
	mov	r0, r10
	ldr	r2, [r2, #8]
	blx	r2
	mov	r6, r0
	mov	r0, r8
	bl	cpu_to_be16
	mov	r2, r10
	str	r0, [r6]
	ldr	r1, [sp, #28]
	mov	r0, r4
	bl	xfs_dir2_data_log_entry
	ldr	r3, [sp, #48]
	cmp	r3, #0
	bne	.L27
.L7:
	ldr	r3, [sp, #44]
	cmp	r3, #0
	bne	.L28
.L8:
	ldr	r2, [sp, #32]
	ldr	r3, [r7]
	ldr	r0, [r2]
	ldr	r3, [r3, #4]
	blx	r3
	ldr	r3, [sp, #40]
	ldr	r2, [sp, #20]
	ldr	r1, [r0, r3, lsl #2]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L9
	str	r2, [r0, r3, lsl #2]
	ldr	r3, [sp, #40]
.L10:
	mov	r2, r3
	mov	r0, r4
	ldr	r1, [sp, #32]
	bl	xfs_dir2_free_log_bests
.L11:
	ldr	r3, [sp, #36]
	ldr	r0, [r6]
	str	r3, [r4, #8]
	bl	be16_to_cpu
	str	r0, [r4, #4]
.L1:
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	cmn	r1, #1
	ldreq	r3, .L30+8
	ldreq	r0, [r3]
	rsbeq	r5, r0, #0
	b	.L1
.L26:
	mov	r0, r9
	ldr	r1, [sp, #28]
	bl	xfs_trans_brelse
	b	.L1
.L25:
	add	r3, sp, #40
	str	r3, [sp, #4]
	add	r3, sp, #32
	str	r3, [sp]
	mov	r1, r10
	add	r3, sp, #28
	mov	r0, r4
	add	r2, sp, #36
	bl	xfs_dir2_node_add_datablk
	mov	r3, #1
	mov	r5, r0
	str	r3, [sp, #16]
	b	.L5
.L9:
	ldr	r2, [sp, #16]
	cmp	r2, #0
	beq	.L11
	b	.L10
.L28:
	mov	r0, r4
	ldr	r1, [sp, #28]
	bl	xfs_dir2_data_log_header
	b	.L8
.L27:
	mov	r1, fp
	mov	r0, r7
	add	r2, sp, #44
	bl	xfs_dir2_data_freescan
	b	.L7
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	.LC0
	.word	XFS_DA_OP_JUSTCHECK
	.word	ENOSPC
	.size	xfs_dir2_node_addname_int, .-xfs_dir2_node_addname_int
	.comm	XFS_DA_OP_JUSTCHECK,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
