	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_audio_src_put
_vx_audio_src_put:                      ## @vx_audio_src_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	(%rax), %rcx
	movq	_VX_TYPE_VXPOCKET@GOTPCREL(%rip), %rdx
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpq	(%rdx), %rcx
	jge	LBB0_1
## %bb.3:
	cmpl	$2, %eax
	jge	LBB0_2
LBB0_4:
	movq	%rbx, %r15
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	%eax, 8(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	cmpl	$3, %eax
	jl	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_vx_sync_audio_source
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_TYPE_VXPOCKET,8,3           ## @VX_TYPE_VXPOCKET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vx_audio_src_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_src_put
_vx_audio_src_put:                      ; @vx_audio_src_put
	.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	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _VX_TYPE_VXPOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VX_TYPE_VXPOCKET@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	x9, x10
	b.ge	LBB0_4
; %bb.1:
	cmp	w8, #2
	b.ge	LBB0_5
LBB0_2:
	add	x21, x19, #12
	mov	x0, x21
	bl	_mutex_lock
	ldr	w9, [x19, #8]
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	cmp	w8, #3
	b.lt	LBB0_2
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_vx_sync_audio_source
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #1
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_TYPE_VXPOCKET,8,3           ; @VX_TYPE_VXPOCKET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vx_audio_src_put
.subsections_via_symbols
