	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivc120_muxsel
_ivc120_muxsel:                         ## @ivc120_muxsel
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %ebx
	andl	$3, %ebx
	movl	%esi, %r15d
	shrl	$2, %r15d
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_dprintk
	movq	_I2C_TDA8540_ALT3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	cmpl	$3, %r15d
	sete	%al
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx,4), %ebx
	movl	$0, %ecx
	cmovel	%ebx, %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	cmpl	$4, %r12d
	setb	%al
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$0, %ecx
	cmovbl	%ebx, %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	cmpl	$1, %r15d
	sete	%r12b
	movl	$0, %ecx
	cmovel	%ebx, %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	cmpl	$2, %r15d
	sete	%r13b
	movl	$0, %eax
	cmovnel	%eax, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %ecx
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%rax,2), %ecx
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r12,%r12,2), %ecx
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movq	_I2C_TDA8540_ALT6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r13,%r13,2), %ecx
	movq	%r14, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bttv_I2CWrite                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n"

	.comm	_I2C_TDA8540_ALT3,4,2           ## @I2C_TDA8540_ALT3
	.comm	_I2C_TDA8540_ALT4,4,2           ## @I2C_TDA8540_ALT4
	.comm	_I2C_TDA8540_ALT5,4,2           ## @I2C_TDA8540_ALT5
	.comm	_I2C_TDA8540_ALT6,4,2           ## @I2C_TDA8540_ALT6
	.no_dead_strip	_ivc120_muxsel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivc120_muxsel
_ivc120_muxsel:                         ; @ivc120_muxsel
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	and	w23, w1, #0x3
	lsr	w24, w1, #2
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x24
	mov	x4, x23
	bl	_dprintk
Lloh2:
	adrp	x28, _I2C_TDA8540_ALT3@GOTPAGE
Lloh3:
	ldr	x28, [x28, _I2C_TDA8540_ALT3@GOTPAGEOFF]
	ldr	w1, [x28]
	bfi	w23, w23, #2, #2
	cmp	w24, #2
	csel	w25, w23, wzr, eq
	mov	w8, #3
	csel	w20, w8, wzr, eq
	cmp	w24, #1
	csel	w26, w23, wzr, eq
	csel	w21, w8, wzr, eq
	cmp	w22, #4
	csel	w22, w23, wzr, lo
	csel	w27, w8, wzr, lo
	cmp	w24, #3
	csel	w3, w23, wzr, eq
	csel	w23, w24, wzr, eq
	mov	x0, x19
	mov	w2, #0
	mov	w4, #1
	bl	_bttv_I2CWrite
Lloh4:
	adrp	x24, _I2C_TDA8540_ALT4@GOTPAGE
Lloh5:
	ldr	x24, [x24, _I2C_TDA8540_ALT4@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	mov	w4, #1
	bl	_bttv_I2CWrite
Lloh6:
	adrp	x22, _I2C_TDA8540_ALT5@GOTPAGE
Lloh7:
	ldr	x22, [x22, _I2C_TDA8540_ALT5@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x26
	mov	w4, #1
	bl	_bttv_I2CWrite
Lloh8:
	adrp	x26, _I2C_TDA8540_ALT6@GOTPAGE
Lloh9:
	ldr	x26, [x26, _I2C_TDA8540_ALT6@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x25
	mov	w4, #1
	bl	_bttv_I2CWrite
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x23
	mov	w4, #1
	bl	_bttv_I2CWrite
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x27
	mov	w4, #1
	bl	_bttv_I2CWrite
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x21
	mov	w4, #1
	bl	_bttv_I2CWrite
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x20
	mov	w4, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_bttv_I2CWrite
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: ivc120_muxsel: Input - %02d | TDA - %02d | In - %02d\n"

	.comm	_I2C_TDA8540_ALT3,4,2           ; @I2C_TDA8540_ALT3
	.comm	_I2C_TDA8540_ALT4,4,2           ; @I2C_TDA8540_ALT4
	.comm	_I2C_TDA8540_ALT5,4,2           ; @I2C_TDA8540_ALT5
	.comm	_I2C_TDA8540_ALT6,4,2           ; @I2C_TDA8540_ALT6
	.no_dead_strip	_ivc120_muxsel
.subsections_via_symbols
