	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dvd_stateerrorcb
___dvd_stateerrorcb:                    ## @__dvd_stateerrorcb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$16, %edi
	jne	LBB0_1
## %bb.6:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___dvd_statetimeout             ## TAILCALL
LBB0_1:
	movq	___dvd_fatalerror@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	___dvd_dummycmdblk@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$-1, %edi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_3:
	movq	___dvd_canceling@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	$0, (%rax)
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	___dvd_cancelcallback
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___dvd_stateready               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.comm	___dvd_fatalerror,4,2           ## @__dvd_fatalerror
	.comm	___dvd_dummycmdblk,16,3         ## @__dvd_dummycmdblk
	.comm	___dvd_canceling,8,3            ## @__dvd_canceling
	.no_dead_strip	___dvd_stateerrorcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dvd_stateerrorcb
___dvd_stateerrorcb:                    ; @__dvd_stateerrorcb
	.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:
Lloh3:
	adrp	x8, ___dvd_fatalerror@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_fatalerror@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	adrp	x10, ___dvd_executing@GOTPAGE
Lloh6:
	ldr	x10, [x10, ___dvd_executing@GOTPAGEOFF]
Lloh7:
	str	w9, [x8]
	ldr	x19, [x10]
Lloh8:
	adrp	x8, ___dvd_dummycmdblk@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___dvd_dummycmdblk@GOTPAGEOFF]
	str	x8, [x10]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #-1
	mov	x1, x19
	blr	x8
LBB0_4:
Lloh10:
	adrp	x8, ___dvd_canceling@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___dvd_canceling@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_6
; %bb.5:
	str	xzr, [x8]
	mov	w0, #0
	mov	x1, x19
	bl	___dvd_cancelcallback
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___dvd_stateready
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.comm	___dvd_fatalerror,4,2           ; @__dvd_fatalerror
	.comm	___dvd_dummycmdblk,16,3         ; @__dvd_dummycmdblk
	.comm	___dvd_canceling,8,3            ; @__dvd_canceling
	.no_dead_strip	___dvd_stateerrorcb
.subsections_via_symbols
