	.file	"extr_alloc.c_ocfs2_figure_merge_contig_type.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Extent block #%llu has an invalid l_next_free_rec of %d.  It should have matched the l_count of %d\n"
	.align 8
.LC1:
	.string	"Extent block #%llu has an invalid l_next_free_rec of %d\n"
	.text
	.p2align 4
	.type	ocfs2_figure_merge_contig_type, @function
ocfs2_figure_merge_contig_type:
.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, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movsx	rbx, ecx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR [rdi]
	mov	r14d, DWORD PTR CONTIG_NONE[rip]
	mov	QWORD PTR 8[rsp], rsi
	mov	QWORD PTR 16[rsp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	ocfs2_metadata_cache_get_super@PLT
	mov	QWORD PTR 24[rsp], rax
	test	ebx, ebx
	jle	.L2
	mov	rdx, QWORD PTR 0[rbp]
	movsx	rax, ebx
	xor	r15d, r15d
	lea	rsi, -8[rdx+rax*8]
	test	rsi, rsi
	je	.L4
	cmp	ebx, 1
	je	.L39
.L10:
	mov	rdx, r13
	mov	rdi, r12
	call	ocfs2_et_extent_contig@PLT
	mov	r14d, eax
.L4:
	mov	edi, DWORD PTR 8[rbp]
	call	le16_to_cpu@PLT
	sub	eax, 1
	cmp	eax, ebx
	jle	.L11
	mov	rax, QWORD PTR 0[rbp]
	xor	ebp, ebp
	lea	rsi, 8[rax+rbx*8]
.L12:
	test	rsi, rsi
	je	.L13
.L19:
	mov	rdx, r13
	mov	rdi, r12
	call	ocfs2_et_extent_contig@PLT
	cmp	eax, DWORD PTR CONTIG_LEFT[rip]
	mov	ebx, eax
	je	.L40
.L20:
	cmp	DWORD PTR CONTIG_NONE[rip], r14d
	mov	rdi, rbp
	je	.L41
	call	ocfs2_free_path@PLT
.L37:
	mov	rdi, r15
	mov	ebx, r14d
	call	ocfs2_free_path@PLT
.L15:
	mov	rax, QWORD PTR 16[rsp]
	xor	r8d, r8d
	mov	DWORD PTR [rax], ebx
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	add	rsp, 88
	.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
.L39:
	.cfi_restore_state
	mov	rdi, rsi
	mov	QWORD PTR 32[rsp], rsi
	call	ocfs2_is_empty_extent@PLT
	mov	rsi, QWORD PTR 32[rsp]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR 0[r13], rax
	jne	.L4
	mov	r14d, DWORD PTR CONTIG_RIGHT[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rsi, QWORD PTR 8[rsp]
	xor	r15d, r15d
	cmp	QWORD PTR [rsi], 0
	jle	.L4
	mov	rdi, QWORD PTR 24[rsp]
	lea	rdx, 56[rsp]
	call	ocfs2_find_cpos_for_left_leaf@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 56[rsp], 0
	je	.L4
	mov	rdi, QWORD PTR 8[rsp]
	call	ocfs2_new_path_from_path@PLT
	mov	r15, rax
	test	rax, rax
	je	.L43
	mov	rdx, QWORD PTR 56[rsp]
	mov	edi, DWORD PTR [r12]
	mov	rsi, rax
	call	ocfs2_find_path@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, r15
	call	path_leaf_el@PLT
	mov	edi, DWORD PTR 8[rax]
	mov	QWORD PTR 40[rsp], rax
	call	le16_to_cpu@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	DWORD PTR 32[rsp], eax
	mov	edi, DWORD PTR 12[rdx]
	call	le16_to_cpu@PLT
	cmp	DWORD PTR 32[rsp], eax
	mov	rdx, QWORD PTR 40[rsp]
	je	.L9
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rdx
	call	path_leaf_bh@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rbp, QWORD PTR [rax]
	mov	edi, DWORD PTR 12[rdx]
	call	le16_to_cpu@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	ebx, eax
	mov	edi, DWORD PTR 8[rdx]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12d, eax
	call	le64_to_cpu@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	r8d, ebx
	mov	ecx, r12d
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	ocfs2_error@PLT
	mov	r8d, eax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r15
	mov	DWORD PTR 8[rsp], r8d
	call	ocfs2_free_path@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L7:
	test	r8d, r8d
	jne	.L1
	mov	ebx, r14d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR 8[rbp]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 12[rbp]
	xor	ebp, ebp
	mov	ebx, eax
	call	le16_to_cpu@PLT
	cmp	ebx, eax
	je	.L44
.L13:
	mov	rdi, rbp
	mov	ebx, r14d
	call	ocfs2_free_path@PLT
	mov	rdi, r15
	call	ocfs2_free_path@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L40:
	cmp	DWORD PTR CONTIG_RIGHT[rip], r14d
	jne	.L20
	mov	rdi, rbp
	mov	ebx, DWORD PTR CONTIG_LEFTRIGHT[rip]
	call	ocfs2_free_path@PLT
	mov	rdi, r15
	call	ocfs2_free_path@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rsi, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rsi], 0
	jle	.L13
	mov	rdi, QWORD PTR 24[rsp]
	lea	rdx, 64[rsp]
	call	ocfs2_find_cpos_for_right_leaf@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L8
	cmp	QWORD PTR 64[rsp], 0
	je	.L37
	mov	rdi, QWORD PTR 8[rsp]
	call	ocfs2_new_path_from_path@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L45
	mov	rdx, QWORD PTR 64[rsp]
	mov	edi, DWORD PTR [r12]
	mov	rsi, rax
	call	ocfs2_find_path@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L17
	mov	rdi, rbp
	call	path_leaf_el@PLT
	mov	rsi, QWORD PTR [rax]
	mov	rbx, rax
	mov	rdi, rsi
	mov	QWORD PTR 8[rsp], rsi
	call	ocfs2_is_empty_extent@PLT
	mov	rsi, QWORD PTR 8[rsp]
	test	rax, rax
	je	.L12
	mov	edi, DWORD PTR 8[rbx]
	call	le16_to_cpu@PLT
	cmp	eax, 1
	jle	.L46
	mov	rsi, QWORD PTR [rbx]
	add	rsi, 8
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L41:
	call	ocfs2_free_path@PLT
	mov	rdi, r15
	call	ocfs2_free_path@PLT
	jmp	.L15
.L9:
	mov	rcx, QWORD PTR [rdx]
	mov	edi, DWORD PTR 8[rdx]
	mov	QWORD PTR 32[rsp], rcx
	call	le16_to_cpu@PLT
	mov	rcx, QWORD PTR 32[rsp]
	cdqe
	lea	rsi, -8[rcx+rax*8]
	test	rsi, rsi
	jne	.L10
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L43:
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	mov	edi, r8d
	mov	DWORD PTR 8[rsp], r8d
	call	mlog_errno@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L7
.L46:
	mov	rdi, rbp
	call	path_leaf_bh@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	r13, QWORD PTR [rax]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	r12d, eax
	call	le64_to_cpu@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	ecx, r12d
	lea	rsi, .LC1[rip]
	mov	rdx, rax
	xor	eax, eax
	call	ocfs2_error@PLT
	mov	r8d, eax
.L17:
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], r8d
	call	ocfs2_free_path@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L8
