	.file	"extr_refcounttree.c_ocfs2_new_leaf_refcount_block.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_new_leaf_refcount_block, @function
ocfs2_new_leaf_refcount_block:
.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, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	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, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 16[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	ocfs2_metadata_cache_get_super@PLT
	mov	rbx, QWORD PTR 8[r13]
	mov	QWORD PTR 8[rsp], rax
	mov	rdi, QWORD PTR 16[rbx]
	call	le32_to_cpu@PLT
	xor	edi, edi
	test	DWORD PTR OCFS2_REFCOUNT_TREE_FL[rip], eax
	sete	dil
	call	BUG_ON@PLT
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r12
	mov	ecx, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	call	ocfs2_journal_access_rb@PLT
	test	eax, eax
	jne	.L17
	mov	ecx, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r12
	call	ocfs2_journal_access_rb@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L14
	lea	rcx, 56[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	edx, 1
	mov	rdi, r12
	lea	rax, 72[rsp]
	push	rax
	.cfi_def_cfa_offset 160
	mov	rsi, QWORD PTR 32[rsp]
	lea	r9, 60[rsp]
	lea	r8, 56[rsp]
	call	ocfs2_claim_metadata@PLT
	pop	rcx
	.cfi_def_cfa_offset 152
	pop	rsi
	.cfi_def_cfa_offset 144
	mov	r15d, eax
	test	eax, eax
	jne	.L14
	mov	rsi, QWORD PTR 64[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	call	sb_getblk@PLT
	test	rax, rax
	je	.L18
	mov	rsi, rax
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], rax
	call	ocfs2_set_new_buffer_uptodate@PLT
	mov	r10, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	rdi, r12
	mov	ecx, DWORD PTR OCFS2_JOURNAL_ACCESS_CREATE[rip]
	mov	rdx, r10
	call	ocfs2_journal_access_rb@PLT
	mov	r10, QWORD PTR 24[rsp]
	test	eax, eax
	mov	r15d, eax
	jne	.L19
	mov	rax, QWORD PTR 8[rsp]
	mov	r15, QWORD PTR 8[r10]
	xor	esi, esi
	mov	QWORD PTR 24[rsp], r10
	mov	edx, DWORD PTR [rax]
	mov	rdi, r15
	call	memset@PLT
	mov	esi, DWORD PTR OCFS2_REFCOUNT_BLOCK_SIGNATURE[rip]
	mov	rdi, r15
	call	strcpy@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rdx]
	call	cpu_to_le16@PLT
	mov	rdi, QWORD PTR 56[rsp]
	mov	QWORD PTR 64[r15], rax
	call	cpu_to_le64@PLT
	mov	edi, DWORD PTR 40[rsp]
	mov	QWORD PTR 56[r15], rax
	call	cpu_to_le16@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 48[r15], rax
	call	OCFS2_SB@PLT
	mov	edi, DWORD PTR [rax]
	call	cpu_to_le32@PLT
	mov	rdi, QWORD PTR 64[rsp]
	mov	QWORD PTR 40[r15], rax
	call	cpu_to_le64@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	QWORD PTR 32[r15], rax
	call	cpu_to_le64@PLT
	mov	edi, DWORD PTR OCFS2_REFCOUNT_LEAF_FL[rip]
	mov	QWORD PTR 24[r15], rax
	call	cpu_to_le32@PLT
	mov	rdi, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[r15], rax
	call	ocfs2_refcount_recs_per_rb@PLT
	mov	edi, eax
	call	cpu_to_le16@PLT
	mov	r10, QWORD PTR 24[rsp]
	lea	rdx, 48[rsp]
	mov	rdi, r14
	mov	QWORD PTR 8[r15], rax
	mov	eax, DWORD PTR [rbx]
	mov	rsi, r10
	mov	QWORD PTR 8[rsp], r10
	mov	DWORD PTR [r15], eax
	call	ocfs2_divide_leaf_refcount_block@PLT
	mov	r10, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r15d, eax
	jne	.L15
	mov	rsi, r14
	mov	rdi, r12
	mov	QWORD PTR 8[rsp], r10
	lea	r14, 52[rsp]
	call	ocfs2_journal_dirty@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	rdi, r12
	mov	rsi, r10
	call	ocfs2_journal_dirty@PLT
	mov	rdx, r13
	mov	rsi, rbp
	mov	rdi, r14
	call	ocfs2_init_refcount_extent_tree@PLT
	mov	r10, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR 48[rsp]
	mov	rdi, QWORD PTR [r10]
	call	trace_ocfs2_new_leaf_refcount_block@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	xor	r9d, r9d
	mov	rsi, r14
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 160
	mov	r10, QWORD PTR 24[rsp]
	mov	r8d, 1
	mov	rdi, r12
	mov	edx, DWORD PTR 64[rsp]
	mov	rcx, QWORD PTR [r10]
	call	ocfs2_insert_extent@PLT
	mov	r15d, eax
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	test	r15d, r15d
	mov	r10, QWORD PTR 8[rsp]
	je	.L3
.L15:
	mov	edi, r15d
	call	mlog_errno@PLT
	mov	r10, QWORD PTR 8[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, r15d
	call	mlog_errno@PLT
	xor	r10d, r10d
.L3:
	mov	rdi, r10
	call	brelse@PLT
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L17:
	.cfi_restore_state
	mov	edi, eax
	mov	r15d, eax
	call	mlog_errno@PLT
	xor	r10d, r10d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, eax
	mov	QWORD PTR 8[rsp], r10
	call	mlog_errno@PLT
	mov	r10, QWORD PTR 8[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r15d, DWORD PTR ENOMEM[rip]
	mov	QWORD PTR 8[rsp], rax
	neg	r15d
	mov	edi, r15d
	call	mlog_errno@PLT
	mov	r10, QWORD PTR 8[rsp]
	jmp	.L3
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_new_leaf_refcount_block, .-ocfs2_new_leaf_refcount_block
	.comm	OCFS2_REFCOUNT_TREE_FL,4,4
	.comm	OCFS2_REFCOUNT_LEAF_FL,4,4
	.comm	OCFS2_REFCOUNT_BLOCK_SIGNATURE,4,4
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.comm	OCFS2_JOURNAL_ACCESS_CREATE,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_new_leaf_refcount_block.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_new_leaf_refcount_block, %function
ocfs2_new_leaf_refcount_block:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r9, r3
	ldr	r3, .L20
	sub	sp, sp, #60
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	ldr	r3, [sp, #96]
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	str	r3, [sp, #20]
	bl	ocfs2_metadata_cache_get_super
	ldr	fp, [r7, #4]
	mov	r10, r0
	ldr	r0, [fp, #8]
	bl	le32_to_cpu
	ldr	r3, .L20+4
	ldr	r8, .L20+8
	ldr	r3, [r3]
	tst	r0, r3
	moveq	r0, #1
	movne	r0, #0
	bl	BUG_ON
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r8]
	bl	ocfs2_journal_access_rb
	subs	r4, r0, #0
	bne	.L16
	mov	r2, r9
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r8]
	bl	ocfs2_journal_access_rb
	subs	r4, r0, #0
	bne	.L16
	add	r1, sp, #44
	add	r2, sp, #32
	add	r3, sp, #28
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r2, #1
	mov	r0, r6
	ldr	r1, [sp, #20]
	add	r3, sp, #40
	bl	ocfs2_claim_metadata
	subs	r4, r0, #0
	bne	.L16
	mov	r0, r10
	ldr	r1, [sp, #44]
	bl	sb_getblk
	subs	r8, r0, #0
	beq	.L18
	mov	r1, r8
	mov	r0, r5
	bl	ocfs2_set_new_buffer_uptodate
	ldr	r3, .L20+12
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r3]
	bl	ocfs2_journal_access_rb
	subs	r4, r0, #0
	bne	.L15
	ldr	r3, [r8, #4]
	mov	r1, r4
	mov	r4, r3
	ldr	r2, [r10]
	mov	r0, r3
	bl	memset
	ldr	r3, .L20+16
	mov	r0, r4
	ldr	r1, [r3]
	bl	strcpy
	ldr	r3, [sp, #20]
	ldr	r0, [r3]
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [sp, #40]
	str	r3, [r4, #32]
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [sp, #28]
	str	r3, [r4, #28]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r10
	str	r3, [r4, #24]
	bl	OCFS2_SB
	ldr	r0, [r0]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [sp, #44]
	str	r3, [r4, #20]
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [r7]
	str	r3, [r4, #16]
	bl	cpu_to_le64
	ldr	r3, .L20+20
	str	r0, [r4, #12]
	ldr	r0, [r3]
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r10
	str	r3, [r4, #8]
	bl	ocfs2_refcount_recs_per_rb
	bl	cpu_to_le16
	ldr	r3, [fp]
	mov	r1, r8
	str	r0, [r4, #4]
	str	r3, [r4]
	mov	r0, r9
	add	r2, sp, #36
	bl	ocfs2_divide_leaf_refcount_block
	subs	r4, r0, #0
	bne	.L15
	mov	r1, r9
	mov	r0, r6
	bl	ocfs2_journal_dirty
	mov	r1, r8
	mov	r0, r6
	bl	ocfs2_journal_dirty
	mov	r2, r7
	mov	r1, r5
	add	r0, sp, #48
	bl	ocfs2_init_refcount_extent_tree
	ldr	r0, [r8]
	ldr	r2, [sp, #36]
	asr	r1, r0, #31
	bl	trace_ocfs2_new_leaf_refcount_block
	mov	r2, #1
	ldr	r3, [r8]
	str	r2, [sp]
	ldr	r2, [sp, #20]
	str	r4, [sp, #4]
	str	r2, [sp, #8]
	mov	r0, r6
	ldr	r2, [sp, #36]
	add	r1, sp, #48
	bl	ocfs2_insert_extent
	subs	r4, r0, #0
	beq	.L3
.L15:
	bl	mlog_errno
	b	.L3
.L16:
	bl	mlog_errno
	mov	r8, #0
.L3:
	mov	r0, r8
	bl	brelse
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	ldr	r3, .L20+24
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	bl	mlog_errno
	b	.L3
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	OCFS2_REFCOUNT_TREE_FL
	.word	OCFS2_JOURNAL_ACCESS_WRITE
	.word	OCFS2_JOURNAL_ACCESS_CREATE
	.word	OCFS2_REFCOUNT_BLOCK_SIGNATURE
	.word	OCFS2_REFCOUNT_LEAF_FL
	.word	ENOMEM
	.size	ocfs2_new_leaf_refcount_block, .-ocfs2_new_leaf_refcount_block
	.comm	OCFS2_REFCOUNT_TREE_FL,4,4
	.comm	OCFS2_REFCOUNT_LEAF_FL,4,4
	.comm	OCFS2_REFCOUNT_BLOCK_SIGNATURE,4,4
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.comm	OCFS2_JOURNAL_ACCESS_CREATE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
