	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onyx_usable
_onyx_usable:                           ## @onyx_usable
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_ONYX_REG_DIG_INFO4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_onyx_read_register
	movl	-44(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ONYX_SPDIF_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ONYX_REG_DAC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_onyx_read_register
	movl	-44(%rbp), %r15d
	movq	_ONYX_MUTE_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ONYX_MUTE_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	(%r14), %ecx
	cmpl	$2, %ecx
	je	LBB0_3
## %bb.1:
	movb	$1, %al
	cmpl	$1, %ecx
	jne	LBB0_5
## %bb.2:
	orl	%r13d, %r12d
	notl	%r15d
	testl	%r15d, %r12d
	jmp	LBB0_4
LBB0_3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
LBB0_4:
	setne	%al
LBB0_5:
	movzbl	%al, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ONYX_REG_DIG_INFO4,4,2         ## @ONYX_REG_DIG_INFO4
	.comm	_ONYX_SPDIF_ENABLE,4,2          ## @ONYX_SPDIF_ENABLE
	.comm	_ONYX_REG_DAC_CONTROL,4,2       ## @ONYX_REG_DAC_CONTROL
	.comm	_ONYX_MUTE_RIGHT,4,2            ## @ONYX_MUTE_RIGHT
	.comm	_ONYX_MUTE_LEFT,4,2             ## @ONYX_MUTE_LEFT
	.no_dead_strip	_onyx_usable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onyx_usable
_onyx_usable:                           ; @onyx_usable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ONYX_REG_DIG_INFO4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ONYX_REG_DIG_INFO4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_onyx_read_register
	ldr	w21, [sp, #12]
Lloh3:
	adrp	x8, _ONYX_SPDIF_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ONYX_SPDIF_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _ONYX_REG_DAC_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ONYX_REG_DAC_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_onyx_read_register
	ldr	w23, [sp, #12]
Lloh9:
	adrp	x8, _ONYX_MUTE_RIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ONYX_MUTE_RIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
Lloh12:
	adrp	x8, _ONYX_MUTE_LEFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ONYX_MUTE_LEFT@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x19]
	cmp	w8, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	orr	w8, w25, w24
	bics	wzr, w8, w23
	b	LBB0_4
LBB0_3:
	tst	w22, w21
LBB0_4:
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ONYX_REG_DIG_INFO4,4,2         ; @ONYX_REG_DIG_INFO4
	.comm	_ONYX_SPDIF_ENABLE,4,2          ; @ONYX_SPDIF_ENABLE
	.comm	_ONYX_REG_DAC_CONTROL,4,2       ; @ONYX_REG_DAC_CONTROL
	.comm	_ONYX_MUTE_RIGHT,4,2            ; @ONYX_MUTE_RIGHT
	.comm	_ONYX_MUTE_LEFT,4,2             ; @ONYX_MUTE_LEFT
	.no_dead_strip	_onyx_usable
.subsections_via_symbols
