	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9035_read_config
_af9035_read_config:                    ## @af9035_read_config
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_d_to_priv
	movq	%rax, %r12
	movq	(%rax), %rax
	movabsq	$124554051612, %rcx             ## imm = 0x1D0000001C
	movq	%rcx, (%rax)
	movq	_AF9033_ADC_MULTIPLIER_2X@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	48(%r12), %rcx
	movq	%rdx, 24(%rcx)
	movq	%rdx, 56(%rcx)
	movq	_AF9033_TS_MODE_USB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rcx)
	movq	_AF9033_TS_MODE_SERIAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 48(%rcx)
	movl	$0, 8(%r12)
	movl	12(%r12), %edx
	cmpl	$37638, %edx                    ## imm = 0x9306
	je	LBB0_4
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$37173, %edx                    ## imm = 0x9135
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.2:
	movl	$1, (%rcx)
	movl	$1, 32(%rcx)
	xorl	%edx, %edx
	cmpl	$2, 16(%r12)
	setne	%dl
	leal	(%rdx,%rdx,2), %edx
	addl	$135, %edx
	movl	%edx, 4(%rcx)
	movl	%edx, 36(%rcx)
	cmpq	$0, 56(%r12)
	je	LBB0_7
## %bb.3:
	movq	$5, 20(%r12)
	jmp	LBB0_29
LBB0_7:
	movq	32(%r12), %rcx
	movq	_EEPROM_IR_MODE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 20(%r12)
	movq	_EEPROM_IR_TYPE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 24(%r12)
	cmpl	$0, 40(%r12)
	je	LBB0_12
## %bb.8:
	movq	_EEPROM_2ND_DEMOD_ADDR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, -44(%rbp)
	testl	%edx, %edx
	je	LBB0_9
## %bb.10:
	sarl	%edx
	movl	%edx, 4(%rax)
	jmp	LBB0_11
LBB0_4:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_VID_AVERMEDIA@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_PID_AVERMEDIA_TD310@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.6:
	movl	$1, 8(%r12)
	jmp	LBB0_40
LBB0_9:
	movl	4(%rax), %edx
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 40(%r12)
	js	LBB0_29
LBB0_12:
	movq	$-1, %r13
	xorl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_warn
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%r15, %r15
	je	LBB0_25
LBB0_28:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	32(%r12), %rax
	movq	_EEPROM_1_IF_L@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_EEPROM_1_IF_H@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax,%rcx,4), %esi
	movl	%esi, %ecx
	shll	$8, %ecx
	orl	(%rax,%rdx,4), %ecx
	movl	%esi, -44(%rbp)
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movslq	40(%r12), %rax
	addq	$32, %r14
	cmpq	%rax, %r13
	jge	LBB0_29
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r15
	movq	32(%r12), %rax
	movq	_EEPROM_1_TUNER_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	(%rax,%rcx,4), %ebx
	movl	%ebx, -44(%rbp)
	incq	%r13
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$37173, 12(%r12)                ## imm = 0x9135
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$2, 16(%r12)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	leal	-133(%rbx), %eax
	cmpl	$3, %eax
	jb	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	48(%r12), %rax
	movl	36(%rax), %eax
	leal	-132(%rax), %ecx
	cmpl	$7, %ecx
	jb	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$140, %eax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$0, 40(%r12)
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	leal	-136(%rbx), %eax
	cmpl	$2, %eax
	ja	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	48(%r12), %rax
	movl	%ebx, 4(%rax,%r14)
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	48(%r12), %rax
	movl	4(%rax,%r14), %r8d
	movq	%r12, %rbx
	movl	-44(%rbp), %r12d
	cmpl	%r12d, %r8d
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	48(%rbx), %rax
	movl	4(%rax,%r14), %r8d
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	addl	$-130, %r8d
	cmpl	$11, %r8d
	ja	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$504, %ecx                      ## imm = 0x1F8
	btl	%r8d, %ecx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$1, 8(%rax,%r14)
	jmp	LBB0_24
