	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_line_was_written
_pblk_line_was_written:                 ## @pblk_line_was_written
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_PBLK_LINESTATE_BAD@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rsi), %r12
	movl	16(%rdi), %edi
	movl	16(%rsi), %esi
	callq	_find_first_zero_bit
	cmpl	16(%r15), %eax
	jge	LBB0_6
## %bb.2:
	movq	(%r15), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	movq	8(%rbx), %rbx
	movq	%r12, %rdi
	callq	_pblk_ppa_to_pos
	shlq	$4, %rax
	movl	(%rbx,%rax), %ecx
	movq	_NVM_CHK_ST_CLOSED@GOTPCREL(%rip), %rdx
	movl	$1, %r14d
	testl	%ecx, (%rdx)
	jne	LBB0_6
## %bb.3:
	movq	_NVM_CHK_ST_OPEN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	8(%rbx,%rax), %rax
	cmpq	24(%r15), %rax
	jge	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_LINESTATE_BAD,8,3         ## @PBLK_LINESTATE_BAD
	.comm	_NVM_CHK_ST_CLOSED,4,2          ## @NVM_CHK_ST_CLOSED
	.comm	_NVM_CHK_ST_OPEN,4,2            ## @NVM_CHK_ST_OPEN
	.no_dead_strip	_pblk_line_was_written
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_line_was_written
_pblk_line_was_written:                 ; @pblk_line_was_written
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PBLK_LINESTATE_BAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PBLK_LINESTATE_BAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1, #8]
	ldr	w0, [x0, #16]
	ldr	w1, [x1, #16]
	bl	_find_first_zero_bit
	ldr	w8, [x19, #16]
	cmp	w0, w8
	b.ge	LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	w1, [x8, w0, sxtw #2]
	ldr	x20, [x20, #8]
	mov	x0, x21
	bl	_pblk_ppa_to_pos
	lsl	x8, x0, #4
	ldr	w8, [x20, x8]
Lloh3:
	adrp	x9, _NVM_CHK_ST_CLOSED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVM_CHK_ST_CLOSED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
LBB0_3:
	mov	w0, #1
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x9, _NVM_CHK_ST_OPEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NVM_CHK_ST_OPEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	add	x8, x20, x0, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ge	LBB0_3
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_LINESTATE_BAD,8,3         ; @PBLK_LINESTATE_BAD
	.comm	_NVM_CHK_ST_CLOSED,4,2          ; @NVM_CHK_ST_CLOSED
	.comm	_NVM_CHK_ST_OPEN,4,2            ; @NVM_CHK_ST_OPEN
	.no_dead_strip	_pblk_line_was_written
.subsections_via_symbols
