	.file	"extr_refcounttree.c_ocfs2_replace_cow.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Inode %lu want to use refcount tree, but the feature bit is not set in the super block."
	.text
	.p2align 4
	.type	ocfs2_replace_cow, @function
ocfs2_replace_cow:
.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
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r14, QWORD PTR 32[rdi]
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rbx, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [r14]
	mov	QWORD PTR 8[rsp], r14
	call	OCFS2_SB@PLT
	mov	edi, DWORD PTR [r14]
	mov	QWORD PTR 24[rsp], rax
	call	OCFS2_SB@PLT
	mov	rdi, rax
	call	ocfs2_refcount_tree@PLT
	test	eax, eax
	je	.L20
	lea	rax, 24[rbp]
	lea	r15, 36[rsp]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	lea	r14, 48[rsp]
	lea	r13, 40[rsp]
	call	ocfs2_init_dealloc_ctxt@PLT
	test	rbx, rbx
	jne	.L4
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 36[rsp]
	xor	edi, edi
	test	DWORD PTR OCFS2_EXT_REFCOUNTED[rip], eax
	sete	dil
	call	BUG_ON@PLT
	mov	r8, QWORD PTR 48[rsp]
	cmp	r8, rbx
	jle	.L7
	mov	QWORD PTR 48[rsp], rbx
	mov	r8, rbx
.L7:
	mov	rax, QWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 36[rsp]
	mov	rdx, r12
	mov	rsi, rbp
	mov	rcx, QWORD PTR 40[rsp]
	mov	edi, DWORD PTR [rax]
	call	ocfs2_make_clusters_writable@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR 48[rsp]
	add	r12, rax
	sub	rbx, rax
	je	.L9
.L4:
	mov	r8, r15
	mov	rcx, r14
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	[QWORD PTR 16[rbp]]
	mov	r8d, eax
	test	eax, eax
	je	.L6
.L18:
	mov	edi, r8d
	mov	DWORD PTR 8[rsp], r8d
	call	mlog_errno@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L5:
	mov	rdi, QWORD PTR 16[rsp]
	mov	DWORD PTR 8[rsp], r8d
	call	ocfs2_dealloc_has_cluster@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	rax, rax
	jne	.L21
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	edi, DWORD PTR [rax]
	call	ocfs2_error@PLT
	mov	r8d, DWORD PTR EROFS[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r8d, r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rbx, QWORD PTR 24[rsp]
	mov	esi, 1
	mov	rdi, rbx
	call	ocfs2_schedule_truncate_log_flush@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, rbx
	call	ocfs2_run_deallocs@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_replace_cow, .-ocfs2_replace_cow
	.comm	OCFS2_EXT_REFCOUNTED,4,4
	.comm	EROFS,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_refcounttree.c_ocfs2_replace_cow.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Inode %lu want to use refcount tree, but the featur"
	.ascii	"e bit is not set in the super block.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_replace_cow, %function
ocfs2_replace_cow:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r8, [r0, #16]
	ldr	r3, .L22
	sub	sp, sp, #36
	ldr	r0, [r8]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r6, [r5]
	ldr	r4, [r5, #4]
	bl	OCFS2_SB
	mov	r3, r0
	ldr	r0, [r8]
	str	r3, [sp, #12]
	bl	OCFS2_SB
	bl	ocfs2_refcount_tree
	cmp	r0, #0
	beq	.L19
	add	fp, r5, #12
	mov	r0, fp
	bl	ocfs2_init_dealloc_ctxt
	cmp	r4, #0
	beq	.L9
	ldr	r10, .L22+4
	add	r9, sp, #24
	b	.L4
.L6:
	ldr	r2, [sp, #24]
	ldr	r3, [r10]
	tst	r2, r3
	moveq	r0, #1
	movne	r0, #0
	bl	BUG_ON
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #24]
	cmp	r3, r4
	movgt	r3, r4
	ldr	r0, [r8]
	mov	r1, r5
	str	r3, [sp]
	str	r2, [sp, #4]
	ldr	r3, [sp, #16]
	mov	r2, r6
	strgt	r4, [sp, #20]
	bl	ocfs2_make_clusters_writable
	subs	r7, r0, #0
	bne	.L17
	ldr	r3, [sp, #20]
	subs	r4, r4, r3
	add	r6, r6, r3
	beq	.L9
.L4:
	str	r9, [sp]
	ldr	r7, [r5, #8]
	mov	r1, r6
	mov	r0, r5
	add	r3, sp, #20
	add	r2, sp, #16
	blx	r7
	subs	r7, r0, #0
	beq	.L6
.L17:
	bl	mlog_errno
	mov	r0, fp
	bl	ocfs2_dealloc_has_cluster
	cmp	r0, #0
	bne	.L20
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r1, .L22+8
	ldm	r8, {r0, r2}
	bl	ocfs2_error
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r7, r0, #0
	b	.L1
.L9:
	mov	r0, fp
	bl	ocfs2_dealloc_has_cluster
	cmp	r0, #0
	mov	r7, #0
	beq	.L1
.L20:
	ldr	r4, [sp, #12]
	mov	r1, #1
	mov	r0, r4
	bl	ocfs2_schedule_truncate_log_flush
	mov	r1, fp
	mov	r0, r4
	bl	ocfs2_run_deallocs
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	OCFS2_EXT_REFCOUNTED
	.word	.LC0
	.word	EROFS
	.size	ocfs2_replace_cow, .-ocfs2_replace_cow
	.comm	OCFS2_EXT_REFCOUNTED,4,4
	.comm	EROFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
