	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu1010_output_source_put
_snd_emu1010_output_source_put:         ## @snd_emu1010_output_source_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_snd_kcontrol_chip
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	cmpq	$52, %rdx
	ja	LBB0_3
## %bb.1:
	movq	(%rax), %rcx
	movq	(%rcx), %rsi
	movq	_EMU_MODEL_EMU1616@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_4
## %bb.2:
	cmpl	$49, %edx
	jae	LBB0_3
LBB0_4:
	cmpq	%rdi, %rsi
	sete	%cl
	movzbl	(%r14), %ebx
	cmpl	$18, %ebx
	setae	%r8b
	cmpl	$23, %ebx
	ja	LBB0_3
## %bb.5:
	andb	%r8b, %cl
	jne	LBB0_3
## %bb.6:
	movq	8(%rax), %r8
	xorl	%ecx, %ecx
	cmpl	%edx, (%r8,%rbx,4)
	je	LBB0_11
## %bb.7:
	movl	%edx, (%r8,%rbx,4)
	cmpq	%rdi, %rsi
	jne	LBB0_9
## %bb.8:
	movq	_emu1616_output_dst@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	_emu1616_src_regs@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_11:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_emu1010_output_dst@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %esi
	movq	_emu1010_src_regs@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx,4), %edx
	movq	%rax, %rdi
	callq	_snd_emu1010_fpga_link_dst_src_write
	movl	$1, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EMU_MODEL_EMU1616,8,3          ## @EMU_MODEL_EMU1616
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_emu1616_output_dst,8,3         ## @emu1616_output_dst
	.comm	_emu1616_src_regs,8,3           ## @emu1616_src_regs
	.comm	_emu1010_output_dst,8,3         ## @emu1010_output_dst
	.comm	_emu1010_src_regs,8,3           ## @emu1010_src_regs
	.no_dead_strip	_snd_emu1010_output_source_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu1010_output_source_put
_snd_emu1010_output_source_put:         ; @snd_emu1010_output_source_put
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #52
	b.hi	LBB0_4
; %bb.1:
	ldr	x9, [x0]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _EMU_MODEL_EMU1616@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EMU_MODEL_EMU1616@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x10]
	cmp	x9, x11
	b.ne	LBB0_3
; %bb.2:
	cmp	w8, #49
	b.hs	LBB0_4
LBB0_3:
	cmp	x9, x11
	ldrb	w10, [x19]
	ccmp	w10, #17, #0, eq
	cset	w12, hi
	cmp	w10, #23
	ccmp	w12, #0, #0, ls
	b.eq	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x12, [x0, #8]
	ldr	w13, [x12, x10, lsl #2]
	cmp	w13, w8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_5
LBB0_8:
	str	w8, [x12, x10, lsl #2]
	cmp	x9, x11
	b.ne	LBB0_10
; %bb.9:
Lloh6:
	adrp	x9, _emu1616_output_dst@GOTPAGE
Lloh7:
	ldr	x9, [x9, _emu1616_output_dst@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w1, [x9, x10, lsl #2]
Lloh9:
	adrp	x9, _emu1616_src_regs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _emu1616_src_regs@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x9, _emu1010_output_dst@GOTPAGE
Lloh12:
	ldr	x9, [x9, _emu1010_output_dst@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w1, [x9, x10, lsl #2]
Lloh14:
	adrp	x9, _emu1010_src_regs@GOTPAGE
Lloh15:
	ldr	x9, [x9, _emu1010_src_regs@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
	bl	_snd_emu1010_fpga_link_dst_src_write
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EMU_MODEL_EMU1616,8,3          ; @EMU_MODEL_EMU1616
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_emu1616_output_dst,8,3         ; @emu1616_output_dst
	.comm	_emu1616_src_regs,8,3           ; @emu1616_src_regs
	.comm	_emu1010_output_dst,8,3         ; @emu1010_output_dst
	.comm	_emu1010_src_regs,8,3           ; @emu1010_src_regs
	.no_dead_strip	_snd_emu1010_output_source_put
.subsections_via_symbols
