	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_echo_vmixer_put
_snd_echo_vmixer_put:                   ## @snd_echo_vmixer_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, %r13
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movswl	8(%r13), %ebx
	movq	%rax, %rdi
	callq	_num_pipes_out
	movswl	%ax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r15d
	movswl	8(%r13), %ebx
	movq	%r14, %rdi
	callq	_num_pipes_out
	movswl	%ax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movq	_ECHOGAIN_MINOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_2
## %bb.1:
	movq	_ECHOGAIN_MAXOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_2
## %bb.3:
	movl	%edx, %r12d
	movq	(%r14), %rax
	movswq	%r15w, %rdx
	movq	(%rax,%rdx,8), %rdx
	movslq	%r12d, %rsi
	xorl	%eax, %eax
	cmpl	%ecx, (%rdx,%rsi,4)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movswl	%r15w, %esi
	movswl	%r12w, %edx
	movq	%r14, %rdi
	callq	_set_vmixer_gain
	movq	%r14, %rdi
	callq	_update_vmixer_level
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movl	$1, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECHOGAIN_MINOUT,4,2            ## @ECHOGAIN_MINOUT
	.comm	_ECHOGAIN_MAXOUT,4,2            ## @ECHOGAIN_MAXOUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_echo_vmixer_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_echo_vmixer_put
_snd_echo_vmixer_put:                   ; @snd_echo_vmixer_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
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldrsh	w22, [x20, #8]
	bl	_num_pipes_out
	mov	x21, x0
	ldrsh	w23, [x20, #8]
	mov	x0, x19
	bl	_num_pipes_out
	ldr	x8, [x20]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ECHOGAIN_MINOUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ECHOGAIN_MINOUT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _ECHOGAIN_MAXOUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ECHOGAIN_MAXOUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_4
; %bb.2:
	sdiv	w22, w22, w21
	sdiv	w9, w23, w0
	msub	w23, w9, w0, w23
	ldr	x9, [x19]
	sxth	x10, w22
	ldr	x9, [x9, x10, lsl #3]
	ldr	w9, [x9, w23, sxtw #2]
	cmp	w9, w8
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	x8, [x20]
	ldr	w3, [x8]
	sxth	w1, w22
	sxth	w2, w23
	mov	x0, x19
	bl	_set_vmixer_gain
	mov	x0, x19
	bl	_update_vmixer_level
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	w0, #1
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ECHOGAIN_MINOUT,4,2            ; @ECHOGAIN_MINOUT
	.comm	_ECHOGAIN_MAXOUT,4,2            ; @ECHOGAIN_MAXOUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_echo_vmixer_put
.subsections_via_symbols
