	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function LinuxCDGetStatus
_LinuxCDGetStatus:                      ## @LinuxCDGetStatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_hCDROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CDROM_DRIVE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CDSL_CURRENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ioctl
	addl	$-128, %eax
	movl	$2, %ecx
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.LinuxCDGetStatus(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
LBB0_2:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hCDROM,4,2                     ## @hCDROM
	.comm	_CDROM_DRIVE_STATUS,4,2         ## @CDROM_DRIVE_STATUS
	.comm	_CDSL_CURRENT,4,2               ## @CDSL_CURRENT
	.no_dead_strip	_LinuxCDGetStatus
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.LinuxCDGetStatus
l_switch.table.LinuxCDGetStatus:
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function LinuxCDGetStatus
_LinuxCDGetStatus:                      ; @LinuxCDGetStatus
	.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
Lloh0:
	adrp	x8, _hCDROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hCDROM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _CDROM_DRIVE_STATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CDROM_DRIVE_STATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CDSL_CURRENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CDSL_CURRENT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_ioctl
	sub	w8, w0, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, l_switch.table.LinuxCDGetStatus@PAGE
Lloh10:
	add	x9, x9, l_switch.table.LinuxCDGetStatus@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hCDROM,4,2                     ; @hCDROM
	.comm	_CDROM_DRIVE_STATUS,4,2         ; @CDROM_DRIVE_STATUS
	.comm	_CDSL_CURRENT,4,2               ; @CDSL_CURRENT
	.no_dead_strip	_LinuxCDGetStatus
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.LinuxCDGetStatus
l_switch.table.LinuxCDGetStatus:
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	0                               ; 0x0

.subsections_via_symbols
