	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_end_io_write_meta
_pblk_end_io_write_meta:                ## @pblk_end_io_write_meta
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	callq	_nvm_rq_to_pdu
	movq	(%rax), %r15
	movq	16(%r15), %r12
	movq	%rbx, %rdi
	callq	_nvm_rq_to_ppa_list
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pblk_up_chunk
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pblk_log_write_err
	movl	8(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_pblk_err
	movq	(%r15), %rax
	movl	$1, (%rax)
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
	callq	_trace_pblk_chunk_state_enabled
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pblk_check_chunk_state_update
LBB0_4:
	movl	(%rbx), %edi
	leaq	4(%r12), %rsi
	callq	_atomic_add_return
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.5:
	movq	_pblk_line_close_ws@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%r14), %r9d
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_pblk_gen_run_ws
LBB0_6:
	movq	_PBLK_WRITE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pblk_free_rqd
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"metadata I/O failed. Line %d\n"

	.comm	_pblk_line_close_ws,4,2         ## @pblk_line_close_ws
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_PBLK_WRITE_INT,4,2             ## @PBLK_WRITE_INT
	.no_dead_strip	_pblk_end_io_write_meta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_end_io_write_meta
_pblk_end_io_write_meta:                ; @pblk_end_io_write_meta
	.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, x0
	ldr	x19, [x0, #16]
	bl	_nvm_rq_to_pdu
	ldr	x21, [x0]
	ldr	x22, [x21, #16]
	mov	x0, x20
	bl	_nvm_rq_to_ppa_list
	ldr	w1, [x0]
	mov	x0, x19
	bl	_pblk_up_chunk
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_pblk_log_write_err
	ldr	w2, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pblk_err
	ldr	x8, [x21]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_4
LBB0_2:
	bl	_trace_pblk_chunk_state_enabled
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_pblk_check_chunk_state_update
LBB0_4:
	ldr	w0, [x20]
	add	x1, x22, #4
	bl	_atomic_add_return
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _pblk_line_close_ws@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pblk_line_close_ws@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	ldr	w5, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_pblk_gen_run_ws
LBB0_6:
Lloh8:
	adrp	x8, _PBLK_WRITE_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PBLK_WRITE_INT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_pblk_free_rqd
	mov	x0, x19
	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	_atomic_dec
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"metadata I/O failed. Line %d\n"

	.comm	_pblk_line_close_ws,4,2         ; @pblk_line_close_ws
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_PBLK_WRITE_INT,4,2             ; @PBLK_WRITE_INT
	.no_dead_strip	_pblk_end_io_write_meta
.subsections_via_symbols
