	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdrom_get_inquiry              ## -- Begin function cdrom_get_inquiry
	.p2align	4, 0x90
_cdrom_get_inquiry:                     ## @cdrom_get_inquiry
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movw	$255, -292(%rbp)
	movl	$18, -296(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movq	_DIRECTION_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-288(%rbp), %rdx
	leaq	-296(%rbp), %r8
	movl	$256, %ecx                      ## imm = 0x100
	movl	$6, %r9d
	callq	_cdrom_send_command
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	cmpl	$32, %r15d
	jl	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	leaq	-280(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movb	$32, 8(%rbx)
	leaq	9(%rbx), %rdi
	leaq	-272(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movb	$32, 25(%rbx)
	addq	$26, %rbx
	leaq	-256(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_4:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	cmpb	$5, -288(%rbp)
	jne	LBB0_7
## %bb.6:
	movl	$1, (%r14)
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.cdrom_get_inquiry.cdb:        ## @__const.cdrom_get_inquiry.cdb
	.asciz	"\022\000\000\000\377"

	.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_get_inquiry              ; -- Begin function cdrom_get_inquiry
	.p2align	2
_cdrom_get_inquiry:                     ; @cdrom_get_inquiry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #255
	strh	w8, [sp, #12]
	mov	w8, #18
	str	w8, [sp, #8]
	add	x8, sp, #16
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x8, #224]
	stp	q0, q0, [x8, #192]
	stp	q0, q0, [x8, #160]
	stp	q0, q0, [x8, #128]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
Lloh3:
	adrp	x8, _DIRECTION_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIRECTION_IN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x4, sp, #8
	mov	w3, #256
	mov	w5, #6
	mov	w6, #0
	bl	_cdrom_send_command
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_8
LBB0_2:
	cbz	x20, LBB0_5
; %bb.3:
	cmp	w21, #32
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	add	x21, sp, #16
	orr	x1, x21, #0x8
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	mov	w22, #32
	strb	w22, [x20, #8]
	add	x0, x20, #9
	add	x1, x21, #16
	mov	w2, #16
	bl	_memcpy
	strb	w22, [x20, #25]
	add	x0, x20, #26
	add	x1, x21, #32
	mov	w2, #4
	bl	_memcpy
LBB0_5:
	mov	w0, #0
	cbz	x19, LBB0_8
; %bb.6:
	ldrb	w8, [sp, #16]
	cmp	w8, #5
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.cdrom_get_inquiry.cdb:        ; @__const.cdrom_get_inquiry.cdb
	.asciz	"\022\000\000\000\377"

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