	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_line_smeta_write
_pblk_line_smeta_write:                 ## @pblk_line_smeta_write
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rsi), %rax
	movl	(%rax), %esi
	callq	_emeta_to_lbas
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ADDR_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movl	%eax, %ebx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pblk_alloc_rqd_meta
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_NVM_OP_PWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -80(%rbp)
	movl	$1, -76(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_nvm_rq_to_ppa_list
	cmpl	$0, 4(%r12)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_4
## %bb.2:
	movq	%rax, %r13
	leaq	(%r15,%r14,4), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_pblk_get_meta
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_addr_to_gen_ppa
	movl	%eax, (%r13,%r15,4)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r15,4)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	incq	%r15
	movslq	4(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_pblk_submit_io_sync_sem
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_pblk_err
	jmp	LBB0_9
LBB0_6:
	movq	%r12, %rdi
	callq	_atomic_dec
	cmpq	$0, -72(%rbp)
	je	LBB0_7
## %bb.8:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_pblk_log_write_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_7:
	xorl	%r13d, %r13d
LBB0_9:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_pblk_free_rqd_meta
LBB0_10:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_EMPTY,4,2                 ## @ADDR_EMPTY
	.comm	_NVM_OP_PWRITE,4,2              ## @NVM_OP_PWRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"smeta I/O submission failed: %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_pblk_line_smeta_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_line_smeta_write
_pblk_line_smeta_write:                 ; @pblk_line_smeta_write
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	w1, [x8]
	bl	_emeta_to_lbas
	mov	x23, x0
Lloh0:
	adrp	x8, _ADDR_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADDR_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_alloc_rqd_meta
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _NVM_OP_PWRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVM_OP_PWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #28]
	ldr	w8, [x19, #4]
	mov	w9, #1
	stp	w8, w9, [sp, #8]
	add	x0, sp, #8
	bl	_nvm_rq_to_ppa_list
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, x0
	mov	x25, #0
	add	x27, x23, x21, lsl #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x21, x25
	ldr	w1, [sp, #24]
	mov	x0, x19
	mov	x2, x25
	bl	_pblk_get_meta
	mov	x26, x0
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x1, x23
	bl	_addr_to_gen_ppa
	lsl	x8, x25, #2
	str	w0, [x24, x8]
	str	w22, [x27, x8]
	str	w22, [x26]
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w2, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_submit_io_sync_sem
	cbz	w0, LBB0_6
; %bb.5:
	mov	x24, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	bl	_pblk_err
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	bl	_atomic_dec
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_8
; %bb.7:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_log_write_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_9
LBB0_8:
	mov	w24, #0
LBB0_9:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_free_rqd_meta
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_EMPTY,4,2                 ; @ADDR_EMPTY
	.comm	_NVM_OP_PWRITE,4,2              ; @NVM_OP_PWRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"smeta I/O submission failed: %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_pblk_line_smeta_write
.subsections_via_symbols
