	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dvd_stategotoretrycb
___dvd_stategotoretrycb:                ## @__dvd_stategotoretrycb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$16, %edi
	jne	LBB0_1
## %bb.7:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	___dvd_statetimeout             ## TAILCALL
LBB0_1:
	testb	$2, %dil
	jne	LBB0_8
## %bb.2:
	cmpl	$1, %edi
	jne	LBB0_6
## %bb.3:
	movq	___dvd_internalretries@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	___dvd_currcmd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$15, %eax
	ja	LBB0_6
## %bb.4:
	movl	$41008, %ecx                    ## imm = 0xA030
	btl	%eax, %ecx
	jae	LBB0_6
## %bb.5:
	movq	___dvd_resetrequired@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	$2, %edi
	callq	___dvd_checkcancel
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	popq	%rbp
	retq
LBB0_8:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
	movl	$19088743, %edi                 ## imm = 0x1234567
	popq	%rbp
	jmp	___dvd_stateerror               ## TAILCALL
LBB0_9:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$11, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	___dvd_statemotorstopped        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.comm	___dvd_internalretries,8,3      ## @__dvd_internalretries
	.comm	___dvd_currcmd,4,2              ## @__dvd_currcmd
	.comm	___dvd_resetrequired,4,2        ## @__dvd_resetrequired
	.no_dead_strip	___dvd_stategotoretrycb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dvd_stategotoretrycb
___dvd_stategotoretrycb:                ; @__dvd_stategotoretrycb
	.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
	cmp	w0, #16
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #-1
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_statetimeout
LBB0_2:
	tbnz	w0, #1, LBB0_7
; %bb.3:
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, ___dvd_internalretries@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_internalretries@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x8, ___dvd_currcmd@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___dvd_currcmd@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	cmp	w9, #15
	mov	w8, #1
	lsl	w9, w8, w9
	mov	w10, #41008
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x9, ___dvd_resetrequired@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___dvd_resetrequired@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	w0, #2
	bl	___dvd_checkcancel
	cbz	x0, LBB0_8
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh12:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	mov	w9, #-1
	str	w9, [x8]
	mov	w0, #17767
	movk	w0, #291, lsl #16
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_stateerror
LBB0_8:
Lloh15:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh16:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	mov	w9, #11
	str	w9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_statemotorstopped
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.comm	___dvd_internalretries,8,3      ; @__dvd_internalretries
	.comm	___dvd_currcmd,4,2              ; @__dvd_currcmd
	.comm	___dvd_resetrequired,4,2        ; @__dvd_resetrequired
	.no_dead_strip	___dvd_stategotoretrycb
.subsections_via_symbols
