	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function DiskOpen
LCPI0_0:
	.long	4                               ## 0x4
	.long	10                              ## 0xa
	.long	8                               ## 0x8
	.long	5                               ## 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_DiskOpen:                              ## @DiskOpen
	.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	%rdx, %r14
	leaq	-88(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-80(%rbp), %r8
	leaq	-72(%rbp), %r9
	callq	_DissectArcPath2
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	cmpq	$0, -72(%rbp)
	jne	LBB0_8
## %bb.2:
	movq	_ScsiDeviceExtensions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %r13
	movq	(%rax,%r13,8), %r12
	movq	(%r12), %r15
	movq	_PagedPool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_ExAllocatePool
	movq	%rax, %rbx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	subq	%r15, %r13
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_RtlZeroMemory
	movq	%r13, 56(%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, 48(%rbx)
	movq	-48(%rbp), %rax
	movq	%rax, 40(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4,10,8,5]
	movups	%xmm0, (%rbx)
	movq	_SRB_FUNCTION_EXECUTE_SCSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_SRB_FLAGS_DATA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	-64(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rax
	movq	_SCSIOP_READ_CAPACITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_SpiSendSynchronousSrb
	movq	_EIO@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	-60(%rbp), %edi
	callq	_ntohl
	movq	%rax, %r15
	movl	-64(%rbp), %edi
	callq	_ntohl
	cmpq	$0, -80(%rbp)
	jne	LBB0_8
## %bb.6:
	movq	%rax, %rcx
	movq	_PagedPool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$64, %esi
	movq	%rcx, %rbx
	callq	_ExAllocatePool
	movq	%rbx, %rdx
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, 56(%rax)
	movq	%r13, 48(%rax)
	movq	-56(%rbp), %rcx
	movq	%rcx, 40(%rax)
	movq	-48(%rbp), %rcx
	movq	%rcx, 32(%rax)
	movq	%rdx, 24(%rax)
	movq	$0, 16(%rax)
	movq	%r15, 8(%rax)
	movq	$0, (%rax)
	movq	(%r14), %rdi
	movq	%rax, %rsi
	callq	_FsSetDeviceSpecific
	movq	_ESUCCESS@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_3:
	movq	%rax, %rbx
LBB0_8:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ScsiDeviceExtensions,8,3       ## @ScsiDeviceExtensions
	.comm	_PagedPool,4,2                  ## @PagedPool
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SRB_FUNCTION_EXECUTE_SCSI,4,2  ## @SRB_FUNCTION_EXECUTE_SCSI
	.comm	_SRB_FLAGS_DATA_IN,4,2          ## @SRB_FLAGS_DATA_IN
	.comm	_SCSIOP_READ_CAPACITY,4,2       ## @SCSIOP_READ_CAPACITY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_UNIMPLEMENTED,4,2              ## @UNIMPLEMENTED
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
	.no_dead_strip	_DiskOpen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function DiskOpen
lCPI0_0:
	.long	4                               ; 0x4
	.long	10                              ; 0xa
	.long	8                               ; 0x8
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_DiskOpen:                              ; @DiskOpen
	.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	x19, x2
	add	x1, sp, #32
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x5, sp
	bl	_DissectArcPath2
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	cbz	w0, LBB0_9
; %bb.1:
	ldr	x9, [sp]
	cbnz	x9, LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, _ScsiDeviceExtensions@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ScsiDeviceExtensions@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x22, [sp, #32]
	ldr	x20, [x8, x22, lsl #3]
	ldr	x23, [x20]
Lloh5:
	adrp	x24, _PagedPool@GOTPAGE
Lloh6:
	ldr	x24, [x24, _PagedPool@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	w1, #4
	bl	_ExAllocatePool
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	sub	x23, x22, x23
	mov	w1, #4
	bl	_RtlZeroMemory
	ldp	x9, x8, [sp, #16]
	stp	x8, x23, [x21, #48]
	str	x9, [x21, #40]
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x21]
Lloh9:
	adrp	x8, _SRB_FUNCTION_EXECUTE_SCSI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SRB_FUNCTION_EXECUTE_SCSI@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x21, #64]
Lloh12:
	adrp	x8, _SRB_FLAGS_DATA_IN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SRB_FLAGS_DATA_IN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	add	x8, sp, #40
	str	x8, [x21, #24]
	ldr	x8, [x21, #16]
Lloh15:
	adrp	x9, _SCSIOP_READ_CAPACITY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SCSIOP_READ_CAPACITY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_SpiSendSynchronousSrb
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [sp, #44]
	bl	_ntohl
	mov	x21, x0
	ldr	w0, [sp, #40]
	bl	_ntohl
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x22, x0
	ldr	w0, [x24]
	mov	w1, #64
	bl	_ExAllocatePool
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x0
	stp	x23, x20, [x0, #48]
	ldp	x9, x8, [sp, #16]
	stp	x9, x8, [x0, #32]
	stp	xzr, x22, [x0, #16]
	stp	xzr, x21, [x0]
	ldr	x0, [x19]
	bl	_FsSetDeviceSpecific
Lloh20:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdrp	Lloh7, Lloh9
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ScsiDeviceExtensions,8,3       ; @ScsiDeviceExtensions
	.comm	_PagedPool,4,2                  ; @PagedPool
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SRB_FUNCTION_EXECUTE_SCSI,4,2  ; @SRB_FUNCTION_EXECUTE_SCSI
	.comm	_SRB_FLAGS_DATA_IN,4,2          ; @SRB_FLAGS_DATA_IN
	.comm	_SCSIOP_READ_CAPACITY,4,2       ; @SCSIOP_READ_CAPACITY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_UNIMPLEMENTED,4,2              ; @UNIMPLEMENTED
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
	.no_dead_strip	_DiskOpen
.subsections_via_symbols
