	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_Init                       ## -- Begin function DVD_Init
	.p2align	4, 0x90
_DVD_Init:                              ## @DVD_Init
	.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
	movq	___dvd_initflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	___dvd_clearwaitingqueue
	xorl	%eax, %eax
	callq	___DVDInitWA
	movq	_IRQ_PI_DI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	___DVDInterruptHandler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_IRQ_Request
	movl	(%rbx), %edi
	callq	_IRQMASK
	movl	%eax, %edi
	callq	___UnmaskIrq
	movq	___dvd_timeoutalarm@GOTPCREL(%rip), %rdi
	callq	_SYS_CreateAlarm
	movq	___dvd_wait_queue@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_LWP_InitQueue                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_initflag,4,2             ## @__dvd_initflag
	.comm	_IRQ_PI_DI,4,2                  ## @IRQ_PI_DI
	.comm	___DVDInterruptHandler,4,2      ## @__DVDInterruptHandler
	.comm	___dvd_timeoutalarm,4,2         ## @__dvd_timeoutalarm
	.comm	___dvd_wait_queue,4,2           ## @__dvd_wait_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_Init                       ; -- Begin function DVD_Init
	.p2align	2
_DVD_Init:                              ; @DVD_Init
	.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
Lloh0:
	adrp	x8, ___dvd_initflag@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_initflag@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w9, #1
	str	w9, [x8]
	bl	___dvd_clearwaitingqueue
	bl	___DVDInitWA
Lloh2:
	adrp	x19, _IRQ_PI_DI@GOTPAGE
Lloh3:
	ldr	x19, [x19, _IRQ_PI_DI@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x8, ___DVDInterruptHandler@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___DVDInterruptHandler@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_IRQ_Request
	ldr	w0, [x19]
	bl	_IRQMASK
	bl	___UnmaskIrq
Lloh7:
	adrp	x0, ___dvd_timeoutalarm@GOTPAGE
Lloh8:
	ldr	x0, [x0, ___dvd_timeoutalarm@GOTPAGEOFF]
	bl	_SYS_CreateAlarm
Lloh9:
	adrp	x0, ___dvd_wait_queue@GOTPAGE
Lloh10:
	ldr	x0, [x0, ___dvd_wait_queue@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LWP_InitQueue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_initflag,4,2             ; @__dvd_initflag
	.comm	_IRQ_PI_DI,4,2                  ; @IRQ_PI_DI
	.comm	___DVDInterruptHandler,4,2      ; @__DVDInterruptHandler
	.comm	___dvd_timeoutalarm,4,2         ; @__dvd_timeoutalarm
	.comm	___dvd_wait_queue,4,2           ; @__dvd_wait_queue
.subsections_via_symbols
