	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_Reset                      ## -- Begin function DVD_Reset
	.p2align	4, 0x90
_DVD_Reset:                             ## @DVD_Reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DVD_INTEROPER@GOTPCREL(%rip), %rax
	movq	_DVD_CHIPPRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DVD_DRIVERESET@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	movq	___dvd_drivestate@GOTPCREL(%rip), %rax
	andl	%ecx, (%rax)
	movq	_DVD_RESETNONE@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_2
## %bb.1:
	callq	_DVD_LowReset
LBB0_2:
	movq	_DVD_DE_MSK@GOTPCREL(%rip), %rax
	movq	_DVD_TC_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DVD_BRK_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	__diReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	movq	___dvd_resetrequired@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	___dvd_internalretries@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVD_INTEROPER,4,2              ## @DVD_INTEROPER
	.comm	_DVD_CHIPPRESENT,4,2            ## @DVD_CHIPPRESENT
	.comm	_DVD_DRIVERESET,4,2             ## @DVD_DRIVERESET
	.comm	___dvd_drivestate,4,2           ## @__dvd_drivestate
	.comm	_DVD_RESETNONE,8,3              ## @DVD_RESETNONE
	.comm	_DVD_DE_MSK,4,2                 ## @DVD_DE_MSK
	.comm	_DVD_TC_MSK,4,2                 ## @DVD_TC_MSK
	.comm	_DVD_BRK_MSK,4,2                ## @DVD_BRK_MSK
	.comm	__diReg,8,3                     ## @_diReg
	.comm	___dvd_resetrequired,8,3        ## @__dvd_resetrequired
	.comm	___dvd_internalretries,8,3      ## @__dvd_internalretries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_Reset                      ; -- Begin function DVD_Reset
	.p2align	2
_DVD_Reset:                             ; @DVD_Reset
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _DVD_INTEROPER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVD_INTEROPER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DVD_CHIPPRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DVD_CHIPPRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _DVD_DRIVERESET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DVD_DRIVERESET@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, ___dvd_drivestate@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___dvd_drivestate@GOTPAGEOFF]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
Lloh11:
	adrp	x8, _DVD_RESETNONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DVD_RESETNONE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_2
; %bb.1:
	bl	_DVD_LowReset
LBB0_2:
Lloh14:
	adrp	x8, _DVD_DE_MSK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DVD_DE_MSK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _DVD_TC_MSK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DVD_TC_MSK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _DVD_BRK_MSK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DVD_BRK_MSK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, __diReg@GOTPAGE
Lloh24:
	ldr	x9, [x9, __diReg@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	w8, [x9]
Lloh26:
	adrp	x8, ___dvd_resetrequired@GOTPAGE
Lloh27:
	ldr	x8, [x8, ___dvd_resetrequired@GOTPAGEOFF]
Lloh28:
	str	xzr, [x8]
Lloh29:
	adrp	x8, ___dvd_internalretries@GOTPAGE
Lloh30:
	ldr	x8, [x8, ___dvd_internalretries@GOTPAGEOFF]
Lloh31:
	str	xzr, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DVD_INTEROPER,4,2              ; @DVD_INTEROPER
	.comm	_DVD_CHIPPRESENT,4,2            ; @DVD_CHIPPRESENT
	.comm	_DVD_DRIVERESET,4,2             ; @DVD_DRIVERESET
	.comm	___dvd_drivestate,4,2           ; @__dvd_drivestate
	.comm	_DVD_RESETNONE,8,3              ; @DVD_RESETNONE
	.comm	_DVD_DE_MSK,4,2                 ; @DVD_DE_MSK
	.comm	_DVD_TC_MSK,4,2                 ; @DVD_TC_MSK
	.comm	_DVD_BRK_MSK,4,2                ; @DVD_BRK_MSK
	.comm	__diReg,8,3                     ; @_diReg
	.comm	___dvd_resetrequired,8,3        ; @__dvd_resetrequired
	.comm	___dvd_internalretries,8,3      ; @__dvd_internalretries
.subsections_via_symbols
