	.file	"extr_refcounttree.c_ocfs2_refcount_cal_cow_clusters.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Inode %lu has non zero tree depth in leaf block %llu\n"
	.align 8
.LC1:
	.string	"Inode %lu has empty record in index %d\n"
	.text
	.p2align 4
	.type	ocfs2_refcount_cal_cow_clusters, @function
ocfs2_refcount_cal_cow_clusters:
.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, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 16[rsp], edx
	mov	r14, QWORD PTR 128[rsp]
	mov	DWORD PTR 44[rsp], ecx
	mov	DWORD PTR 4[rsp], r8d
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR 24[rsp], rdi
	mov	rdi, QWORD PTR 16[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	QWORD PTR 48[rsp], 0
	mov	ebx, eax
	call	ocfs2_cow_contig_clusters@PLT
	xor	edi, edi
	mov	r15d, eax
	mov	eax, DWORD PTR 44[rsp]
	add	eax, r12d
	cmp	eax, DWORD PTR 4[rsp]
	seta	dil
	mov	DWORD PTR 40[rsp], eax
	call	BUG_ON@PLT
	mov	QWORD PTR 32[rsp], 0
	test	ebx, ebx
	jg	.L45
.L2:
	mov	DWORD PTR [r14], 0
	xor	r12d, r12d
	mov	DWORD PTR 20[rsp], 0
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	call	le16_to_cpu@PLT
	cmp	eax, r12d
	jle	.L12
.L27:
	movsx	rdx, r12d
	sal	rdx, 4
	add	rdx, QWORD PTR 8[rbp]
	mov	rdi, rdx
	mov	r13, rdx
	call	ocfs2_is_empty_extent@PLT
	test	rax, rax
	jne	.L46
	mov	edi, DWORD PTR 4[r13]
	call	le32_to_cpu@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	ebx, eax
	call	le16_to_cpu@PLT
	add	ebx, eax
	cmp	ebx, DWORD PTR 16[rsp]
	jbe	.L47
	mov	edx, DWORD PTR [r14]
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR OCFS2_EXT_REFCOUNTED[rip]
	test	edx, edx
	je	.L48
	test	eax, eax
	je	.L12
.L11:
	mov	edi, DWORD PTR 4[r13]
	call	le32_to_cpu@PLT
	cmp	eax, DWORD PTR 20[rsp]
	jne	.L12
.L14:
	mov	edi, DWORD PTR 4[r13]
	call	le32_to_cpu@PLT
	cmp	eax, DWORD PTR 4[rsp]
	jnb	.L12
	mov	rdi, QWORD PTR 8[r13]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	ebx, eax
	call	le32_to_cpu@PLT
	add	eax, ebx
	mov	DWORD PTR 20[rsp], eax
	cmp	DWORD PTR 4[rsp], eax
	jb	.L49
.L15:
	mov	edx, DWORD PTR [r14]
	mov	eax, r15d
	test	edx, edx
	je	.L16
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	cmp	ebx, r15d
	jg	.L50
.L17:
	lea	eax, [rbx+rdx]
	mov	DWORD PTR [r14], eax
.L19:
	mov	rcx, QWORD PTR 8[rsp]
	add	eax, DWORD PTR [rcx]
	cmp	DWORD PTR 40[rsp], eax
	jbe	.L12
	mov	rdi, QWORD PTR 0[rbp]
	add	r12d, 1
	call	le16_to_cpu@PLT
	cmp	r12d, eax
	jne	.L5
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	je	.L5
	cmp	QWORD PTR 24[rax], 0
	je	.L5
	mov	rdi, QWORD PTR 48[rsp]
	call	brelse@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR 48[rsp], 0
	mov	rdi, QWORD PTR 24[rax]
	call	le64_to_cpu@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	ebp, eax
	call	INODE_CACHE@PLT
	lea	rdx, 48[rsp]
	mov	esi, ebp
	mov	edi, eax
	call	ocfs2_read_extent_block@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR 48[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rbp, rax
	mov	QWORD PTR 32[rsp], rax
	mov	rdi, QWORD PTR 0[rbp]
	call	le16_to_cpu@PLT
	cmp	eax, r12d
	jg	.L27
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r12d, r12d
.L4:
	mov	rdi, QWORD PTR 48[rsp]
	call	brelse@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L51
	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
.L46:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	xor	edi, edi
	test	r12d, r12d
	mov	ecx, r12d
	setne	dil
	lea	rsi, .LC1[rip]
	add	r12d, 1
	mov	edx, DWORD PTR 4[rax]
	call	mlog_bug_on_msg@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L47:
	add	r12d, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	ebx, r15d
	jle	.L17
	mov	ecx, DWORD PTR 44[rsp]
	cmp	ecx, r15d
	mov	esi, ecx
	mov	rcx, QWORD PTR 8[rsp]
	cmovb	esi, r15d
	mov	r8d, DWORD PTR [rcx]
	cmp	r8d, DWORD PTR 16[rsp]
	je	.L18
	lea	edx, [r8+r15]
	cmp	DWORD PTR 40[rsp], edx
	jbe	.L41
	mov	ecx, DWORD PTR 20[rsp]
	mov	edx, ecx
	sub	edx, DWORD PTR 16[rsp]
	cmp	edx, r15d
	ja	.L23
	mov	rsi, QWORD PTR 8[rsp]
	sub	ecx, r15d
	mov	DWORD PTR [rsi], ecx
.L41:
	mov	DWORD PTR [r14], r15d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L48:
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	BUG_ON@PLT
	mov	edi, DWORD PTR 4[r13]
	call	le32_to_cpu@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rcx], eax
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR OCFS2_EXT_REFCOUNTED[rip], eax
	je	.L12
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	je	.L14
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L49:
	mov	edi, DWORD PTR 4[r13]
	call	le32_to_cpu@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	ebx, ecx
	mov	DWORD PTR 20[rsp], ecx
	sub	ebx, eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L50:
	mov	esi, DWORD PTR 40[rsp]
	add	edx, eax
	sub	esi, edx
	cmp	esi, r15d
	cmovb	esi, r15d
.L18:
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rax]
	call	ocfs2_cow_align_length@PLT
	cmp	ebx, eax
	jnb	.L21
	mov	eax, DWORD PTR [r14]
	add	eax, ebx
	mov	DWORD PTR [r14], eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L21:
	add	eax, DWORD PTR [r14]
	mov	DWORD PTR [r14], eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR 24[rsp]
	cmp	edx, esi
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, r8d
	mov	edi, DWORD PTR [rax]
	jbe	.L52
	call	ocfs2_cow_align_start@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 40[rsp]
	mov	DWORD PTR [rbx], eax
	sub	esi, eax
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR [rax]
	call	ocfs2_cow_align_length@PLT
	mov	edx, DWORD PTR [rbx]
	lea	ecx, [rdx+rax]
	cmp	ecx, DWORD PTR 20[rsp]
	jbe	.L42
	mov	eax, DWORD PTR 20[rsp]
	sub	eax, edx
