	.file	"extr_alloc.c_ocfs2_do_insert_extent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_do_insert_extent, @function
ocfs2_do_insert_extent:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	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
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	mov	r15, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	ocfs2_et_root_journal_access@PLT
	test	eax, eax
	jne	.L33
	mov	edi, DWORD PTR [r15]
	call	le16_to_cpu@PLT
	test	rax, rax
	je	.L34
	mov	rdi, rbx
	call	ocfs2_new_path_from_et@PLT
	mov	r15, rax
	test	rax, rax
	je	.L35
	mov	edi, DWORD PTR 4[r14]
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	edx, eax
	mov	rax, QWORD PTR APPEND_NONE[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L36
.L8:
	mov	rsi, r15
	call	ocfs2_find_path@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	mov	rax, QWORD PTR APPEND_TAIL[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L37
.L11:
	mov	rdx, QWORD PTR [rsp]
	mov	r9, r13
	mov	r8, r14
	mov	rcx, r15
	mov	rsi, rbx
	mov	rdi, rbp
	call	ocfs2_insert_path@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdx, r15
	mov	rcx, r13
	mov	rsi, r14
	mov	rdi, rbx
	call	ocfs2_insert_at_leaf@PLT
	xor	r15d, r15d
.L5:
	mov	rax, QWORD PTR SPLIT_NONE[rip]
	cmp	QWORD PTR 16[r13], rax
	je	.L38
.L12:
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	ocfs2_journal_dirty@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
.L3:
	mov	rdi, QWORD PTR [rsp]
	call	ocfs2_free_path@PLT
	mov	rdi, r15
	call	ocfs2_free_path@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L39
	add	rsp, 24
	.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
.L33:
	.cfi_restore_state
	mov	edi, eax
	mov	r12d, eax
	xor	r15d, r15d
	call	mlog_errno@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rax, QWORD PTR CONTIG_NONE[rip]
	cmp	QWORD PTR 8[r13], rax
	jne	.L8
	mov	edx, DWORD PTR UINT_MAX[rip]
	mov	rsi, r15
	call	ocfs2_find_path@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	mov	edi, DWORD PTR 4[r14]
	call	le32_to_cpu@PLT
	mov	rdx, QWORD PTR 16[r13]
	mov	r9, rsp
	mov	r8, r15
	mov	ecx, eax
	mov	rsi, rbx
	mov	rdi, rbp
	call	ocfs2_rotate_tree_right@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	mov	edx, DWORD PTR OCFS2_JOURNAL_ACCESS_WRITE[rip]
	mov	rsi, rbx
	mov	rdi, rbp
	call	ocfs2_et_root_journal_access@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR [r14]
	call	le16_to_cpu@PLT
	mov	rdi, rbx
	mov	rsi, rax
	call	ocfs2_et_update_clusters@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L35:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	mov	edi, r12d
	call	mlog_errno@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rax, QWORD PTR CONTIG_LEFT[rip]
	cmp	QWORD PTR 8[r13], rax
	je	.L11
	mov	r8, rsp
	mov	rcx, r15
	mov	rdx, r14
	mov	rsi, rbx
	mov	rdi, rbp
	call	ocfs2_append_rec_to_path@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
	jmp	.L31
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_do_insert_extent, .-ocfs2_do_insert_extent
	.comm	UINT_MAX,4,4
	.comm	SPLIT_NONE,8,8
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.comm	ENOMEM,4,4
	.comm	CONTIG_NONE,8,8
	.comm	CONTIG_LEFT,8,8
	.comm	APPEND_TAIL,8,8
	.comm	APPEND_NONE,8,8
	.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_alloc.c_ocfs2_do_insert_extent.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_do_insert_extent, %function
ocfs2_do_insert_extent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, #0
	ldr	r10, .L39
	mov	r7, r3
	ldr	r3, .L39+4
	sub	sp, sp, #20
	mov	r8, r2
	ldr	r2, [r10]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r6, r1
	mov	r9, r0
	ldr	fp, [r1, #8]
	str	r5, [sp, #8]
	bl	ocfs2_et_root_journal_access
	subs	r4, r0, #0
	bne	.L31
	ldr	r0, [fp]
	bl	le16_to_cpu
	subs	r5, r0, #0
	beq	.L33
	mov	r0, r6
	bl	ocfs2_new_path_from_et
	subs	r5, r0, #0
	beq	.L34
	ldr	r0, [r8, #4]
	bl	le32_to_cpu
	ldr	r3, .L39+8
	ldr	r1, [r7]
	ldr	r3, [r3]
	mov	r2, r0
	cmp	r1, r3
	ldrne	r0, [r6, #4]
	beq	.L35
.L8:
	mov	r1, r5
	bl	ocfs2_find_path
	subs	r4, r0, #0
	bne	.L13
	ldr	r3, .L39+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L36
.L11:
	mov	r3, r5
	mov	r1, r6
	mov	r0, r9
	ldr	r2, [sp, #8]
	str	r7, [sp, #4]
	str	r8, [sp]
	bl	ocfs2_insert_path
	subs	r4, r0, #0
	beq	.L5
.L31:
	bl	mlog_errno
.L3:
	ldr	r0, [sp, #8]
	bl	ocfs2_free_path
	mov	r0, r5
	bl	ocfs2_free_path
	ldr	r3, .L39+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r2, fp
	mov	r3, r7
	mov	r1, r8
	mov	r0, r6
	bl	ocfs2_insert_at_leaf
.L5:
	ldr	r3, .L39+16
	ldr	r2, [r7, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L38
.L12:
	mov	r0, r9
	ldr	r1, [r6]
	bl	ocfs2_journal_dirty
	subs	r4, r0, #0
	beq	.L3
	b	.L31
.L13:
	mov	r0, r4
	bl	mlog_errno
	b	.L3
.L35:
	ldr	r3, .L39+20
	ldr	r1, [r7, #4]
	ldr	r3, [r3]
	ldr	r0, [r6, #4]
	cmp	r1, r3
	bne	.L8
	ldr	r3, .L39+24
	mov	r1, r5
	ldr	r2, [r3]
	bl	ocfs2_find_path
	subs	r4, r0, #0
	bne	.L13
	ldr	r0, [r8, #4]
	ldr	r4, [r7, #8]
	bl	le32_to_cpu
	add	r1, sp, #8
	mov	r3, r0
	mov	r2, r4
	str	r1, [sp, #4]
	mov	r0, r9
	mov	r1, r6
	str	r5, [sp]
	bl	ocfs2_rotate_tree_right
	subs	r4, r0, #0
	bne	.L31
	mov	r1, r6
	mov	r0, r9
	ldr	r2, [r10]
	bl	ocfs2_et_root_journal_access
	subs	r4, r0, #0
	beq	.L11
	b	.L31
.L38:
	ldr	r0, [r8]
	bl	le16_to_cpu
	mov	r1, r0
	mov	r0, r6
	bl	ocfs2_et_update_clusters
	b	.L12
.L34:
	ldr	r3, .L39+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	bl	mlog_errno
	b	.L3
.L36:
	ldr	r3, .L39+32
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	add	r3, sp, #8
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r5
	mov	r1, r6
	mov	r0, r9
	bl	ocfs2_append_rec_to_path
	subs	r4, r0, #0
	beq	.L11
	b	.L31
.L37:
	bl	__stack_chk_fail
.L40:
	.align	2
.L39:
	.word	OCFS2_JOURNAL_ACCESS_WRITE
	.word	.LC0
	.word	APPEND_NONE
	.word	APPEND_TAIL
	.word	SPLIT_NONE
	.word	CONTIG_NONE
	.word	UINT_MAX
	.word	ENOMEM
	.word	CONTIG_LEFT
	.size	ocfs2_do_insert_extent, .-ocfs2_do_insert_extent
	.comm	UINT_MAX,4,4
	.comm	SPLIT_NONE,4,4
	.comm	OCFS2_JOURNAL_ACCESS_WRITE,4,4
	.comm	ENOMEM,4,4
	.comm	CONTIG_NONE,4,4
	.comm	CONTIG_LEFT,4,4
	.comm	APPEND_TAIL,4,4
	.comm	APPEND_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
