	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_adjust_audio_level
_vx_adjust_audio_level:                 ## @vx_adjust_audio_level
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VX_STAT_IS_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_2:
	movq	%rcx, %r12
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_CMD_AUDIO_LEVEL_ADJUST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_vx_init_rmh
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movq	_COMMAND_RECORD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-40(%rbp), %rax
	orl	%ecx, (%rax)
	jmp	LBB0_5
LBB0_3:
	movq	-40(%rbp), %rax
LBB0_5:
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	movl	%edx, 4(%rax)
	movl	$0, 8(%rax)
	cmpq	$0, 56(%r12)
	je	LBB0_6
## %bb.7:
	movq	_VALID_AUDIO_IO_DIGITAL_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movl	(%r12), %ecx
	movl	%ecx, 8(%rax)
	cmpq	$0, 48(%r12)
	je	LBB0_10
LBB0_9:
	movq	_VALID_AUDIO_IO_MONITORING_LEVEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rax)
	movl	40(%r12), %edx
	shll	$10, %edx
	orl	%edx, %ecx
	movl	%ecx, 8(%rax)
LBB0_10:
	cmpq	$0, 32(%r12)
	je	LBB0_13
## %bb.11:
	movq	_VALID_AUDIO_IO_MUTE_LEVEL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%rax)
	cmpq	$0, 24(%r12)
	je	LBB0_13
## %bb.12:
	movq	_AUDIO_IO_HAS_MUTE_LEVEL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 8(%rax)
LBB0_13:
	cmpq	$0, 16(%r12)
	je	LBB0_16
## %bb.14:
	movq	_VALID_AUDIO_IO_MUTE_MONITORING_1@GOTPCREL(%rip), %rdx
	movq	_VALID_AUDIO_IO_MUTE_MONITORING_2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	orl	%esi, (%rax)
	cmpq	$0, 8(%r12)
	je	LBB0_16
## %bb.15:
	movq	_AUDIO_IO_HAS_MUTE_MONITORING_1@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 8(%rax)
LBB0_16:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vx_send_msg
LBB0_17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ecx, %ecx
	cmpq	$0, 48(%r12)
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ## @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_AUDIO_LEVEL_ADJUST,4,2     ## @CMD_AUDIO_LEVEL_ADJUST
	.comm	_COMMAND_RECORD_MASK,4,2        ## @COMMAND_RECORD_MASK
	.comm	_VALID_AUDIO_IO_DIGITAL_LEVEL,4,2 ## @VALID_AUDIO_IO_DIGITAL_LEVEL
	.comm	_VALID_AUDIO_IO_MONITORING_LEVEL,4,2 ## @VALID_AUDIO_IO_MONITORING_LEVEL
	.comm	_VALID_AUDIO_IO_MUTE_LEVEL,4,2  ## @VALID_AUDIO_IO_MUTE_LEVEL
	.comm	_AUDIO_IO_HAS_MUTE_LEVEL,4,2    ## @AUDIO_IO_HAS_MUTE_LEVEL
	.comm	_VALID_AUDIO_IO_MUTE_MONITORING_1,4,2 ## @VALID_AUDIO_IO_MUTE_MONITORING_1
	.comm	_VALID_AUDIO_IO_MUTE_MONITORING_2,4,2 ## @VALID_AUDIO_IO_MUTE_MONITORING_2
	.comm	_AUDIO_IO_HAS_MUTE_MONITORING_1,4,2 ## @AUDIO_IO_HAS_MUTE_MONITORING_1
	.no_dead_strip	_vx_adjust_audio_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_adjust_audio_level
_vx_adjust_audio_level:                 ; @vx_adjust_audio_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VX_STAT_IS_STALE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_STAT_IS_STALE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_2:
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh6:
	adrp	x8, _CMD_AUDIO_LEVEL_ADJUST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_AUDIO_LEVEL_ADJUST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_vx_init_rmh
	cbz	w22, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _COMMAND_RECORD_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMMAND_RECORD_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #8]
