	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_blk_erase_async           ## -- Begin function pblk_blk_erase_async
	.p2align	4, 0x90
_pblk_blk_erase_async:                  ## @pblk_blk_erase_async
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, -40(%rbp)
	movq	_PBLK_ERASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pblk_alloc_rqd
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	callq	_pblk_setup_e_rq
	movq	_pblk_end_io_erase@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, (%rbx)
	movq	%r15, %rdi
	callq	_pblk_disk_name
	movq	_PBLK_CHUNK_RESET_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_trace_pblk_chunk_reset
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_pblk_submit_io
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rbx
	movl	-40(%rbp), %edi
	callq	_pblk_ppa_to_line_id
	movl	%eax, %r12d
	movl	-40(%rbp), %esi
	movq	%rbx, %rdi
	callq	_pblk_ppa_to_pos
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_pblk_err
LBB0_2:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_ERASE,4,2                 ## @PBLK_ERASE
	.comm	_pblk_end_io_erase,4,2          ## @pblk_end_io_erase
	.comm	_PBLK_CHUNK_RESET_START,4,2     ## @PBLK_CHUNK_RESET_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not async erase line:%d,blk:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_blk_erase_async           ; -- Begin function pblk_blk_erase_async
	.p2align	2
_pblk_blk_erase_async:                  ; @pblk_blk_erase_async
	.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, x1
	mov	x19, x0
	str	w20, [sp, #8]
Lloh0:
	adrp	x8, _PBLK_ERASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBLK_ERASE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pblk_alloc_rqd
	mov	x21, x0
	and	x2, x20, #0xffffffff
	mov	x0, x19
	mov	x1, x21
	bl	_pblk_setup_e_rq
Lloh3:
	adrp	x8, _pblk_end_io_erase@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pblk_end_io_erase@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	str	x19, [x21]
	mov	x0, x19
	bl	_pblk_disk_name
Lloh6:
	adrp	x8, _PBLK_CHUNK_RESET_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PBLK_CHUNK_RESET_START@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_trace_pblk_chunk_reset
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_pblk_submit_io
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x21, [x19]
	ldr	w0, [sp, #8]
	bl	_pblk_ppa_to_line_id
	mov	x22, x0
	ldr	w1, [sp, #8]
	mov	x0, x21
	bl	_pblk_ppa_to_pos
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_pblk_err
LBB0_2:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_ERASE,4,2                 ; @PBLK_ERASE
	.comm	_pblk_end_io_erase,4,2          ; @pblk_end_io_erase
	.comm	_PBLK_CHUNK_RESET_START,4,2     ; @PBLK_CHUNK_RESET_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not async erase line:%d,blk:%d\n"

.subsections_via_symbols
