	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda827xa_lna_gain
_tda827xa_lna_gain:                     ## @tda827xa_lna_gain
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rbx
	movw	$290, -34(%rbp)                 ## imm = 0x122
	leaq	-34(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$2, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	4(%rax), %ecx
	movl	%ecx, -52(%rbp)
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.3:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_dprintk
LBB0_4:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_5
## %bb.8:
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ecx, %ecx
	testl	%edx, (%r15)
	setne	%cl
	movl	$1, %edx
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	jmp	LBB0_14
LBB0_5:
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.6:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_DVB_FRONTEND_COMPONENT_TUNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	*%rax
	jmp	LBB0_14
LBB0_9:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
LBB0_11:
	movq	(%r12), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.12:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_DVB_FRONTEND_COMPONENT_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	*%r8
	movq	8(%rbx), %rax
	movl	(%rax), %eax
LBB0_13:
	testl	%r14d, %r14d
	sete	%cl
	cmpl	$131, %eax
	sete	%al
	xorb	%cl, %al
	movb	%al, -33(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_tuner_transfer
LBB0_14:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda827x_config not defined, cannot set LNA gain!\n"

L_.str.1:                               ## @.str.1
	.asciz	"setting LNA to high gain\n"

L_.str.2:                               ## @.str.2
	.asciz	"setting LNA to low gain\n"

	.comm	_V4L2_STD_MN,4,2                ## @V4L2_STD_MN
	.comm	_DVB_FRONTEND_COMPONENT_TUNER,4,2 ## @DVB_FRONTEND_COMPONENT_TUNER
	.no_dead_strip	_tda827xa_lna_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda827xa_lna_gain
_tda827xa_lna_gain:                     ; @tda827xa_lna_gain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0, #8]
	mov	w8, #290
	strh	w8, [sp, #30]
	add	x8, sp, #30
	str	x8, [sp]
	mov	w8, #2
	str	w8, [sp, #8]
	str	wzr, [sp, #16]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w9, [x8, #4]
	str	w9, [sp, #12]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x0, x9, x8, eq
	bl	_dprintk
LBB0_3:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	sub	w9, w8, #130
	cmp	w9, #2
	b.hs	LBB0_9
; %bb.4:
	cbz	x21, LBB0_13
; %bb.5:
	ldr	w9, [x21]
Lloh4:
	adrp	x10, _V4L2_STD_MN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _V4L2_STD_MN@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w3, ne
	mov	w2, #1
	ldr	x9, [x20]
	cbz	x9, LBB0_7
LBB0_6:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _DVB_FRONTEND_COMPONENT_TUNER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DVB_FRONTEND_COMPONENT_TUNER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	blr	x9
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
LBB0_7:
	cmp	w19, #0
	cset	w9, eq
	cmp	w8, #131
	cset	w8, eq
	eor	w8, w9, w8
	strb	w8, [sp, #31]
	mov	x1, sp
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_transfer
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	b	LBB0_12
LBB0_9:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x9, [x22]
	ldr	w0, [x9]
Lloh12:
	adrp	x9, _DVB_FRONTEND_COMPONENT_TUNER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DVB_FRONTEND_COMPONENT_TUNER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	w2, #0
	mov	x3, x19
	blr	x8
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w3, #0
	mov	w2, #0
	ldr	x9, [x20]
	cbnz	x9, LBB0_6
	b	LBB0_7
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda827x_config not defined, cannot set LNA gain!\n"

l_.str.1:                               ; @.str.1
	.asciz	"setting LNA to high gain\n"

l_.str.2:                               ; @.str.2
	.asciz	"setting LNA to low gain\n"

	.comm	_V4L2_STD_MN,4,2                ; @V4L2_STD_MN
	.comm	_DVB_FRONTEND_COMPONENT_TUNER,4,2 ; @DVB_FRONTEND_COMPONENT_TUNER
	.no_dead_strip	_tda827xa_lna_gain
.subsections_via_symbols
