	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msb_cache_read
_msb_cache_read:                        ## @msb_cache_read
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -100(%rbp)                ## 4-byte Spill
	movq	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %r15d
	cmpl	%ecx, 8(%rdi)
	jne	LBB0_3
## %bb.1:
	leaq	24(%rbx), %rsi
	movl	%r14d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dbg_verbose
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sg_init_table
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	12(%rbx), %r8d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	movl	-100(%rbp), %ecx                ## 4-byte Reload
	callq	_msb_sg_copy
	movq	%r13, %rdi
	callq	_sg_nents
	movl	12(%rbx), %ecx
	imull	%ecx, %r14d
	movslq	%r14d, %rdx
	addq	16(%rbx), %rdx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_sg_copy_from_buffer
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dbg_verbose
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r15
	movq	%r12, %r8
	movl	-100(%rbp), %r12d               ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_msb_read_page
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	movq	%r15, %r8
	movl	%r12d, %r9d
	callq	_msb_cache_write
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read of LBA %d (pba %d) sector %d from cache"

L_.str.1:                               ## @.str.1
	.asciz	"Read of LBA %d (pba %d) sector %d from device"

	.no_dead_strip	_msb_cache_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msb_cache_read
_msb_cache_read:                        ; @msb_cache_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x0]
	ldr	w24, [x8, w1, sxtw #2]
	ldr	w8, [x0, #8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	add	x1, x20, #24
	mov	x0, x19
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	mov	x3, x19
	bl	_dbg_verbose
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, sp
	bl	_sg_init_table
	mov	x0, sp
	bl	_ARRAY_SIZE
	mov	x2, x0
	ldr	w4, [x20, #12]
	mov	x1, sp
	mov	x0, x22
	mov	x3, x21
	bl	_msb_sg_copy
	mov	x0, sp
	bl	_sg_nents
	mov	x1, x0
	ldr	x8, [x20, #16]
	ldr	w3, [x20, #12]
	mul	w9, w3, w19
	add	x2, x8, w9, sxtw
	mov	x0, sp
	bl	_sg_copy_from_buffer
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	mov	x3, x19
	bl	_dbg_verbose
	mov	x0, x20
	mov	x1, x24
	mov	x2, x19
	mov	x3, #0
	mov	x4, x22
	mov	x5, x21
	bl	_msb_read_page
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	w3, #1
	mov	x4, x22
	mov	x5, x21
	bl	_msb_cache_write
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read of LBA %d (pba %d) sector %d from cache"

l_.str.1:                               ; @.str.1
	.asciz	"Read of LBA %d (pba %d) sector %d from device"

	.no_dead_strip	_msb_cache_read
.subsections_via_symbols
