	.file	"extr_namei.c_jfs_unlink.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"jfs_unlink: dip:0x%p name:%pd"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"jfs_unlink: dtDelete returned %d"
	.section	.rodata.str1.1
.LC2:
	.string	"jfs_unlink: rc:%d"
	.text
	.p2align 4
	.type	jfs_unlink, @function
jfs_unlink:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, 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
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	d_inode@PLT
	mov	rdx, r14
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	mov	rbp, rax
	xor	eax, eax
	call	jfs_info@PLT
	mov	rdi, r13
	call	dquot_initialize@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L31
.L2:
	xor	eax, eax
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	call	jfs_info@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	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
.L31:
	.cfi_restore_state
	mov	rdi, rbp
	call	dquot_initialize@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	lea	r15, 28[rsp]
	mov	rsi, r14
	mov	rdi, r15
	call	get_UCSname@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	esi, DWORD PTR RDWRLOCK_NORMAL[rip]
	mov	rdi, rbp
	call	IWRITE_LOCK@PLT
	mov	edi, DWORD PTR 12[r13]
	xor	esi, esi
	call	txBegin@PLT
	mov	r12d, DWORD PTR COMMIT_MUTEX_PARENT[rip]
	mov	rdi, r13
	mov	r14d, 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, rbp
	call	JFS_IP@PLT
	mov	rdi, rax
	mov	esi, r12d
	call	mutex_lock_nested@PLT
	mov	eax, DWORD PTR 24[rbp]
	lea	rcx, 24[rsp]
	mov	rdx, r15
	mov	r8d, DWORD PTR JFS_REMOVE[rip]
	mov	rsi, r13
	mov	edi, r14d
	mov	QWORD PTR 32[rsp], r13
	mov	QWORD PTR 40[rsp], rbp
	mov	DWORD PTR 24[rsp], eax
	call	dtDelete@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L33
	mov	rdi, QWORD PTR 0[rbp]
	call	ASSERT@PLT
	mov	rdi, rbp
	call	current_time@PLT
	mov	rdi, r13
	mov	DWORD PTR 16[r13], eax
	mov	DWORD PTR 20[r13], eax
	mov	DWORD PTR 20[rbp], eax
	call	mark_inode_dirty@PLT
	mov	rdi, rbp
	call	inode_dec_link_count@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L6
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	test_cflag@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	assert@PLT
	mov	rsi, rbp
	mov	edi, r14d
	call	commitZeroLink@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L29
	mov	edi, r14d
	call	tid_to_tblock@PLT
	mov	edx, DWORD PTR COMMIT_DELETE[rip]
	mov	QWORD PTR [rax], rbp
	or	DWORD PTR 8[rax], edx
	test	r12d, r12d
	je	.L6
	mov	ecx, DWORD PTR COMMIT_SYNC[rip]
	lea	rax, 32[rsp]
	mov	esi, 2
	mov	edi, r14d
	mov	rdx, rax
	mov	QWORD PTR [rsp], rax
	call	txCommit@PLT
	mov	edi, r14d
	mov	DWORD PTR 12[rsp], eax
	call	txEnd@PLT
	mov	rdi, rbp
	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	edx, DWORD PTR 12[rsp]
	test	edx, edx
	je	.L10
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR COMMIT_SYNC[rip]
	mov	rdx, QWORD PTR [rsp]
	mov	esi, 2
	mov	edi, r14d
	call	txCommit@PLT
	mov	edi, r14d
	mov	ebx, eax
	call	txEnd@PLT
	mov	rdi, rbp
	call	JFS_IP@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	test	r12d, r12d
	je	.L16
	test	ebx, ebx
	jne	.L16
.L10:
	mov	edi, DWORD PTR 12[r13]
	xor	esi, esi
	call	txBegin@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	JFS_IP@PLT
	mov	rdi, rax
	call	mutex_lock@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	edi, r14d
	call	xtTruncate_pmap@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L9
	mov	esi, 1
	mov	edi, r14d
	call	txAbort@PLT
	mov	edi, r14d
	call	txEnd@PLT
	mov	rdi, rbp
	call	JFS_IP@PLT
	mov	rdi, rax
	call	mutex_unlock@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, 32[rsp]
	xor	ecx, ecx
	mov	esi, 2
	mov	edi, r14d
	call	txCommit@PLT
	mov	edi, r14d
	mov	r12d, eax
	call	txEnd@PLT
	mov	rdi, rbp
	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
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	QWORD PTR 0[rbp], 0
	je	.L34
