	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_mb_power
_set_mb_power:                          ## @set_mb_power
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %rcx
	xorl	%eax, %eax
	testl	%esi, %esi
	setne	%al
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str(%rip), %r15
	cmoveq	%rdx, %r15
	movq	_mb_powering_up@GOTPCREL(%rip), %rbx
	cmoveq	_mb_powering_down@GOTPCREL(%rip), %rbx
	movl	%eax, %esi
	callq	*(%rcx)
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_pr_debug
	movq	_MB_POWER_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mb_powering_up,4,2             ## @mb_powering_up
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mediabay%d: powering up\n"

	.comm	_mb_powering_down,4,2           ## @mb_powering_down
L_.str.1:                               ## @.str.1
	.asciz	"mediabay%d: powering down\n"

	.comm	_MB_POWER_DELAY,4,2             ## @MB_POWER_DELAY
	.no_dead_strip	_set_mb_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_mb_power
_set_mb_power:                          ; @set_mb_power
	.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, x0
	cmp	w1, #0
	cset	w1, ne
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
	csel	x20, x10, x9, eq
Lloh4:
	adrp	x9, _mb_powering_down@GOTPAGE
Lloh5:
	ldr	x9, [x9, _mb_powering_down@GOTPAGEOFF]
Lloh6:
	adrp	x10, _mb_powering_up@GOTPAGE
Lloh7:
	ldr	x10, [x10, _mb_powering_up@GOTPAGEOFF]
	csel	x21, x9, x10, eq
	blr	x8
	ldr	w8, [x21]
	str	w8, [x19, #8]
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_pr_debug
Lloh8:
	adrp	x8, _MB_POWER_DELAY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MB_POWER_DELAY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	str	w0, [x19]
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mb_powering_up,4,2             ; @mb_powering_up
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mediabay%d: powering up\n"

	.comm	_mb_powering_down,4,2           ; @mb_powering_down
l_.str.1:                               ; @.str.1
	.asciz	"mediabay%d: powering down\n"

	.comm	_MB_POWER_DELAY,4,2             ; @MB_POWER_DELAY
	.no_dead_strip	_set_mb_power
.subsections_via_symbols
