	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_end_w_bio
_pblk_end_w_bio:                        ## @pblk_end_w_bio
	.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	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movl	(%rdx), %edx
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	xorl	%r13d, %r13d
	movq	_PBLK_FLUSH_ENTRY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	4(%r12), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	callq	_pblk_rb_w_ctx
	movq	%rax, %rbx
	movl	4(%rax), %edi
	callq	_READ_ONCE
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	4(%rbx), %rdi
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %esi
	callq	_smp_store_release
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %rdi
	callq	_bio_endio
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_bio_list_pop
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	movl	(%r12), %edx
	cmpl	%edx, %r13d
	jl	LBB0_2
LBB0_7:
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pblk_bio_free_pages
	movl	(%r12), %edx
	jmp	LBB0_10
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_pblk_rb_sync_advance
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_bio_put
	movq	_PBLK_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pblk_free_rqd
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_FLUSH_ENTRY,4,2           ## @PBLK_FLUSH_ENTRY
	.comm	_PBLK_WRITE,4,2                 ## @PBLK_WRITE
	.no_dead_strip	_pblk_end_w_bio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_end_w_bio
_pblk_end_w_bio:                        ; @pblk_end_w_bio
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w2, [x2]
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w24, #0
Lloh0:
	adrp	x25, _PBLK_FLUSH_ENTRY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PBLK_FLUSH_ENTRY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [x21, #4]
	add	w1, w8, w24
	mov	x0, x20
	bl	_pblk_rb_w_ctx
	mov	x22, x0
	mov	x23, x0
	ldr	w0, [x23, #4]!
	bl	_READ_ONCE
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bic	w1, w0, w8
	mov	x0, x23
	bl	_smp_store_release
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	bl	_bio_endio
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_bio_list_pop
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	ldr	w2, [x21]
	cmp	w24, w2
	b.lt	LBB0_2
LBB0_7:
	ldr	x3, [x21, #8]
	cbz	x3, LBB0_9
; %bb.8:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_pblk_bio_free_pages
	ldr	w2, [x21]
LBB0_9:
	mov	x0, x20
	mov	x1, x2
	bl	_pblk_rb_sync_advance
	mov	x21, x0
	ldr	w0, [x19]
	bl	_bio_put
Lloh2:
	adrp	x8, _PBLK_WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PBLK_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_pblk_free_rqd
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_FLUSH_ENTRY,4,2           ; @PBLK_FLUSH_ENTRY
	.comm	_PBLK_WRITE,4,2                 ; @PBLK_WRITE
	.no_dead_strip	_pblk_end_w_bio
.subsections_via_symbols
