	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9015_tuner_attach
_af9015_tuner_attach:                   ## @af9015_tuner_attach
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_adap_to_d
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_d_to_priv
	movq	%rax, %r14
	movq	(%rbx), %rbx
	movq	(%r15), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	16(%r14), %rax
	movq	32(%r14), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rdi
	shlq	$4, %rdx
	callq	*8(%rax,%rdx)
	movq	16(%r14), %rdx
	movq	(%r15), %rcx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movl	(%rdx,%rsi), %edx
	leal	-129(%rdx), %esi
	cmpl	$11, %esi
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_3:
	movq	_qt1010_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movl	_af9015_qt1010_config@GOTPCREL(%rip), %ecx
	jmp	LBB0_4
LBB0_10:
	movq	_mxl5005s_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movl	_af9015_mxl5005_config@GOTPCREL(%rip), %ecx
	jmp	LBB0_4
LBB0_2:
	movq	_mt2060_attach@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	8(%r15), %rdx
	movq	(%rdx), %rsi
	movq	24(%r14), %rdx
	movl	(%rdx,%rcx,4), %r8d
	movl	_af9015_mt2060_config@GOTPCREL(%rip), %ecx
	xorl	%ebx, %ebx
	movl	%eax, %edx
	jmp	LBB0_12
LBB0_5:
	movq	_tda18271_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movq	_af9015_tda18271_config@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	movl	$96, %edx
	movl	%eax, %ecx
	jmp	LBB0_6
LBB0_8:
	movq	_tda18218_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movl	_af9015_tda18218_config@GOTPCREL(%rip), %ecx
	jmp	LBB0_4
LBB0_14:
	movq	_mxl5007t_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movq	_af9015_mxl5007t_config@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	movl	%eax, %edx
	movl	$96, %ecx
LBB0_6:
	xorl	%eax, %eax
	callq	_dvb_attach
	jmp	LBB0_7
LBB0_9:
	movq	_mxl5005s_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movl	_af9015_mxl5003_config@GOTPCREL(%rip), %ecx
	jmp	LBB0_4
LBB0_13:
	movq	_mc44s803_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movl	_af9015_mc44s803_config@GOTPCREL(%rip), %ecx
LBB0_4:
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	jmp	LBB0_7
LBB0_11:
	movq	_dvb_pll_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	8(%r15), %rcx
	movq	(%rcx), %rsi
	movq	_DVB_PLL_TDA665X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%ebx, %ebx
	movl	$96, %edx
	movl	%eax, %ecx
LBB0_12:
	xorl	%eax, %eax
	callq	_dvb_attach
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testq	%rax, %rax
	cmovnel	%ebx, %ecx
LBB0_16:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.17:
	movq	8(%r14), %rsi
	movq	(%r15), %rdi
	movq	%rdx, (%rsi,%rdi,8)
	movq	_af9015_tuner_init@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rax)
LBB0_18:
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_20
## %bb.19:
	movq	(%r14), %rsi
	movq	(%r15), %rdi
	movq	%rdx, (%rsi,%rdi,8)
	movq	_af9015_tuner_sleep@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
LBB0_20:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_14
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adap id %u\n"

	.comm	_mt2060_attach,4,2              ## @mt2060_attach
	.comm	_af9015_mt2060_config,4,2       ## @af9015_mt2060_config
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_qt1010_attach,4,2              ## @qt1010_attach
	.comm	_af9015_qt1010_config,4,2       ## @af9015_qt1010_config
	.comm	_tda18271_attach,4,2            ## @tda18271_attach
	.comm	_af9015_tda18271_config,4,2     ## @af9015_tda18271_config
	.comm	_tda18218_attach,4,2            ## @tda18218_attach
	.comm	_af9015_tda18218_config,4,2     ## @af9015_tda18218_config
	.comm	_mxl5005s_attach,4,2            ## @mxl5005s_attach
	.comm	_af9015_mxl5003_config,4,2      ## @af9015_mxl5003_config
	.comm	_af9015_mxl5005_config,4,2      ## @af9015_mxl5005_config
	.comm	_dvb_pll_attach,4,2             ## @dvb_pll_attach
	.comm	_DVB_PLL_TDA665X,4,2            ## @DVB_PLL_TDA665X
	.comm	_mc44s803_attach,4,2            ## @mc44s803_attach
	.comm	_af9015_mc44s803_config,4,2     ## @af9015_mc44s803_config
	.comm	_mxl5007t_attach,4,2            ## @mxl5007t_attach
	.comm	_af9015_mxl5007t_config,4,2     ## @af9015_mxl5007t_config
