	.file	"extr_blockcheck.c_ocfs2_block_check_validate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CRC32 failed: stored: %u, computed %u.  Applying ECC.\n"
	.align 8
.LC1:
	.string	"Fixed CRC32 failed: stored: %u, computed %u\n"
	.text
	.p2align 4
	.globl	ocfs2_block_check_validate
	.type	ocfs2_block_check_validate, @function
ocfs2_block_check_validate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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, rdi
	mov	rdi, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	ocfs2_blockcheck_inc_check@PLT
	mov	rdi, QWORD PTR [rbx]
	call	le32_to_cpu@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	rbp, rax
	call	le16_to_cpu@PLT
	xor	esi, esi
	mov	edx, 16
	mov	rdi, rbx
	mov	r14, rax
	call	memset@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	edi, -1
	call	crc32_le@PLT
	mov	DWORD PTR 4[rsp], 0
	cmp	rbp, rax
	mov	QWORD PTR 8[rsp], rax
	je	.L2
	mov	rdi, r15
	call	ocfs2_blockcheck_inc_failure@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	edx, ebp
	mov	edi, DWORD PTR ML_ERROR[rip]
	lea	rsi, .LC0[rip]
	call	mlog@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	ocfs2_hamming_encode_block@PLT
	mov	rsi, r13
	mov	rdi, r12
	xor	rax, r14
	mov	rdx, rax
	call	ocfs2_hamming_fix_block@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	edi, -1
	call	crc32_le@PLT
	cmp	rbp, rax
	je	.L7
	mov	edi, DWORD PTR ML_ERROR[rip]
	mov	ecx, eax
	mov	edx, ebp
	lea	rsi, .LC1[rip]
	call	mlog@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	mov	DWORD PTR 4[rsp], eax
.L2:
	mov	rdi, rbp
	call	cpu_to_le32@PLT
	mov	rdi, r14
	mov	QWORD PTR [rbx], rax
	call	cpu_to_le16@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	eax, DWORD PTR 4[rsp]
	add	rsp, 24
	.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
.L7:
	.cfi_restore_state
	mov	rdi, r15
	call	ocfs2_blockcheck_inc_recover@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ocfs2_block_check_validate, .-ocfs2_block_check_validate
	.comm	ML_ERROR,4,4
	.comm	EIO,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_blockcheck.c_ocfs2_block_check_validate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CRC32 failed: stored: %u, computed %u.  Applying EC"
	.ascii	"C.\012\000"
	.align	2
.LC1:
	.ascii	"Fixed CRC32 failed: stored: %u, computed %u\012\000"
	.text
	.align	2
	.global	ocfs2_block_check_validate
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_block_check_validate, %function
ocfs2_block_check_validate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	mov	r6, r0
	mov	r0, r3
	mov	r8, r3
	mov	r7, r1
	bl	ocfs2_blockcheck_inc_check
	ldr	r0, [r4]
	bl	le32_to_cpu
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	le16_to_cpu
	mov	r2, #8
	mov	r1, #0
	mov	r9, r0
	mov	r0, r4
	bl	memset
	mov	r1, r6
	mov	r2, r7
	mvn	r0, #0
	bl	crc32_le
	cmp	r5, r0
	moveq	r6, #0
	beq	.L2
	mov	r10, r0
	ldr	fp, .L8
	mov	r0, r8
	bl	ocfs2_blockcheck_inc_failure
	mov	r3, r10
	mov	r2, r5
	ldr	r1, .L8+4
	ldr	r0, [fp]
	bl	mlog
	mov	r1, r7
	mov	r0, r6
	bl	ocfs2_hamming_encode_block
	mov	r1, r7
	eor	r2, r9, r0
	mov	r0, r6
	bl	ocfs2_hamming_fix_block
	mov	r2, r7
	mov	r1, r6
	mvn	r0, #0
	bl	crc32_le
	cmp	r5, r0
	mov	r3, r0
	beq	.L7
	mov	r2, r5
	ldr	r0, [fp]
	ldr	r1, .L8+8
	bl	mlog
	ldr	r3, .L8+12
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L2:
	mov	r0, r5
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r9
	str	r3, [r4]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r0, r8
	bl	ocfs2_blockcheck_inc_recover
	mov	r6, #0
	b	.L2
.L9:
	.align	2
.L8:
	.word	ML_ERROR
	.word	.LC0
	.word	.LC1
	.word	EIO
	.size	ocfs2_block_check_validate, .-ocfs2_block_check_validate
	.comm	ML_ERROR,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
