	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_unmute                    ## -- Begin function cx18_unmute
	.p2align	4, 0x90
_cx18_unmute:                           ## @cx18_unmute
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_cx18_find_handle
	movq	%rax, %r14
	movq	_CX18_INVALID_TASK_HANDLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_CX18_ERR
	jmp	LBB0_4
LBB0_2:
	movl	$100, %edi
	xorl	%esi, %esi
	callq	_cx18_msleep_timeout
	movq	_CX18_CPU_SET_MISC_PARAMETERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movq	%r14, %rcx
	movl	$12, %r8d
	callq	_cx18_vapi
	movq	_CX18_CPU_SET_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_cx18_vapi
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CX18_DEBUG_INFO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CX18_INVALID_TASK_HANDLE,8,3   ## @CX18_INVALID_TASK_HANDLE
	.comm	_CX18_CPU_SET_MISC_PARAMETERS,4,2 ## @CX18_CPU_SET_MISC_PARAMETERS
	.comm	_CX18_CPU_SET_AUDIO_MUTE,4,2    ## @CX18_CPU_SET_AUDIO_MUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find valid task handle for unmute\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unmute\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx18_unmute                    ; -- Begin function cx18_unmute
	.p2align	2
_cx18_unmute:                           ; @cx18_unmute
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_atomic_read
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_cx18_find_handle
Lloh0:
	adrp	x8, _CX18_INVALID_TASK_HANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX18_INVALID_TASK_HANDLE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CX18_ERR
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	mov	w0, #100
	mov	w1, #0
	bl	_cx18_msleep_timeout
Lloh5:
	adrp	x8, _CX18_CPU_SET_MISC_PARAMETERS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX18_CPU_SET_MISC_PARAMETERS@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	mov	w4, #12
	bl	_cx18_vapi
Lloh8:
	adrp	x8, _CX18_CPU_SET_AUDIO_MUTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CX18_CPU_SET_AUDIO_MUTE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	mov	w4, #0
	bl	_cx18_vapi
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CX18_DEBUG_INFO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CX18_INVALID_TASK_HANDLE,8,3   ; @CX18_INVALID_TASK_HANDLE
	.comm	_CX18_CPU_SET_MISC_PARAMETERS,4,2 ; @CX18_CPU_SET_MISC_PARAMETERS
	.comm	_CX18_CPU_SET_AUDIO_MUTE,4,2    ; @CX18_CPU_SET_AUDIO_MUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find valid task handle for unmute\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unmute\n"

.subsections_via_symbols
