	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RamDiskRead
_RamDiskRead:                           ## @RamDiskRead
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	_RamDiskOffset@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_RamDiskImageLength@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	movq	_EIO@GOTPCREL(%rip), %r8
	cmpq	%rdi, %rax
	jge	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	addq	%rax, %rdx
	cmpq	%rdi, %rdx
	jg	LBB0_3
## %bb.2:
	movq	_RamDiskBase@GOTPCREL(%rip), %rcx
	movq	_RamDiskImageOffset@GOTPCREL(%rip), %rdx
	addq	(%rcx), %rax
	addq	(%rdx), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_RtlCopyMemory
	addq	%rbx, (%r15)
	movq	_ESUCCESS@GOTPCREL(%rip), %r8
	movq	%rbx, %rcx
LBB0_3:
	movq	%rcx, (%r14)
	movl	(%r8), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RamDiskOffset,8,3              ## @RamDiskOffset
	.comm	_RamDiskImageLength,8,3         ## @RamDiskImageLength
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RamDiskBase,8,3                ## @RamDiskBase
	.comm	_RamDiskImageOffset,8,3         ## @RamDiskImageOffset
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
	.no_dead_strip	_RamDiskRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RamDiskRead
_RamDiskRead:                           ; @RamDiskRead
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
Lloh0:
	adrp	x21, _RamDiskOffset@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RamDiskOffset@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _RamDiskImageLength@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RamDiskImageLength@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x10, x8, x2
	cmp	x8, x9
	ccmp	x10, x9, #0, lt
	b.le	LBB0_2
; %bb.1:
	mov	x20, #0
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x20, x2
Lloh7:
	adrp	x9, _RamDiskBase@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RamDiskBase@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
Lloh10:
	adrp	x10, _RamDiskImageOffset@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RamDiskImageOffset@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x8, x8, x10
	mov	x0, x1
	mov	x1, x8
	bl	_RtlCopyMemory
	ldr	x8, [x21]
	add	x8, x8, x20
	str	x8, [x21]
Lloh13:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
LBB0_3:
	str	x20, [x19]
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RamDiskOffset,8,3              ; @RamDiskOffset
	.comm	_RamDiskImageLength,8,3         ; @RamDiskImageLength
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RamDiskBase,8,3                ; @RamDiskBase
	.comm	_RamDiskImageOffset,8,3         ; @RamDiskImageOffset
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
	.no_dead_strip	_RamDiskRead
.subsections_via_symbols
