	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_set_read_speed           ## -- Begin function cdrom_set_read_speed
	.p2align	4, 0x90
_cdrom_set_read_speed:                  ## @cdrom_set_read_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	l___const.cdrom_set_read_speed.cmd(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	l___const.cdrom_set_read_speed.cmd+8(%rip), %eax
	movl	%eax, -16(%rbp)
	bswapl	%esi
	movl	%esi, -22(%rbp)
	movq	_DIRECTION_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-24(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$12, %r9d
	callq	_cdrom_send_command
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.cdrom_set_read_speed.cmd:     ## @__const.cdrom_set_read_speed.cmd
	.byte	187                             ## 0xbb
	.space	11

	.comm	_DIRECTION_NONE,4,2             ## @DIRECTION_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_set_read_speed           ; -- Begin function cdrom_set_read_speed
	.p2align	2
_cdrom_set_read_speed:                  ; @cdrom_set_read_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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_set_read_speed.cmd@PAGE
Lloh4:
	add	x8, x8, l___const.cdrom_set_read_speed.cmd@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp, #8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #16]
	rev	w8, w1
	stur	w8, [sp, #10]
Lloh5:
	adrp	x8, _DIRECTION_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIRECTION_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x2, #0
	mov	w3, #0
	mov	w5, #12
	mov	w6, #0
	bl	_cdrom_send_command
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.cdrom_set_read_speed.cmd:     ; @__const.cdrom_set_read_speed.cmd
	.byte	187                             ; 0xbb
	.space	11

	.comm	_DIRECTION_NONE,4,2             ; @DIRECTION_NONE
.subsections_via_symbols
