	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vmixer_gain
_set_vmixer_gain:                       ## @set_vmixer_gain
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_num_pipes_out
	movl	$1, %edi
	cmpq	%r15, %rax
	jbe	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_num_busses_out
	xorl	%edi, %edi
	cmpq	%r12, %rax
	setbe	%dil
LBB0_2:
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_wait_handshake
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movl	%r14d, (%rax,%r15,4)
	movq	%rbx, %rdi
	callq	_num_pipes_out
	imull	%r12d, %eax
	addl	%eax, %r15d
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	%r14d, (%rax,%rcx,4)
	movslq	%r14d, %rdi
	callq	_DE_ACT
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_set_vmixer_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_vmixer_gain
_set_vmixer_gain:                       ; @set_vmixer_gain
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_num_pipes_out
	cmp	x0, x21
	b.ls	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_num_busses_out
	cmp	x0, x22
	cset	w0, ls
	bl	_snd_BUG_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	mov	w0, #1
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x20
	bl	_wait_handshake
	cbz	x0, LBB0_8
; %bb.5:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_8:
	ldr	x8, [x20]
	ldr	x8, [x8, x22, lsl #3]
	str	w19, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_num_pipes_out
	madd	w8, w0, w22, w21
	ldr	x9, [x20, #8]
	sbfiz	x8, x8, #2, #32
	ldr	x9, [x9]
	str	w19, [x9, x8]
	sxtw	x0, w19
	bl	_DE_ACT
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_set_vmixer_gain
.subsections_via_symbols
