	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_tda827x_fe
_configure_tda827x_fe:                  ## @configure_tda827x_fe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	addq	$4, %rdi
	movl	$1, %esi
	callq	_vb2_dvb_get_frontend
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_tda10046_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r13d, %r13d
	movq	%r15, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpq	$0, 8(%r15)
	je	LBB0_5
## %bb.4:
	movq	_tda8290_i2c_gate_ctrl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	movq	_tda827x_attach@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r15), %edx
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	movq	%r12, %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_dvb_attach
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tda10046_attach,4,2            ## @tda10046_attach
	.comm	_tda8290_i2c_gate_ctrl,4,2      ## @tda8290_i2c_gate_ctrl
	.comm	_tda827x_attach,4,2             ## @tda827x_attach
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no tda827x tuner found at addr: %02x\n"

	.no_dead_strip	_configure_tda827x_fe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_tda827x_fe
_configure_tda827x_fe:                  ; @configure_tda827x_fe
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, x0, #4
	mov	w1, #1
	bl	_vb2_dvb_get_frontend
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _tda10046_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tda10046_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	stp	x19, x21, [sp]
	bl	_dvb_attach
	str	x0, [x22]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _tda8290_i2c_gate_ctrl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tda8290_i2c_gate_ctrl@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_4:
Lloh6:
	adrp	x8, _tda827x_attach@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tda827x_attach@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	x21, x20, [sp, #16]
	stp	x0, x9, [sp]
	mov	x0, x8
	bl	_dvb_attach
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	ldr	w1, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tda10046_attach,4,2            ; @tda10046_attach
	.comm	_tda8290_i2c_gate_ctrl,4,2      ; @tda8290_i2c_gate_ctrl
	.comm	_tda827x_attach,4,2             ; @tda827x_attach
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no tda827x tuner found at addr: %02x\n"

	.no_dead_strip	_configure_tda827x_fe
.subsections_via_symbols
