	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_afe_adjust_ref_count   ## -- Begin function cx231xx_afe_adjust_ref_count
	.p2align	4, 0x90
_cx231xx_afe_adjust_ref_count:          ## @cx231xx_afe_adjust_ref_count
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -20(%rbp)
	movl	$0, -24(%rbp)
	movq	%rsi, 8(%rdi)
	movq	_CX231XX_VMUX_TELEVISION@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	movq	_ADC_INPUT_CH1@GOTPCREL(%rip), %rax
	cmoveq	_ADC_INPUT_CH3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADC_NTF_PRECLMP_EN_CH1@GOTPCREL(%rip), %rbx
	cmoveq	_ADC_NTF_PRECLMP_EN_CH3@GOTPCREL(%rip), %rbx
	leaq	-20(%rbp), %rdx
	callq	_afe_read_byte
	movl	(%rbx), %esi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_afe_read_byte
	movl	-24(%rbp), %eax
	andl	$3, %eax
	movl	-20(%rbp), %ecx
	andl	$6, %ecx
	leal	(%rax,%rcx,2), %eax
	movl	%eax, -20(%rbp)
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_cx231xx_afe_init_super_block
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ## @CX231XX_VMUX_TELEVISION
	.comm	_ADC_INPUT_CH3,4,2              ## @ADC_INPUT_CH3
	.comm	_ADC_NTF_PRECLMP_EN_CH3,4,2     ## @ADC_NTF_PRECLMP_EN_CH3
	.comm	_ADC_INPUT_CH1,4,2              ## @ADC_INPUT_CH1
	.comm	_ADC_NTF_PRECLMP_EN_CH1,4,2     ## @ADC_NTF_PRECLMP_EN_CH1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_afe_adjust_ref_count   ; -- Begin function cx231xx_afe_adjust_ref_count
	.p2align	2
_cx231xx_afe_adjust_ref_count:          ; @cx231xx_afe_adjust_ref_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	str	x1, [x0, #8]
Lloh0:
	adrp	x8, _CX231XX_VMUX_TELEVISION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX231XX_VMUX_TELEVISION@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ADC_INPUT_CH3@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADC_INPUT_CH3@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _ADC_INPUT_CH1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ADC_INPUT_CH1@GOTPAGEOFF]
	cmp	x8, x1
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _ADC_NTF_PRECLMP_EN_CH3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADC_NTF_PRECLMP_EN_CH3@GOTPAGEOFF]
Lloh9:
	adrp	x9, _ADC_NTF_PRECLMP_EN_CH1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADC_NTF_PRECLMP_EN_CH1@GOTPAGEOFF]
	csel	x20, x8, x9, eq
	add	x2, sp, #12
	bl	_afe_read_byte
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_afe_read_byte
	ldp	w8, w9, [sp, #8]
	and	w8, w8, #0x3
	lsr	w9, w9, #1
	bfi	w8, w9, #2, #2
	str	w8, [sp, #12]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_cx231xx_afe_init_super_block
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ; @CX231XX_VMUX_TELEVISION
	.comm	_ADC_INPUT_CH3,4,2              ; @ADC_INPUT_CH3
	.comm	_ADC_NTF_PRECLMP_EN_CH3,4,2     ; @ADC_NTF_PRECLMP_EN_CH3
	.comm	_ADC_INPUT_CH1,4,2              ; @ADC_INPUT_CH1
	.comm	_ADC_NTF_PRECLMP_EN_CH1,4,2     ; @ADC_NTF_PRECLMP_EN_CH1
.subsections_via_symbols
