	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdrom_slot_status
_cdrom_slot_status:                     ## @cdrom_slot_status
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_CD_CHANGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_cdinfo
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_CDS_NO_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_cdrom_read_mech_status
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_7
## %bb.6:
	movq	_CDS_DISC_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_CDS_NO_DISC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CD_CHANGER,4,2                 ## @CD_CHANGER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entering cdrom_slot_status()\n"

	.comm	_CDS_NO_INFO,4,2                ## @CDS_NO_INFO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CDS_DISC_OK,4,2                ## @CDS_DISC_OK
	.comm	_CDS_NO_DISC,4,2                ## @CDS_NO_DISC
	.no_dead_strip	_cdrom_slot_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdrom_slot_status
_cdrom_slot_status:                     ; @cdrom_slot_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _CD_CHANGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CD_CHANGER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_cdinfo
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _CDS_NO_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDS_NO_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	b	LBB0_10
LBB0_2:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_cdrom_read_mech_status
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8, w19, sxtw #3]
	cbz	x8, LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _CDS_DISC_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CDS_DISC_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
Lloh16:
	adrp	x8, _CDS_NO_DISC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CDS_NO_DISC@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x20
	bl	_kfree
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_CD_CHANGER,4,2                 ; @CD_CHANGER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entering cdrom_slot_status()\n"

	.comm	_CDS_NO_INFO,4,2                ; @CDS_NO_INFO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CDS_DISC_OK,4,2                ; @CDS_DISC_OK
	.comm	_CDS_NO_DISC,4,2                ; @CDS_NO_DISC
	.no_dead_strip	_cdrom_slot_status
.subsections_via_symbols
