	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dvd_handlespinupcb
___dvd_handlespinupcb:                  ## @__dvd_handlespinupcb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$1, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$16, %edi
	jne	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	popq	%rbp
	jmp	___dvd_statetimeout             ## TAILCALL
LBB0_3:
	movl	___dvd_handlespinupcb.step(%rip), %eax
	cmpl	$1, %eax
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	$1, ___dvd_handlespinupcb.step(%rip)
	movq	___dvd_extensionsenabled@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	___dvd_handlespinupcb(%rip), %rsi
	popq	%rbp
	jmp	_DVD_LowEnableExtensions        ## TAILCALL
LBB0_9:
	movl	$0, ___dvd_handlespinupcb.step(%rip)
	xorl	%eax, %eax
	popq	%rbp
	jmp	___dvd_stategettingerror        ## TAILCALL
LBB0_6:
	movl	$2, ___dvd_handlespinupcb.step(%rip)
	movq	_DVD_SPINMOTOR_ACCEPT@GOTPCREL(%rip), %rax
	movq	_DVD_SPINMOTOR_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	___dvd_handlespinupcb(%rip), %rsi
	popq	%rbp
	jmp	_DVD_LowSpinMotor               ## TAILCALL
LBB0_7:
	movl	$0, ___dvd_handlespinupcb.step(%rip)
	movq	___dvd_lasterror@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movl	$1, %edi
	popq	%rbp
	jmp	___dvd_finalsudcb               ## TAILCALL
LBB0_10:
	movq	_DVD_STATUS_DISK_ID_NOT_READ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	movl	$16, %esi
	movl	$8, %edx
	callq	__SHIFTL
	orl	$768, %eax                      ## imm = 0x300
	movq	___dvd_finalsudcb@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	popq	%rbp
	jmp	_DVD_LowSetStatus               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,___dvd_handlespinupcb.step,4,2 ## @__dvd_handlespinupcb.step
	.comm	__diReg,8,3                     ## @_diReg
	.comm	___dvd_extensionsenabled,4,2    ## @__dvd_extensionsenabled
	.comm	_DVD_SPINMOTOR_ACCEPT,4,2       ## @DVD_SPINMOTOR_ACCEPT
	.comm	_DVD_SPINMOTOR_UP,4,2           ## @DVD_SPINMOTOR_UP
	.comm	___dvd_lasterror,4,2            ## @__dvd_lasterror
	.comm	_DVD_STATUS_DISK_ID_NOT_READ,8,3 ## @DVD_STATUS_DISK_ID_NOT_READ
	.no_dead_strip	___dvd_handlespinupcb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dvd_handlespinupcb
___dvd_handlespinupcb:                  ; @__dvd_handlespinupcb
	.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, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #16
	b.ne	LBB0_6
; %bb.2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_statetimeout
LBB0_3:
	adrp	x8, ___dvd_handlespinupcb.step@PAGE
	ldr	w9, [x8, ___dvd_handlespinupcb.step@PAGEOFF]
	cmp	w9, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w9, LBB0_8
; %bb.5:
	mov	w9, #1
Lloh0:
	adrp	x10, ___dvd_extensionsenabled@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___dvd_extensionsenabled@GOTPAGEOFF]
	str	w9, [x8, ___dvd_handlespinupcb.step@PAGEOFF]
Lloh2:
	ldr	w0, [x10]
Lloh3:
	adrp	x1, ___dvd_handlespinupcb@PAGE
Lloh4:
	add	x1, x1, ___dvd_handlespinupcb@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_DVD_LowEnableExtensions
LBB0_6:
	adrp	x8, ___dvd_handlespinupcb.step@PAGE
	str	wzr, [x8, ___dvd_handlespinupcb.step@PAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_stategettingerror
LBB0_7:
	mov	w9, #2
	str	w9, [x8, ___dvd_handlespinupcb.step@PAGEOFF]
Lloh5:
	adrp	x8, _DVD_SPINMOTOR_ACCEPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DVD_SPINMOTOR_ACCEPT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DVD_SPINMOTOR_UP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DVD_SPINMOTOR_UP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh11:
	adrp	x1, ___dvd_handlespinupcb@PAGE
Lloh12:
	add	x1, x1, ___dvd_handlespinupcb@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_DVD_LowSpinMotor
LBB0_8:
	str	wzr, [x8, ___dvd_handlespinupcb.step@PAGEOFF]
Lloh13:
	adrp	x8, ___dvd_lasterror@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___dvd_lasterror@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
; %bb.9:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_finalsudcb
LBB0_10:
Lloh16:
	adrp	x8, _DVD_STATUS_DISK_ID_NOT_READ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DVD_STATUS_DISK_ID_NOT_READ@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x0, x8, #1
	mov	w1, #16
	mov	w2, #8
	bl	__SHIFTL
	orr	w0, w0, #0x300
Lloh19:
	adrp	x1, ___dvd_finalsudcb@GOTPAGE
Lloh20:
	ldr	x1, [x1, ___dvd_finalsudcb@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_DVD_LowSetStatus
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,___dvd_handlespinupcb.step,4,2 ; @__dvd_handlespinupcb.step
	.comm	__diReg,8,3                     ; @_diReg
	.comm	___dvd_extensionsenabled,4,2    ; @__dvd_extensionsenabled
	.comm	_DVD_SPINMOTOR_ACCEPT,4,2       ; @DVD_SPINMOTOR_ACCEPT
	.comm	_DVD_SPINMOTOR_UP,4,2           ; @DVD_SPINMOTOR_UP
	.comm	___dvd_lasterror,4,2            ; @__dvd_lasterror
	.comm	_DVD_STATUS_DISK_ID_NOT_READ,8,3 ; @DVD_STATUS_DISK_ID_NOT_READ
	.no_dead_strip	___dvd_handlespinupcb
.subsections_via_symbols
