	.file	"extr_namei.c_jfs_link.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"jfs_link: %s %s"
.LC1:
	.string	"jfs_link: rc:%d"
	.text
	.p2align 4
	.type	jfs_link, @function
jfs_link:
.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, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR [rdi]
	mov	edx, DWORD PTR [rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	r14, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	call	jfs_info@PLT
	mov	r12d, DWORD PTR EMLINK[rip]
	mov	rax, QWORD PTR [r14]
	neg	r12d
	cmp	rax, QWORD PTR JFS_LINK_MAX[rip]
	je	.L1
	test	rax, rax
	jne	.L4
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 72
	.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
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR 36[r14]
	xor	esi, esi
	lea	rbx, 24[rsp]
	call	txBegin@PLT
	mov	r12d, DWORD PTR COMMIT_MUTEX_PARENT[rip]
	mov	rdi, r13
	mov	r15d, eax
	call	JFS_IP@PLT
	mov	esi, r12d
	mov	rdi, rax
	call	mutex_lock_nested@PLT
	mov	r12d, DWORD PTR COMMIT_MUTEX_CHILD[rip]
	mov	rdi, r14
	call	JFS_IP@PLT
	mov	rdi, rax
	mov	esi, r12d
	call	mutex_lock_nested@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	get_UCSname@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L5:
	mov	edi, r15d
	call	txEnd@PLT
	mov	rdi, r14
	call	JFS_IP@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	JFS_IP@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	jfs_info@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	r9, 20[rsp]
	lea	rcx, 28[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	mov	r8d, DWORD PTR JFS_CREATE[rip]
	mov	rdx, r9
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR [rsp], r9
	call	dtSearch@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rcx, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR [rsp]
	mov	rdx, rbx
	mov	rsi, r13
	mov	eax, DWORD PTR 32[r14]
	mov	edi, r15d
	mov	r8, rcx
	mov	rcx, r9
	mov	DWORD PTR 20[rsp], eax
	call	dtInsert@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
.L6:
	mov	rdi, rbx
	call	free_UCSname@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r14
	call	inc_nlink@PLT
	mov	rax, QWORD PTR CURRENT_TIME[rip]
	mov	rdi, r13
	mov	QWORD PTR 24[r14], rax
	mov	QWORD PTR 16[r13], rax
	mov	QWORD PTR 24[r13], rax
	call	mark_inode_dirty@PLT
	lea	rdi, 8[r14]
	call	atomic_inc@PLT
	lea	rdx, 32[rsp]
	xor	ecx, ecx
	mov	edi, r15d
	mov	esi, 2
	mov	QWORD PTR 32[rsp], r14
	mov	QWORD PTR 40[rsp], r13
	call	txCommit@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	sub	QWORD PTR [r14], 1
	mov	rdi, r14
	call	iput@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r14
	mov	rdi, rbp
	call	d_instantiate@PLT
	jmp	.L6
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	jfs_link, .-jfs_link
	.comm	JFS_LINK_MAX,8,8
	.comm	JFS_CREATE,4,4
	.comm	ENOENT,4,4
	.comm	EMLINK,4,4
	.comm	CURRENT_TIME,8,8
	.comm	COMMIT_MUTEX_PARENT,4,4
	.comm	COMMIT_MUTEX_CHILD,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_jfs_link.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"jfs_link: %s %s\000"
	.align	2
.LC1:
	.ascii	"jfs_link: rc:%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jfs_link, %function
jfs_link:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, .L15
	sub	sp, sp, #32
	mov	r5, r2
	mov	r6, r1
	ldr	r2, [r2]
	ldr	r1, [r0]
	ldr	r0, .L15+4
	ldr	r7, [r3, #4]
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bl	jfs_info
	ldr	r2, .L15+8
	ldr	r3, [r7]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r1, #0
	ldr	r0, [r7, #20]
	bl	txBegin
	mov	r8, r0
	mov	r0, r6
	bl	JFS_IP
	ldr	r3, .L15+16
	ldr	r1, [r3]
	bl	mutex_lock_nested
	mov	r0, r7
	bl	JFS_IP
	ldr	r3, .L15+20
	ldr	r1, [r3]
	bl	mutex_lock_nested
	mov	r1, r5
	add	r0, sp, #12
	bl	get_UCSname
	subs	r4, r0, #0
	beq	.L13
.L5:
	mov	r0, r8
	bl	txEnd
	mov	r0, r7
	bl	JFS_IP
	bl	mutex_unlock
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_unlock
	mov	r1, r4
	ldr	r0, .L15+24
	bl	jfs_info
	b	.L1
.L11:
	ldr	r3, .L15+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L13:
	ldr	r3, .L15+32
	mov	r0, r6
	ldr	r3, [r3]
	add	r2, sp, #8
	str	r3, [sp]
	add	r1, sp, #12
	add	r3, sp, #16
	bl	dtSearch
	subs	r4, r0, #0
	bne	.L6
	ldr	ip, [r7, #16]
	add	r2, sp, #16
	str	r2, [sp]
	mov	r1, r6
	mov	r0, r8
	add	r3, sp, #8
	add	r2, sp, #12
	str	ip, [sp, #8]
	bl	dtInsert
	subs	r4, r0, #0
	beq	.L14
.L6:
	add	r0, sp, #12
	bl	free_UCSname
	b	.L5
.L14:
	mov	r0, r7
	bl	inc_nlink
	ldr	r3, .L15+36
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [r7, #12]
	str	r3, [r6, #8]
	str	r3, [r6, #12]
	bl	mark_inode_dirty
	add	r0, r7, #4
	bl	atomic_inc
	mov	r3, r4
	mov	r1, #2
	mov	r0, r8
	add	r2, sp, #20
	str	r7, [sp, #20]
	str	r6, [sp, #24]
	bl	txCommit
	subs	r4, r0, #0
	beq	.L7
	ldr	r3, [r7]
	mov	r0, r7
	sub	r3, r3, #1
	str	r3, [r7]
	bl	iput
	b	.L6
.L7:
	mov	r0, r5
	mov	r1, r7
	bl	d_instantiate
	b	.L6
.L12:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	JFS_LINK_MAX
	.word	ENOENT
	.word	COMMIT_MUTEX_PARENT
	.word	COMMIT_MUTEX_CHILD
	.word	.LC1
	.word	EMLINK
	.word	JFS_CREATE
	.word	CURRENT_TIME
	.size	jfs_link, .-jfs_link
	.comm	JFS_LINK_MAX,4,4
	.comm	JFS_CREATE,4,4
	.comm	ENOENT,4,4
	.comm	EMLINK,4,4
	.comm	CURRENT_TIME,4,4
	.comm	COMMIT_MUTEX_PARENT,4,4
	.comm	COMMIT_MUTEX_CHILD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
