	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dvd_stategettingerrorcb
___dvd_stategettingerrorcb:             ## @__dvd_stategettingerrorcb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$16, %edi
	jne	LBB0_1
## %bb.29:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_statetimeout             ## TAILCALL
LBB0_1:
	testb	$2, %dil
	jne	LBB0_2
## %bb.3:
	cmpl	$1, %edi
	jne	LBB0_28
## %bb.4:
	movq	__diReg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	32(%rax), %r14d
	movl	%r14d, %edi
	callq	___dvd_categorizeerror
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
	movl	%r14d, %edi
	jmp	LBB0_27
LBB0_2:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
LBB0_26:
	movl	$19088743, %edi                 ## imm = 0x1234567
LBB0_27:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_stateerror               ## TAILCALL
LBB0_6:
	movl	%eax, %ebx
	andl	$-2, %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	je	LBB0_10
## %bb.7:
	movl	%r14d, %edi
	callq	_DVD_STATUS
	movq	_DVD_STATUS_COVER_OPENED@GOTPCREL(%rip), %rcx
	movl	$4, %edi
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movl	%r14d, %edi
	callq	_DVD_STATUS
	movq	_DVD_STATUS_DISK_CHANGE@GOTPCREL(%rip), %rcx
	movl	$6, %edi
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	callq	_DVD_STATUS
	movq	_DVD_STATUS_NO_DISK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leal	(%rdx,%rdx), %edi
	addl	$3, %edi
LBB0_10:
	callq	___dvd_checkcancel
	testq	%rax, %rax
	je	LBB0_11
LBB0_28:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	cmpl	$3, %ebx
	je	LBB0_17
## %bb.12:
	movl	%r14d, %edi
	cmpl	$2, %ebx
	jne	LBB0_19
## %bb.13:
	callq	_dvd_may_retry
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpl	$5, 4(%rdi)
	jne	LBB0_15
## %bb.30:
	movq	___dvd_lasterror@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___dvd_extensionsenabled@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___dvd_stateretrycb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DVD_LowSpinUpDrive             ## TAILCALL
LBB0_17:
	movl	%r14d, %edi
	callq	_DVD_ERROR
	movq	_DVD_ERROR_UNRECOVERABLE_READ@GOTPCREL(%rip), %rcx
	movq	___dvd_executing@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.31:
	movl	8(%rdi), %edi
	movq	___dvd_unrecoverederrorcb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DVD_LowSeek                    ## TAILCALL
LBB0_19:
	callq	_DVD_STATUS
	movq	_DVD_STATUS_COVER_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$5, (%rax)
LBB0_24:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_statemotorstopped        ## TAILCALL
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_laststate                ## TAILCALL
LBB0_21:
	movl	%r14d, %edi
	callq	_DVD_STATUS
	movq	_DVD_STATUS_DISK_CHANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.32:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$3, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_statecoverclosed         ## TAILCALL
LBB0_16:
	movl	%r14d, %edi
	callq	___dvd_storeerror
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_stategotoretry           ## TAILCALL
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___dvd_statebusy                ## TAILCALL
LBB0_22:
	movl	%r14d, %edi
	callq	_DVD_STATUS
	movq	_DVD_STATUS_NO_DISK@GOTPCREL(%rip), %rdx
	movq	___dvd_executing@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_25
## %bb.23:
	movl	$4, (%rcx)
	jmp	LBB0_24
LBB0_25:
	movl	$-1, (%rcx)
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.comm	__diReg,8,3                     ## @_diReg
	.comm	_DVD_STATUS_COVER_OPENED,8,3    ## @DVD_STATUS_COVER_OPENED
	.comm	_DVD_STATUS_DISK_CHANGE,8,3     ## @DVD_STATUS_DISK_CHANGE
	.comm	_DVD_STATUS_NO_DISK,8,3         ## @DVD_STATUS_NO_DISK
	.comm	___dvd_lasterror,8,3            ## @__dvd_lasterror
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	___dvd_extensionsenabled,4,2    ## @__dvd_extensionsenabled
	.comm	___dvd_stateretrycb,4,2         ## @__dvd_stateretrycb
	.comm	_DVD_ERROR_UNRECOVERABLE_READ,8,3 ## @DVD_ERROR_UNRECOVERABLE_READ
	.comm	___dvd_unrecoverederrorcb,4,2   ## @__dvd_unrecoverederrorcb
	.no_dead_strip	___dvd_stategettingerrorcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dvd_stategettingerrorcb
___dvd_stategettingerrorcb:             ; @__dvd_stategettingerrorcb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_statetimeout
LBB0_2:
	tbnz	w0, #1, LBB0_6
; %bb.3:
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.4:
Lloh3:
	adrp	x8, __diReg@GOTPAGE
