	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tuner_attach_tda18212
LCPI0_0:
	.long	3550                            ## 0xdde
	.long	3700                            ## 0xe74
	.long	4150                            ## 0x1036
	.long	3250                            ## 0xcb2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tuner_attach_tda18212:                 ## @tuner_attach_tda18212
	.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	8(%rdi), %rax
	movq	16(%rax), %r15
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movl	(%rdi), %r14d
	andl	$1, %r14d
	movq	(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [3550,3700,4150,3250]
	movaps	%xmm0, -80(%rbp)
	movabsq	$17179869188000, %rax           ## imm = 0xFA000000FA0
	movq	%rax, -64(%rbp)
	movl	$5000, -56(%rbp)                ## imm = 0x1388
	leal	(%r14,%r14,2), %ebx
	shlq	$4, %r14
	movl	8(%r13,%r14), %eax
	movl	%eax, -52(%rbp)
	orl	$96, %ebx
	movq	_DDB_TUNER_DVBCT_ST@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %esi
	callq	_tuner_tda18212_ping
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r8
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_dvb_module_probe
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r13,%r14), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDB_TUNER_DVBCT_ST,8,3         ## @DDB_TUNER_DVBCT_ST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda18212"

L_.str.1:                               ## @.str.1
	.asciz	"TDA18212 tuner not found. Device is not fully operational.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_tuner_attach_tda18212
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function tuner_attach_tda18212
lCPI0_0:
	.long	3550                            ; 0xdde
	.long	3700                            ; 0xe74
	.long	4150                            ; 0x1036
	.long	3250                            ; 0xcb2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tuner_attach_tda18212:                 ; @tuner_attach_tda18212
	.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
	ldr	x8, [x0, #8]
	ldp	x22, x20, [x8, #8]
	ldr	w9, [x0]
	and	x23, x9, #0x1
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
	mov	w8, #4000
	dup.2s	v0, w8
	str	d0, [sp, #16]
	mov	w8, #5000
	str	w8, [sp, #24]
	add	x8, x22, x23, lsl #4
	ldr	w8, [x8, #8]
	str	w8, [sp, #28]
	mov	w8, #99
	mov	w9, #96
	cmp	w23, #0
	csel	w21, w9, w8, eq
Lloh2:
	adrp	x8, _DDB_TUNER_DVBCT_ST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DDB_TUNER_DVBCT_ST@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	x1, x21
	bl	_tuner_tda18212_ping
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x4, sp
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	bl	_dvb_module_probe
	cbz	x0, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	lsl	x9, x23, #4
	ldr	x9, [x22, x9]
	str	x8, [x9]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DDB_TUNER_DVBCT_ST,8,3         ; @DDB_TUNER_DVBCT_ST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda18212"

l_.str.1:                               ; @.str.1
	.asciz	"TDA18212 tuner not found. Device is not fully operational.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_tuner_attach_tda18212
.subsections_via_symbols
