	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_recov_l2p_from_oob
_pblk_recov_l2p_from_oob:               ## @pblk_recov_l2p_from_oob
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_nvm_dev_dma_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_pblk_dma_meta_size
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15
	movq	%r13, %rdi
	callq	_pblk_dma_meta_size
	movq	%rax, %r12
	movl	4(%r13), %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	addq	%r12, %r15
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	movq	%rax, %r12
	callq	_mempool_alloc
	movq	%r14, %r15
	movq	%rax, %r14
	movq	_pblk_g_rq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, -104(%rbp)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -120(%rbp)
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -128(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -136(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, -144(%rbp)
	movups	-144(%rbp), %xmm0
	movups	-128(%rbp), %xmm1
	movups	-112(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	movq	%r13, %rdi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_pblk_recov_scan_oob
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_pblk_err
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_pblk_line_is_full
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_pblk_line_recov_close
LBB0_8:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mempool_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_9:
	movl	(%r15), %edi
	movq	-64(%rbp), %rdx
	movq	%r14, %rsi
	callq	_nvm_dev_dma_free
LBB0_10:
	movl	%ebx, %eax
	addq	$152, %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
	.comm	_pblk_g_rq_size,4,2             ## @pblk_g_rq_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not recover L2P form OOB\n"

	.no_dead_strip	_pblk_recov_l2p_from_oob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_recov_l2p_from_oob
_pblk_recov_l2p_from_oob:               ; @pblk_recov_l2p_from_oob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	ldr	x25, [x0, #8]
	ldr	w0, [x25]
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x2, sp, #56
	bl	_nvm_dev_dma_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_pblk_dma_meta_size
	mov	x23, x0
	ldr	x27, [sp, #56]
	mov	x0, x20
	bl	_pblk_dma_meta_size
	mov	x24, x0
	ldr	w0, [x20, #4]
	ldr	w1, [x25, #4]
	ldr	w2, [x26]
	bl	_kcalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	add	x27, x27, x24
	add	x23, x19, x23
	ldr	w1, [x26]
	mov	x0, x20
	bl	_mempool_alloc
	mov	x24, x0
Lloh2:
	adrp	x8, _pblk_g_rq_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pblk_g_rq_size@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	ldr	x8, [sp, #56]
	stp	x8, x27, [sp, #8]
	stp	x22, x24, [sp, #24]
	stp	x19, x23, [sp, #40]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_pblk_recov_scan_oob
	mov	x23, x0
	cbz	w0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_pblk_err
	b	LBB0_8
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_pblk_line_is_full
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_pblk_line_recov_close
LBB0_8:
	mov	x0, x24
	mov	x1, x20
	bl	_mempool_free
	mov	x0, x22
	bl	_kfree
LBB0_9:
	ldr	w0, [x25]
	ldr	x2, [sp, #56]
	mov	x1, x19
	bl	_nvm_dev_dma_free
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pblk_g_rq_size,4,2             ; @pblk_g_rq_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not recover L2P form OOB\n"

	.no_dead_strip	_pblk_recov_l2p_from_oob
.subsections_via_symbols