Lloh4:
	ldr	x8, [x8, __diReg@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w19, [x8, #32]
	mov	x0, x19
	bl	___dvd_categorizeerror
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	w9, #-1
	str	w9, [x8]
	mov	x0, x19
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
LBB0_7:
	mov	w9, #-1
	str	w9, [x8]
	mov	w0, #17767
	movk	w0, #291, lsl #16
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_stateerror
LBB0_9:
	mov	x20, x0
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_16
LBB0_11:
	mov	x0, x19
	bl	_DVD_STATUS
Lloh12:
	adrp	x8, _DVD_STATUS_COVER_OPENED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DVD_STATUS_COVER_OPENED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #4
	b	LBB0_16
LBB0_13:
	mov	x0, x19
	bl	_DVD_STATUS
Lloh15:
	adrp	x8, _DVD_STATUS_DISK_CHANGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DVD_STATUS_DISK_CHANGE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #6
	b	LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_DVD_STATUS
Lloh18:
	adrp	x8, _DVD_STATUS_NO_DISK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DVD_STATUS_NO_DISK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	mov	w8, #5
	mov	w9, #3
	csel	w0, w9, w8, eq
LBB0_16:
	bl	___dvd_checkcancel
	cbz	x0, LBB0_18
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_18:
	cmp	w20, #3
	b.eq	LBB0_23
; %bb.19:
	mov	x0, x19
	cmp	w20, #2
	b.ne	LBB0_25
; %bb.20:
	bl	_dvd_may_retry
	cbz	x0, LBB0_31
; %bb.21:
Lloh21:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh22:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	ldr	w8, [x0, #4]
	cmp	w8, #5
	b.ne	LBB0_32
; %bb.22:
Lloh24:
	adrp	x8, ___dvd_lasterror@GOTPAGE
Lloh25:
	ldr	x8, [x8, ___dvd_lasterror@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
Lloh27:
	adrp	x8, _FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh29:
	adrp	x9, ___dvd_extensionsenabled@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___dvd_extensionsenabled@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	str	w8, [x9]
Lloh33:
	adrp	x8, ___dvd_stateretrycb@GOTPAGE
Lloh34:
	ldr	x8, [x8, ___dvd_stateretrycb@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DVD_LowSpinUpDrive
LBB0_23:
	mov	x0, x19
	bl	_DVD_ERROR
	mov	x8, x0
Lloh36:
	adrp	x9, _DVD_ERROR_UNRECOVERABLE_READ@GOTPAGE
Lloh37:
	ldr	x9, [x9, _DVD_ERROR_UNRECOVERABLE_READ@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
Lloh39:
	adrp	x10, ___dvd_executing@GOTPAGE
Lloh40:
	ldr	x10, [x10, ___dvd_executing@GOTPAGEOFF]
Lloh41:
	ldr	x0, [x10]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.24:
	ldr	w0, [x0, #8]
Lloh42:
	adrp	x8, ___dvd_unrecoverederrorcb@GOTPAGE
Lloh43:
	ldr	x8, [x8, ___dvd_unrecoverederrorcb@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DVD_LowSeek
LBB0_25:
	bl	_DVD_STATUS
Lloh45:
	adrp	x8, _DVD_STATUS_COVER_OPENED@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DVD_STATUS_COVER_OPENED@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_29
; %bb.26:
Lloh48:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh49:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	mov	w9, #5
LBB0_27:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_statemotorstopped
LBB0_28:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_laststate
LBB0_29:
	mov	x0, x19
	bl	_DVD_STATUS
Lloh51:
	adrp	x8, _DVD_STATUS_DISK_CHANGE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DVD_STATUS_DISK_CHANGE@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_33
; %bb.30:
Lloh54:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh55:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	mov	w9, #3
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_statecoverclosed
LBB0_31:
	mov	x0, x19
	bl	___dvd_storeerror
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_stategotoretry
LBB0_32:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_statebusy
LBB0_33:
	mov	x0, x19
	bl	_DVD_STATUS
Lloh57:
	adrp	x8, _DVD_STATUS_NO_DISK@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DVD_STATUS_NO_DISK@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x8]
Lloh60:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh61:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	cmp	x0, x9
	b.ne	LBB0_7
; %bb.34:
	mov	w9, #4
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.comm	__diReg,8,3                     ; @_diReg
	.comm	_DVD_STATUS_COVER_OPENED,8,3    ; @DVD_STATUS_COVER_OPENED
	.comm	_DVD_STATUS_DISK_CHANGE,8,3     ; @DVD_STATUS_DISK_CHANGE
	.comm	_DVD_STATUS_NO_DISK,8,3         ; @DVD_STATUS_NO_DISK
	.comm	___dvd_lasterror,8,3            ; @__dvd_lasterror
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	___dvd_extensionsenabled,4,2    ; @__dvd_extensionsenabled
	.comm	___dvd_stateretrycb,4,2         ; @__dvd_stateretrycb
	.comm	_DVD_ERROR_UNRECOVERABLE_READ,8,3 ; @DVD_ERROR_UNRECOVERABLE_READ
	.comm	___dvd_unrecoverederrorcb,4,2   ; @__dvd_unrecoverederrorcb
	.no_dead_strip	___dvd_stategettingerrorcb
.subsections_via_symbols
