	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unlock_media_bay               ## -- Begin function unlock_media_bay
	.p2align	4, 0x90
_unlock_media_bay:                      ## @unlock_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_3
## %bb.1:
	callq	_macio_get_drvdata
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.4:
	movq	$0, 8(%rax)
	movq	%rax, %rdi
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unlock_media_bay               ; -- Begin function unlock_media_bay
	.p2align	2
_unlock_media_bay:                      ; @unlock_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]
	cbz	x8, LBB0_4
; %bb.3:
	str	xzr, [x0, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
