	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_LowReset                   ## -- Begin function DVD_LowReset
	.p2align	4, 0x90
_DVD_LowReset:                          ## @DVD_LowReset
	.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
	movl	%edi, %r15d
	movq	_DVD_CVR_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	__diReg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
	movq	__piReg@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	36(%rax), %ebx
	movl	%ebx, %ecx
	andl	$-6, %ecx
	orl	$1, %ecx
	movl	%ecx, 36(%rax)
	movl	$12, %edi
	callq	_udelay
	movq	_DVD_RESETHARD@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	orl	$4, %ecx
	cmpl	%r15d, (%rax)
	cmovnel	%ebx, %ecx
	orl	$1, %ecx
	movq	(%r14), %rax
	movl	%ecx, 36(%rax)
	movq	___dvd_resetoccured@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_gettime
	movq	___dvd_lastresetend@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_DVD_DRIVERESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___dvd_drivestate@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVD_CVR_MSK,4,2                ## @DVD_CVR_MSK
	.comm	__diReg,8,3                     ## @_diReg
	.comm	__piReg,8,3                     ## @_piReg
	.comm	_DVD_RESETHARD,4,2              ## @DVD_RESETHARD
	.comm	___dvd_resetoccured,4,2         ## @__dvd_resetoccured
	.comm	___dvd_lastresetend,4,2         ## @__dvd_lastresetend
	.comm	_DVD_DRIVERESET,4,2             ## @DVD_DRIVERESET
	.comm	___dvd_drivestate,4,2           ## @__dvd_drivestate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_LowReset                   ; -- Begin function DVD_LowReset
	.p2align	2
_DVD_LowReset:                          ; @DVD_LowReset
	.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, x0
Lloh0:
	adrp	x8, _DVD_CVR_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DVD_CVR_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, __diReg@GOTPAGE
Lloh4:
	ldr	x9, [x9, __diReg@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x20, __piReg@GOTPAGE
Lloh7:
	ldr	x20, [x20, __piReg@GOTPAGEOFF]
	str	w8, [x9, #4]
	ldr	x8, [x20]
	ldr	w21, [x8, #36]
	and	w9, w21, #0xfffffffb
	orr	w9, w9, #0x1
	str	w9, [x8, #36]
	mov	w0, #12
	bl	_udelay
Lloh8:
	adrp	x8, _DVD_RESETHARD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DVD_RESETHARD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w9, w21, #0x4
	cmp	w8, w19
	csel	w8, w9, w21, eq
	orr	w8, w8, #0x1
	ldr	x9, [x20]
	str	w8, [x9, #36]
Lloh11:
	adrp	x8, ___dvd_resetoccured@GOTPAGE
Lloh12:
	ldr	x8, [x8, ___dvd_resetoccured@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
	bl	_gettime
Lloh14:
	adrp	x8, ___dvd_lastresetend@GOTPAGE
Lloh15:
	ldr	x8, [x8, ___dvd_lastresetend@GOTPAGEOFF]
Lloh16:
	str	w0, [x8]
Lloh17:
	adrp	x8, _DVD_DRIVERESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DVD_DRIVERESET@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, ___dvd_drivestate@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___dvd_drivestate@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DVD_CVR_MSK,4,2                ; @DVD_CVR_MSK
	.comm	__diReg,8,3                     ; @_diReg
	.comm	__piReg,8,3                     ; @_piReg
	.comm	_DVD_RESETHARD,4,2              ; @DVD_RESETHARD
	.comm	___dvd_resetoccured,4,2         ; @__dvd_resetoccured
	.comm	___dvd_lastresetend,4,2         ; @__dvd_lastresetend
	.comm	_DVD_DRIVERESET,4,2             ; @DVD_DRIVERESET
	.comm	___dvd_drivestate,4,2           ; @__dvd_drivestate
.subsections_via_symbols