.L42:
	mov	DWORD PTR [r14], eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rdi, r13
	call	INODE_CACHE@PLT
	mov	edx, r12d
	lea	rcx, 48[rsp]
	mov	rsi, rbp
	mov	edi, eax
	call	ocfs2_find_leaf@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR 48[rsp]
	mov	rsi, QWORD PTR [rax]
	cmp	QWORD PTR 16[rsi], 0
	mov	QWORD PTR 32[rsp], rsi
	mov	rbp, rsi
	je	.L2
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 24[rsp]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 4[rax]
	mov	edi, DWORD PTR [rax]
	call	ocfs2_error@PLT
	mov	r12d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L52:
	call	ocfs2_cow_align_start@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	DWORD PTR [rsi], eax
	mov	esi, DWORD PTR 20[rsp]
	sub	esi, eax
	mov	DWORD PTR [r14], esi
	mov	eax, esi
	jmp	.L19
.L43:
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L4
.L51:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_refcount_cal_cow_clusters, .-ocfs2_refcount_cal_cow_clusters
	.comm	OCFS2_EXT_REFCOUNTED,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_refcount_cal_cow_clusters.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Inode %lu has non zero tree depth in leaf block %ll"
	.ascii	"u\012\000"
	.align	2
.LC1:
	.ascii	"Inode %lu has empty record in index %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_refcount_cal_cow_clusters, %function
