	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CacheReadDiskSectors           ## -- Begin function CacheReadDiskSectors
	.p2align	4, 0x90
_CacheReadDiskSectors:                  ## @CacheReadDiskSectors
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movslq	%edi, %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_TRACE
	movq	_CacheManagerInitialized@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.1:
	movq	_CacheManagerDrive@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rdx, %r8
	movq	%rax, %r15
	jmp	LBB0_4
LBB0_2:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r8d
	movl	%eax, %r15d
LBB0_4:
	movq	%rcx, %r13
	subq	%r8, %r13
	cmpq	%r14, %r13
	cmovgeq	%r14, %r13
	leaq	(%r12,%r14), %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%rcx
	movq	%rdx, %r9
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r9d
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	incq	%r9
	movq	%rax, %rbx
	subq	%r15, %rbx
	leaq	1(%rbx), %r12
	movq	%r12, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %rdx
	movq	%r13, %rcx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %r8
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	xorl	%eax, %eax
	callq	_TRACE
	testq	%rbx, %rbx
	js	LBB0_17
## %bb.8:
	movq	_CacheManagerDrive@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CacheInternalGetBlockPointer
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	8(%r14), %rdx
	movq	%rdx, %rsi
	imulq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	addq	(%rax), %rsi
	imulq	%r13, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_RtlCopyMemory
	movq	8(%r14), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	imulq	%rcx, %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdx
	imulq	%r13, %rcx
	leaq	L_.str.2(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
	imulq	8(%r14), %r13
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	cmpq	$2, %rbx
	jb	LBB0_14
## %bb.11:
	incq	%r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CacheInternalGetBlockPointer
	testq	%rax, %rax
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	8(%r14), %rdx
	imulq	(%r14), %rdx
	movq	%r13, %rdi
	callq	_RtlCopyMemory
	movq	(%rbx), %rdx
	movq	8(%r14), %rcx
	imulq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_TRACE
	movq	8(%r14), %rax
	imulq	(%r14), %rax
	addq	%rax, %r13
	incq	%r15
	decq	%r12
	cmpq	$2, %r12
	jg	LBB0_12
	jmp	LBB0_15
LBB0_14:
	cmpq	$1, %rbx
	jne	LBB0_17
LBB0_15:
	movq	_CacheManagerDrive@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_CacheInternalGetBlockPointer
	testq	%rax, %rax
	je	LBB0_9
## %bb.16:
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	8(%r14), %rdx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	imulq	%r15, %rdx
	movq	%r13, %rdi
	callq	_RtlCopyMemory
	movq	(%rbx), %rdx
	imulq	8(%r14), %r15
	leaq	L_.str.4(%rip), %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_TRACE
LBB0_17:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CacheReadDiskSectors() DiskNumber: 0x%x StartSector: %I64d SectorCount: %d Buffer: 0x%x\n"

	.comm	_CacheManagerInitialized,8,3    ## @CacheManagerInitialized
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_CacheManagerDrive,16,3         ## @CacheManagerDrive
L_.str.1:                               ## @.str.1
	.asciz	"StartBlock: %d SectorOffsetInStartBlock: %d CopyLengthInStartBlock: %d EndBlock: %d SectorOffsetInEndBlock: %d BlockCount: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"1 - RtlCopyMemory(0x%x, 0x%x, %d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"2 - RtlCopyMemory(0x%x, 0x%x, %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"3 - RtlCopyMemory(0x%x, 0x%x, %d)\n"

	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CacheReadDiskSectors           ; -- Begin function CacheReadDiskSectors
	.p2align	2
_CacheReadDiskSectors:                  ; @CacheReadDiskSectors
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
	str	x3, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_TRACE
Lloh2:
	adrp	x8, _CacheManagerInitialized@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CacheManagerInitialized@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
Lloh5:
	adrp	x26, _FALSE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.1:
Lloh7:
	adrp	x8, _CacheManagerDrive@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CacheManagerDrive@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sdiv	x22, x21, x8
	msub	x24, x22, x8, x21
	sub	x9, x8, x24
	cmp	x9, x19
	csel	x23, x9, x19, lt
	add	x9, x21, x19
	sub	x9, x9, #1
	sdiv	x19, x9, x8
	msub	x8, x19, x8, x9
	add	x27, x8, #1
	sub	x28, x19, x22
	add	x8, x28, #1
	stp	x27, x8, [sp, #8]
	str	x19, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x24
	mov	x3, x23
	bl	_TRACE
	tbnz	x28, #63, LBB0_10
; %bb.2:
Lloh12:
	adrp	x21, _CacheManagerDrive@GOTPAGE
Lloh13:
	ldr	x21, [x21, _CacheManagerDrive@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	bl	_CacheInternalGetBlockPointer
	cbz	x0, LBB0_11
; %bb.3:
	mov	x25, x0
	ldr	x8, [x0]
	ldr	x9, [x21, #8]
	madd	x1, x9, x24, x8
	mul	x2, x9, x23
	mov	x0, x20
	bl	_RtlCopyMemory
	ldr	x8, [x25]
	ldr	x9, [x21, #8]
	madd	x2, x9, x24, x8
	mul	x3, x9, x23
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	ldr	x8, [x21, #8]
	madd	x20, x8, x23, x20
	cmp	x28, #2
	b.lo	LBB0_7
; %bb.4:
	add	x22, x22, #1
	add	x25, x28, #1
Lloh16:
	adrp	x23, l_.str.3@PAGE
Lloh17:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_CacheInternalGetBlockPointer
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	x1, [x0]
	ldp	x8, x9, [x21]
	mul	x2, x9, x8
	mov	x0, x20
	bl	_RtlCopyMemory
	ldr	x2, [x24]
	ldp	x8, x9, [x21]
	mul	x3, x9, x8
	mov	x0, x23
	mov	x1, x20
	bl	_TRACE
	ldp	x8, x9, [x21]
	madd	x20, x9, x8, x20
	add	x22, x22, #1
	sub	x25, x25, #1
	cmp	x25, #2
	b.gt	LBB0_5
	b	LBB0_8
LBB0_7:
	cmp	x28, #1
	b.ne	LBB0_10
LBB0_8:
Lloh18:
	adrp	x21, _CacheManagerDrive@GOTPAGE
Lloh19:
	ldr	x21, [x21, _CacheManagerDrive@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	bl	_CacheInternalGetBlockPointer
	cbz	x0, LBB0_11
; %bb.9:
	mov	x19, x0
	ldr	x1, [x0]
	ldr	x8, [x21, #8]
	mul	x2, x8, x27
	mov	x0, x20
	bl	_RtlCopyMemory
	ldr	x2, [x19]
	ldr	x8, [x21, #8]
	mul	x3, x8, x27
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_TRACE
LBB0_10:
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	b	LBB0_12
LBB0_11:
	ldr	x0, [x26]
LBB0_12:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CacheReadDiskSectors() DiskNumber: 0x%x StartSector: %I64d SectorCount: %d Buffer: 0x%x\n"

	.comm	_CacheManagerInitialized,8,3    ; @CacheManagerInitialized
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_CacheManagerDrive,16,3         ; @CacheManagerDrive
l_.str.1:                               ; @.str.1
	.asciz	"StartBlock: %d SectorOffsetInStartBlock: %d CopyLengthInStartBlock: %d EndBlock: %d SectorOffsetInEndBlock: %d BlockCount: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"1 - RtlCopyMemory(0x%x, 0x%x, %d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"2 - RtlCopyMemory(0x%x, 0x%x, %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"3 - RtlCopyMemory(0x%x, 0x%x, %d)\n"

	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
