	.file	"extr_segment.h_check_block_count.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Mismatch valid blocks %d vs. %d"
	.align 8
.LC1:
	.string	"Wrong valid blocks %d or segno %u"
	.text
	.p2align 4
	.type	check_block_count, @function
check_block_count:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	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
	xor	edi, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	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
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR [rdx]
	call	test_bit_le@PLT
	mov	esi, DWORD PTR 0[r13]
	test	rax, rax
	setne	bl
	xor	r12d, r12d
	xor	r14d, r14d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	call	find_next_zero_bit_le@PLT
	mov	esi, DWORD PTR 0[r13]
	xor	ebx, 1
	mov	edx, eax
	sub	edx, r12d
	mov	r12d, eax
	add	r14d, edx
	cmp	esi, r12d
	jle	.L15
.L4:
	mov	edx, r12d
	mov	rdi, rbp
	test	ebx, ebx
	jne	.L16
	call	find_next_bit_le@PLT
	mov	esi, DWORD PTR 0[r13]
	xor	ebx, 1
	mov	r12d, eax
	cmp	esi, r12d
	jg	.L4
.L15:
	mov	rdi, rbp
	call	GET_SIT_VBLOCKS@PLT
	xor	edi, edi
	cmp	eax, r14d
	setne	dil
	call	unlikely@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L17
	call	GET_SIT_VBLOCKS@PLT
	mov	edi, 1
	cmp	eax, DWORD PTR 0[r13]
	jle	.L18
	call	unlikely@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L19
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L18:
	.cfi_restore_state
	mov	rdi, r13
	call	TOTAL_SEGS@PLT
	xor	edi, edi
	cmp	eax, r15d
	setle	dil
	call	unlikely@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L1
.L19:
	mov	rdi, rbp
	call	GET_SIT_VBLOCKS@PLT
	mov	ecx, r15d
	lea	rsi, .LC1[rip]
	mov	edx, eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	call	GET_SIT_VBLOCKS@PLT
	mov	ecx, r14d
	lea	rsi, .LC0[rip]
	mov	edx, eax
.L13:
	mov	rdi, r13
	call	f2fs_err@PLT
	mov	esi, DWORD PTR SBI_NEED_FSCK[rip]
	mov	rdi, r13
	call	set_sbi_flag@PLT
	mov	eax, DWORD PTR EFSCORRUPTED[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	check_block_count, .-check_block_count
	.comm	SBI_NEED_FSCK,4,4
	.comm	EFSCORRUPTED,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_segment.h_check_block_count.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Mismatch valid blocks %d vs. %d\000"
	.align	2
.LC1:
	.ascii	"Wrong valid blocks %d or segno %u\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_block_count, %function
check_block_count:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r0, #0
	mov	r9, r1
	ldr	r1, [r2]
	mov	r4, r0
	mov	r6, r2
	bl	test_bit_le
	subs	r5, r0, r4
	mov	r8, r4
	movne	r5, #1
	ldr	r1, [r7]
	b	.L4
.L17:
	bl	find_next_zero_bit_le
	sub	r4, r0, r4
	add	r8, r8, r4
	mov	r4, r0
	ldr	r1, [r7]
	eor	r5, r5, #1
	cmp	r1, r4
	ble	.L16
.L4:
	cmp	r5, #0
	mov	r2, r4
	mov	r0, r6
	bne	.L17
	bl	find_next_bit_le
	mov	r4, r0
	ldr	r1, [r7]
	eor	r5, r5, #1
	cmp	r1, r4
	bgt	.L4
.L16:
	mov	r0, r6
	bl	GET_SIT_VBLOCKS
	subs	r0, r0, r8
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	mov	r0, r6
	bne	.L18
	bl	GET_SIT_VBLOCKS
	ldr	r3, [r7]
	cmp	r0, r3
	movgt	r0, #1
	ble	.L19
.L7:
	bl	unlikely
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r6
	bl	GET_SIT_VBLOCKS
	mov	r3, r9
	mov	r2, r0
	ldr	r1, .L20
	b	.L14
.L19:
	mov	r0, r7
	bl	TOTAL_SEGS
	cmp	r0, r9
	movgt	r0, #0
	movle	r0, #1
	b	.L7
.L18:
	bl	GET_SIT_VBLOCKS
	mov	r3, r8
	mov	r2, r0
	ldr	r1, .L20+4
.L14:
	mov	r0, r7
	bl	f2fs_err
	ldr	r3, .L20+8
	mov	r0, r7
	ldr	r1, [r3]
	bl	set_sbi_flag
	ldr	r3, .L20+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	.LC0
	.word	SBI_NEED_FSCK
	.word	EFSCORRUPTED
	.size	check_block_count, .-check_block_count
	.comm	SBI_NEED_FSCK,4,4
	.comm	EFSCORRUPTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
