	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_init_tuner                ## -- Begin function bttv_init_tuner
	.p2align	4, 0x90
_bttv_init_tuner:                       ## @bttv_init_tuner
	.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, %rbx
	movq	(%rdi), %rax
	movq	_TUNER_ABSENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_bttv_tvcards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rbx), %rcx
	movl	(%rax,%rcx,4), %r13d
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	36(%rbx), %r14
	leaq	32(%rbx), %r15
	movq	_ADDRS_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_v4l2_i2c_tuner_addrs
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_v4l2_i2c_new_subdev
LBB0_3:
	leaq	36(%rbx), %r14
	leaq	32(%rbx), %r15
	movq	_ADDRS_DEMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_v4l2_i2c_tuner_addrs
	leaq	L_.str(%rip), %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_v4l2_i2c_new_subdev
	movq	_ADDRS_TV_WITH_DEMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_v4l2_i2c_tuner_addrs
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_v4l2_i2c_new_subdev
	movq	_T_ANALOG_TV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	(%rbx), %rcx
	movq	%rcx, -72(%rbp)
	movl	%r13d, -64(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_T_RADIO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
LBB0_5:
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_type_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_bttv_call_all
LBB0_6:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	8(%rbx), %rax
	movq	_TUNER_TDA9887@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	%rax, -56(%rbp)
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_bttv_call_all
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_UNSET,4,2                 ## @ADDR_UNSET
	.comm	_bttv_tvcards,8,3               ## @bttv_tvcards
	.comm	_TUNER_ABSENT,8,3               ## @TUNER_ABSENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner"

	.comm	_ADDRS_RADIO,4,2                ## @ADDRS_RADIO
	.comm	_ADDRS_DEMOD,4,2                ## @ADDRS_DEMOD
	.comm	_ADDRS_TV_WITH_DEMOD,4,2        ## @ADDRS_TV_WITH_DEMOD
	.comm	_T_ANALOG_TV,4,2                ## @T_ANALOG_TV
	.comm	_T_RADIO,4,2                    ## @T_RADIO
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_type_addr,4,2                ## @s_type_addr
	.comm	_TUNER_TDA9887,4,2              ## @TUNER_TDA9887
	.comm	_s_config,4,2                   ## @s_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_init_tuner                ; -- Begin function bttv_init_tuner
	.p2align	2
_bttv_init_tuner:                       ; @bttv_init_tuner
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _TUNER_ABSENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TUNER_ABSENT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x23, _tuner@GOTPAGE
Lloh4:
	ldr	x23, [x23, _tuner@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _bttv_tvcards@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bttv_tvcards@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #16]
	ldr	w24, [x8, x9, lsl #2]
	cbz	x10, LBB0_3
; %bb.2:
	add	x20, x19, #36
	add	x21, x19, #32
Lloh8:
	adrp	x8, _ADDRS_RADIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADDRS_RADIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_v4l2_i2c_tuner_addrs
	mov	x4, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
LBB0_3:
	add	x20, x19, #36
	add	x21, x19, #32
Lloh13:
	adrp	x8, _ADDRS_DEMOD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADDRS_DEMOD@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_v4l2_i2c_tuner_addrs
	mov	x4, x0
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
Lloh18:
	adrp	x8, _ADDRS_TV_WITH_DEMOD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADDRS_TV_WITH_DEMOD@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_v4l2_i2c_tuner_addrs
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	bl	_v4l2_i2c_new_subdev
Lloh21:
	adrp	x8, _T_ANALOG_TV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _T_ANALOG_TV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	x9, [sp]
	str	w8, [sp, #28]
	str	w24, [sp, #8]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_5
; %bb.4:
Lloh24:
	adrp	x9, _T_RADIO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _T_RADIO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #28]
LBB0_5:
	ldr	w1, [x23]
Lloh27:
	adrp	x8, _s_type_addr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _s_type_addr@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_bttv_call_all
LBB0_6:
	mov	x8, x19
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_8
; %bb.7:
Lloh30:
	adrp	x9, _TUNER_TDA9887@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TUNER_TDA9887@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	str	x8, [sp, #16]
	ldr	w1, [x23]
Lloh33:
	adrp	x8, _s_config@GOTPAGE
Lloh34:
	ldr	x8, [x8, _s_config@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_bttv_call_all
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_UNSET,4,2                 ; @ADDR_UNSET
	.comm	_bttv_tvcards,8,3               ; @bttv_tvcards
	.comm	_TUNER_ABSENT,8,3               ; @TUNER_ABSENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner"

	.comm	_ADDRS_RADIO,4,2                ; @ADDRS_RADIO
	.comm	_ADDRS_DEMOD,4,2                ; @ADDRS_DEMOD
	.comm	_ADDRS_TV_WITH_DEMOD,4,2        ; @ADDRS_TV_WITH_DEMOD
	.comm	_T_ANALOG_TV,4,2                ; @T_ANALOG_TV
	.comm	_T_RADIO,4,2                    ; @T_RADIO
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_type_addr,4,2                ; @s_type_addr
	.comm	_TUNER_TDA9887,4,2              ; @TUNER_TDA9887
	.comm	_s_config,4,2                   ; @s_config
.subsections_via_symbols