LBB0_5:
	mov	w9, #1
	lsl	w9, w9, w21
	stp	w9, wzr, [x8, #4]
	ldr	x9, [x20, #56]
	cbz	x9, LBB0_7
; %bb.6:
Lloh12:
	adrp	x9, _VALID_AUDIO_IO_DIGITAL_LEVEL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VALID_AUDIO_IO_DIGITAL_LEVEL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w9, [x20]
	str	w9, [x8, #8]
LBB0_7:
	ldr	x10, [x20, #48]
	cbz	x10, LBB0_9
; %bb.8:
Lloh15:
	adrp	x10, _VALID_AUDIO_IO_MONITORING_LEVEL@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VALID_AUDIO_IO_MONITORING_LEVEL@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	ldr	w11, [x8]
	orr	w10, w11, w10
	str	w10, [x8]
	ldr	w10, [x20, #40]
	orr	w9, w9, w10, lsl #10
	str	w9, [x8, #8]
LBB0_9:
	ldr	x10, [x20, #32]
	cbz	x10, LBB0_12
; %bb.10:
Lloh18:
	adrp	x10, _VALID_AUDIO_IO_MUTE_LEVEL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VALID_AUDIO_IO_MUTE_LEVEL@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	ldr	w11, [x8]
	orr	w10, w11, w10
	str	w10, [x8]
	ldr	x10, [x20, #24]
	cbz	x10, LBB0_12
; %bb.11:
Lloh21:
	adrp	x10, _AUDIO_IO_HAS_MUTE_LEVEL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AUDIO_IO_HAS_MUTE_LEVEL@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #8]
LBB0_12:
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_15
; %bb.13:
Lloh24:
	adrp	x10, _VALID_AUDIO_IO_MUTE_MONITORING_1@GOTPAGE
Lloh25:
	ldr	x10, [x10, _VALID_AUDIO_IO_MUTE_MONITORING_1@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _VALID_AUDIO_IO_MUTE_MONITORING_2@GOTPAGE
Lloh28:
	ldr	x11, [x11, _VALID_AUDIO_IO_MUTE_MONITORING_2@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w10, w11, w10
	ldr	w11, [x8]
	orr	w10, w10, w11
	str	w10, [x8]
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_15
; %bb.14:
Lloh30:
	adrp	x10, _AUDIO_IO_HAS_MUTE_MONITORING_1@GOTPAGE
Lloh31:
	ldr	x10, [x10, _AUDIO_IO_HAS_MUTE_MONITORING_1@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8, #8]
LBB0_15:
	add	x1, sp, #8
	mov	x0, x19
	bl	_vx_send_msg
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_STAT_IS_STALE,4,2           ; @VX_STAT_IS_STALE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_AUDIO_LEVEL_ADJUST,4,2     ; @CMD_AUDIO_LEVEL_ADJUST
	.comm	_COMMAND_RECORD_MASK,4,2        ; @COMMAND_RECORD_MASK
	.comm	_VALID_AUDIO_IO_DIGITAL_LEVEL,4,2 ; @VALID_AUDIO_IO_DIGITAL_LEVEL
	.comm	_VALID_AUDIO_IO_MONITORING_LEVEL,4,2 ; @VALID_AUDIO_IO_MONITORING_LEVEL
	.comm	_VALID_AUDIO_IO_MUTE_LEVEL,4,2  ; @VALID_AUDIO_IO_MUTE_LEVEL
	.comm	_AUDIO_IO_HAS_MUTE_LEVEL,4,2    ; @AUDIO_IO_HAS_MUTE_LEVEL
	.comm	_VALID_AUDIO_IO_MUTE_MONITORING_1,4,2 ; @VALID_AUDIO_IO_MUTE_MONITORING_1
	.comm	_VALID_AUDIO_IO_MUTE_MONITORING_2,4,2 ; @VALID_AUDIO_IO_MUTE_MONITORING_2
	.comm	_AUDIO_IO_HAS_MUTE_MONITORING_1,4,2 ; @AUDIO_IO_HAS_MUTE_MONITORING_1
	.no_dead_strip	_vx_adjust_audio_level
.subsections_via_symbols
