	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DiskRead
_DiskRead:                              ## @DiskRead
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %rbx
	callq	_FsGetDeviceSpecific
	movq	%rax, %r14
	movl	$0, (%r15)
	movq	_ESUCCESS@GOTPCREL(%rip), %rax
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movl	4(%r14), %ecx
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movl	%eax, %r13d
	leal	(%r12,%rsi), %eax
	decl	%eax
	cltd
	idivl	%esi
	addl	%ecx, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	cmpl	8(%r14), %eax
	jge	LBB0_13
## %bb.2:
	cmpl	$65535, %r13d                   ## imm = 0xFFFF
	jg	LBB0_13
## %bb.3:
	xorl	%edi, %edi
	cmpl	$-1, %ecx
	setne	%dil
	callq	_ASSERT
	movl	4(%r14), %ebx
	addl	32(%r14), %ebx
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_PagedPool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_ExAllocatePool
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_RtlZeroMemory
	movl	$4, (%r15)
	movq	_SRB_FUNCTION_EXECUTE_SCSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r15)
	movl	24(%r14), %eax
	movl	%eax, 52(%r15)
	movl	20(%r14), %eax
	movl	%eax, 48(%r15)
	movl	16(%r14), %eax
	movl	%eax, 16(%r15)
	movl	$10, 4(%r15)
	movq	_SRB_FLAGS_DATA_IN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%r15)
	movl	(%r14), %ecx
	imull	%r13d, %ecx
	movl	%ecx, 8(%r15)
	movl	$5, 12(%r15)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 32(%r15)
	movq	24(%r15), %rcx
	movq	_SCSIOP_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%rcx)
	movl	%eax, 24(%rcx)
	movl	%ebx, %eax
	shrl	$24, %eax
	movl	%eax, (%rcx)
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%rcx)
	movzbl	%bh, %eax
	movl	%eax, 8(%rcx)
	movzbl	%bl, %eax
	movl	%eax, 12(%rcx)
	movl	%r13d, %eax
	shrl	$8, %eax
	movl	%eax, 16(%rcx)
	movzbl	%r13b, %eax
	movl	%eax, 20(%rcx)
	movl	12(%r14), %edi
	movq	%r15, %rsi
	callq	_SpiSendSynchronousSrb
	testl	%eax, %eax
	je	LBB0_15
## %bb.6:
	movslq	(%r14), %rax
	movslq	%r13d, %rcx
	imulq	%rax, %rcx
	addq	%rcx, -64(%rbp)                 ## 8-byte Folded Spill
	subl	%ecx, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addl	%ecx, (%r15)
	addl	%r13d, 4(%r14)
	addl	%r13d, %ebx
LBB0_7:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_ESUCCESS@GOTPCREL(%rip), %rbx
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.8:
	movq	_PagedPool@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_ExAllocatePool
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %r13
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_ExAllocatePool
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_RtlZeroMemory
	movl	$4, (%r15)
	movq	_SRB_FUNCTION_EXECUTE_SCSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r15)
	movl	24(%r14), %eax
	movl	%eax, 52(%r15)
	movl	20(%r14), %eax
	movl	%eax, 48(%r15)
	movl	16(%r14), %eax
	movl	%eax, 16(%r15)
	movl	$10, 4(%r15)
	movq	_SRB_FLAGS_DATA_IN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%r15)
	movl	(%r14), %ecx
	movl	%ecx, 8(%r15)
	movl	$5, 12(%r15)
	movq	%r13, 32(%r15)
	movq	24(%r15), %rcx
	movq	_SCSIOP_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 32(%rcx)
	movl	%eax, 24(%rcx)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	shrl	$24, %eax
	movl	%eax, (%rcx)
	movl	%edx, %eax
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, 4(%rcx)
	movzbl	%dh, %eax
	movl	%eax, 8(%rcx)
	movzbl	%dl, %eax
	movl	%eax, 12(%rcx)
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 16(%rcx)
	movl	12(%r14), %edi
	movq	%r15, %rsi
	callq	_SpiSendSynchronousSrb
	testl	%eax, %eax
	je	LBB0_18
## %bb.11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_RtlCopyMemory
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r12d, (%rax)
	movq	_ESUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
LBB0_12:
	movq	%rax, %rbx
	jmp	LBB0_13
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_15:
	movq	_EIO@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
LBB0_18:
	movq	_EIO@GOTPCREL(%rip), %rbx
LBB0_19:
	movq	%r13, %rdi
	callq	_ExFreePool
LBB0_13:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PagedPool,4,2                  ## @PagedPool
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SRB_FUNCTION_EXECUTE_SCSI,8,3  ## @SRB_FUNCTION_EXECUTE_SCSI
	.comm	_SRB_FLAGS_DATA_IN,8,3          ## @SRB_FLAGS_DATA_IN
	.comm	_SCSIOP_READ,8,3                ## @SCSIOP_READ
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_DiskRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function DiskRead
lCPI0_0:
	.long	4                               ; 0x4
	.long	10                              ; 0xa
lCPI0_1:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_2:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_DiskRead:                              ; @DiskRead
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_FsGetDeviceSpecific
	str	wzr, [x19]
	cbz	w20, LBB0_12
