	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp34xxg_set_source
_msp34xxg_set_source:                   ## @msp34xxg_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movl	$-129, %ecx
	addl	(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_1
## %bb.2:
	movslq	%ecx, %rcx
	leaq	L_switch.table.msp34xxg_set_source(%rip), %rdx
	movl	(%rdx,%rcx,4), %ebx
	leaq	l_switch.table.msp34xxg_set_source.1(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	jmp	LBB0_3
LBB0_1:
	movl	$32, %ecx
	movl	$800, %ebx                      ## imm = 0x320
LBB0_3:
	movq	_MSP_DSP_IN_TUNER@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	je	LBB0_9
## %bb.4:
	movq	_MSP_DSP_IN_MAIN_AVC@GOTPCREL(%rip), %rdx
	cmpl	%r12d, (%rdx)
	jg	LBB0_7
## %bb.5:
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.6:
	movl	%r12d, %eax
	shll	$8, %eax
	addl	$256, %eax                      ## imm = 0x100
	jmp	LBB0_8
LBB0_7:
	movl	%r12d, %eax
	shll	$8, %eax
LBB0_8:
	orl	%eax, %ecx
	movl	%ecx, %ebx
LBB0_9:
	movq	_msp_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	callq	_dev_dbg_lvl
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msp_write_dsp                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSP_DSP_IN_TUNER,4,2           ## @MSP_DSP_IN_TUNER
	.comm	_MSP_DSP_IN_MAIN_AVC,4,2        ## @MSP_DSP_IN_MAIN_AVC
	.comm	_msp_debug,4,2                  ## @msp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set source to %d (0x%x) for output %02x\n"

	.no_dead_strip	_msp34xxg_set_source
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.msp34xxg_set_source
L_switch.table.msp34xxg_set_source:
	.long	32                              ## 0x20
	.long	1056                            ## 0x420
	.long	288                             ## 0x120
	.long	800                             ## 0x320

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.msp34xxg_set_source.1
l_switch.table.msp34xxg_set_source.1:
	.long	48                              ## 0x30
	.long	16                              ## 0x10
	.long	32                              ## 0x20
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp34xxg_set_source
_msp34xxg_set_source:                   ; @msp34xxg_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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	bl	_to_state
	ldr	w8, [x0]
	sub	w8, w8, #129
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.msp34xxg_set_source@PAGE
Lloh1:
	add	x9, x9, l_switch.table.msp34xxg_set_source@PAGEOFF
	ldr	w22, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.msp34xxg_set_source.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.msp34xxg_set_source.1@PAGEOFF
	ldr	w8, [x9, x8]
	b	LBB0_3
LBB0_2:
	mov	w8, #32
	mov	w22, #800
LBB0_3:
Lloh4:
	adrp	x9, _MSP_DSP_IN_TUNER@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MSP_DSP_IN_TUNER@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w9, w21
	b.eq	LBB0_8
; %bb.4:
Lloh7:
	adrp	x9, _MSP_DSP_IN_MAIN_AVC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MSP_DSP_IN_MAIN_AVC@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w21
	b.gt	LBB0_7
; %bb.5:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_7
; %bb.6:
	lsl	w9, w21, #8
	add	w9, w9, #256
	orr	w22, w8, w9
	b	LBB0_8
LBB0_7:
	orr	w22, w8, w21, lsl #8
LBB0_8:
Lloh10:
	adrp	x8, _msp_debug@GOTPAGE
Lloh11:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	mov	x4, x21
	mov	x5, x22
	mov	x6, x19
	bl	_dev_dbg_lvl
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MSP_DSP_IN_TUNER,4,2           ; @MSP_DSP_IN_TUNER
	.comm	_MSP_DSP_IN_MAIN_AVC,4,2        ; @MSP_DSP_IN_MAIN_AVC
	.comm	_msp_debug,4,2                  ; @msp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set source to %d (0x%x) for output %02x\n"

	.no_dead_strip	_msp34xxg_set_source
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.msp34xxg_set_source
l_switch.table.msp34xxg_set_source:
	.long	32                              ; 0x20
	.long	1056                            ; 0x420
	.long	288                             ; 0x120
	.long	800                             ; 0x320

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.msp34xxg_set_source.1
l_switch.table.msp34xxg_set_source.1:
	.long	48                              ; 0x30
	.long	16                              ; 0x10
	.long	32                              ; 0x20
	.long	0                               ; 0x0

.subsections_via_symbols
