	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp_set_source
_msp_set_source:                        ## @msp_set_source
	.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	%esi, %r14d
	movq	%rdi, %r12
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	_msp_dolby@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	$1312, %edx                     ## imm = 0x520
	cmovel	%r14d, %edx
	movq	%rax, %r15
	movl	$1568, %ebx                     ## imm = 0x620
	cmovel	%r14d, %ebx
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_msp_write_dsp
	movq	%r12, %rdi
	movl	$9, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
	movq	%r12, %rdi
	movl	$10, %esi
	movl	%r14d, %edx
	callq	_msp_write_dsp
	movq	%r12, %rdi
	movl	$11, %esi
	movl	%r14d, %edx
	callq	_msp_write_dsp
	movq	%r12, %rdi
	movl	$12, %esi
	movl	%r14d, %edx
	callq	_msp_write_dsp
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$65, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msp_write_dsp                  ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msp_dolby,8,3                  ## @msp_dolby
	.no_dead_strip	_msp_set_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp_set_source
_msp_set_source:                        ; @msp_set_source
	.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, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x21, x0
Lloh0:
	adrp	x8, _msp_dolby@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msp_dolby@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #1312
	csel	w2, w19, w8, eq
	mov	w8, #1568
	csel	w22, w19, w8, eq
	mov	x0, x20
	mov	w1, #8
	bl	_msp_write_dsp
	mov	x0, x20
	mov	w1, #9
	mov	x2, x22
	bl	_msp_write_dsp
	mov	x0, x20
	mov	w1, #10
	mov	x2, x19
	bl	_msp_write_dsp
	mov	x0, x20
	mov	w1, #11
	mov	x2, x19
	bl	_msp_write_dsp
	mov	x0, x20
	mov	w1, #12
	mov	x2, x19
	bl	_msp_write_dsp
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #65
	mov	x2, x19
	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
	b	_msp_write_dsp
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_msp_dolby,8,3                  ; @msp_dolby
	.no_dead_strip	_msp_set_source
.subsections_via_symbols
