	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_log_sense
_cdrom_log_sense:                       ## @cdrom_log_sense
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.2:
	movq	_REQ_QUIET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r15
	movq	_IDE_DBG_SENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_ide_debug_log
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	%r15, %rdi
	callq	_cdrom_saw_media_change
	jmp	LBB0_9
LBB0_5:
	movl	4(%r15), %eax
	cmpl	$58, %eax
	setne	%cl
	cmpl	$4, %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %r14d
	jmp	LBB0_9
LBB0_6:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	movq	_GPCMD_START_STOP_UNIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	cmpl	$36, 4(%r15)
	je	LBB0_9
LBB0_8:
	movl	$1, %r14d
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_REQ_QUIET,4,2                  ## @REQ_QUIET
	.comm	_IDE_DBG_SENSE,4,2              ## @IDE_DBG_SENSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sense_key: 0x%x"

	.comm	_GPCMD_START_STOP_UNIT,4,2      ## @GPCMD_START_STOP_UNIT
	.no_dead_strip	_cdrom_log_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdrom_log_sense
_cdrom_log_sense:                       ; @cdrom_log_sense
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #0
	cbz	x19, LBB0_4
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _REQ_QUIET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REQ_QUIET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _IDE_DBG_SENSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDE_DBG_SENSE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ide_debug_log
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_11
; %bb.6:
	mov	w0, #0
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	x0, x19
	bl	_cdrom_saw_media_change
	b	LBB0_3
LBB0_8:
	ldr	w8, [x19, #4]
	cmp	w8, #58
	ccmp	w8, #4, #4, ne
	cset	w0, ne
	b	LBB0_4
LBB0_9:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _GPCMD_START_STOP_UNIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GPCMD_START_STOP_UNIT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x19, #4]
	cmp	w8, #36
	b.eq	LBB0_3
LBB0_11:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.comm	_REQ_QUIET,4,2                  ; @REQ_QUIET
	.comm	_IDE_DBG_SENSE,4,2              ; @IDE_DBG_SENSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sense_key: 0x%x"

	.comm	_GPCMD_START_STOP_UNIT,4,2      ; @GPCMD_START_STOP_UNIT
	.no_dead_strip	_cdrom_log_sense
.subsections_via_symbols
