	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __Read
___Read:                                ## @__Read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	___dvd_callback@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	___dvd_stopnextint@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	___dvd_lastcmdwasread@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_DVD_READSECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	__diReg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 8(%rcx)
	sarl	$2, %edx
	movl	%edx, 12(%rcx)
	movl	%esi, 16(%rcx)
	movl	%edi, 20(%rcx)
	movl	%esi, 24(%rcx)
	movq	___dvd_lastlen@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_DVD_DI_DMA@GOTPCREL(%rip), %rax
	movq	_DVD_DI_START@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, 28(%rcx)
	cmpl	$10485761, %edx                 ## imm = 0xA00001
	movl	$20, %eax
	movl	$10, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, -16(%rbp)
	movq	$0, -8(%rbp)
	leaq	-16(%rbp), %rdi
	callq	___SetupTimeoutAlarm
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_callback,4,2             ## @__dvd_callback
	.comm	___dvd_stopnextint,8,3          ## @__dvd_stopnextint
	.comm	___dvd_lastcmdwasread,4,2       ## @__dvd_lastcmdwasread
	.comm	_DVD_READSECTOR,4,2             ## @DVD_READSECTOR
	.comm	__diReg,8,3                     ## @_diReg
	.comm	___dvd_lastlen,4,2              ## @__dvd_lastlen
	.comm	_DVD_DI_DMA,4,2                 ## @DVD_DI_DMA
	.comm	_DVD_DI_START,4,2               ## @DVD_DI_START
	.no_dead_strip	___Read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __Read
___Read:                                ; @__Read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___dvd_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_callback@GOTPAGEOFF]
Lloh2:
	str	w3, [x8]
Lloh3:
	adrp	x8, ___dvd_stopnextint@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_stopnextint@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, ___dvd_lastcmdwasread@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___dvd_lastcmdwasread@GOTPAGEOFF]
	mov	w9, #1
Lloh8:
	str	w9, [x8]
Lloh9:
	adrp	x8, _DVD_READSECTOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DVD_READSECTOR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, __diReg@GOTPAGE
Lloh13:
	ldr	x9, [x9, __diReg@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	asr	w10, w2, #2
	stp	w8, w10, [x9, #8]
	stp	w1, w0, [x9, #16]
Lloh15:
	adrp	x8, ___dvd_lastlen@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___dvd_lastlen@GOTPAGEOFF]
Lloh17:
	str	w1, [x8]
Lloh18:
	adrp	x8, _DVD_DI_DMA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVD_DI_DMA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x10, _DVD_DI_START@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DVD_DI_START@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w8, w10, w8
	stp	w1, w8, [x9, #24]
	mov	w9, #10
	mov	w10, #20
	cmp	w8, #2560, lsl #12              ; =10485760
	csel	w8, w10, w9, gt
	str	w8, [sp]
	str	xzr, [sp, #8]
	mov	x0, sp
	bl	___SetupTimeoutAlarm
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_callback,4,2             ; @__dvd_callback
	.comm	___dvd_stopnextint,8,3          ; @__dvd_stopnextint
	.comm	___dvd_lastcmdwasread,4,2       ; @__dvd_lastcmdwasread
	.comm	_DVD_READSECTOR,4,2             ; @DVD_READSECTOR
	.comm	__diReg,8,3                     ; @_diReg
	.comm	___dvd_lastlen,4,2              ; @__dvd_lastlen
	.comm	_DVD_DI_DMA,4,2                 ; @DVD_DI_DMA
	.comm	_DVD_DI_START,4,2               ; @DVD_DI_START
	.no_dead_strip	___Read
.subsections_via_symbols
