	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dvd_stateready               ## -- Begin function __dvd_stateready
	.p2align	4, 0x90
___dvd_stateready:                      ## @__dvd_stateready
	.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
	xorl	%eax, %eax
	callq	___dvd_checkwaitingqueue
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	___dvd_executing@GOTPCREL(%rip), %rbx
	movq	___dvd_fatalerror@GOTPCREL(%rip), %r14
	movq	___dvd_dummycmdblk@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	___dvd_checkwaitingqueue
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	___dvd_popwaitingqueue
	movq	%rax, (%rbx)
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, (%rax)
	movq	%r15, (%rbx)
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %edi
	movq	%rax, %rsi
	callq	*%rcx
	jmp	LBB0_5
LBB0_6:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_20
LBB0_7:
	movl	4(%rax), %ecx
	movq	___dvd_currcmd@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	___dvd_resumefromhere@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_21
## %bb.8:
	cmpl	$7, %ecx
	jg	LBB0_19
## %bb.9:
	decl	%ecx
	cmpl	$6, %ecx
	ja	LBB0_19
## %bb.10:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	$6, (%rax)
	jmp	LBB0_18
LBB0_21:
	movl	$1, (%rax)
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___dvd_statebusy                ## TAILCALL
LBB0_12:
	movl	$11, (%rax)
	jmp	LBB0_18
LBB0_13:
	movl	$4, (%rax)
	jmp	LBB0_18
LBB0_14:
	movl	$5, (%rax)
	jmp	LBB0_18
LBB0_15:
	movl	$-1, (%rax)
	movq	___dvd_cancellasterror@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___dvd_stateerror
	jmp	LBB0_19
LBB0_16:
	movl	$3, (%rax)
	xorl	%eax, %eax
	callq	___dvd_statecoverclosed
	jmp	LBB0_19
LBB0_17:
	movl	$7, (%rax)
LBB0_18:
	xorl	%eax, %eax
	callq	___dvd_statemotorstopped
LBB0_19:
	movl	$0, (%rbx)
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.comm	___dvd_fatalerror,8,3           ## @__dvd_fatalerror
	.comm	___dvd_dummycmdblk,16,3         ## @__dvd_dummycmdblk
	.comm	___dvd_currcmd,4,2              ## @__dvd_currcmd
	.comm	___dvd_resumefromhere,4,2       ## @__dvd_resumefromhere
	.comm	___dvd_cancellasterror,4,2      ## @__dvd_cancellasterror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dvd_stateready               ; -- Begin function __dvd_stateready
	.p2align	2
___dvd_stateready:                      ; @__dvd_stateready
	.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
	bl	___dvd_checkwaitingqueue
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x19, ___dvd_executing@GOTPAGE
Lloh1:
	ldr	x19, [x19, ___dvd_executing@GOTPAGEOFF]
Lloh2:
	adrp	x20, ___dvd_fatalerror@GOTPAGE
Lloh3:
	ldr	x20, [x20, ___dvd_fatalerror@GOTPAGEOFF]
	mov	w21, #-1
Lloh4:
	adrp	x22, ___dvd_dummycmdblk@GOTPAGE
Lloh5:
	ldr	x22, [x22, ___dvd_dummycmdblk@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	___dvd_checkwaitingqueue
	cbz	w0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	___dvd_popwaitingqueue
	mov	x1, x0
	str	x0, [x19]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [x1]
	str	x22, [x19]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #-1
	blr	x8
	b	LBB0_2
LBB0_6:
Lloh6:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
	b	LBB0_21
LBB0_7:
	ldr	w8, [x1, #4]
Lloh9:
	adrp	x9, ___dvd_currcmd@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___dvd_currcmd@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
Lloh12:
	adrp	x19, ___dvd_resumefromhere@GOTPAGE
Lloh13:
	ldr	x19, [x19, ___dvd_resumefromhere@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_12
; %bb.8:
	cmp	w8, #7
	b.gt	LBB0_20
; %bb.9:
	sub	w8, w8, #1
	cmp	w8, #6
	b.hi	LBB0_20
; %bb.10:
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	mov	w8, #6
	b	LBB0_19
LBB0_12:
	mov	w8, #1
	str	w8, [x1]
	mov	x0, x1
	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
	b	___dvd_statebusy
LBB0_13:
	mov	w8, #11
	b	LBB0_19
LBB0_14:
	mov	w8, #4
	b	LBB0_19
LBB0_15:
	mov	w8, #5
	b	LBB0_19
LBB0_16:
	mov	w8, #-1
	str	w8, [x1]
Lloh16:
	adrp	x8, ___dvd_cancellasterror@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___dvd_cancellasterror@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	___dvd_stateerror
	b	LBB0_20
LBB0_17:
	mov	w8, #3
	str	w8, [x1]
	bl	___dvd_statecoverclosed
	b	LBB0_20
LBB0_18:
	mov	w8, #7
LBB0_19:
	str	w8, [x1]
	bl	___dvd_statemotorstopped
LBB0_20:
	str	wzr, [x19]
LBB0_21:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_13-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_17-LBB0_11)>>2
	.byte	(LBB0_18-LBB0_11)>>2
                                        ; -- End function
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.comm	___dvd_fatalerror,8,3           ; @__dvd_fatalerror
	.comm	___dvd_dummycmdblk,16,3         ; @__dvd_dummycmdblk
	.comm	___dvd_currcmd,4,2              ; @__dvd_currcmd
	.comm	___dvd_resumefromhere,4,2       ; @__dvd_resumefromhere
	.comm	___dvd_cancellasterror,4,2      ; @__dvd_cancellasterror
.subsections_via_symbols
