	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_setup_w_rq
_pblk_setup_w_rq:                       ## @pblk_setup_w_rq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_pblk_line_get_erase
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_nvm_rq_to_pdu
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %r12d
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%rax, 8(%r14)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_pblk_end_io_write@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_pblk_alloc_w_rq
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%r13, %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	callq	_atomic_read
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	jmp	LBB0_8
LBB0_6:
	movl	$1, %edi
LBB0_8:
	callq	_likely
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pblk_map_rq                    ## TAILCALL
LBB0_9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pblk_map_erase_rq              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pblk_end_io_write,4,2          ## @pblk_end_io_write
	.no_dead_strip	_pblk_setup_w_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_setup_w_rq
_pblk_setup_w_rq:                       ; @pblk_setup_w_rq
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_pblk_line_get_erase
	mov	x25, x0
	mov	x0, x20
	bl	_nvm_rq_to_pdu
	mov	x24, x0
	ldp	w22, w26, [x0]
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	add	w2, w26, w22
	str	x0, [x24, #8]
Lloh3:
	adrp	x8, _pblk_end_io_write@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pblk_end_io_write@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_pblk_alloc_w_rq
	cbz	w0, LBB0_5
; %bb.2:
	mov	x26, x0
	mov	x0, x23
	bl	_kfree
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_4:
	mov	x0, x26
	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
LBB0_5:
	cbz	x25, LBB0_7
; %bb.6:
	mov	x0, x25
	bl	_atomic_read
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	bl	_likely
	ldr	w2, [x24, #16]
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	mov	x3, x23
	mov	x4, x22
	mov	w5, #0
	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
	b	_pblk_map_rq
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x3, x23
	mov	x4, x22
	mov	x5, x19
	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
	b	_pblk_map_erase_rq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pblk_end_io_write,4,2          ; @pblk_end_io_write
	.no_dead_strip	_pblk_setup_w_rq
.subsections_via_symbols
