	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_GetDriveStatus             ## -- Begin function DVD_GetDriveStatus
	.p2align	4, 0x90
_DVD_GetDriveStatus:                    ## @DVD_GetDriveStatus
	.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
	callq	__CPU_ISR_Disable
	movq	___dvd_fatalerror@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	___dvd_pausingflag@GOTPCREL(%rip), %rax
	movl	$8, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.2:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	cmpq	___dvd_dummycmdblk@GOTPCREL(%rip), %rdi
	je	LBB0_5
## %bb.4:
	callq	_DVD_GetCmdBlockStatus
	movl	%eax, %ebx
LBB0_5:
	callq	__CPU_ISR_Restore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_fatalerror,8,3           ## @__dvd_fatalerror
	.comm	___dvd_pausingflag,8,3          ## @__dvd_pausingflag
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.comm	___dvd_dummycmdblk,4,2          ## @__dvd_dummycmdblk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_GetDriveStatus             ; -- Begin function DVD_GetDriveStatus
	.p2align	2
_DVD_GetDriveStatus:                    ; @DVD_GetDriveStatus
	.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
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, ___dvd_fatalerror@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_fatalerror@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, ___dvd_pausingflag@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_pausingflag@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w19, #8
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	cmp	x0, #0
Lloh9:
	adrp	x8, ___dvd_dummycmdblk@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___dvd_dummycmdblk@GOTPAGEOFF]
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w19, #0
	b	LBB0_7
LBB0_6:
	bl	_DVD_GetCmdBlockStatus
	mov	x19, x0
LBB0_7:
	bl	__CPU_ISR_Restore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_fatalerror,8,3           ; @__dvd_fatalerror
	.comm	___dvd_pausingflag,8,3          ; @__dvd_pausingflag
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.comm	___dvd_dummycmdblk,4,2          ; @__dvd_dummycmdblk
.subsections_via_symbols
