	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_submit_io_set
_pblk_submit_io_set:                    ## @pblk_submit_io_set
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_pblk_ppa_set_empty
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_pblk_setup_w_rq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_2:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pblk_should_submit_meta_io
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_pblk_submit_io
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_pblk_err
	movq	_NVM_IO_ERR@GOTPCREL(%rip), %rbx
LBB0_11:
	movl	(%rbx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-40(%rbp), %edi
	callq	_pblk_ppa_empty
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-40(%rbp), %esi
	movq	%r15, %rdi
	callq	_pblk_blk_erase_async
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_pblk_line_get_erase
	movq	%rax, %rbx
	movq	(%r15), %r12
	leaq	4(%rax), %rdi
	callq	_atomic_inc
	movl	-40(%rbp), %esi
	movq	%r12, %rdi
	callq	_pblk_ppa_to_pos
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_test_and_clear_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
LBB0_7:
	movq	_NVM_IO_OK@GOTPCREL(%rip), %rbx
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pblk_submit_meta_io
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not setup write request: %d\n"

	.comm	_NVM_IO_ERR,4,2                 ## @NVM_IO_ERR
L_.str.1:                               ## @.str.1
	.asciz	"data I/O submission failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"metadata I/O submission failed: %d"

	.comm	_NVM_IO_OK,4,2                  ## @NVM_IO_OK
	.no_dead_strip	_pblk_submit_io_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_submit_io_set
_pblk_submit_io_set:                    ; @pblk_submit_io_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	bl	_pblk_ppa_set_empty
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_pblk_setup_w_rq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x21
	bl	_pblk_should_submit_meta_io
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_pblk_submit_io
	cbz	w0, LBB0_6
; %bb.3:
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_pblk_err
Lloh4:
	adrp	x8, _NVM_IO_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVM_IO_ERR@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w0, [sp, #8]
	bl	_pblk_ppa_empty
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_pblk_blk_erase_async
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_pblk_line_get_erase
	mov	x21, x0
	ldr	x22, [x19]
	add	x0, x0, #4
	bl	_atomic_inc
	ldr	w1, [sp, #8]
	mov	x0, x22
	bl	_pblk_ppa_to_pos
	ldr	w1, [x21]
	bl	_test_and_clear_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
LBB0_9:
	cbz	x20, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_pblk_submit_meta_io
	cbz	w0, LBB0_12
; %bb.11:
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_12:
Lloh8:
	adrp	x8, _NVM_IO_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVM_IO_OK@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not setup write request: %d\n"

	.comm	_NVM_IO_ERR,4,2                 ; @NVM_IO_ERR
l_.str.1:                               ; @.str.1
	.asciz	"data I/O submission failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"metadata I/O submission failed: %d"

	.comm	_NVM_IO_OK,4,2                  ; @NVM_IO_OK
	.no_dead_strip	_pblk_submit_io_set
.subsections_via_symbols
