	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_recovery_log
_r5l_recovery_log:                      ## @r5l_recovery_log
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %rax
	movq	(%rax), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	(%r14), %eax
	movl	%eax, 32(%r13)
	movq	24(%r14), %rax
	movq	%rax, 24(%r13)
	movq	%r13, %rdi
	addq	$36, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%rbx), %edi
	callq	_alloc_page
	movl	%eax, 16(%r13)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_r5l_recovery_allocate_ra_pool
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_6:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_r5c_recovery_flush_log
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movl	32(%r13), %r12d
	addq	$10000, 24(%r13)                ## imm = 0x2710
	cmpq	$0, (%r13)
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 8(%r13)
	je	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_mdname
	movq	(%r13), %rdx
	movq	8(%r13), %rcx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_info
	cmpq	$0, (%r13)
	je	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_r5c_recovery_rewrite_data_only_stripes
	testq	%rax, %rax
	je	LBB0_14
## %bb.20:
	movq	%r15, %rdi
	callq	_mdname
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	movl	32(%r13), %eax
	jmp	LBB0_15
LBB0_9:
	movq	%r15, %rdi
	callq	_mdname
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_info
	cmpq	$0, (%r13)
	jne	LBB0_13
LBB0_12:
	movl	32(%r13), %esi
	movl	%esi, 20(%r14)
	movq	24(%r13), %rdx
	leaq	1(%rdx), %rax
	movq	%rax, 24(%r13)
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_r5l_log_write_empty_meta_block
	movl	32(%r13), %esi
	movq	_BLOCK_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_r5l_ring_add
	movl	%eax, 32(%r13)
LBB0_15:
	movl	%eax, 16(%r14)
	movq	24(%r13), %rax
	movq	%rax, 8(%r14)
	movl	%r12d, (%r14)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_r5l_write_super
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_r5c_recovery_flush_data_only_stripes
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_r5l_recovery_free_ra_pool
LBB0_17:
	movl	16(%r13), %edi
	callq	___free_page
LBB0_18:
	movq	%r13, %rdi
	callq	_kfree
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md/raid:%s: starting from clean shutdown\n"

L_.str.1:                               ## @.str.1
	.asciz	"md/raid:%s: recovering %d data-only stripes and %d data-parity stripes\n"

	.comm	_BLOCK_SECTORS,4,2              ## @BLOCK_SECTORS
L_.str.2:                               ## @.str.2
	.asciz	"md/raid:%s: failed to rewrite stripes to journal\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_r5l_recovery_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_recovery_log
_r5l_recovery_log:                      ; @r5l_recovery_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x21, [x8]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	str	w8, [x0, #32]
	ldr	x8, [x20, #24]
	str	x8, [x0, #24]
	add	x0, x0, #36
	bl	_INIT_LIST_HEAD
	ldr	w0, [x22]
	bl	_alloc_page
	str	w0, [x19, #16]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_r5l_recovery_allocate_ra_pool
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_r5c_recovery_flush_log
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.7:
	ldr	w22, [x19, #32]
	ldr	x8, [x19, #24]
	mov	w9, #10000
	add	x8, x8, x9
	str	x8, [x19, #24]
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
LBB0_9:
	mov	x0, x21
	bl	_mdname
	mov	x1, x0
	ldp	x8, x9, [x19]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_10:
	bl	_pr_info
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_r5c_recovery_rewrite_data_only_stripes
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x21
	bl	_mdname
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_13:
	ldr	w1, [x19, #32]
	str	w1, [x20, #20]
	ldr	x2, [x19, #24]
	add	x8, x2, #1
	str	x8, [x19, #24]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_r5l_log_write_empty_meta_block
	ldr	w1, [x19, #32]
Lloh18:
	adrp	x8, _BLOCK_SECTORS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BLOCK_SECTORS@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_r5l_ring_add
	str	w0, [x19, #32]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #32]
LBB0_15:
	str	w0, [x20, #16]
	ldr	x8, [x19, #24]
	str	x8, [x20, #8]
	str	w22, [x20]
	mov	x0, x20
	mov	x1, x22
	bl	_r5l_write_super
	mov	x0, x20
	mov	x1, x19
	bl	_r5c_recovery_flush_data_only_stripes
	mov	w22, #0
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_r5l_recovery_free_ra_pool
LBB0_17:
	ldr	w0, [x19, #16]
	bl	___free_page
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_20:
	mov	x0, x21
	bl	_mdname
	mov	x1, x0
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md/raid:%s: starting from clean shutdown\n"

l_.str.1:                               ; @.str.1
	.asciz	"md/raid:%s: recovering %d data-only stripes and %d data-parity stripes\n"

	.comm	_BLOCK_SECTORS,4,2              ; @BLOCK_SECTORS
l_.str.2:                               ; @.str.2
	.asciz	"md/raid:%s: failed to rewrite stripes to journal\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_r5l_recovery_log
.subsections_via_symbols
