	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_line_erase                ## -- Begin function pblk_line_erase
	.p2align	4, 0x90
_pblk_line_erase:                       ## @pblk_line_erase
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	leaq	4(%rsi), %r15
	leaq	12(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_spin_lock
	movl	8(%r13), %edi
	movl	8(%r14), %esi
	incl	%ebx
	movl	%ebx, %edx
	callq	_find_next_zero_bit
	cmpl	8(%r14), %eax
	jge	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movl	(%r13), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	movl	8(%r13), %esi
	movl	%ebx, %edi
	callq	_test_and_set_bit
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pblk_blk_erase_sync
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movl	%eax, %r12d
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pblk_err
	jmp	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	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	"failed to erase line %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_line_erase                ; -- Begin function pblk_line_erase
	.p2align	2
_pblk_line_erase:                       ; @pblk_line_erase
	.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, x1
	mov	x19, x0
	add	x21, x1, #4
	add	x22, x1, #12
	mov	w23, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_spin_lock
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #8]
	add	w2, w23, #1
	bl	_find_next_zero_bit
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	ldr	w24, [x20]
	mov	x0, x22
	bl	_atomic_dec
	ldr	w1, [x20, #8]
	mov	x0, x23
	bl	_test_and_set_bit
	bl	_WARN_ON
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	mov	x1, x24
	bl	_pblk_blk_erase_sync
	cbz	w0, LBB0_1
; %bb.3:
	mov	x24, x0
	ldr	w2, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pblk_err
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock
	mov	w24, #0
LBB0_5:
	mov	x0, x24
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to erase line %d\n"

.subsections_via_symbols
