	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_map_remaining
_pblk_map_remaining:                    ## @pblk_map_remaining
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %r14d
	movl	%r14d, -48(%rbp)
	movq	_ADDR_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pblk_ppa_to_line
	movq	%rax, %r15
	movq	40(%rax), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_emeta_to_lbas
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_spin_lock
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pblk_dev_ppa_to_line_addr
	movq	%rax, %rbx
	movl	32(%r15), %esi
	movq	%rax, %rdi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jl	LBB0_4
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	28(%r15)
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx,%rbx,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	24(%r15)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movl	20(%r15), %esi
	movq	%rbx, %rdi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r15), %edi
	movl	$-1, %esi
	callq	_le32_add_cpu
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_nvm_next_ppa_in_chk
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r13d
	movl	-48(%rbp), %r14d
	jmp	LBB0_1
LBB0_10:
	movq	8(%r15), %rax
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_spin_unlock
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_EMPTY,4,2                 ## @ADDR_EMPTY
	.no_dead_strip	_pblk_map_remaining
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_map_remaining
_pblk_map_remaining:                    ; @pblk_map_remaining
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w24, [x1]
	str	w24, [sp, #8]
Lloh0:
	adrp	x8, _ADDR_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADDR_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	bl	_pblk_ppa_to_line
	mov	x22, x0
	ldr	x8, [x0, #40]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_emeta_to_lbas
	mov	x23, x0
	mov	x0, x22
	bl	_spin_lock
	mov	w25, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, w24
	mov	x0, x20
	bl	_pblk_dev_ppa_to_line_addr
	mov	x24, x0
	ldr	w1, [x22, #32]
	bl	_test_and_set_bit
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w25, w19
	b.lt	LBB0_4
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x22, #28]
	sub	w8, w8, #1
	str	w8, [x22, #28]
	cmp	w25, w19
	b.ge	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23, x24, lsl #3]
	cmp	x8, x21
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x22, #24]
	sub	w8, w8, #1
	str	w8, [x22, #24]
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	x21, [x23, x24, lsl #3]
	ldr	w1, [x22, #20]
	mov	x0, x24
	bl	_test_and_set_bit
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22, #16]
	mov	w1, #-1
	bl	_le32_add_cpu
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_nvm_next_ppa_in_chk
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w25, w25, #1
	ldr	w24, [sp, #8]
	b	LBB0_1
LBB0_10:
	ldr	x8, [x22, #8]
	mov	w9, #1
	str	w9, [x8]
	mov	x0, x22
	bl	_spin_unlock
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_EMPTY,4,2                 ; @ADDR_EMPTY
	.no_dead_strip	_pblk_map_remaining
.subsections_via_symbols
