	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9013_init
_af9013_init:                           ## @af9013_init
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	32(%r15), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	28(%r15), %edi
	movl	$55098, %esi                    ## imm = 0xD73A
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	28(%r15), %edi
	movl	$54295, %esi                    ## imm = 0xD417
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	movl	28(%r15), %edi
	movl	$54295, %esi                    ## imm = 0xD417
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.3:
	movl	28(%r15), %edi
	movq	(%r15), %rdx
	movl	$39922, %esi                    ## imm = 0x9BF2
	movl	$4, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movl	8(%r15), %eax
	cmpl	$27999999, %eax                 ## imm = 0x1AB3EFF
	jg	LBB0_8
## %bb.5:
	cmpl	$20480000, %eax                 ## imm = 0x1388000
	je	LBB0_11
## %bb.6:
	cmpl	$25000000, %eax                 ## imm = 0x17D7840
	jne	LBB0_10
## %bb.7:
	movl	$3, %ecx
	jmp	LBB0_13
LBB0_8:
	cmpl	$28000000, %eax                 ## imm = 0x1AB3F00
	je	LBB0_12
## %bb.9:
	xorl	%ecx, %ecx
	cmpl	$28800000, %eax                 ## imm = 0x1B77400
	je	LBB0_13
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_11:
	movl	$1, %ecx
	jmp	LBB0_13
LBB0_12:
	movl	$2, %ecx
LBB0_13:
	movl	28(%r15), %edi
	movl	$39890, %esi                    ## imm = 0x9BD2
	movl	$15, %edx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	8(%r15), %edi
	shll	$19, %edi
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_div_u64
	movzbl	%al, %ecx
	movl	%ecx, -60(%rbp)
	movzbl	%ah, %ecx
	movl	%ecx, -56(%rbp)
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -52(%rbp)
	movl	28(%r15), %edi
	leaq	-60(%rbp), %rdx
	movl	$53632, %esi                    ## imm = 0xD180
	movl	$3, %ecx
	callq	_regmap_bulk_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.18:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_demod_init_tab@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_22
## %bb.19:
	movq	(%rbx), %r12
	movl	%eax, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %edi
	movl	(%r12,%r13), %esi
	movl	4(%r12,%r13), %edx
	movl	8(%r12,%r13), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_33
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	$12, %r13
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_20
LBB0_22:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$-129, %eax
	addl	12(%r15), %eax
	cmpl	$11, %eax
	ja	LBB0_24
## %bb.23:
	cltq
	leaq	l_switch.table.af9013_init(%rip), %rcx
	movq	(%rcx,%rax,8), %rbx
	jmp	LBB0_25
LBB0_24:
	movq	_tuner_init_tab_unknown@GOTPCREL(%rip), %rbx
LBB0_25:
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_29
## %bb.26:
	movq	(%rbx), %r12
	movl	%eax, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %edi
	movl	(%r12,%r13), %esi
	movl	4(%r12,%r13), %edx
	movl	8(%r12,%r13), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	addq	$12, %r13
	cmpq	%r13, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_27