LBB0_29:
	leaq	-44(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$55296, %esi                    ## imm = 0xD800
	callq	_af9035_rd_reg
	testl	%eax, %eax
	js	LBB0_39
## %bb.30:
	andl	$15, -44(%rbp)
	movq	48(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	movq	%r12, %r13
	jle	LBB0_35
## %bb.31:
	movl	$12, %r14d
	xorl	%ebx, %ebx
	movq	_clock_lut_af9035@GOTPCREL(%rip), %r15
	movq	_clock_lut_it9135@GOTPCREL(%rip), %r12
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=1
	movslq	-44(%rbp), %rcx
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	movq	48(%r13), %rdi
	movl	%eax, (%rdi,%r14)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$32, %r14
	cmpq	%rax, %rbx
	jge	LBB0_35
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$37173, 12(%r13)                ## imm = 0x9135
	movq	%r15, %rax
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	%r12, %rax
	jmp	LBB0_34
LBB0_35:
	movl	$0, 44(%r13)
	movq	48(%r13), %rax
	xorl	%ebx, %ebx
	cmpl	$132, 4(%rax)
	jne	LBB0_40
## %bb.36:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_VID_AVERMEDIA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.37:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_40
## %bb.38:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_info
	movl	$1, 44(%r13)
	jmp	LBB0_40
LBB0_39:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_40:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF9033_ADC_MULTIPLIER_2X,8,3   ## @AF9033_ADC_MULTIPLIER_2X
	.comm	_AF9033_TS_MODE_USB,4,2         ## @AF9033_TS_MODE_USB
	.comm	_AF9033_TS_MODE_SERIAL,4,2      ## @AF9033_TS_MODE_SERIAL
	.comm	_USB_VID_AVERMEDIA,4,2          ## @USB_VID_AVERMEDIA
	.comm	_USB_PID_AVERMEDIA_TD310,4,2    ## @USB_PID_AVERMEDIA_TD310
	.comm	_EEPROM_IR_MODE,8,3             ## @EEPROM_IR_MODE
	.comm	_EEPROM_IR_TYPE,8,3             ## @EEPROM_IR_TYPE
	.comm	_EEPROM_2ND_DEMOD_ADDR,8,3      ## @EEPROM_2ND_DEMOD_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"2nd demod I2C addr=%02x\n"

	.comm	_EEPROM_1_TUNER_ID,4,2          ## @EEPROM_1_TUNER_ID
L_.str.1:                               ## @.str.1
	.asciz	"[%d]tuner=%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"[%d] overriding tuner from %02x to %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"tuner id=%02x not supported, please report!"

L_.str.4:                               ## @.str.4
	.asciz	"driver does not support 2nd tuner and will disable it"

	.comm	_EEPROM_1_IF_L,4,2              ## @EEPROM_1_IF_L
	.comm	_EEPROM_1_IF_H,4,2              ## @EEPROM_1_IF_H
L_.str.5:                               ## @.str.5
	.asciz	"[%d]IF=%d\n"

	.comm	_clock_lut_it9135,8,3           ## @clock_lut_it9135
	.comm	_clock_lut_af9035,8,3           ## @clock_lut_af9035
L_.str.6:                               ## @.str.6
	.asciz	"Device may have issues with I2C read operations. Enabling fix.\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_af9035_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function af9035_read_config
lCPI0_0:
	.long	28                              ; 0x1c
	.long	29                              ; 0x1d
lCPI0_1:
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_af9035_read_config:                    ; @af9035_read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x0
	ldr	x20, [x0, #8]
	bl	_d_to_priv
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
Lloh2:
	adrp	x9, _AF9033_ADC_MULTIPLIER_2X@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF9033_ADC_MULTIPLIER_2X@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x9]
	ldr	x9, [x0, #48]
	str	x10, [x9, #24]
	str	x10, [x9, #56]
Lloh5:
	adrp	x10, _AF9033_TS_MODE_USB@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AF9033_TS_MODE_USB@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	str	w10, [x9, #16]
Lloh8:
	adrp	x10, _AF9033_TS_MODE_SERIAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AF9033_TS_MODE_SERIAL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	str	w10, [x9, #48]
	str	wzr, [x0, #8]
	ldr	w10, [x0, #12]
	mov	w11, #37638
	cmp	w10, w11
	b.eq	LBB0_7
; %bb.1:
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	mov	w11, #37173
	cmp	w10, w11
	b.ne	LBB0_4
; %bb.2:
	mov	w10, #1
	ldr	w11, [x19, #16]
	mov	w12, #138
	mov	w13, #135
	cmp	w11, #2
	csel	w11, w13, w12, eq
	stp	w10, w11, [x9]
	stp	w10, w11, [x9, #32]
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, lCPI0_1@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x19, #20]
	b	LBB0_29
LBB0_4:
Lloh13:
	adrp	x10, _EEPROM_IR_MODE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _EEPROM_IR_MODE@GOTPAGEOFF]
	ldr	x9, [x19, #32]
Lloh15:
	ldr	x10, [x10]
	ldr	w10, [x9, x10, lsl #2]
Lloh16:
	adrp	x11, _EEPROM_IR_TYPE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _EEPROM_IR_TYPE@GOTPAGEOFF]
	str	w10, [x19, #20]
Lloh18:
	ldr	x10, [x11]
	ldr	w10, [x9, x10, lsl #2]
	str	w10, [x19, #24]
	ldr	w10, [x19, #40]
	cbz	w10, LBB0_12
; %bb.5:
Lloh19:
	adrp	x10, _EEPROM_2ND_DEMOD_ADDR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EEPROM_2ND_DEMOD_ADDR@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	str	w9, [sp, #44]
	cbz	w9, LBB0_10
; %bb.6:
	asr	w2, w9, #1
	str	w2, [x8, #4]
	b	LBB0_11
LBB0_7:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
Lloh22:
	adrp	x8, _USB_VID_AVERMEDIA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _USB_VID_AVERMEDIA@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_37
; %bb.8:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh25:
	adrp	x8, _USB_PID_AVERMEDIA_TD310@GOTPAGE
Lloh26:
	ldr	x8, [x8, _USB_PID_AVERMEDIA_TD310@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_37
; %bb.9:
	mov	w22, #0
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_39
LBB0_10:
	ldr	w2, [x8, #4]
LBB0_11:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x19, #40]
	tbnz	w8, #31, LBB0_29
LBB0_12:
	mov	x24, #0
	mov	x23, #-1
Lloh30:
	adrp	x21, _EEPROM_1_IF_H@GOTPAGE
Lloh31:
	ldr	x21, [x21, _EEPROM_1_IF_H@GOTPAGEOFF]
	mov	w22, #37173
Lloh32:
	adrp	x25, l_.str.5@PAGE
Lloh33:
	add	x25, x25, l_.str.5@PAGEOFF
	mov	w26, #1
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x28
	bl	_dev_warn
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x23, LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #32]
Lloh36:
	adrp	x9, _EEPROM_1_IF_L@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EEPROM_1_IF_L@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	ldr	w10, [x21]
	ldr	w8, [x8, x10, lsl #2]
	str	w8, [sp, #44]
	orr	w8, w9, w8, lsl #8
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x27
	bl	_dev_dbg
	ldrsw	x8, [x19, #40]
	add	x24, x24, #32
	add	x23, x23, #1
	cmp	x23, x8
	b.ge	LBB0_29
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
Lloh39:
	adrp	x9, _EEPROM_1_TUNER_ID@GOTPAGE
Lloh40:
	ldr	x9, [x9, _EEPROM_1_TUNER_ID@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w28, [x8, x9, lsl #2]
	str	w28, [sp, #44]
	add	x27, x23, #1
	str	x28, [sp]
	mov	x0, x20
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x27
	bl	_dev_dbg
	ldr	w8, [x19, #12]
	cmp	w8, w22
	b.ne	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.ne	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w8, w28, #133
	cmp	w8, #3
	b.lo	LBB0_23
	b	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #48]
	ldr	w8, [x8, #36]
	sub	w9, w8, #132
	cmp	w9, #7
	b.lo	LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #140
	b.eq	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	str	wzr, [x19, #40]
	mov	x0, x20
Lloh44:
	adrp	x1, l_.str.4@PAGE
Lloh45:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	b	LBB0_15
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w8, w28, #136
	cmp	w8, #2
	b.hi	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #48]
	add	x8, x8, x24
	str	w28, [x8, #4]
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #48]
	add	x9, x8, x24
	ldr	w9, [x9, #4]
	ldr	w28, [sp, #44]
	cmp	w9, w28
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_16 Depth=1
	stp	x28, x9, [sp, #8]
	str	x27, [sp]
	mov	x0, x20
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	ldr	x8, [x19, #48]
	add	x9, x8, x24
	ldr	w9, [x9, #4]
LBB0_26:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w9, w9, #130
	cmp	w9, #11
	b.hi	LBB0_13
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
	lsl	w9, w26, w9
	tst	w9, #0x1f8
	b.ne	LBB0_14
; %bb.28:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x8, x8, x24
	str	w26, [x8, #8]
	b	LBB0_14
LBB0_29:
	add	x2, sp, #44
	ldr	x26, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x26
	mov	w1, #55296
	bl	_af9035_rd_reg
	tbnz	w0, #31, LBB0_38
; %bb.30:
	ldr	w8, [sp, #44]
	and	w8, w8, #0xf
	str	w8, [sp, #44]
	ldr	x0, [x19, #48]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_33
; %bb.31:
	mov	x21, #0
	mov	w22, #12
Lloh48:
	adrp	x23, _clock_lut_it9135@GOTPAGE
Lloh49:
	ldr	x23, [x23, _clock_lut_it9135@GOTPAGEOFF]
Lloh50:
	adrp	x24, _clock_lut_af9035@GOTPAGE
Lloh51:
	ldr	x24, [x24, _clock_lut_af9035@GOTPAGEOFF]
	mov	w25, #37173
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #12]
	ldrsw	x9, [sp, #44]
	cmp	w8, w25
	csel	x8, x23, x24, eq
	ldr	x8, [x8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	x0, [x19, #48]
	str	w8, [x0, x22]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x22, x22, #32
	cmp	x21, w0, sxtw
	b.lt	LBB0_32
LBB0_33:
	mov	w22, #0
	str	wzr, [x19, #44]
	ldr	x8, [x19, #48]
	ldr	w8, [x8, #4]
	cmp	w8, #132
	b.ne	LBB0_39
; %bb.34:
	ldr	x8, [x26]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
Lloh52:
	adrp	x8, _USB_VID_AVERMEDIA@GOTPAGE
Lloh53:
	ldr	x8, [x8, _USB_VID_AVERMEDIA@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_37
; %bb.35:
	ldr	x8, [x26]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_37
; %bb.36:
Lloh55:
	adrp	x1, l_.str.6@PAGE
Lloh56:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	mov	w8, #1
	str	w8, [x19, #44]
	b	LBB0_39
LBB0_37:
	mov	w22, #0
	b	LBB0_39
LBB0_38:
	mov	x22, x0
Lloh57:
	adrp	x1, l_.str.7@PAGE
Lloh58:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_dbg
LBB0_39:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.comm	_AF9033_ADC_MULTIPLIER_2X,8,3   ; @AF9033_ADC_MULTIPLIER_2X
	.comm	_AF9033_TS_MODE_USB,4,2         ; @AF9033_TS_MODE_USB
	.comm	_AF9033_TS_MODE_SERIAL,4,2      ; @AF9033_TS_MODE_SERIAL
	.comm	_USB_VID_AVERMEDIA,4,2          ; @USB_VID_AVERMEDIA
	.comm	_USB_PID_AVERMEDIA_TD310,4,2    ; @USB_PID_AVERMEDIA_TD310
	.comm	_EEPROM_IR_MODE,8,3             ; @EEPROM_IR_MODE
	.comm	_EEPROM_IR_TYPE,8,3             ; @EEPROM_IR_TYPE
	.comm	_EEPROM_2ND_DEMOD_ADDR,8,3      ; @EEPROM_2ND_DEMOD_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"2nd demod I2C addr=%02x\n"

	.comm	_EEPROM_1_TUNER_ID,4,2          ; @EEPROM_1_TUNER_ID
l_.str.1:                               ; @.str.1
	.asciz	"[%d]tuner=%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"[%d] overriding tuner from %02x to %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"tuner id=%02x not supported, please report!"

l_.str.4:                               ; @.str.4
	.asciz	"driver does not support 2nd tuner and will disable it"

	.comm	_EEPROM_1_IF_L,4,2              ; @EEPROM_1_IF_L
	.comm	_EEPROM_1_IF_H,4,2              ; @EEPROM_1_IF_H
l_.str.5:                               ; @.str.5
	.asciz	"[%d]IF=%d\n"

	.comm	_clock_lut_it9135,8,3           ; @clock_lut_it9135
	.comm	_clock_lut_af9035,8,3           ; @clock_lut_af9035
l_.str.6:                               ; @.str.6
	.asciz	"Device may have issues with I2C read operations. Enabling fix.\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed=%d\n"

	.no_dead_strip	_af9035_read_config
.subsections_via_symbols
