	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_audio_sw_put
_vx_audio_sw_put:                       ## @vx_audio_sw_put
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movzbl	(%rbx), %r13d
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rdx
	movq	(%rdx), %rax
	movq	(%r12), %rcx
	cmpq	(%rcx,%r13,8), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rdx), %rdx
	movl	%r13d, %esi
	xorl	%ebx, %ebx
	cmpq	8(%rcx,%rsi,8), %rdx
	je	LBB0_3
LBB0_2:
	leal	1(%r13), %ebx
	xorl	%edx, %edx
	testq	%rax, %rax
	setne	%dl
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_vx_set_audio_switch
	movq	(%r15), %rax
	xorl	%edx, %edx
	cmpq	$0, 8(%rax)
	setne	%dl
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_vx_set_audio_switch
	movl	$1, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vx_audio_sw_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_audio_sw_put
_vx_audio_sw_put:                       ; @vx_audio_sw_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldrb	w22, [x19]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x10, [x20]
	ldr	x8, [x10]
	ldr	x9, [x21]
	ldr	x11, [x9, x22, lsl #3]
	cmp	x8, x11
	b.ne	LBB0_3
; %bb.1:
	ldr	x10, [x10, #8]
	add	w23, w22, #1
	ldr	x9, [x9, w23, uxtw #3]
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_5
LBB0_3:
	add	w23, w22, #1
LBB0_4:
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x21
	mov	x1, x22
	bl	_vx_set_audio_switch
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w2, ne
	mov	x0, x21
	mov	x1, x23
	bl	_vx_set_audio_switch
	mov	w20, #1
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vx_audio_sw_put
.subsections_via_symbols