.L12:
	mov	rdi, rbp
	call	IWRITE_UNLOCK@PLT
	mov	edi, DWORD PTR COMMIT_Stale[rip]
	mov	rsi, r13
	call	test_cflag@PLT
	test	rax, rax
	je	.L5
	cmp	DWORD PTR 8[r13], 1
	jle	.L13
	xor	esi, esi
	mov	rdi, r13
	call	jfs_truncate_nolock@PLT
.L13:
	mov	edi, DWORD PTR COMMIT_Stale[rip]
	mov	rsi, r13
	call	clear_cflag@PLT
.L5:
	mov	rdi, r15
	call	free_UCSname@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edi, DWORD PTR COMMIT_Nolink[rip]
	mov	rsi, rbp
	call	set_cflag@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	jfs_err@PLT
	mov	eax, r12d
	add	eax, DWORD PTR EIO[rip]
	je	.L29
.L4:
	mov	edi, r14d
	call	txEnd@PLT
	mov	rdi, rbp
	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	rdi, rbp
	call	IWRITE_UNLOCK@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, 1
	mov	edi, r14d
	call	txAbort@PLT
	jmp	.L4
.L32:
	call	__stack_chk_fail@PLT
.L16:
	mov	r12d, ebx
	jmp	.L8
.L15:
	mov	r12d, edx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	jfs_unlink, .-jfs_unlink
	.comm	RDWRLOCK_NORMAL,4,4
	.comm	JFS_REMOVE,4,4
	.comm	EIO,4,4
	.comm	COMMIT_Stale,4,4
	.comm	COMMIT_SYNC,4,4
	.comm	COMMIT_Nolink,4,4
	.comm	COMMIT_MUTEX_PARENT,4,4
	.comm	COMMIT_MUTEX_CHILD,4,4
	.comm	COMMIT_DELETE,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_unlink.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"jfs_unlink: dip:0x%p name:%pd\000"
	.align	2
.LC1:
	.ascii	"jfs_unlink: dtDelete returned %d\000"
	.align	2
.LC2:
	.ascii	"jfs_unlink: rc:%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jfs_unlink, %function
jfs_unlink:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L30
	sub	sp, sp, #36
	mov	r7, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	d_inode
	mov	r2, r5
	mov	r1, r7
	mov	r6, r0
	ldr	r0, .L30+4
	bl	jfs_info
	mov	r0, r7
	bl	dquot_initialize
	subs	r4, r0, #0
	beq	.L26