.L45:
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
	mov	edi, r8d
	mov	DWORD PTR 8[rsp], r8d
	call	mlog_errno@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L8
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_figure_merge_contig_type, .-ocfs2_figure_merge_contig_type
	.comm	ENOMEM,4,4
	.comm	CONTIG_RIGHT,4,4
	.comm	CONTIG_NONE,4,4
	.comm	CONTIG_LEFTRIGHT,4,4
	.comm	CONTIG_LEFT,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_alloc.c_ocfs2_figure_merge_contig_type.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Extent block #%llu has an invalid l_next_free_rec o"
	.ascii	"f %d.  It should have matched the l_count of %d\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Extent block #%llu has an invalid l_next_free_rec o"
	.ascii	"f %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_figure_merge_contig_type, %function
ocfs2_figure_merge_contig_type:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	ldr	r3, .L48
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r10, .L48+4
	ldr	r3, [sp, #84]
	mov	r6, r0
	ldr	r0, [r0]
	mov	r8, r1
	mov	r5, r2
	ldr	r7, [r10]
	ldr	fp, [sp, #80]
	str	r3, [sp, #8]
	bl	ocfs2_metadata_cache_get_super
	cmp	r4, #0
	str	r0, [sp, #12]
	ble	.L2
	ldr	r1, [r5]
	sub	r3, r4, #-1073741823
	adds	r1, r1, r3, lsl #2
	beq	.L27
	cmp	r4, #1
	movne	r9, #0
	beq	.L39
.L10:
	mov	r2, fp
	mov	r0, r6
	bl	ocfs2_et_extent_contig
	mov	r7, r0
.L4:
	ldr	r0, [r5, #4]
	bl	le16_to_cpu
	sub	r0, r0, #1
	cmp	r0, r4
	ble	.L11
	ldr	r1, [r5]
	mov	r5, #0
	add	r4, r4, #1
	add	r1, r1, r4, lsl #2
.L12:
	cmp	r1, #0
	beq	.L13
.L19:
	mov	r2, fp
	mov	r0, r6
	bl	ocfs2_et_extent_contig
	ldr	r3, .L48+8
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L40
.L20:
	ldr	r3, [r10]
	mov	r0, r5
	cmp	r3, r7
	beq	.L41
	bl	ocfs2_free_path
.L37:
	mov	r0, r9
	bl	ocfs2_free_path
	mov	r4, r7
.L15:
	mov	r3, #0
	ldr	r2, [sp, #8]
	str	r4, [r2]
.L1:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [sp, #36]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L42
	mov	r0, r3
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	mov	r0, r1
	str	r1, [sp, #16]
	bl	ocfs2_is_empty_extent
	subs	r9, r0, #0
	ldr	r1, [sp, #16]
	beq	.L10
	ldr	r3, [r5]
	ldr	r2, [fp]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L27
	ldr	r3, .L48+12
	mov	r9, #0
	ldr	r7, [r3]
	b	.L4
.L2:
	ldr	r3, [r8]
	cmp	r3, #0
	bgt	.L43
.L27:
	mov	r9, #0
	b	.L4
.L11:
	ldr	r0, [r5, #4]
	bl	le16_to_cpu
	mov	r4, r0
	ldr	r0, [r5, #8]
	bl	le16_to_cpu
	cmp	r4, r0
	beq	.L44
.L29:
	mov	r5, #0
.L13:
	mov	r0, r5
	bl	ocfs2_free_path
	mov	r0, r9
	bl	ocfs2_free_path
	mov	r4, r7
	b	.L15
.L40:
	ldr	r3, .L48+12
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L20
	ldr	r3, .L48+16
	mov	r0, r5
	ldr	r4, [r3]
	bl	ocfs2_free_path
	mov	r0, r9
	bl	ocfs2_free_path
	b	.L15
.L44:
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L29
	mov	r1, r8
	ldr	r0, [sp, #12]
	add	r2, sp, #32
	bl	ocfs2_find_cpos_for_right_leaf
	subs	r3, r0, #0
	bne	.L8
	ldr	r3, [sp, #32]
	cmp	r3, #0
	beq	.L37
	mov	r0, r8
	bl	ocfs2_new_path_from_path
	subs	r5, r0, #0
	beq	.L45
	mov	r1, r5
	ldr	r2, [sp, #32]
	ldr	r0, [r6]
	bl	ocfs2_find_path
	subs	r3, r0, #0
	bne	.L17
	mov	r0, r5
	bl	path_leaf_el
	ldr	r1, [r0]
	mov	r8, r0
	mov	r0, r1
	str	r1, [sp, #16]
	bl	ocfs2_is_empty_extent
	cmp	r0, #0
	ldr	r1, [sp, #16]
	beq	.L12
	ldr	r0, [r8, #4]
	bl	le16_to_cpu
	cmp	r0, #1
	ble	.L46
	ldr	r1, [r8]
	add	r1, r1, #4
	b	.L19
.L43:
	mov	r1, r8
	add	r2, sp, #28
	bl	ocfs2_find_cpos_for_left_leaf
	subs	r3, r0, #0
	bne	.L1
	ldr	r9, [sp, #28]
	cmp	r9, #0
	beq	.L4
	mov	r0, r8
	bl	ocfs2_new_path_from_path
	subs	r9, r0, #0
	beq	.L47
	mov	r1, r9
	ldr	r2, [sp, #28]
	ldr	r0, [r6]
	bl	ocfs2_find_path
	subs	r3, r0, #0
	bne	.L8
	mov	r0, r9
	bl	path_leaf_el
	str	r0, [sp, #16]
	ldr	r0, [r0, #4]
	bl	le16_to_cpu
	mov	r3, r0
	ldr	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r0, [r2, #8]
	bl	le16_to_cpu
	ldr	r3, [sp, #20]
	cmp	r3, r0
	beq	.L9
	mov	r0, r9
	bl	path_leaf_bh
	ldr	r3, [r0]
	ldr	r0, [r3]
	bl	le64_to_cpu
	ldr	r6, [sp, #16]
	mov	r4, r0
	ldr	r0, [r6, #4]
	bl	le16_to_cpu
	mov	r5, r0
	ldr	r0, [r6, #8]
	bl	le16_to_cpu
	asr	r3, r4, #31
	str	r0, [sp, #4]
	mov	r2, r4
	ldr	r0, [sp, #12]
	ldr	r1, .L48+20
	str	r5, [sp]
	bl	ocfs2_error
	mov	r3, r0
.L8:
	mov	r0, r9
	str	r3, [sp, #12]
	bl	ocfs2_free_path
	ldr	r3, [sp, #12]
.L7:
	cmp	r3, #0
	bne	.L1
	mov	r4, r7
	b	.L15
.L41:
	bl	ocfs2_free_path
	mov	r0, r9
	bl	ocfs2_free_path
	b	.L15
.L9:
	ldr	r3, [sp, #16]
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	str	r1, [sp, #16]
	bl	le16_to_cpu
	ldr	r1, [sp, #16]
	sub	r3, r0, #-1073741823
	adds	r1, r1, r3, lsl #2
	bne	.L10
	b	.L4
.L47:
	ldr	r3, .L48+24
	ldr	r3, [r3]
	rsb	r3, r3, #0
	mov	r0, r3
	str	r3, [sp, #12]
	bl	mlog_errno
	ldr	r3, [sp, #12]
	b	.L7
.L46:
	mov	r0, r5
	bl	path_leaf_bh
	ldr	r3, [r0]
	ldr	r0, [r3]
	bl	le64_to_cpu
	mov	r4, r0
	ldr	r0, [r8, #4]
	bl	le16_to_cpu
	asr	r3, r4, #31
	str	r0, [sp]
	mov	r2, r4
	ldr	r0, [sp, #12]
	ldr	r1, .L48+28
	bl	ocfs2_error
	mov	r3, r0
.L17:
	mov	r0, r5
	str	r3, [sp, #12]
	bl	ocfs2_free_path
	ldr	r3, [sp, #12]
	b	.L8
.L45:
	ldr	r3, .L48+24
	ldr	r3, [r3]
	rsb	r3, r3, #0
	mov	r0, r3
	str	r3, [sp, #12]
	bl	mlog_errno
	ldr	r3, [sp, #12]
	b	.L8
.L42:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	.LC2
	.word	CONTIG_NONE
	.word	CONTIG_LEFT
	.word	CONTIG_RIGHT
	.word	CONTIG_LEFTRIGHT
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.size	ocfs2_figure_merge_contig_type, .-ocfs2_figure_merge_contig_type
	.comm	ENOMEM,4,4
	.comm	CONTIG_RIGHT,4,4
	.comm	CONTIG_NONE,4,4
	.comm	CONTIG_LEFTRIGHT,4,4
	.comm	CONTIG_LEFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