; %bb.1:
	mov	x22, x0
	ldp	w9, w8, [x0]
	add	w10, w20, w9
	sub	w10, w10, #1
	sdiv	w10, w10, w9
	ldr	w11, [x0, #8]
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	add	w10, w8, w10
	cmp	w10, w11
	b.ge	LBB0_18
; %bb.2:
	sdiv	w26, w20, w9
	cmp	w26, #16, lsl #12               ; =65536
	b.ge	LBB0_18
; %bb.3:
	cmn	w8, #1
	cset	w0, ne
	bl	_ASSERT
	ldr	w8, [x22, #32]
	ldr	w9, [x22, #4]
	add	w25, w9, w8
Lloh2:
	adrp	x24, _PagedPool@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PagedPool@GOTPAGEOFF]
	cmp	w26, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	w0, [x24]
	mov	w1, #4
	bl	_ExAllocatePool
	cbz	x0, LBB0_13
; %bb.5:
	mov	x23, x0
	mov	w1, #4
	bl	_RtlZeroMemory
Lloh4:
	adrp	x8, _SRB_FUNCTION_EXECUTE_SCSI@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SRB_FUNCTION_EXECUTE_SCSI@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x23, #56]
	ldur	d0, [x22, #20]
	str	d0, [x23, #48]
	ldr	w8, [x22, #16]
	str	w8, [x23, #16]
Lloh7:
	adrp	x9, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x23]
Lloh9:
	adrp	x9, _SRB_FLAGS_DATA_IN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SRB_FLAGS_DATA_IN@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w10, [x22]
	mul	w10, w10, w26
	mov	w11, #5
	stp	w10, w11, [x23, #8]
	stp	x21, x9, [x23, #32]
	ldr	x9, [x23, #24]
Lloh12:
	adrp	x10, _SCSIOP_READ@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SCSIOP_READ@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	str	x10, [x9, #32]
	lsr	w10, w25, #24
	str	w10, [x9]
	dup.2s	v0, w25
Lloh15:
	adrp	x10, lCPI0_1@PAGE
Lloh16:
	ldr	d1, [x10, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x9, #4]
	and	w10, w25, #0xff
	lsr	w11, w26, #8
	stp	w10, w11, [x9, #12]
	and	w10, w26, #0xff
	stp	w10, w8, [x9, #20]
	ldr	w0, [x22, #12]
	mov	x1, x23
	bl	_SpiSendSynchronousSrb
	cbz	w0, LBB0_14
; %bb.6:
	ldrsw	x8, [x22]
	sxtw	x9, w26
	mul	x8, x8, x9
	add	x21, x21, x8
	sub	w20, w20, w8
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x22, #4]
	add	w8, w8, w26
	str	w8, [x22, #4]
	add	w25, w25, w26
LBB0_7:
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.8:
	ldr	w0, [x24]
	ldr	w1, [x22]
	bl	_ExAllocatePool
	cbz	x0, LBB0_13
; %bb.9:
	mov	x23, x0
	ldr	w0, [x24]
	mov	w1, #4
	bl	_ExAllocatePool
	cbz	x0, LBB0_15
; %bb.10:
	mov	x24, x0
	mov	w1, #4
	bl	_RtlZeroMemory
Lloh17:
	adrp	x8, _SRB_FUNCTION_EXECUTE_SCSI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SRB_FUNCTION_EXECUTE_SCSI@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x24, #56]
	ldur	d0, [x22, #20]
	str	d0, [x24, #48]
	ldr	w8, [x22, #16]
	str	w8, [x24, #16]
Lloh20:
	adrp	x9, lCPI0_0@PAGE
Lloh21:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
Lloh22:
	adrp	x9, _SRB_FLAGS_DATA_IN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SRB_FLAGS_DATA_IN@GOTPAGEOFF]
	str	d0, [x24]
Lloh24:
	ldr	x9, [x9]
	ldr	w10, [x22]
	mov	w11, #5
	stp	w10, w11, [x24, #8]
	stp	x23, x9, [x24, #32]
	ldr	x9, [x24, #24]
Lloh25:
	adrp	x10, _SCSIOP_READ@GOTPAGE
Lloh26:
	ldr	x10, [x10, _SCSIOP_READ@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	str	x10, [x9, #32]
	str	w8, [x9, #24]
	lsr	w8, w25, #24
	str	w8, [x9]
	dup.2s	v0, w25
Lloh28:
	adrp	x8, lCPI0_1@PAGE
Lloh29:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [x9, #4]
	and	w8, w25, #0xff
	str	w8, [x9, #12]
Lloh30:
	adrp	x8, lCPI0_2@PAGE
Lloh31:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [x9, #16]
	ldr	w0, [x22, #12]
	mov	x1, x24
	bl	_SpiSendSynchronousSrb
	cbz	w0, LBB0_16
; %bb.11:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_RtlCopyMemory
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
Lloh32:
	adrp	x24, _ESUCCESS@GOTPAGE
Lloh33:
	ldr	x24, [x24, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh34:
	adrp	x24, _ESUCCESS@GOTPAGE
Lloh35:
	ldr	x24, [x24, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
Lloh36:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
Lloh38:
	adrp	x24, _EIO@GOTPAGE
Lloh39:
	ldr	x24, [x24, _EIO@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh40:
	adrp	x24, _ENOMEM@GOTPAGE
Lloh41:
	ldr	x24, [x24, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh42:
	adrp	x24, _EIO@GOTPAGE
Lloh43:
	ldr	x24, [x24, _EIO@GOTPAGEOFF]
LBB0_17:
	mov	x0, x23
	bl	_ExFreePool
LBB0_18:
	ldr	w0, [x24]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh30, Lloh31
	.loh AdrpLdr	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdrp	Lloh20, Lloh22
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PagedPool,4,2                  ; @PagedPool
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SRB_FUNCTION_EXECUTE_SCSI,8,3  ; @SRB_FUNCTION_EXECUTE_SCSI
	.comm	_SRB_FLAGS_DATA_IN,8,3          ; @SRB_FLAGS_DATA_IN
	.comm	_SCSIOP_READ,8,3                ; @SCSIOP_READ
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_DiskRead
.subsections_via_symbols
