	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dvd_statecoverclosed         ## -- Begin function __dvd_statecoverclosed
	.p2align	4, 0x90
___dvd_statecoverclosed:                ## @__dvd_statecoverclosed
	.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_currcmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$16, %eax
	ja	LBB0_5
## %bb.1:
	movl	$106544, %ecx                   ## imm = 0x1A030
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	callq	___dvd_clearwaitingqueue
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	___dvd_dummycmdblk@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$-4, %edi
	callq	*%rax
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	___dvd_stateready               ## TAILCALL
LBB0_5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___dvd_extensionsenabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___dvd_statecoverclosed_spinupcb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_DVD_LowSpinUpDrive             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_currcmd,4,2              ## @__dvd_currcmd
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.comm	___dvd_dummycmdblk,8,3          ## @__dvd_dummycmdblk
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	___dvd_extensionsenabled,4,2    ## @__dvd_extensionsenabled
	.comm	___dvd_statecoverclosed_spinupcb,4,2 ## @__dvd_statecoverclosed_spinupcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dvd_statecoverclosed         ; -- Begin function __dvd_statecoverclosed
	.p2align	2
___dvd_statecoverclosed:                ; @__dvd_statecoverclosed
	.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_currcmd@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_currcmd@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #16
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #41008
	movk	w9, #1, lsl #16
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_4
; %bb.1:
	bl	___dvd_clearwaitingqueue
Lloh3:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
	ldr	x1, [x8]
Lloh5:
	adrp	x9, ___dvd_dummycmdblk@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___dvd_dummycmdblk@GOTPAGEOFF]
	str	x9, [x8]
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #-4
	blr	x8
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_stateready
LBB0_4:
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	adrp	x9, ___dvd_extensionsenabled@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___dvd_extensionsenabled@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	str	w8, [x9]
Lloh13:
	adrp	x8, ___dvd_statecoverclosed_spinupcb@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___dvd_statecoverclosed_spinupcb@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_DVD_LowSpinUpDrive
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_currcmd,4,2              ; @__dvd_currcmd
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.comm	___dvd_dummycmdblk,8,3          ; @__dvd_dummycmdblk
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	___dvd_extensionsenabled,4,2    ; @__dvd_extensionsenabled
	.comm	___dvd_statecoverclosed_spinupcb,4,2 ; @__dvd_statecoverclosed_spinupcb
.subsections_via_symbols
