	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdrom_drivestatus
_gdrom_drivestatus:                     ## @gdrom_drivestatus
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GDROM_ERROR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ctrl_inb
	andb	$-16, %al
	cmpb	$32, %al
	jne	LBB0_1
## %bb.2:
	movq	_CDS_DRIVE_NOT_READY@GOTPCREL(%rip), %rcx
	testb	%al, %al
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_CDS_NO_INFO@GOTPCREL(%rip), %rcx
	testb	%al, %al
	jne	LBB0_5
LBB0_4:
	movq	_CDS_DISC_OK@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GDROM_ERROR_REG,4,2            ## @GDROM_ERROR_REG
	.comm	_CDS_DISC_OK,4,2                ## @CDS_DISC_OK
	.comm	_CDS_DRIVE_NOT_READY,4,2        ## @CDS_DRIVE_NOT_READY
	.comm	_CDS_NO_INFO,4,2                ## @CDS_NO_INFO
	.no_dead_strip	_gdrom_drivestatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdrom_drivestatus
_gdrom_drivestatus:                     ; @gdrom_drivestatus
	.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, _GDROM_ERROR_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GDROM_ERROR_REG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ctrl_inb
Lloh3:
	adrp	x8, _CDS_DRIVE_NOT_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CDS_DRIVE_NOT_READY@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CDS_NO_INFO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CDS_NO_INFO@GOTPAGEOFF]
	ands	w10, w0, #0xfffffff0
	cmp	w10, #32
	csel	x8, x8, x9, eq
	tst	w0, #0xfffffff0
Lloh7:
	adrp	x9, _CDS_DISC_OK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CDS_DISC_OK@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GDROM_ERROR_REG,4,2            ; @GDROM_ERROR_REG
	.comm	_CDS_DISC_OK,4,2                ; @CDS_DISC_OK
	.comm	_CDS_DRIVE_NOT_READY,4,2        ; @CDS_DRIVE_NOT_READY
	.comm	_CDS_NO_INFO,4,2                ; @CDS_NO_INFO
	.no_dead_strip	_gdrom_drivestatus
.subsections_via_symbols
