	.file	"extr_raid5-cache.c_r5l_recovery_log.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"md/raid:%s: starting from clean shutdown\n"
	.align 8
.LC1:
	.string	"md/raid:%s: recovering %d data-only stripes and %d data-parity stripes\n"
	.align 8
.LC2:
	.string	"md/raid:%s: failed to rewrite stripes to journal\n"
	.text
	.p2align 4
	.type	r5l_recovery_log, @function
r5l_recovery_log:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 32[rdi]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 40
	mov	r13, QWORD PTR [rax]
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	eax, DWORD PTR [r14]
	lea	rdi, 36[rbp]
	mov	DWORD PTR 32[rbp], eax
	mov	rax, QWORD PTR 24[r14]
	mov	QWORD PTR 24[rbp], rax
	call	INIT_LIST_HEAD@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	alloc_page@PLT
	mov	DWORD PTR 16[rbp], eax
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L5:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	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
.L4:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r14
	call	r5l_recovery_allocate_ra_pool@PLT
	test	rax, rax
	je	.L6
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L7:
	mov	edi, DWORD PTR 16[rbp]
	call	__free_page@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, rbp
	mov	rdi, r14
	call	r5c_recovery_flush_log@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rbx, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR 8[rbp]
	add	QWORD PTR 24[rbp], 10000
	mov	r15d, DWORD PTR 32[rbp]
	mov	rax, rbx
	or	rax, rcx
	je	.L16
	mov	rdi, r13
	mov	QWORD PTR 8[rsp], rcx
	call	mdname@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, rbx
	lea	rdi, .LC1[rip]
	mov	esi, eax
	xor	eax, eax
	call	pr_info@PLT
.L10:
	cmp	QWORD PTR 0[rbp], 0
	jne	.L11
	mov	rdx, QWORD PTR 24[rbp]
	mov	esi, DWORD PTR 32[rbp]
	mov	rdi, r14
	lea	rax, 1[rdx]
	mov	DWORD PTR 20[r14], esi
	mov	QWORD PTR 24[rbp], rax
	call	r5l_log_write_empty_meta_block@PLT
	mov	esi, DWORD PTR 32[rbp]
	mov	edx, DWORD PTR BLOCK_SECTORS[rip]
	mov	rdi, r14
	call	r5l_ring_add@PLT
	mov	DWORD PTR 32[rbp], eax
.L12:
	mov	DWORD PTR 16[r14], eax
	mov	rax, QWORD PTR 24[rbp]
	mov	esi, r15d
	mov	rdi, r14
	mov	DWORD PTR [r14], r15d
	mov	QWORD PTR 8[r14], rax
	call	r5l_write_super@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	r5c_recovery_flush_data_only_stripes@PLT
.L8:
	mov	rsi, rbp
	mov	rdi, r14
	call	r5l_recovery_free_ra_pool@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, rbp
	mov	rdi, r14
	call	r5c_recovery_rewrite_data_only_stripes@PLT
	test	rax, rax
	jne	.L17
	mov	eax, DWORD PTR 32[rbp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r13
	call	mdname@PLT
	lea	rdi, .LC2[rip]
	mov	esi, eax
	call	pr_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	call	mdname@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	pr_info@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	r5l_recovery_log, .-r5l_recovery_log
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	BLOCK_SECTORS,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_raid5-cache.c_r5l_recovery_log.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"md/raid:%s: starting from clean shutdown\012\000"
	.align	2
.LC1:
	.ascii	"md/raid:%s: recovering %d data-only stripes and %d "
	.ascii	"data-parity stripes\012\000"
	.align	2
.LC2:
	.ascii	"md/raid:%s: failed to rewrite stripes to journal\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r5l_recovery_log, %function
r5l_recovery_log:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L18
	ldr	r3, [r0, #20]
	mov	r6, r0
	ldr	r1, [r5]
	mov	r0, #24
	ldr	r7, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L16
	ldr	r2, [r6]
	ldr	r3, [r6, #16]
	add	r0, r4, #20
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	bl	INIT_LIST_HEAD
	ldr	r0, [r5]
	bl	alloc_page
	cmp	r0, #0
	str	r0, [r4, #8]
	bne	.L4
	ldr	r3, .L18+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r1, r4
	mov	r0, r6
	bl	r5l_recovery_allocate_ra_pool
	cmp	r0, #0
	beq	.L6
	ldr	r3, .L18+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L7:
	ldr	r0, [r4, #8]
	bl	__free_page
	b	.L5
.L16:
	ldr	r3, .L18+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, r4
	mov	r0, r6
	bl	r5c_recovery_flush_log
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, [r4, #12]
	ldr	r2, [r4]
	add	r3, r3, #9984
	add	r3, r3, #16
	cmp	r2, #0
	mov	r0, r7
	ldr	r8, [r4, #16]
	str	r3, [r4, #12]
	bne	.L9
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L17
.L9:
	bl	mdname
	ldm	r4, {r2, r3}
	mov	r1, r0
	ldr	r0, .L18+8
	bl	pr_info
.L10:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L11
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #16]
	add	r3, r2, #1
	str	r1, [r6, #12]
	mov	r0, r6
	str	r3, [r4, #12]
	bl	r5l_log_write_empty_meta_block
	ldr	r3, .L18+12
	mov	r0, r6
	ldr	r1, [r4, #16]
	ldr	r2, [r3]
	bl	r5l_ring_add
	str	r0, [r4, #16]
.L12:
	ldr	r3, [r4, #12]
	mov	r1, r8
	str	r0, [r6, #8]
	str	r3, [r6, #4]
	mov	r0, r6
	str	r8, [r6]
	bl	r5l_write_super
	mov	r1, r4
	mov	r0, r6
	bl	r5c_recovery_flush_data_only_stripes
.L8:
	mov	r0, r6
	mov	r1, r4
	bl	r5l_recovery_free_ra_pool
	b	.L7
.L11:
	mov	r1, r4
	mov	r0, r6
	bl	r5c_recovery_rewrite_data_only_stripes
	cmp	r0, #0
	ldreq	r0, [r4, #16]
	beq	.L12
	mov	r0, r7
	bl	mdname
	mov	r1, r0
	ldr	r0, .L18+16
	bl	pr_err
	ldr	r3, .L18+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L8
.L17:
	bl	mdname
	mov	r1, r0
	ldr	r0, .L18+24
	bl	pr_info
	b	.L10
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC1
	.word	BLOCK_SECTORS
	.word	.LC2
	.word	EIO
	.word	.LC0
	.size	r5l_recovery_log, .-r5l_recovery_log
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	BLOCK_SECTORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
