	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_mark_bb
_pblk_mark_bb:                          ## @pblk_mark_bb
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_pblk_ppa_to_pos
	movl	%eax, %r13d
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_pblk_debug
	leaq	4(%r12), %rdi
	callq	_atomic_long_inc
	leaq	8(%rbx), %rdi
	callq	_atomic_dec
	movl	4(%rbx), %esi
	movl	%r13d, %edi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %ecx
	callq	_pblk_err
LBB0_2:
	movq	(%r15), %rax
	movq	_NVM_OCSSD_SPEC_20@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	%r14d, (%rax)
	movq	_pblk_line_mark_bb@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rbx), %r8d
	movl	(%r12), %r9d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pblk_gen_run_ws                ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"erase failed: line:%d, pos:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"attempted to erase bb: line:%d, pos:%d\n"

	.comm	_NVM_OCSSD_SPEC_20,8,3          ## @NVM_OCSSD_SPEC_20
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_pblk_line_mark_bb,4,2          ## @pblk_line_mark_bb
	.no_dead_strip	_pblk_mark_bb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_mark_bb
_pblk_mark_bb:                          ; @pblk_mark_bb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	and	x1, x2, #0xffffffff
	mov	x0, x21
	bl	_pblk_ppa_to_pos
	mov	x23, x0
	ldr	w2, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_pblk_debug
	add	x0, x19, #4
	bl	_atomic_long_inc
	add	x0, x22, #8
	bl	_atomic_dec
	ldr	w1, [x22, #4]
	mov	x0, x23
	bl	_test_and_set_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x22]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_pblk_err
LBB0_2:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _NVM_OCSSD_SPEC_20@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NVM_OCSSD_SPEC_20@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
Lloh7:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #4
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.4:
	mov	x2, x0
	str	w20, [x0]
Lloh9:
	adrp	x8, _pblk_line_mark_bb@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pblk_line_mark_bb@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	ldr	w4, [x21]
	ldr	w5, [x19]
	mov	x0, x19
	mov	x1, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pblk_gen_run_ws
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"erase failed: line:%d, pos:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"attempted to erase bb: line:%d, pos:%d\n"

	.comm	_NVM_OCSSD_SPEC_20,8,3          ; @NVM_OCSSD_SPEC_20
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_pblk_line_mark_bb,4,2          ; @pblk_line_mark_bb
	.no_dead_strip	_pblk_mark_bb
.subsections_via_symbols
