	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9015_read_config
_af9015_read_config:                    ## @af9015_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_d_to_priv
	movq	%rax, %r14
	movq	8(%rbx), %r15
	movq	_READ_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	_AF9015_I2C_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	$0, -112(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -100(%rbp)
	leaq	-44(%rbp), %rax
	movl	%eax, -92(%rbp)
	movl	$0, -88(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_AF9015_EEPROM_IR_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.1:
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9015_ctrl_msg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
LBB0_4:
	movq	%rbx, %rdi
	callq	_af9015_eeprom_hash
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_AF9015_EEPROM_TS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9015_ctrl_msg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movl	-44(%rbp), %edx
	movl	%edx, 4(%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_AF9015_I2C_DEMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	cmpl	$0, 4(%r14)
	je	LBB0_10
## %bb.7:
	movq	_AF9015_EEPROM_DEMOD2_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_af9015_ctrl_msg
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movl	-44(%rbp), %eax
	sarl	%eax
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx)
	cmpl	$0, 4(%r14)
	js	LBB0_9
LBB0_10:
	leaq	-120(%rbp), %rcx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_36:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	$1, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movl	%ecx, 8(%rax,%r14)
	movl	-44(%rbp), %ecx
	movl	%ecx, 12(%rax,%r14)
	movl	-44(%rbp), %ecx
	xorl	%r12d, %r12d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	leaq	L_.str.7(%rip), %rsi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	1(%r13), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	4(%rcx), %rcx
	addq	$24, %r14
	cmpq	%rcx, %r13
	leaq	-120(%rbp), %rcx
	movl	-124(%rbp), %r13d               ## 4-byte Reload
	jge	LBB0_38
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	$24, %r14
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_AF9015_EEPROM_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_AF9015_EEPROM_XTAL_TYPE1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	movl	%eax, -104(%rbp)
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	movq	%rcx, %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %eax
	cmpq	$3, %rax
	ja	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	$28800000, (%rax,%r14)          ## imm = 0x1B77400
	movl	$28800000, %r8d                 ## imm = 0x1B77400
	jmp	LBB0_24
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	(%rax,%r14), %r8d
	jmp	LBB0_24
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	$20480000, (%rax,%r14)          ## imm = 0x1388000
	movl	$20480000, %r8d                 ## imm = 0x1388000
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	$28000000, (%rax,%r14)          ## imm = 0x1AB3F00
	movl	$28000000, %r8d                 ## imm = 0x1AB3F00
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movl	$25000000, (%rax,%r14)          ## imm = 0x17D7840
	movl	$25000000, %r8d                 ## imm = 0x17D7840
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_AF9015_EEPROM_IF1H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	movl	%eax, -104(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %eax
	shll	$8, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	24(%r15), %rcx
	movl	%eax, 4(%rcx,%r14)
	movq	_AF9015_EEPROM_IF1L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	movl	%eax, -104(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%r15), %rax
	movl	4(%rax,%r14), %ecx
	addl	-44(%rbp), %ecx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movl	%ecx, 4(%rax,%r14)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_AF9015_EEPROM_MT2060_IF1H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	movl	%eax, -104(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %eax
	shll	$8, %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_AF9015_EEPROM_MT2060_IF1L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	movl	%eax, -104(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r13,4), %ecx
	addl	-44(%rbp), %ecx
	movl	%ecx, (%rax,%r13,4)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_AF9015_EEPROM_TUNER_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	movl	%eax, -104(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_af9015_ctrl_msg
	testl	%eax, %eax
	jne	LBB0_14
## %bb.30:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-44(%rbp), %edx
	leal	-128(%rdx), %eax
	cmpl	$12, %eax
	ja	LBB0_35
## %bb.31:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$5663, %ecx                     ## imm = 0x161F
	btl	%eax, %ecx
	movl	%r14d, -124(%rbp)               ## 4-byte Spill
	jb	LBB0_36
## %bb.32:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$480, %ecx                      ## imm = 0x1E0
	btl	%eax, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_37
LBB0_34:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_AF9013_GPIO_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	16(%rax,%rdx), %rdx
	movl	%ecx, 4(%rdx)
	movl	$1, %ecx
	jmp	LBB0_37
LBB0_14:
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_26:
	movl	%eax, %r12d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_38:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_VID_AVERMEDIA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
## %bb.39:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_PID_AVERMEDIA_A850@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_41
## %bb.40:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_PID_AVERMEDIA_A850T@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
LBB0_41:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 4(%rax)
	movq	24(%rax), %rax
	movl	$4570000, 4(%rax)               ## imm = 0x45BB90
LBB0_42:
	movl	%r12d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_38
LBB0_35:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_42
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_READ_I2C,4,2                   ## @READ_I2C
	.comm	_AF9015_I2C_EEPROM,4,2          ## @AF9015_I2C_EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_AF9015_EEPROM_IR_MODE,4,2      ## @AF9015_EEPROM_IR_MODE
L_.str.1:                               ## @.str.1
	.asciz	"ir mode %02x\n"

	.comm	_AF9015_EEPROM_TS_MODE,4,2      ## @AF9015_EEPROM_TS_MODE
L_.str.2:                               ## @.str.2
	.asciz	"ts mode %02x\n"

	.comm	_AF9015_I2C_DEMOD,4,2           ## @AF9015_I2C_DEMOD
	.comm	_AF9015_EEPROM_DEMOD2_I2C,4,2   ## @AF9015_EEPROM_DEMOD2_I2C
	.comm	_AF9015_EEPROM_OFFSET,4,2       ## @AF9015_EEPROM_OFFSET
	.comm	_AF9015_EEPROM_XTAL_TYPE1,4,2   ## @AF9015_EEPROM_XTAL_TYPE1
L_.str.3:                               ## @.str.3
	.asciz	"[%d] xtal %02x, clk %u\n"

	.comm	_AF9015_EEPROM_IF1H,4,2         ## @AF9015_EEPROM_IF1H
	.comm	_AF9015_EEPROM_IF1L,4,2         ## @AF9015_EEPROM_IF1L
L_.str.4:                               ## @.str.4
	.asciz	"[%d] if frequency %u\n"

	.comm	_AF9015_EEPROM_MT2060_IF1H,4,2  ## @AF9015_EEPROM_MT2060_IF1H
	.comm	_AF9015_EEPROM_MT2060_IF1L,4,2  ## @AF9015_EEPROM_MT2060_IF1L
L_.str.5:                               ## @.str.5
	.asciz	"[%d] MT2060 IF1 %u\n"

	.comm	_AF9015_EEPROM_TUNER_ID1,4,2    ## @AF9015_EEPROM_TUNER_ID1
	.comm	_AF9013_GPIO_LO,4,2             ## @AF9013_GPIO_LO
L_.str.6:                               ## @.str.6
	.asciz	"tuner id %02x not supported, please report!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.7:                               ## @.str.7
	.asciz	"[%d] tuner id %02x\n"

L_.str.8:                               ## @.str.8
	.asciz	"eeprom read failed %d\n"

	.comm	_USB_VID_AVERMEDIA,8,3          ## @USB_VID_AVERMEDIA
	.comm	_USB_PID_AVERMEDIA_A850,8,3     ## @USB_PID_AVERMEDIA_A850
	.comm	_USB_PID_AVERMEDIA_A850T,8,3    ## @USB_PID_AVERMEDIA_A850T
L_.str.9:                               ## @.str.9
	.asciz	"AverMedia A850: overriding config\n"

	.no_dead_strip	_af9015_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9015_read_config
_af9015_read_config:                    ; @af9015_read_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	bl	_d_to_priv
	mov	x19, x0
	ldr	x20, [x21, #8]
Lloh0:
	adrp	x8, _READ_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AF9015_I2C_EEPROM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF9015_I2C_EEPROM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
	str	xzr, [sp, #40]
	movi.2s	v0, #1
	stur	d0, [sp, #52]
	add	x8, sp, #76
	stp	w8, wzr, [sp, #60]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh8:
	adrp	x8, _AF9015_EEPROM_IR_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AF9015_EEPROM_IR_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbz	w0, LBB0_4
; %bb.2:
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbz	w0, LBB0_4
; %bb.3:
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	mov	x26, x0
	cbnz	w0, LBB0_33
LBB0_4:
	mov	x0, x21
	bl	_af9015_eeprom_hash
	mov	x26, x0
	cbnz	w0, LBB0_33
; %bb.5:
	ldr	w8, [sp, #76]
	str	w8, [x19]
	ldr	w8, [sp, #76]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh13:
	adrp	x8, _AF9015_EEPROM_TS_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AF9015_EEPROM_TS_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	mov	x26, x0
	cbnz	w0, LBB0_33
; %bb.6:
	ldr	w8, [sp, #76]
	str	w8, [x19, #4]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh18:
	adrp	x8, _AF9015_I2C_DEMOD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AF9015_I2C_DEMOD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _AF9015_EEPROM_DEMOD2_I2C@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AF9015_EEPROM_DEMOD2_I2C@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	mov	x26, x0
	cbnz	w0, LBB0_33
; %bb.8:
	ldr	w8, [sp, #76]
	asr	w8, w8, #1
	ldr	x9, [x19, #8]
	str	w8, [x9, #4]
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_39
LBB0_9:
	mov	x27, #0
	mov	x24, #0
	mov	w28, #0
Lloh24:
	adrp	x25, _AF9015_EEPROM_OFFSET@GOTPAGE
Lloh25:
	ldr	x25, [x25, _AF9015_EEPROM_OFFSET@GOTPAGEOFF]
Lloh26:
	adrp	x23, _AF9015_EEPROM_XTAL_TYPE1@GOTPAGE
Lloh27:
	ldr	x23, [x23, _AF9015_EEPROM_XTAL_TYPE1@GOTPAGEOFF]
Lloh28:
	adrp	x22, l_.str.3@PAGE
Lloh29:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #24]
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w9, #1
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x8, x27
	str	w9, [x8, #8]
	ldr	w9, [sp, #76]
	str	w9, [x8, #12]
	ldr	w8, [sp, #76]
	stp	x24, x8, [sp]
	mov	x0, x20
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	mov	w26, #0
	add	x8, x24, #1
	ldrsw	x9, [x19, #4]
	add	x27, x27, #24
	cmp	x24, x9
	mov	x24, x8
	b.ge	LBB0_34
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	x27, #24
	csel	w28, w8, w28, eq
	ldr	w8, [x23]
	add	w8, w8, w28
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbnz	w0, LBB0_32
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #76]
	cmp	w8, #3
	b.hi	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
Lloh32:
	adrp	x11, lJTI0_0@PAGE
Lloh33:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_16
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #29696
	movk	w8, #439, lsl #16
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x27]
	b	LBB0_22
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #32768
	movk	w8, #312, lsl #16
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #16128
	movk	w8, #427, lsl #16
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w8, #30784
	movk	w8, #381, lsl #16
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x9, [x19, #24]
	str	w8, [x9, x27]
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w9, [sp, #76]
	stp	x9, x8, [sp, #8]
	str	x24, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_dev_dbg
Lloh34:
	adrp	x8, _AF9015_EEPROM_IF1H@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AF9015_EEPROM_IF1H@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	add	w8, w8, w28
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbnz	w0, LBB0_32
; %bb.23:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #76]
	lsl	w8, w8, #8
	ldr	x9, [x19, #24]
	add	x9, x9, x27
	str	w8, [x9, #4]
Lloh37:
	adrp	x8, _AF9015_EEPROM_IF1L@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AF9015_EEPROM_IF1L@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	add	w8, w8, w28
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbnz	w0, LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #76]
	ldr	x9, [x19, #24]
	add	x9, x9, x27
	ldr	w10, [x9, #4]
	add	w8, w10, w8
	mov	w10, #1000
	mul	w8, w8, w10
	str	w8, [x9, #4]
	stp	x24, x8, [sp]
	mov	x0, x20
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
Lloh42:
	adrp	x8, _AF9015_EEPROM_MT2060_IF1H@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AF9015_EEPROM_MT2060_IF1H@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	add	w8, w8, w28
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbnz	w0, LBB0_32
; %bb.25:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #76]
	lsl	w8, w8, #8
	ldr	x9, [x19, #16]
	str	w8, [x9, x24, lsl #2]
Lloh45:
	adrp	x8, _AF9015_EEPROM_MT2060_IF1L@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AF9015_EEPROM_MT2060_IF1L@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	add	w8, w8, w28
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbnz	w0, LBB0_32
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #76]
	ldr	x9, [x19, #16]
	lsl	x10, x24, #2
	ldr	w11, [x9, x10]
	add	w8, w11, w8
	str	w8, [x9, x10]
	stp	x24, x8, [sp]
	mov	x0, x20
Lloh48:
	adrp	x1, l_.str.5@PAGE
Lloh49:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
Lloh50:
	adrp	x8, _AF9015_EEPROM_TUNER_ID1@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AF9015_EEPROM_TUNER_ID1@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	add	w8, w8, w28
	str	w8, [sp, #48]
	add	x1, sp, #32
	mov	x0, x21
	bl	_af9015_ctrl_msg
	cbnz	w0, LBB0_32
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w2, [sp, #76]
	sub	w8, w2, #128
	cmp	w8, #12
	b.hi	LBB0_40
; %bb.28:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #5663
	tst	w8, w9
	b.ne	LBB0_10
; %bb.29:                               ;   in Loop: Header=BB0_13 Depth=1
	tst	w8, #0x1e0
	b.eq	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w9, #0
	ldr	x8, [x19, #24]
	b	LBB0_12
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=1
Lloh53:
	adrp	x8, _AF9013_GPIO_LO@GOTPAGE
Lloh54:
	ldr	x8, [x8, _AF9013_GPIO_LO@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x8]
	ldr	x8, [x19, #24]
	add	x10, x8, x27
	ldr	x10, [x10, #16]
	str	w9, [x10, #4]
	b	LBB0_11
LBB0_32:
	mov	x26, x0
LBB0_33:
Lloh56:
	adrp	x1, l_.str.8@PAGE
Lloh57:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	bl	_dev_err
LBB0_34:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
Lloh58:
	adrp	x8, _USB_VID_AVERMEDIA@GOTPAGE
Lloh59:
	ldr	x8, [x8, _USB_VID_AVERMEDIA@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_38
; %bb.35:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh61:
	adrp	x8, _USB_PID_AVERMEDIA_A850@GOTPAGE
Lloh62:
	ldr	x8, [x8, _USB_PID_AVERMEDIA_A850@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_37
; %bb.36:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh64:
	adrp	x8, _USB_PID_AVERMEDIA_A850T@GOTPAGE
Lloh65:
	ldr	x8, [x8, _USB_PID_AVERMEDIA_A850T@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_38
LBB0_37:
Lloh67:
	adrp	x1, l_.str.9@PAGE
Lloh68:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	str	wzr, [x19, #4]
	ldr	x8, [x19, #24]
	mov	w9, #48016
	movk	w9, #69, lsl #16
	str	w9, [x8, #4]
LBB0_38:
	mov	x0, x26
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_39:
	mov	w26, #0
	b	LBB0_34
LBB0_40:
Lloh69:
	adrp	x1, l_.str.6@PAGE
Lloh70:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh71:
	adrp	x8, _ENODEV@GOTPAGE
Lloh72:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_38
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_16)>>2
	.byte	(LBB0_18-LBB0_16)>>2
	.byte	(LBB0_19-LBB0_16)>>2
	.byte	(LBB0_20-LBB0_16)>>2
                                        ; -- End function
	.comm	_READ_I2C,4,2                   ; @READ_I2C
	.comm	_AF9015_I2C_EEPROM,4,2          ; @AF9015_I2C_EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_AF9015_EEPROM_IR_MODE,4,2      ; @AF9015_EEPROM_IR_MODE
l_.str.1:                               ; @.str.1
	.asciz	"ir mode %02x\n"

	.comm	_AF9015_EEPROM_TS_MODE,4,2      ; @AF9015_EEPROM_TS_MODE
l_.str.2:                               ; @.str.2
	.asciz	"ts mode %02x\n"

	.comm	_AF9015_I2C_DEMOD,4,2           ; @AF9015_I2C_DEMOD
	.comm	_AF9015_EEPROM_DEMOD2_I2C,4,2   ; @AF9015_EEPROM_DEMOD2_I2C
	.comm	_AF9015_EEPROM_OFFSET,4,2       ; @AF9015_EEPROM_OFFSET
	.comm	_AF9015_EEPROM_XTAL_TYPE1,4,2   ; @AF9015_EEPROM_XTAL_TYPE1
l_.str.3:                               ; @.str.3
	.asciz	"[%d] xtal %02x, clk %u\n"

	.comm	_AF9015_EEPROM_IF1H,4,2         ; @AF9015_EEPROM_IF1H
	.comm	_AF9015_EEPROM_IF1L,4,2         ; @AF9015_EEPROM_IF1L
l_.str.4:                               ; @.str.4
	.asciz	"[%d] if frequency %u\n"

	.comm	_AF9015_EEPROM_MT2060_IF1H,4,2  ; @AF9015_EEPROM_MT2060_IF1H
	.comm	_AF9015_EEPROM_MT2060_IF1L,4,2  ; @AF9015_EEPROM_MT2060_IF1L
l_.str.5:                               ; @.str.5
	.asciz	"[%d] MT2060 IF1 %u\n"

	.comm	_AF9015_EEPROM_TUNER_ID1,4,2    ; @AF9015_EEPROM_TUNER_ID1
	.comm	_AF9013_GPIO_LO,4,2             ; @AF9013_GPIO_LO
l_.str.6:                               ; @.str.6
	.asciz	"tuner id %02x not supported, please report!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.7:                               ; @.str.7
	.asciz	"[%d] tuner id %02x\n"

l_.str.8:                               ; @.str.8
	.asciz	"eeprom read failed %d\n"

	.comm	_USB_VID_AVERMEDIA,8,3          ; @USB_VID_AVERMEDIA
	.comm	_USB_PID_AVERMEDIA_A850,8,3     ; @USB_PID_AVERMEDIA_A850
	.comm	_USB_PID_AVERMEDIA_A850T,8,3    ; @USB_PID_AVERMEDIA_A850T
l_.str.9:                               ; @.str.9
	.asciz	"AverMedia A850: overriding config\n"

	.no_dead_strip	_af9015_read_config
.subsections_via_symbols
