	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_line_prepare
_pblk_line_prepare:                     ## @pblk_line_prepare
	.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, %rbx
	movq	%rdi, %r15
	leaq	44(%rsi), %rdi
	callq	_atomic_read
	movl	%eax, %r13d
	movl	36(%rbx), %esi
	movl	40(%rbx), %edi
	movl	8(%r15), %edx
	callq	_bitmap_copy
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%rbx), %rax
	movq	_PBLK_LINESTATE_NEW@GOTPCREL(%rip), %rcx
	movl	%r13d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pblk_prepare_new_line
	movl	%eax, %r12d
	movq	_PBLK_LINESTATE_FREE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_pblk_disk_name
	movl	32(%rbx), %esi
	movq	(%rbx), %rdx
	movl	%eax, %edi
	callq	_trace_pblk_line_state
LBB0_2:
	cmpl	(%r15), %r13d
	jge	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	(%rbx), %rcx
	movq	_PBLK_LINESTATE_FREE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.7:
	movq	_PBLK_LINESTATE_OPEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_pblk_disk_name
	movl	32(%rbx), %esi
	movq	(%rbx), %rdx
	movl	%eax, %edi
	callq	_trace_pblk_line_state
	leaq	28(%rbx), %rdi
	movl	%r12d, %esi
	callq	_atomic_set
	leaq	24(%rbx), %rdi
	movl	%r12d, %esi
	callq	_atomic_set
	movl	4(%r15), %eax
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	leaq	12(%rbx), %rdi
	callq	_kref_init
	addq	$8, %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	jmp	LBB0_8
LBB0_6:
	movl	32(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	_EINTR@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_LINESTATE_NEW,8,3         ## @PBLK_LINESTATE_NEW
	.comm	_PBLK_LINESTATE_FREE,8,3        ## @PBLK_LINESTATE_FREE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pblk: corrupted line %d, state %d\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_PBLK_LINESTATE_OPEN,8,3        ## @PBLK_LINESTATE_OPEN
	.no_dead_strip	_pblk_line_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_line_prepare
_pblk_line_prepare:                     ; @pblk_line_prepare
	.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	x19, x1
	mov	x21, x0
	add	x0, x1, #44
	bl	_atomic_read
	mov	x23, x0
	ldp	w1, w0, [x19, #36]
	ldr	w2, [x21, #8]
	bl	_bitmap_copy
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock
Lloh0:
	adrp	x8, _PBLK_LINESTATE_NEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBLK_LINESTATE_NEW@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x24, _PBLK_LINESTATE_FREE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PBLK_LINESTATE_FREE@GOTPAGEOFF]
	mov	x22, x23
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_pblk_prepare_new_line
	mov	x22, x0
	ldr	x8, [x24]
	str	x8, [x19]
	mov	x0, x21
	bl	_pblk_disk_name
	ldr	w1, [x19, #32]
	ldr	x2, [x19]
	bl	_trace_pblk_line_state
LBB0_2:
	ldr	w8, [x21]
	cmp	w23, w8
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_spin_unlock
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	x3, [x19]
	ldr	x8, [x24]
	cmp	x3, x8
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _PBLK_LINESTATE_OPEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PBLK_LINESTATE_OPEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x21
	bl	_pblk_disk_name
	ldr	w1, [x19, #32]
	ldr	x2, [x19]
	bl	_trace_pblk_line_state
	add	x0, x19, #28
	mov	x1, x22
	bl	_atomic_set
	add	x0, x19, #24
	mov	x1, x22
	bl	_atomic_set
	ldr	w8, [x21, #4]
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_spin_unlock
	add	x0, x19, #12
	bl	_kref_init
	add	x0, x19, #8
	mov	w1, #0
	bl	_atomic_set
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w2, [x19, #32]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	x0, x20
	bl	_spin_unlock
Lloh12:
	adrp	x8, _EINTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_LINESTATE_NEW,8,3         ; @PBLK_LINESTATE_NEW
	.comm	_PBLK_LINESTATE_FREE,8,3        ; @PBLK_LINESTATE_FREE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pblk: corrupted line %d, state %d\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_PBLK_LINESTATE_OPEN,8,3        ; @PBLK_LINESTATE_OPEN
	.no_dead_strip	_pblk_line_prepare
.subsections_via_symbols
