	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_update_line_wp
_pblk_update_line_wp:                   ## @pblk_update_line_wp
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	(%r12), %rdx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	___pblk_alloc_page
	movq	(%r12), %rdx
	addl	%edx, %ebx
	cmpl	%r15d, %ebx
	jl	LBB0_2
LBB0_3:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movl	(%r14), %eax
	xorl	%ecx, %ecx
	subl	%r15d, %eax
	cmovll	%ecx, %eax
	movl	%eax, (%r14)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pblk_update_line_wp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_update_line_wp
_pblk_update_line_wp:                   ; @pblk_update_line_wp
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
	ldr	x2, [x21]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	___pblk_alloc_page
	ldr	x2, [x21]
	add	w22, w22, w2
	cmp	w22, w20
	b.lt	LBB0_2
LBB0_3:
	add	x21, x21, #8
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19]
	subs	w8, w8, w20
	csel	w8, wzr, w8, lt
	str	w8, [x19]
	mov	x0, x21
	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
	b	_spin_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pblk_update_line_wp
.subsections_via_symbols