.L2:
	mov	r1, r4
	ldr	r0, .L30+8
	bl	jfs_info
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L26:
	mov	r0, r6
	bl	dquot_initialize
	subs	r4, r0, #0
	bne	.L2
	mov	r1, r5
	add	r0, sp, #16
	bl	get_UCSname
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L30+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	IWRITE_LOCK
	mov	r1, r4
	ldr	r0, [r7, #8]
	bl	txBegin
	mov	r5, r0
	mov	r0, r7
	bl	JFS_IP
	ldr	r3, .L30+16
	ldr	r1, [r3]
	bl	mutex_lock_nested
	mov	r0, r6
	bl	JFS_IP
	ldr	r3, .L30+20
	ldr	r1, [r3]
	bl	mutex_lock_nested
	ldr	r3, .L30+24
	ldr	ip, [r6, #20]
	ldr	r3, [r3]
	mov	r0, r5
	str	r3, [sp]
	mov	r1, r7
	add	r3, sp, #12
	add	r2, sp, #16
	str	r7, [sp, #20]
	str	r6, [sp, #24]
	str	ip, [sp, #12]
	bl	dtDelete
	subs	r4, r0, #0
	bne	.L28
	ldr	r0, [r6]
	bl	ASSERT
	mov	r0, r6
	bl	current_time
	str	r0, [r7, #12]
	str	r0, [r7, #16]
	str	r0, [r6, #16]
	mov	r0, r7
	bl	mark_inode_dirty
	mov	r0, r6
	bl	inode_dec_link_count
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L30+28
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_cflag
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	mov	r1, r6
	mov	r0, r5
	bl	commitZeroLink
	subs	r4, r0, #0
	blt	.L24
	mov	r0, r5
	bl	tid_to_tblock
	ldr	r2, .L30+32
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	cmp	r4, #0
	orr	r3, r3, r2
	str	r3, [r0, #4]
	str	r6, [r0]
	beq	.L6
	ldr	r8, .L30+36
	mov	r1, #2
	ldr	r3, [r8]
	add	r2, sp, #20
	mov	r0, r5
	bl	txCommit
	mov	r9, r0
	mov	r0, r5
	bl	txEnd
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_unlock
	mov	r0, r7
	bl	JFS_IP
	bl	mutex_unlock
	cmp	r9, #0
	beq	.L10
	b	.L14
.L9:
	ldr	r3, [r8]
	mov	r1, #2
	add	r2, sp, #20
	mov	r0, r5
	bl	txCommit
	mov	r9, r0
	mov	r0, r5
	bl	txEnd
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_unlock
	clz	r3, r9
	cmp	r4, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	cmp	r3, #0
	beq	.L14
.L10:
	mov	r1, #0
	ldr	r0, [r7, #8]
	bl	txBegin
	mov	r5, r0
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_lock
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	xtTruncate_pmap
	subs	r4, r0, #0
	bge	.L9
	mov	r1, #1
	mov	r0, r5
	bl	txAbort
	mov	r0, r5
	bl	txEnd
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_unlock
	b	.L8
.L6:
	mov	r3, #0
	mov	r1, #2
	add	r2, sp, #20
	mov	r0, r5
	bl	txCommit
	mov	r4, r0
	mov	r0, r5
	bl	txEnd
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_unlock
	mov	r0, r7
	bl	JFS_IP
	bl	mutex_unlock
.L8:
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L29
.L11:
	ldr	r5, .L30+40
	mov	r0, r6
	bl	IWRITE_UNLOCK
	mov	r1, r7
	ldr	r0, [r5]
	bl	test_cflag
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r7, #4]
	cmp	r3, #1
	ble	.L12
	mov	r1, #0
	mov	r0, r7
	bl	jfs_truncate_nolock
.L12:
	mov	r1, r7
	ldr	r0, [r5]
	bl	clear_cflag
.L5:
	add	r0, sp, #16
	bl	free_UCSname
	b	.L2
.L29:
	ldr	r3, .L30+28
	mov	r1, r6
	ldr	r0, [r3]
	bl	set_cflag
	b	.L11
.L28:
	mov	r1, r4
	ldr	r0, .L30+44
	bl	jfs_err
	ldr	r3, .L30+48
	ldr	r3, [r3]
	cmn	r4, r3
	beq	.L24
.L4:
	mov	r0, r5
	bl	txEnd
	mov	r0, r6
	bl	JFS_IP
	bl	mutex_unlock
	mov	r0, r7
	bl	JFS_IP
	bl	mutex_unlock
	mov	r0, r6
	bl	IWRITE_UNLOCK
	b	.L5
.L24:
	mov	r1, #1
	mov	r0, r5
	bl	txAbort
	b	.L4
.L27:
	bl	__stack_chk_fail
.L14:
	mov	r4, r9
	b	.L8
.L31:
	.align	2
.L30:
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	RDWRLOCK_NORMAL
	.word	COMMIT_MUTEX_PARENT
	.word	COMMIT_MUTEX_CHILD
	.word	JFS_REMOVE
	.word	COMMIT_Nolink
	.word	COMMIT_DELETE
	.word	COMMIT_SYNC
	.word	COMMIT_Stale
	.word	.LC1
	.word	EIO
	.size	jfs_unlink, .-jfs_unlink
	.comm	RDWRLOCK_NORMAL,4,4
	.comm	JFS_REMOVE,4,4
	.comm	EIO,4,4
	.comm	COMMIT_Stale,4,4
	.comm	COMMIT_SYNC,4,4
	.comm	COMMIT_Nolink,4,4
	.comm	COMMIT_MUTEX_PARENT,4,4
	.comm	COMMIT_MUTEX_CHILD,4,4
	.comm	COMMIT_DELETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