L_.str.1:                               ## @.str.1
	.asciz	"unknown tuner, tuner id %02x\n"

	.comm	_af9015_tuner_init,8,3          ## @af9015_tuner_init
	.comm	_af9015_tuner_sleep,8,3         ## @af9015_tuner_sleep
	.no_dead_strip	_af9015_tuner_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9015_tuner_attach
_af9015_tuner_attach:                   ; @af9015_tuner_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_adap_to_d
	mov	x21, x0
	bl	_d_to_priv
	mov	x20, x0
	ldr	x21, [x21]
	ldr	x2, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x20, #32]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	ldr	x8, [x20, #16]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	blr	x8
	ldr	x9, [x20, #16]
	ldr	x8, [x19]
	lsl	x10, x8, #4
	ldr	w2, [x9, x10]
	sub	w9, w2, #129
	cmp	w9, #11
	b.hi	LBB0_19
; %bb.1:
	mov	x4, x0
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _qt1010_attach@GOTPAGE
Lloh5:
	ldr	x8, [x8, _qt1010_attach@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh7:
	adrp	x3, _af9015_qt1010_config@GOTPAGE
Lloh8:
	ldr	x3, [x3, _af9015_qt1010_config@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
Lloh9:
	adrp	x8, _mxl5005s_attach@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mxl5005s_attach@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh12:
	adrp	x3, _af9015_mxl5005_config@GOTPAGE
Lloh13:
	ldr	x3, [x3, _af9015_mxl5005_config@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
Lloh14:
	adrp	x9, _mt2060_attach@GOTPAGE
Lloh15:
	ldr	x9, [x9, _mt2060_attach@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	ldr	x9, [x19, #8]
	ldr	x1, [x9]
	ldr	x9, [x20, #24]
	ldr	w8, [x9, x8, lsl #2]
	str	x8, [sp]
Lloh17:
	adrp	x3, _af9015_mt2060_config@GOTPAGE
Lloh18:
	ldr	x3, [x3, _af9015_mt2060_config@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh19:
	adrp	x8, _tda18271_attach@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tda18271_attach@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh22:
	adrp	x8, _af9015_tda18271_config@GOTPAGE
Lloh23:
	ldr	x8, [x8, _af9015_tda18271_config@GOTPAGEOFF]
	b	LBB0_18
LBB0_6:
Lloh24:
	adrp	x8, _tda18218_attach@GOTPAGE
Lloh25:
	ldr	x8, [x8, _tda18218_attach@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh27:
	adrp	x3, _af9015_tda18218_config@GOTPAGE
Lloh28:
	ldr	x3, [x3, _af9015_tda18218_config@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh29:
	adrp	x8, _mxl5007t_attach@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mxl5007t_attach@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh32:
	adrp	x8, _af9015_mxl5007t_config@GOTPAGE
Lloh33:
	ldr	x8, [x8, _af9015_mxl5007t_config@GOTPAGEOFF]
	str	x8, [sp]
	mov	x2, x4
	mov	w3, #96
	b	LBB0_11
LBB0_8:
Lloh34:
	adrp	x8, _mxl5005s_attach@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mxl5005s_attach@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh37:
	adrp	x3, _af9015_mxl5003_config@GOTPAGE
Lloh38:
	ldr	x3, [x3, _af9015_mxl5003_config@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh39:
	adrp	x8, _mc44s803_attach@GOTPAGE
Lloh40:
	ldr	x8, [x8, _mc44s803_attach@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh42:
	adrp	x3, _af9015_mc44s803_config@GOTPAGE
Lloh43:
	ldr	x3, [x3, _af9015_mc44s803_config@GOTPAGEOFF]
LBB0_10:
	mov	x2, x4
                                        ; kill: def $w3 killed $w3 killed $x3
LBB0_11:
	bl	_dvb_attach
Lloh44:
	adrp	x8, _ENODEV@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_14
; %bb.13:
	ldr	x10, [x20, #8]
	ldr	x11, [x19]
	str	x9, [x10, x11, lsl #3]
Lloh47:
	adrp	x9, _af9015_tuner_init@GOTPAGE
Lloh48:
	ldr	x9, [x9, _af9015_tuner_init@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	str	x9, [x8, #8]
LBB0_14:
	ldr	x9, [x8]
	cbz	x9, LBB0_16
; %bb.15:
	ldr	x10, [x20]
	ldr	x11, [x19]
	str	x9, [x10, x11, lsl #3]
Lloh50:
	adrp	x9, _af9015_tuner_sleep@GOTPAGE
Lloh51:
	ldr	x9, [x9, _af9015_tuner_sleep@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	str	x9, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_17:
Lloh53:
	adrp	x8, _dvb_pll_attach@GOTPAGE
Lloh54:
	ldr	x8, [x8, _dvb_pll_attach@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
Lloh56:
	adrp	x8, _DVB_PLL_TDA665X@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DVB_PLL_TDA665X@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
LBB0_18:
	str	x8, [sp]
	mov	w2, #96
	mov	x3, x4
	b	LBB0_11
LBB0_19:
Lloh59:
	adrp	x1, l_.str.1@PAGE
Lloh60:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh61:
	adrp	x8, _ENODEV@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adap id %u\n"

	.comm	_mt2060_attach,4,2              ; @mt2060_attach
	.comm	_af9015_mt2060_config,4,2       ; @af9015_mt2060_config
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_qt1010_attach,4,2              ; @qt1010_attach
	.comm	_af9015_qt1010_config,4,2       ; @af9015_qt1010_config
	.comm	_tda18271_attach,4,2            ; @tda18271_attach
	.comm	_af9015_tda18271_config,4,2     ; @af9015_tda18271_config
	.comm	_tda18218_attach,4,2            ; @tda18218_attach
	.comm	_af9015_tda18218_config,4,2     ; @af9015_tda18218_config
	.comm	_mxl5005s_attach,4,2            ; @mxl5005s_attach
	.comm	_af9015_mxl5003_config,4,2      ; @af9015_mxl5003_config
	.comm	_af9015_mxl5005_config,4,2      ; @af9015_mxl5005_config
	.comm	_dvb_pll_attach,4,2             ; @dvb_pll_attach
	.comm	_DVB_PLL_TDA665X,4,2            ; @DVB_PLL_TDA665X
	.comm	_mc44s803_attach,4,2            ; @mc44s803_attach
	.comm	_af9015_mc44s803_config,4,2     ; @af9015_mc44s803_config
	.comm	_mxl5007t_attach,4,2            ; @mxl5007t_attach
	.comm	_af9015_mxl5007t_config,4,2     ; @af9015_mxl5007t_config
l_.str.1:                               ; @.str.1
	.asciz	"unknown tuner, tuner id %02x\n"

	.comm	_af9015_tuner_init,8,3          ; @af9015_tuner_init
	.comm	_af9015_tuner_sleep,8,3         ; @af9015_tuner_sleep
	.no_dead_strip	_af9015_tuner_attach
.subsections_via_symbols
