	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_submit_meta_io            ## -- Begin function pblk_submit_meta_io
	.p2align	4, 0x90
_pblk_submit_meta_io:                   ## @pblk_submit_meta_io
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rsi), %r12
	movslq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_PBLK_WRITE_INT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_pblk_alloc_rqd
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_nvm_rq_to_pdu
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movslq	(%r12), %rbx
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	addq	8(%r12), %rbx
	movq	_pblk_end_io_write_meta@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pblk_alloc_w_rq
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	imulq	%rcx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_nvm_rq_to_ppa_list
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, (%r14)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jle	LBB0_9
## %bb.2:
	leaq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%r14), %eax
	jl	LBB0_5
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	_PBLK_WRITE_INT@GOTPCREL(%rip), %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpl	(%r14), %eax
	jge	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r12
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	___pblk_alloc_page
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %r14
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	movq	%r15, %r13
	movl	-92(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r12,%rbx), %esi
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	%r15d, %edx
	callq	_addr_to_gen_ppa
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r13d
	jne	LBB0_8
	jmp	LBB0_3
LBB0_9:
	movq	%r13, %r12
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movslq	(%rcx), %rax
	addq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movl	%eax, (%rcx)
	movq	8(%r12), %rcx
	cmpq	%rax, (%rcx)
	jg	LBB0_11
## %bb.10:
	leaq	4(%rbx), %rdi
	callq	_list_del
LBB0_11:
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pblk_down_chunk
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	callq	_pblk_submit_io
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %edx
	callq	_pblk_err
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_pblk_up_chunk
	movq	%r13, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pblk_dealloc_page
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_list_add
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %r13
LBB0_13:
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pblk_free_rqd
	movl	-56(%rbp), %eax                 ## 4-byte Reload
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_NVM_IO_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_WRITE_INT,4,2             ## @PBLK_WRITE_INT
	.comm	_pblk_end_io_write_meta,4,2     ## @pblk_end_io_write_meta
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"emeta I/O submission failed: %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_submit_meta_io            ; -- Begin function pblk_submit_meta_io
	.p2align	2
_pblk_submit_meta_io:                   ; @pblk_submit_meta_io
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x0, #24]
	ldr	x26, [x1, #16]
	ldrsw	x22, [x0]
	ldr	w25, [x1]
Lloh0:
	adrp	x28, _PBLK_WRITE_INT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _PBLK_WRITE_INT@GOTPAGEOFF]
	ldr	w1, [x28]
	bl	_pblk_alloc_rqd
	mov	x20, x0
	bl	_nvm_rq_to_pdu
	str	x21, [x0]
	ldrsw	x23, [x23]
	ldr	x8, [x26, #8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldrsw	x27, [x26]
Lloh2:
	adrp	x8, _pblk_end_io_write_meta@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pblk_end_io_write_meta@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_pblk_alloc_w_rq
	mov	x24, x0
	cbnz	w0, LBB0_11
; %bb.1:
	mul	x8, x23, x22
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x27
	stp	x8, x26, [sp, #8]               ; 16-byte Folded Spill
	mov	x0, x20
	bl	_nvm_rq_to_ppa_list
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #0
	add	x26, x21, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cmp	w24, w8
Lloh5:
	adrp	x28, _PBLK_WRITE_INT@GOTPAGE
Lloh6:
	ldr	x28, [x28, _PBLK_WRITE_INT@GOTPAGEOFF]
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x0, x26
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	___pblk_alloc_page
	mov	x27, x0
	mov	x0, x26
	bl	_spin_unlock
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x28, x8, w24, sxtw #2
	mov	x23, x22
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x27
	mov	x2, x25
	bl	_addr_to_gen_ppa
	str	w0, [x28], #4
	add	w27, w27, #1
	add	w24, w24, #1
	subs	w23, w23, #1
	b.ne	LBB0_6
	b	LBB0_3
LBB0_7:
	add	x25, x19, #16
	mov	x0, x25
	bl	_spin_lock
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldrsw	x8, [x10]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	add	x8, x8, x11
	cmp	x9, x8
	str	w8, [x10]
	b.gt	LBB0_9
; %bb.8:
	add	x0, x21, #4
	bl	_list_del
LBB0_9:
	mov	x0, x25
	bl	_spin_unlock
	ldr	x23, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pblk_down_chunk
	mov	x0, x19
	mov	x1, x20
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_pblk_submit_io
	cbz	w0, LBB0_13
; %bb.10:
	mov	x24, x0
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_pblk_err
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pblk_up_chunk
	mov	x0, x25
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_pblk_dealloc_page
	add	x0, x21, #4
	mov	x1, x0
	bl	_list_add
	mov	x0, x25
	bl	_spin_unlock
LBB0_11:
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x20
	bl	_pblk_free_rqd
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
Lloh9:
	adrp	x8, _NVM_IO_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVM_IO_OK@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_WRITE_INT,4,2             ; @PBLK_WRITE_INT
	.comm	_pblk_end_io_write_meta,4,2     ; @pblk_end_io_write_meta
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"emeta I/O submission failed: %d\n"

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