	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_mrw_probe_pc
_cdrom_mrw_probe_pc:                    ## @cdrom_mrw_probe_pc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_CGC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_init_cdrom_command
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	$1, -56(%rbp)
	movq	_MRW_MODE_PC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_cdrom_mode_sense
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MRW_MODE_PC_PRE1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_cdrom_mode_sense
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
LBB0_2:
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_READ,4,2              ## @CGC_DATA_READ
	.comm	_HZ,4,2                         ## @HZ
	.comm	_MRW_MODE_PC,8,3                ## @MRW_MODE_PC
	.comm	_MRW_MODE_PC_PRE1,8,3           ## @MRW_MODE_PC_PRE1
	.no_dead_strip	_cdrom_mrw_probe_pc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdrom_mrw_probe_pc
_cdrom_mrw_probe_pc:                    ; @cdrom_mrw_probe_pc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _CGC_DATA_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CGC_DATA_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #16
	bl	_init_cdrom_command
Lloh6:
	adrp	x8, _HZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp]
Lloh9:
	adrp	x20, _MRW_MODE_PC@GOTPAGE
Lloh10:
	ldr	x20, [x20, _MRW_MODE_PC@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x1, sp
	mov	x0, x19
	mov	w3, #0
	bl	_cdrom_mode_sense
	cbz	w0, LBB0_3
; %bb.1:
Lloh11:
	adrp	x20, _MRW_MODE_PC_PRE1@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MRW_MODE_PC_PRE1@GOTPAGEOFF]
	ldr	x2, [x20]
	mov	x1, sp
	mov	x0, x19
	mov	w3, #0
	bl	_cdrom_mode_sense
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	ldr	x8, [x20]
	str	x8, [x19]
LBB0_4:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_READ,4,2              ; @CGC_DATA_READ
	.comm	_HZ,4,2                         ; @HZ
	.comm	_MRW_MODE_PC,8,3                ; @MRW_MODE_PC
	.comm	_MRW_MODE_PC_PRE1,8,3           ; @MRW_MODE_PC_PRE1
	.no_dead_strip	_cdrom_mrw_probe_pc
.subsections_via_symbols
