	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_media_bay                ## -- Begin function check_media_bay
	.p2align	4, 0x90
_check_media_bay:                       ## @check_media_bay
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_macio_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	8(%rax), %rcx
	movq	_mb_up@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.4:
	movl	(%rax), %eax
	movq	_MB_FD1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.5:
	movq	_MB_FD@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_MB_NO@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_NO,4,2                      ## @MB_NO
	.comm	_mb_up,8,3                      ## @mb_up
	.comm	_MB_FD1,4,2                     ## @MB_FD1
	.comm	_MB_FD,4,2                      ## @MB_FD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_media_bay                ; -- Begin function check_media_bay
	.p2align	2
_check_media_bay:                       ; @check_media_bay
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	bl	_macio_get_drvdata
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _mb_up@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mb_up@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _MB_FD1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MB_FD1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MB_FD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MB_FD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w0, w10, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x8, _MB_NO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MB_NO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_NO,4,2                      ; @MB_NO
	.comm	_mb_up,8,3                      ; @mb_up
	.comm	_MB_FD1,4,2                     ; @MB_FD1
	.comm	_MB_FD,4,2                      ; @MB_FD
.subsections_via_symbols
