	.file	"extr_refcounttree.c_ocfs2_adjust_refcount_rec.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_adjust_refcount_rec, @function
ocfs2_adjust_refcount_rec:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	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
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdx]
	mov	rdi, QWORD PTR 8[rax]
	call	le32_to_cpu@PLT
	test	DWORD PTR OCFS2_REFCOUNT_TREE_FL[rip], eax
	jne	.L2
.L4:
	xor	r15d, r15d
	xor	r12d, r12d
.L3:
	mov	rdi, r15
	call	ocfs2_free_path@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR 8[rsp], rax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 4[rsp], eax
	call	le64_to_cpu@PLT
	mov	ebx, DWORD PTR OCFS2_32BIT_POS_MASK[rip]
	and	ebx, eax
	mov	DWORD PTR 16[rsp], ebx
	cmp	DWORD PTR 4[rsp], ebx
	jle	.L4
	lea	r12, 36[rsp]
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r12
	call	ocfs2_init_refcount_extent_tree@PLT
	mov	rdi, r12
	call	ocfs2_new_path_from_et@PLT
	mov	r15, rax
	test	rax, rax
	je	.L19
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, rax
	mov	rdi, r13
	call	ocfs2_find_path@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR [r14]
	mov	rdi, r14
	lea	rsi, 2[rax]
	call	ocfs2_extend_trans@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L16
	mov	ecx, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r14
	call	ocfs2_journal_access_rb@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L16
	mov	r12d, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	mov	rdi, r15
	call	path_leaf_bh@PLT
	mov	rsi, r13
	mov	rdi, r14
	mov	ecx, r12d
	mov	rdx, rax
	call	ocfs2_journal_access_eb@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L16
	mov	rdi, r15
	xor	ebx, ebx
	call	path_leaf_el@PLT
	mov	r13, rax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, QWORD PTR [rax+rbx*8]
	add	rbx, 1
	call	le32_to_cpu@PLT
	cmp	eax, DWORD PTR 4[rsp]
	je	.L12
.L10:
	mov	edi, DWORD PTR 8[r13]
	mov	DWORD PTR 20[rsp], ebx
	call	le16_to_cpu@PLT
	lea	rcx, 0[0+rbx*8]
	mov	QWORD PTR 24[rsp], rcx
	cmp	eax, ebx
	jg	.L11
.L12:
	mov	edi, DWORD PTR 8[r13]
	call	le16_to_cpu@PLT
	xor	edi, edi
	cmp	eax, DWORD PTR 20[rsp]
	sete	dil
	call	BUG_ON@PLT
	mov	ebx, DWORD PTR 16[rsp]
	mov	rax, QWORD PTR 24[rsp]
	add	rax, QWORD PTR 0[r13]
	mov	edi, ebx
	mov	r13, rax
	call	cpu_to_le32@PLT
	mov	edi, ebx
	mov	QWORD PTR 0[r13], rax
	call	cpu_to_le32@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r15
	mov	QWORD PTR [rsi], rax
	call	path_leaf_bh@PLT
	mov	rdi, r14
	mov	rsi, rax
	call	ocfs2_journal_dirty@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	ocfs2_journal_dirty@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L3
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_adjust_refcount_rec, .-ocfs2_adjust_refcount_rec
	.comm	OCFS2_REFCOUNT_TREE_FL,4,4
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.comm	OCFS2_32BIT_POS_MASK,4,4
	.comm	ENOMEM,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_adjust_refcount_rec.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_adjust_refcount_rec, %function
ocfs2_adjust_refcount_rec:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	ldr	r2, [r2]
	mov	r5, r3
	ldr	r3, .L22
	sub	sp, sp, #20
	mov	r6, r0
	ldr	r0, [r2, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	fp, r1
	ldr	r7, [sp, #56]
	bl	le32_to_cpu
	ldr	r3, .L22+4
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L2
.L4:
	mov	r4, #0
	mov	r8, r4
.L3:
	mov	r0, r4
	bl	ocfs2_free_path
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, [r5]
	ldr	r0, [r3]
	str	r3, [sp]
	bl	le32_to_cpu
	mov	r9, r0
	ldr	r0, [r7]
	bl	le64_to_cpu
	ldr	r3, .L22+8
	ldr	r3, [r3]
	and	r10, r0, r3
	cmp	r9, r10
	ble	.L4
	mov	r2, r4
	mov	r1, fp
	add	r0, sp, #8
	bl	ocfs2_init_refcount_extent_tree
	add	r0, sp, #8
	bl	ocfs2_new_path_from_et
	subs	r4, r0, #0
	beq	.L20
	mov	r2, r9
	mov	r1, r4
	mov	r0, fp
	bl	ocfs2_find_path
	subs	r7, r0, #0
	bne	.L21
	ldr	r1, [r6]
	mov	r0, r6
	add	r1, r1, #2
	bl	ocfs2_extend_trans
	subs	r8, r0, #0
	blt	.L17
	ldr	r3, .L22+12
	mov	r2, r5
	mov	r1, fp
	mov	r0, r6
	ldr	r3, [r3]
	bl	ocfs2_journal_access_rb
	subs	r8, r0, #0
	blt	.L17
	mov	r0, r4
	bl	path_leaf_bh
	ldr	r3, .L22+12
	mov	r2, r0
	mov	r1, fp
	mov	r0, r6
	ldr	r3, [r3]
	bl	ocfs2_journal_access_eb
	subs	r8, r0, #0
	blt	.L17
	mov	r0, r4
	bl	path_leaf_el
	mov	r3, r5
	str	r4, [sp, #4]
	mov	r5, r7
	mov	fp, r0
	mov	r4, r9
	mov	r7, r3
	b	.L10
.L12:
	ldr	r2, [fp]
	ldr	r0, [r2, r5, lsl #2]
	bl	le32_to_cpu
	cmp	r0, r4
	beq	.L16
	add	r5, r5, #1
.L10:
	ldr	r0, [fp, #4]
	bl	le16_to_cpu
	cmp	r0, r5
	lsl	r9, r5, #2
	bgt	.L12
.L16:
	mov	r3, r7
	ldr	r0, [fp, #4]
	mov	r7, r5
	ldr	r4, [sp, #4]
	mov	r5, r3
	bl	le16_to_cpu
	sub	r0, r0, r7
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	mov	r0, r10
	ldr	r7, [fp]
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r10
	str	r3, [r7, r9]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r2, [sp]
	mov	r0, r4
	str	r3, [r2]
	bl	path_leaf_bh
	mov	r1, r0
	mov	r0, r6
	bl	ocfs2_journal_dirty
	mov	r1, r5
	mov	r0, r6
	bl	ocfs2_journal_dirty
	b	.L3
.L17:
	bl	mlog_errno
	b	.L3
.L21:
	bl	mlog_errno
	mov	r8, r7
	b	.L3
.L20:
	ldr	r3, .L22+16
	ldr	r8, [r3]
	rsb	r8, r8, #0
	mov	r0, r8
	bl	mlog_errno
	b	.L3
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	OCFS2_REFCOUNT_TREE_FL
	.word	OCFS2_32BIT_POS_MASK
	.word	OCFS2_JOURNAL_ACCESS_WRITE
	.word	ENOMEM
	.size	ocfs2_adjust_refcount_rec, .-ocfs2_adjust_refcount_rec
	.comm	OCFS2_REFCOUNT_TREE_FL,4,4
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.comm	OCFS2_32BIT_POS_MASK,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
