	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_map_erase_rq              ## -- Begin function pblk_map_erase_rq
	.p2align	4, 0x90
_pblk_map_erase_rq:                     ## @pblk_map_erase_rq
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	callq	_pblk_get_meta_for_writes
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_nvm_rq_to_ppa_list
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movl	(%r15), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cltq
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	shlq	$4, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leal	(%rcx,%r14), %eax
	movl	%ecx, %ebx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	xorl	%edx, %edx
	divl	-104(%rbp)                      ## 4-byte Folded Reload
	movl	%edx, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	callq	_pblk_get_meta
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%r14), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r8
	movl	%ebx, %r9d
	callq	_pblk_map_page_data
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	8(%r12), %rdx
	movq	-128(%rbp), %rdi                ## 8-byte Reload
	callq	_pblk_ppa_to_pos
	movq	%r15, %rdi
	movl	%eax, %r15d
	callq	_pblk_line_get_erase
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	leaq	12(%rax), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movl	8(%rbx), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	-120(%rbp), %r14                ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	-112(%rbp), %r12                ## 8-byte Folded Reload
	cmpq	%rax, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_2
LBB0_11:
	movq	%r15, %rdi
	callq	_pblk_line_get_data
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_pblk_line_get_erase
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	8(%rax), %rsi
	callq	_pblk_ppa_empty
	movl	%eax, %edi
	callq	_unlikely
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movl	16(%r12), %edi
	movl	16(%r15), %esi
	callq	_bitmap_weight
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movl	16(%r12), %edi
	movl	16(%r15), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_find_next_bit
	cmpl	16(%r15), %eax
	jge	LBB0_20
## %bb.16:
	movl	%eax, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_spin_lock
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_test_bit
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_spin_unlock
	testq	%r15, %r15
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %esi
	incl	%ebx
	movl	%ebx, %edx
	callq	_find_next_bit
	movl	%eax, %ebx
	cmpl	16(%r15), %eax
	jl	LBB0_17
	jmp	LBB0_20
LBB0_12:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_5:
	movl	%eax, %r13d
LBB0_20:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%rbx), %esi
	movl	%r15d, %edi
	callq	_set_bit
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_atomic_dec
	movups	(%r12), %xmm0
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, (%rcx)
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	movq	$0, 8(%rcx)
	movq	%r13, %rdi
	callq	_spin_unlock
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pblk_map_rq                    ## TAILCALL
LBB0_19:
	movl	8(%r14), %esi
	movl	%ebx, %edi
	callq	_set_bit
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_atomic_dec
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	movups	(%rax,%rcx), %xmm0
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movups	%xmm0, (%rcx)
	movl	(%r14), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_map_erase_rq              ; -- Begin function pblk_map_erase_rq
	.p2align	2
_pblk_map_erase_rq:                     ; @pblk_map_erase_rq
	.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
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	str	w4, [sp, #60]                   ; 4-byte Folded Spill
	str	x3, [sp, #48]                   ; 8-byte Folded Spill
	str	w2, [sp, #44]                   ; 4-byte Folded Spill
	mov	x24, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	bl	_pblk_get_meta_for_writes
	mov	x27, x0
	mov	x0, x24
	bl	_nvm_rq_to_ppa_list
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x25, x0
	mov	x28, #0
	ldr	w26, [x20]
	sxtw	x21, w26
	lsl	x8, x21, #4
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	udiv	w8, w9, w26
	msub	w8, w8, w26, w9
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w26, w28
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	cmp	w8, w9
	mov	x19, x26
	b.ls	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w19, [sp, #20]                  ; 4-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x27
	mov	x2, x28
	bl	_pblk_get_meta
	mov	x4, x0
	ldr	w8, [sp, #44]                   ; 4-byte Folded Reload
	add	w1, w8, w28
	mov	x0, x20
	mov	x2, x25
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	mov	x5, x19
	bl	_pblk_map_page_data
	cbnz	w0, LBB0_17
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x1, x2, [x25]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_pblk_ppa_to_pos
	mov	x23, x0
	mov	x0, x20
	bl	_pblk_line_get_erase
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_spin_lock
	ldr	w1, [x22, #8]
	mov	x0, x23
	bl	_test_bit
	cbz	x0, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x28, x28, x21
	mov	x0, x19
	bl	_spin_unlock
	ldrsw	x8, [x24]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x25, x25, x9
	cmp	x28, x8
	b.lt	LBB0_2
LBB0_8:
	mov	x0, x20
	bl	_pblk_line_get_data
	mov	x22, x0
	mov	x0, x20
	bl	_pblk_line_get_erase
	cbz	x0, LBB0_16
; %bb.9:
	mov	x21, x0
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	ldp	x0, x1, [x25]
	bl	_pblk_ppa_empty
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.10:
	ldr	w0, [x22, #16]
	ldr	w1, [x20, #16]
	bl	_bitmap_weight
	cbz	x0, LBB0_17
; %bb.11:
	ldr	w0, [x22, #16]
	ldr	w1, [x20, #16]
	mov	w2, #0
	bl	_find_next_bit
	mov	x23, x0
	mov	w0, #0
	ldr	w8, [x20, #16]
	cmp	w23, w8
	b.ge	LBB0_17
; %bb.12:
	add	x19, x21, #12
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_spin_lock
	ldr	w1, [x21, #8]
	mov	x0, x23
	bl	_test_bit
	mov	x24, x0
	mov	x0, x19
	bl	_spin_unlock
	cbz	x24, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x22, #16]
	ldr	w1, [x20, #16]
	add	w2, w23, #1
	bl	_find_next_bit
	mov	x23, x0
	ldr	w8, [x20, #16]
	cmp	w0, w8
	b.lt	LBB0_13
; %bb.15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
LBB0_18:
	add	w5, w26, w28
	mov	x0, x20
	mov	x1, x24
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w4, [sp, #60]                   ; 4-byte Folded Reload
	b	LBB0_20
LBB0_19:
	add	w26, w26, w28
	ldr	w1, [x22, #8]
	mov	x0, x23
	bl	_set_bit
	add	x0, x22, #4
	bl	_atomic_dec
	ldr	q0, [x25]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	q0, [x9]
	ldr	w8, [x22]
	str	w8, [x9]
	str	xzr, [x9, #8]
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	mov	x1, x24
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w4, [sp, #60]                   ; 4-byte Folded Reload
	mov	x5, x26
LBB0_20:
	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
	b	_pblk_map_rq
LBB0_21:
	ldr	w1, [x21, #8]
	mov	x0, x23
	bl	_set_bit
	add	x0, x21, #4
	bl	_atomic_dec
	mov	w0, #0
	ldr	x8, [x20, #8]
	ldr	q0, [x8, w23, sxtw #4]
	str	q0, [x25]
	ldr	w8, [x21]
	str	w8, [x25]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
.subsections_via_symbols
