	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dvd_spinupdrivecb
___dvd_spinupdrivecb:                   ## @__dvd_spinupdrivecb
	.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:
	xorl	%eax, %eax
	cmpl	$16, %edi
	jne	LBB0_11
## %bb.2:
	popq	%rbp
	jmp	___dvd_statetimeout             ## TAILCALL
LBB0_3:
	movq	___dvd_drivechecked@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.4:
	movq	___dvd_drivestate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DVD_CHIPPRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.10:
	movl	$1, %edi
	popq	%rbp
	jmp	___dvd_finalsudcb               ## TAILCALL
LBB0_11:
	popq	%rbp
	jmp	___dvd_stategettingerror        ## TAILCALL
LBB0_12:
	leaq	___dvd_spinupdrivecb(%rip), %rdi
	popq	%rbp
	jmp	___dvd_checkaddons              ## TAILCALL
LBB0_5:
	movq	_DVD_INTEROPER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.9:
	xorl	%eax, %eax
	popq	%rbp
	jmp	___dvd_handlespinup             ## TAILCALL
LBB0_6:
	movq	_DVD_DRIVERESET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_DVD_RESETHARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DVD_Reset
	movl	$1150000, %edi                  ## imm = 0x118C30
	callq	_udelay
LBB0_8:
	leaq	___dvd_spinupdrivecb(%rip), %rdi
	popq	%rbp
	jmp	___dvd_fwpatchmem               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_drivechecked,4,2         ## @__dvd_drivechecked
	.comm	___dvd_drivestate,4,2           ## @__dvd_drivestate
	.comm	_DVD_CHIPPRESENT,4,2            ## @DVD_CHIPPRESENT
	.comm	_DVD_INTEROPER,4,2              ## @DVD_INTEROPER
	.comm	_DVD_DRIVERESET,4,2             ## @DVD_DRIVERESET
	.comm	_DVD_RESETHARD,4,2              ## @DVD_RESETHARD
	.no_dead_strip	___dvd_spinupdrivecb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dvd_spinupdrivecb
___dvd_spinupdrivecb:                   ; @__dvd_spinupdrivecb
	.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:
Lloh0:
	adrp	x8, ___dvd_drivechecked@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_drivechecked@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, ___dvd_drivestate@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_drivestate@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DVD_CHIPPRESENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DVD_CHIPPRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_finalsudcb
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_stategettingerror
LBB0_7:
Lloh9:
	adrp	x0, ___dvd_spinupdrivecb@PAGE
Lloh10:
	add	x0, x0, ___dvd_spinupdrivecb@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_checkaddons
LBB0_8:
Lloh11:
	adrp	x9, _DVD_INTEROPER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DVD_INTEROPER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_handlespinup
LBB0_10:
Lloh14:
	adrp	x9, _DVD_DRIVERESET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DVD_DRIVERESET@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _DVD_RESETHARD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DVD_RESETHARD@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_DVD_Reset
	mov	w0, #35888
	movk	w0, #17, lsl #16
	bl	_udelay
LBB0_12:
Lloh20:
	adrp	x0, ___dvd_spinupdrivecb@PAGE
Lloh21:
	add	x0, x0, ___dvd_spinupdrivecb@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	___dvd_fwpatchmem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_drivechecked,4,2         ; @__dvd_drivechecked
	.comm	___dvd_drivestate,4,2           ; @__dvd_drivestate
	.comm	_DVD_CHIPPRESENT,4,2            ; @DVD_CHIPPRESENT
	.comm	_DVD_INTEROPER,4,2              ; @DVD_INTEROPER
	.comm	_DVD_DRIVERESET,4,2             ; @DVD_DRIVERESET
	.comm	_DVD_RESETHARD,4,2              ; @DVD_RESETHARD
	.no_dead_strip	___dvd_spinupdrivecb
.subsections_via_symbols
