	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_has_atip                 ## -- Begin function cdrom_has_atip
	.p2align	4, 0x90
_cdrom_has_atip:                        ## @cdrom_has_atip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movabsq	$648518346341614147, %rax       ## imm = 0x900000000040243
	movq	%rax, -24(%rbp)
	movw	$48, -16(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_DIRECTION_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-64(%rbp), %rdx
	leaq	-24(%rbp), %r8
	movl	$32, %ecx
	movl	$10, %r9d
	callq	_cdrom_send_command
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.1:
	movzwl	-64(%rbp), %ecx
	rolw	$8, %cx
	xorl	%eax, %eax
	cmpw	$5, %cx
	setae	%al
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.cdrom_has_atip.cdb:           ## @__const.cdrom_has_atip.cdb
	.asciz	"C\002\004\000\000\000\000\t0"

	.comm	_DIRECTION_IN,4,2               ## @DIRECTION_IN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_has_atip                 ; -- Begin function cdrom_has_atip
	.p2align	2
_cdrom_has_atip:                        ; @cdrom_has_atip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, l___const.cdrom_has_atip.cdb@PAGE
Lloh4:
	add	x8, x8, l___const.cdrom_has_atip.cdb@PAGEOFF
Lloh5:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #48
	sturh	w8, [x29, #-16]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh6:
	adrp	x8, _DIRECTION_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRECTION_IN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	sub	x4, x29, #24
	mov	w3, #32
	mov	w5, #10
	mov	w6, #0
	bl	_cdrom_send_command
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_2
; %bb.1:
	ldrh	w8, [sp]
	rev16	w8, w8
	cmp	w8, #4
	cset	w0, hi
LBB0_2:
	ldur	x8, [x29, #-8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.cdrom_has_atip.cdb:           ; @__const.cdrom_has_atip.cdb
	.asciz	"C\002\004\000\000\000\000\t0"

	.comm	_DIRECTION_IN,4,2               ; @DIRECTION_IN
.subsections_via_symbols
