	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_submit_read_gc            ## -- Begin function pblk_submit_read_gc
	.p2align	4, 0x90
_pblk_submit_read_gc:                   ## @pblk_submit_read_gc
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pblk_alloc_rqd_meta
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	(%r15), %r9d
	movl	32(%r15), %edx
	movq	8(%r15), %rcx
	cmpl	$2, %r9d
	jl	LBB0_6
## %bb.2:
	movq	24(%r15), %r8
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_read_ppalist_rq_gc
	movl	%eax, 4(%r15)
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	$1, %eax
	jmp	LBB0_4
LBB0_6:
	movl	(%rcx), %ecx
	movq	24(%r15), %rax
	movl	(%rax), %r8d
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_read_rq_gc
	movl	%eax, 4(%r15)
LBB0_7:
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movq	_NVM_OP_PREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movl	%eax, -64(%rbp)
	movl	16(%r15), %edx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pblk_submit_io_sync
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	8(%r15), %rdx
	movl	(%r15), %ecx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pblk_read_check_rand
	leaq	16(%r14), %rdi
	callq	_atomic_dec
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)
	je	LBB0_11
## %bb.10:
	leaq	12(%r14), %rdi
	callq	_atomic_long_inc
LBB0_11:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pblk_free_rqd_meta
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_IO_OK,4,2                  ## @NVM_IO_OK
	.comm	_NVM_OP_PREAD,4,2               ## @NVM_OP_PREAD
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pblk_submit_read_gc            ; -- Begin function pblk_submit_read_gc
	.p2align	2
_pblk_submit_read_gc:                   ; @pblk_submit_read_gc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_alloc_rqd_meta
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	w5, [x20]
	ldr	w2, [x20, #32]
	ldr	x3, [x20, #8]
	cmp	w5, #2
	b.lt	LBB0_4
; %bb.2:
	ldr	x4, [x20, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_ppalist_rq_gc
	str	w0, [x20, #4]
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp, #32]
	ldr	w8, [x8]
	str	w8, [sp, #40]
	b	LBB0_6
LBB0_4:
	ldr	w3, [x3]
	ldr	x8, [x20, #24]
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_rq_gc
	str	w0, [x20, #4]
LBB0_5:
	cbz	w0, LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _NVM_OP_PREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVM_OP_PREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w0, [sp, #8]
	ldr	w2, [x20, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_submit_io_sync
	cbz	x0, LBB0_8
; %bb.7:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
	ldr	x2, [x20, #8]
	ldr	w3, [x20]
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_read_check_rand
	add	x0, x19, #16
	bl	_atomic_dec
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_10
; %bb.9:
	add	x0, x19, #12
	bl	_atomic_long_inc
LBB0_10:
	mov	w21, #0
LBB0_11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_pblk_free_rqd_meta
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_IO_OK,4,2                  ; @NVM_IO_OK
	.comm	_NVM_OP_PREAD,4,2               ; @NVM_OP_PREAD
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
