	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_line_replace_data         ## -- Begin function pblk_line_replace_data
	.p2align	4, 0x90
_pblk_line_replace_data:                ## @pblk_line_replace_data
	.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	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	32(%r15), %r12
	movq	%rbx, 32(%r15)
	leaq	4(%r15), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pblk_line_setup_metadata
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_spin_unlock
	leaq	20(%rbx), %r13
	movq	%r13, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	16(%rbx), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_io_schedule
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pblk_line_erase
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_15
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pblk_line_alloc_bitmaps
	testq	%rax, %rax
	je	LBB0_10
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rsi
	callq	_pblk_line_retry
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_pblk_line_init_metadata
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_pblk_line_init_bb
	movq	%r15, %rdi
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rsi
	callq	_pblk_line_retry
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_14
LBB0_16:
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_pblk_rl_free_lines_dec
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_pblk_line_get
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movslq	24(%r15), %rcx
	leal	1(%rcx), %edx
	movl	%edx, 24(%r15)
	movq	%rcx, 8(%rax)
	movq	_PBLK_LINETYPE_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_20
LBB0_19:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pblk_stop_writes
	movq	$0, 16(%r15)
LBB0_20:
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_LINETYPE_DATA,4,2         ## @PBLK_LINETYPE_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_line_replace_data         ; -- Begin function pblk_line_replace_data
	.p2align	2
_pblk_line_replace_data:                ; @pblk_line_replace_data
	.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
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	x22, [x21, #32]
	str	x19, [x21, #32]
	add	x2, x21, #4
	mov	x0, x19
	mov	x1, x20
	bl	_pblk_line_setup_metadata
	mov	x0, x20
	bl	_spin_unlock
	add	x23, x19, #20
	mov	x0, x23
	bl	_atomic_read
	cbz	w0, LBB0_7
; %bb.2:
	add	x24, x19, #16
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_io_schedule
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_atomic_read
	cbz	w0, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_atomic_read
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_pblk_line_erase
	cbz	x0, LBB0_4
	b	LBB0_9
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	bl	_pblk_line_alloc_bitmaps
	cbz	x0, LBB0_11
; %bb.8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_pblk_line_retry
	mov	x19, x0
	cbz	x0, LBB0_9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_pblk_line_init_metadata
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_pblk_line_init_bb
	cbz	w0, LBB0_10
; %bb.13:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_pblk_rl_free_lines_dec
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x21
	bl	_pblk_line_get
	str	x0, [x21, #16]
	cbz	x0, LBB0_15
; %bb.14:
	ldrsw	x8, [x21, #24]
	add	w9, w8, #1
	str	w9, [x21, #24]
	str	x8, [x0, #8]
Lloh0:
	adrp	x8, _PBLK_LINETYPE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBLK_LINETYPE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	b	LBB0_16
LBB0_15:
	mov	x0, x21
	mov	x1, x19
	bl	_pblk_stop_writes
	str	xzr, [x21, #16]
LBB0_16:
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_LINETYPE_DATA,4,2         ; @PBLK_LINETYPE_DATA
.subsections_via_symbols