LBB0_29:
	movl	20(%r15), %eax
	addl	%eax, %eax
	movl	%eax, %ecx
	orl	$8, %ecx
	cmpl	$7, 16(%r15)
	cmovnel	%eax, %ecx
	movl	28(%r15), %edi
	movl	$54528, %esi                    ## imm = 0xD500
	movl	$14, %edx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.30:
	movl	28(%r15), %edi
	movl	$55088, %esi                    ## imm = 0xD730
	movl	$1, %edx
	movl	$1, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.31:
	movl	$1, 24(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_33:
	movl	%eax, %ebx
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"load demod core settings\n"

	.comm	_demod_init_tab,8,3             ## @demod_init_tab
L_.str.2:                               ## @.str.2
	.asciz	"load tuner specific settings\n"

	.comm	_tuner_init_tab_mxl5003d,8,3    ## @tuner_init_tab_mxl5003d
	.comm	_tuner_init_tab_mxl5005,8,3     ## @tuner_init_tab_mxl5005
	.comm	_tuner_init_tab_env77h11d5,8,3  ## @tuner_init_tab_env77h11d5
	.comm	_tuner_init_tab_mt2060,8,3      ## @tuner_init_tab_mt2060
	.comm	_tuner_init_tab_mc44s803,8,3    ## @tuner_init_tab_mc44s803
	.comm	_tuner_init_tab_qt1010,8,3      ## @tuner_init_tab_qt1010
	.comm	_tuner_init_tab_mt2060_2,8,3    ## @tuner_init_tab_mt2060_2
	.comm	_tuner_init_tab_tda18271,8,3    ## @tuner_init_tab_tda18271
	.comm	_tuner_init_tab_unknown,8,3     ## @tuner_init_tab_unknown
L_.str.3:                               ## @.str.3
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.af9013_init
l_switch.table.af9013_init:
	.quad	_tuner_init_tab_tda18271
	.quad	_tuner_init_tab_tda18271
	.quad	_tuner_init_tab_qt1010
	.quad	_tuner_init_tab_qt1010
	.quad	_tuner_init_tab_mxl5005
	.quad	_tuner_init_tab_mxl5005
	.quad	_tuner_init_tab_mxl5005
	.quad	_tuner_init_tab_mxl5003d
	.quad	_tuner_init_tab_mt2060_2
	.quad	_tuner_init_tab_mt2060
	.quad	_tuner_init_tab_mc44s803
	.quad	_tuner_init_tab_env77h11d5

.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 af9013_init
lCPI0_0:
	.long	4294967288                      ; 0xfffffff8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_af9013_init:                           ; @af9013_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x21, [x0]
	ldr	x19, [x21, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w0, [x21, #28]
	mov	w1, #55098
	mov	w2, #8
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.1:
	ldr	w0, [x21, #28]
	mov	w1, #54295
	mov	w2, #2
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.2:
	ldr	w0, [x21, #28]
	mov	w1, #54295
	mov	w2, #16
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.3:
	ldr	w0, [x21, #28]
	ldr	x2, [x21]
	mov	w1, #39922
	mov	w3, #4
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.4:
	ldr	w8, [x21, #8]
	mov	w9, #16127
	movk	w9, #427, lsl #16
	cmp	w8, w9
	b.gt	LBB0_8
; %bb.5:
	mov	w9, #32768
	movk	w9, #312, lsl #16
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.6:
	mov	w9, #30784
	movk	w9, #381, lsl #16
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.7:
	mov	w3, #3
	b	LBB0_13
LBB0_8:
	mov	w9, #16128
	movk	w9, #427, lsl #16
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.9:
	mov	w9, #29696
	movk	w9, #439, lsl #16
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.10:
	mov	w3, #0
	b	LBB0_13
LBB0_11:
	mov	w3, #1
	b	LBB0_13
LBB0_12:
	mov	w3, #2
LBB0_13:
	ldr	w0, [x21, #28]
	mov	w1, #39890
	mov	w2, #15
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.14:
	ldr	w8, [x21, #8]
	lsl	w0, w8, #19
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_div_u64
	and	w8, w0, #0xff
	str	w8, [sp, #12]
	dup.2s	v0, w0
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	stur	d0, [sp, #16]
	ldr	w0, [x21, #28]
	add	x2, sp, #12
	mov	w1, #53632
	mov	w3, #3
	bl	_regmap_bulk_write
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.15:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh9:
	adrp	x20, _demod_init_tab@GOTPAGE
Lloh10:
	ldr	x20, [x20, _demod_init_tab@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.16:
	ldr	x8, [x20]
	mov	w22, w0
	add	x23, x8, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #28]
	ldp	w1, w2, [x23, #-4]
	ldr	w3, [x23, #4]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_30
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #12
	subs	x22, x22, #1
	b.ne	LBB0_17
LBB0_19:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x21, #12]
	sub	w8, w8, #129
	cmp	w8, #11
	b.hi	LBB0_22
; %bb.20:
Lloh13:
	adrp	x9, l_switch.table.af9013_init@PAGE
Lloh14:
	add	x9, x9, l_switch.table.af9013_init@PAGEOFF
	ldr	x20, [x9, w8, sxtw #3]
	b	LBB0_23
LBB0_21:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_31
LBB0_22:
Lloh18:
	adrp	x20, _tuner_init_tab_unknown@GOTPAGE
Lloh19:
	ldr	x20, [x20, _tuner_init_tab_unknown@GOTPAGEOFF]
LBB0_23:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.24:
	ldr	x8, [x20]
	mov	w22, w0
	add	x23, x8, #4
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #28]
	ldp	w1, w2, [x23, #-4]
	ldr	w3, [x23, #4]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_30
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	add	x23, x23, #12
	subs	x22, x22, #1
	b.ne	LBB0_25
LBB0_27:
	ldp	w8, w9, [x21, #16]
	lsl	w9, w9, #1
	orr	w10, w9, #0x8
	cmp	w8, #7
	csel	w3, w10, w9, eq
	ldr	w0, [x21, #28]
	mov	w1, #54528
	mov	w2, #14
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.28:
	ldr	w0, [x21, #28]
	mov	w22, #1
	mov	w1, #55088
	mov	w2, #1
	mov	w3, #1
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_31
; %bb.29:
	str	w22, [x21, #24]
	b	LBB0_32
LBB0_30:
	mov	x20, x0
LBB0_31:
	str	x20, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_32:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"load demod core settings\n"

	.comm	_demod_init_tab,8,3             ; @demod_init_tab
l_.str.2:                               ; @.str.2
	.asciz	"load tuner specific settings\n"

	.comm	_tuner_init_tab_mxl5003d,8,3    ; @tuner_init_tab_mxl5003d
	.comm	_tuner_init_tab_mxl5005,8,3     ; @tuner_init_tab_mxl5005
	.comm	_tuner_init_tab_env77h11d5,8,3  ; @tuner_init_tab_env77h11d5
	.comm	_tuner_init_tab_mt2060,8,3      ; @tuner_init_tab_mt2060
	.comm	_tuner_init_tab_mc44s803,8,3    ; @tuner_init_tab_mc44s803
	.comm	_tuner_init_tab_qt1010,8,3      ; @tuner_init_tab_qt1010
	.comm	_tuner_init_tab_mt2060_2,8,3    ; @tuner_init_tab_mt2060_2
	.comm	_tuner_init_tab_tda18271,8,3    ; @tuner_init_tab_tda18271
	.comm	_tuner_init_tab_unknown,8,3     ; @tuner_init_tab_unknown
l_.str.3:                               ; @.str.3
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.af9013_init
l_switch.table.af9013_init:
	.quad	_tuner_init_tab_tda18271
	.quad	_tuner_init_tab_tda18271
	.quad	_tuner_init_tab_qt1010
	.quad	_tuner_init_tab_qt1010
	.quad	_tuner_init_tab_mxl5005
	.quad	_tuner_init_tab_mxl5005
	.quad	_tuner_init_tab_mxl5005
	.quad	_tuner_init_tab_mxl5003d
	.quad	_tuner_init_tab_mt2060_2
	.quad	_tuner_init_tab_mt2060
	.quad	_tuner_init_tab_mc44s803
	.quad	_tuner_init_tab_env77h11d5

.subsections_via_symbols