ocfs2_refcount_cal_cow_clusters:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	sub	sp, sp, #52
	ldr	r3, .L56
	str	r2, [sp, #20]
	str	r0, [sp, #28]
	mov	r8, r0
	ldr	r0, [r1, #8]
	mov	r6, r1
	mov	r9, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	ldr	fp, [sp, #92]
	ldr	r10, [sp, #96]
	bl	le16_to_cpu
	mov	r4, #0
	mov	r7, r0
	ldr	r0, [r8]
	str	r4, [sp, #40]
	bl	ocfs2_cow_contig_clusters
	mov	r3, r0
	ldr	r1, [sp, #88]
	add	r2, r9, r5
	cmp	r2, r1
	movls	r0, #0
	movhi	r0, #1
	str	r2, [sp, #24]
	str	r3, [sp, #16]
	bl	BUG_ON
	cmp	r7, r4
	strle	r4, [sp, #32]
	bgt	.L50
.L2:
	mov	r3, #0
	ldr	r2, [sp, #16]
	mov	r9, r3
	cmp	r5, r2
	movcs	r2, r5
	mov	r4, r3
	str	r2, [sp, #36]
	str	r3, [r10]
.L5:
	ldr	r0, [r6]
	bl	le16_to_cpu
	cmp	r0, r4
	ble	.L12
.L27:
	ldr	r7, [r6, #4]
	add	r8, r4, r4, lsl #1
	add	r5, r7, r8, lsl #2
	mov	r0, r5
	bl	ocfs2_is_empty_extent
	cmp	r0, #0
	bne	.L51
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	mov	r3, r0
	ldr	r0, [r5, #8]
	str	r3, [sp, #12]
	bl	le16_to_cpu
	ldr	r3, [sp, #12]
	add	r0, r0, r3
	ldr	r3, [sp, #20]
	cmp	r0, r3
	addls	r4, r4, #1
	bls	.L5
	ldr	r3, .L56+4
	ldr	r2, [r10]
	ldr	r0, [r7, r8, lsl #2]
	ldr	r3, [r3]
	cmp	r2, #0
	and	r0, r0, r3
	beq	.L52
	cmp	r0, #0
	beq	.L12
.L11:
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	cmp	r0, r9
	bne	.L12
.L14:
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	ldr	r3, [sp, #88]
	cmp	r0, r3
	bcs	.L12
	ldr	r0, [r5, #8]
	bl	le16_to_cpu
	mov	r7, r0
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	ldr	r3, [sp, #88]
	add	r9, r7, r0
	cmp	r3, r9
	bcc	.L53
.L15:
	ldr	r3, [r10]
	ldr	r2, [sp, #16]
	cmp	r3, #0
	mov	r0, r2
	beq	.L16
	cmp	r7, r2
	ldr	r1, [fp]
	bgt	.L54
.L17:
	add	r0, r7, r3
	str	r0, [r10]
.L19:
	ldr	r3, [fp]
	add	r0, r0, r3
	ldr	r3, [sp, #24]
	cmp	r3, r0
	bls	.L12
	ldr	r0, [r6]
	bl	le16_to_cpu
	add	r4, r4, #1
	cmp	r4, r0
	bne	.L5
	ldr	r3, [sp, #32]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [sp, #40]
	bl	brelse
	mov	r3, #0
	ldr	r0, [sp, #28]
	str	r3, [sp, #40]
	bl	INODE_CACHE
	ldr	r3, [sp, #32]
	mov	r4, r0
	ldr	r0, [r3, #12]
	bl	le64_to_cpu
	add	r2, sp, #40
	mov	r1, r0
	mov	r0, r4
	bl	ocfs2_read_extent_block
	subs	r4, r0, #0
	bne	.L48
	ldr	r3, [sp, #40]
	ldr	r3, [r3]
	mov	r6, r3
	ldr	r0, [r6]
	str	r3, [sp, #32]
	bl	le16_to_cpu
	cmp	r0, r4
	bgt	.L27
.L12:
	mov	r4, #0
.L4:
	ldr	r0, [sp, #40]
	bl	brelse
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L55
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L51:
	ldr	r2, [sp, #28]
	subs	r0, r4, #0
	mov	r3, r4
	movne	r0, #1
	ldr	r2, [r2, #4]
	ldr	r1, .L56+8
	bl	mlog_bug_on_msg
	add	r4, r4, #1
	b	.L5
.L16:
	ldr	r2, [sp, #16]
	cmp	r7, r2
	ble	.L17
	ldr	r3, [fp]
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #36]
	cmp	r3, r2
	beq	.L18
	ldr	r1, [sp, #16]
	ldr	ip, [sp, #24]
	add	r2, r3, r1
	cmp	ip, r2
	strls	r1, [r10]
	bls	.L19
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #16]
	sub	r2, r9, r2
	cmp	r2, r1
	bhi	.L23
	sub	r3, r9, r1
	str	r3, [fp]
	str	r1, [r10]
	b	.L19
.L52:
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	ldr	r3, .L56+4
	str	r0, [fp]
	ldr	r2, [r7, r8, lsl #2]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L12
	ldr	r3, [r10]
	cmp	r3, #0
	beq	.L14
	b	.L11
.L53:
	ldr	r0, [r5, #4]
	bl	le32_to_cpu
	ldr	r9, [sp, #88]
	sub	r7, r9, r0
	b	.L15
.L54:
	add	r1, r3, r1
	ldr	r3, [sp, #24]
	sub	r1, r3, r1
	cmp	r1, r2
	movcc	r1, r2
.L18:
	ldr	r3, [sp, #28]
	ldr	r0, [r3]
	bl	ocfs2_cow_align_length
	cmp	r7, r0
	ldrcc	r0, [r10]
	ldrcs	r3, [r10]
	addcc	r0, r7, r0
	addcs	r0, r0, r3
	str	r0, [r10]
	b	.L19
.L23:
	ldr	r1, [sp, #36]
	cmp	r2, r1
	ldr	r2, [sp, #28]
	mov	r1, r3
	ldr	r0, [r2]
	ldr	r2, [sp, #20]
	bhi	.L24
	bl	ocfs2_cow_align_start
	mov	r3, r0
	sub	r0, r9, r0
	str	r3, [fp]
	str	r0, [r10]
	b	.L19
.L50:
	mov	r0, r8
	bl	INODE_CACHE
	mov	r1, r6
	mov	r2, r9
	add	r3, sp, #40
	bl	ocfs2_find_leaf
	subs	r4, r0, #0
	bne	.L48
	ldr	r3, [sp, #40]
	ldr	r6, [r3]
	ldr	r2, [r6, #8]
	str	r6, [sp, #32]
	cmp	r2, #0
	beq	.L2
	ldr	r4, [r3, #4]
	ldr	r3, [sp, #28]
	asr	r5, r4, #31
	ldr	r2, [r3, #4]
	ldr	r0, [r3]
	ldr	r1, .L56+12
	stm	sp, {r4-r5}
	bl	ocfs2_error
	mov	r4, r0
	b	.L4
.L24:
	bl	ocfs2_cow_align_start
	ldr	r3, [sp, #24]
	str	r0, [fp]
	sub	r1, r3, r0
	ldr	r3, [sp, #28]
	ldr	r0, [r3]
	bl	ocfs2_cow_align_length
	ldr	r3, [fp]
	add	r2, r3, r0
	cmp	r2, r9
	subhi	r0, r9, r3
	str	r0, [r10]
	b	.L19
.L48:
	bl	mlog_errno
	b	.L4
.L55:
	bl	__stack_chk_fail
.L57:
	.align	2
.L56:
	.word	.LC2
	.word	OCFS2_EXT_REFCOUNTED
	.word	.LC1
	.word	.LC0
	.size	ocfs2_refcount_cal_cow_clusters, .-ocfs2_refcount_cal_cow_clusters
	.comm	OCFS2_EXT_REFCOUNTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
