	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_channel_configuration
_tda18271_channel_configuration:        ## @tda18271_channel_configuration
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, -48(%rbp)
	movq	(%rdi), %r13
	movq	(%r13), %rbx
	movq	_R_EP3@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	andb	$-32, (%rbx,%rax)
	movl	(%rsi), %eax
	shll	$3, %eax
	orl	4(%rsi), %eax
	movq	(%rdx), %rcx
	orb	%al, (%rbx,%rcx)
	movq	8(%r13), %rax
	movq	_TDA18271HDC2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rdx), %rax
	andb	$-5, (%rbx,%rax)
LBB0_2:
	movq	_R_EP4@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	andb	$-4, (%rbx,%rcx)
	movq	(%rax), %rcx
	andb	$-29, (%rbx,%rcx)
	movb	8(%r15), %cl
	movq	(%rax), %rdx
	shlb	$2, %cl
	orb	%cl, (%rbx,%rdx)
	movq	(%rax), %rcx
	andb	$127, (%rbx,%rcx)
	movb	12(%r15), %cl
	movq	(%rax), %rax
	shlb	$7, %cl
	orb	%cl, (%rbx,%rax)
	movq	_R_EB22@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movb	$0, (%rbx,%rcx)
	movb	16(%r15), %cl
	movq	(%rax), %rdx
	orb	%cl, (%rbx,%rdx)
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.3:
	movq	_R_EP1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orb	$64, (%rbx,%rax)
	movq	_R_TM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andb	$-17, (%rbx,%rax)
	leaq	-48(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tda18271_calc_ir_measure
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tda18271_calc_bp_filter
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tda18271_calc_rf_band
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_tda18271_calc_gain_taper
	movl	16(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	movq	_R_EB1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orb	$4, (%rbx,%rax)
	jmp	LBB0_7
LBB0_6:
	movq	_R_EB1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andb	$-5, (%rbx,%rax)
LBB0_7:
	movq	_R_EB1@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	andb	$-3, (%rbx,%rcx)
	movq	(%rax), %rcx
	andb	$-2, (%rbx,%rcx)
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.8:
	movslq	20(%r15), %rax
	imulq	$1000, %rax, %rsi               ## imm = 0x3E8
	addq	-48(%rbp), %rsi
	movl	16(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_tda18271_calc_main_pll
	movl	$4, %r12d
	jmp	LBB0_12
LBB0_11:
	movq	%r14, %rdi
	callq	_tda18271_calc_cal_pll
	movq	_R_CPD@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_tda18271_write_regs
	movq	(%r12), %rax
	movb	(%rbx,%rax), %al
	andb	$127, %al
	movq	_R_MPD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%rbx,%rcx)
	movl	$1, %r12d
LBB0_12:
	movq	%r14, %rdi
	callq	_tda18271_set_if_notch
	movq	_R_MPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_tda18271_write_regs
LBB0_13:
	movq	_R_TM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_tda18271_write_regs
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_charge_pump_source
	movl	$1, %edi
	callq	_msleep
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_charge_pump_source
	movl	$20, %edi
	callq	_msleep
	movq	8(%r13), %rax
	movq	_TDA18271HDC2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	cmpl	$0, 12(%r15)
	sete	%al
	movq	_R_EP3@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movb	(%rbx,%rcx), %dl
	andb	$-5, %dl
	shlb	$2, %al
	orb	%dl, %al
	movb	%al, (%rbx,%rcx)
	movq	(%rsi), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	%eax, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_EP3,8,3                      ## @R_EP3
	.comm	_TDA18271HDC2,8,3               ## @TDA18271HDC2
	.comm	_R_EP4,8,3                      ## @R_EP4
	.comm	_R_EB22,8,3                     ## @R_EB22
	.comm	_R_EP1,8,3                      ## @R_EP1
	.comm	_R_TM,8,3                       ## @R_TM
	.comm	_R_EB1,8,3                      ## @R_EB1
	.comm	_R_MPD,8,3                      ## @R_MPD
	.comm	_R_CPD,8,3                      ## @R_CPD
	.no_dead_strip	_tda18271_channel_configuration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_channel_configuration
_tda18271_channel_configuration:        ; @tda18271_channel_configuration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	str	x2, [sp, #8]
	ldr	x24, [x0]
	ldr	x22, [x24]
Lloh0:
	adrp	x23, _R_EP3@GOTPAGE
Lloh1:
	ldr	x23, [x23, _R_EP3@GOTPAGEOFF]
	ldr	x8, [x23]
	ldrb	w9, [x22, x8]
	and	w9, w9, #0xe0
	strb	w9, [x22, x8]
	ldp	w8, w9, [x1]
	orr	w8, w9, w8, lsl #3
	ldr	x9, [x23]
	ldrb	w10, [x22, x9]
	orr	w8, w10, w8
	strb	w8, [x22, x9]
	ldr	x8, [x24, #8]
Lloh2:
	adrp	x25, _TDA18271HDC2@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TDA18271HDC2@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x23]
	ldrb	w9, [x22, x8]
	and	w9, w9, #0xfffffffb
	strb	w9, [x22, x8]
LBB0_2:
Lloh4:
	adrp	x8, _R_EP4@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R_EP4@GOTPAGEOFF]
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	and	w10, w10, #0xfc
	strb	w10, [x22, x9]
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	and	w10, w10, #0xffffffe3
	strb	w10, [x22, x9]
	ldrb	w9, [x20, #8]
	ldr	x10, [x8]
	ldrb	w11, [x22, x10]
	orr	w9, w11, w9, lsl #2
	strb	w9, [x22, x10]
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	and	w10, w10, #0x7f
	strb	w10, [x22, x9]
	ldr	x8, [x8]
	ldrb	w9, [x22, x8]
	ldrb	w10, [x20, #12]
	orr	w9, w9, w10, lsl #7
	strb	w9, [x22, x8]
Lloh6:
	adrp	x8, _R_EB22@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_EB22@GOTPAGEOFF]
	ldr	x9, [x8]
	strb	wzr, [x22, x9]
	ldrb	w9, [x20, #16]
	ldr	x10, [x8]
	ldrb	w11, [x22, x10]
	orr	w9, w11, w9
	strb	w9, [x22, x10]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x21, x0
	bl	_tda_fail
	cbnz	x0, LBB0_17
; %bb.3:
Lloh8:
	adrp	x8, _R_EP1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R_EP1@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldrb	w9, [x22, x8]
	orr	w9, w9, #0x40
	strb	w9, [x22, x8]
Lloh11:
	adrp	x26, _R_TM@GOTPAGE
Lloh12:
	ldr	x26, [x26, _R_TM@GOTPAGEOFF]
	ldr	x8, [x26]
	ldrb	w9, [x22, x8]
	and	w9, w9, #0xffffffef
	strb	w9, [x22, x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_tda18271_calc_ir_measure
	add	x1, sp, #8
	mov	x0, x19
	bl	_tda18271_calc_bp_filter
	add	x1, sp, #8
	mov	x0, x19
	bl	_tda18271_calc_rf_band
	add	x1, sp, #8
	mov	x0, x19
	bl	_tda18271_calc_gain_taper
	ldr	w9, [x24, #16]
Lloh13:
	adrp	x8, _R_EB1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _R_EB1@GOTPAGEOFF]
	cmp	w9, #128
	b.eq	LBB0_6
; %bb.4:
	cmp	w9, #129
	b.ne	LBB0_8
; %bb.5:
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	orr	w10, w10, #0x4
	b	LBB0_7
LBB0_6:
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	and	w10, w10, #0xfffffffb
LBB0_7:
	strb	w10, [x22, x9]
LBB0_8:
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	and	w10, w10, #0xfffffffd
	strb	w10, [x22, x9]
	ldr	x9, [x8]
	ldrb	w10, [x22, x9]
	and	w10, w10, #0xfe
	strb	w10, [x22, x9]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x21, x0
	bl	_tda_fail
	cbnz	x0, LBB0_17
; %bb.9:
	ldrsw	x8, [x20, #20]
	mov	w9, #1000
	ldr	x10, [sp, #8]
	madd	x1, x8, x9, x10
	ldr	w8, [x24, #16]
Lloh15:
	adrp	x27, _R_MPD@GOTPAGE
Lloh16:
	ldr	x27, [x27, _R_MPD@GOTPAGEOFF]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_tda18271_calc_main_pll
	mov	w21, #4
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_tda18271_calc_cal_pll
Lloh17:
	adrp	x21, _R_CPD@GOTPAGE
Lloh18:
	ldr	x21, [x21, _R_CPD@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	mov	w2, #4
	bl	_tda18271_write_regs
	ldr	x8, [x21]
	ldrb	w8, [x22, x8]
	and	w8, w8, #0x7f
	ldr	x9, [x27]
	strb	w8, [x22, x9]
	mov	w21, #1
LBB0_13:
	mov	x0, x19
	bl	_tda18271_set_if_notch
	ldr	x1, [x27]
	mov	x0, x19
	mov	x2, x21
	bl	_tda18271_write_regs
LBB0_14:
	ldr	x1, [x26]
	mov	x0, x19
	mov	w2, #7
	bl	_tda18271_write_regs
	mov	x21, x0
	bl	_tda_fail
	cbnz	x0, LBB0_17
; %bb.15:
	mov	x0, x19
	mov	w1, #1
	bl	_charge_pump_source
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #0
	bl	_charge_pump_source
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x24, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:
	ldr	w8, [x20, #12]
	cmp	w8, #0
	ldr	x8, [x23]
	ldrb	w9, [x22, x8]
	cset	w10, eq
	and	w9, w9, #0xfffffffb
	orr	w9, w9, w10, lsl #2
	strb	w9, [x22, x8]
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x21, x0
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_R_EP3,8,3                      ; @R_EP3
	.comm	_TDA18271HDC2,8,3               ; @TDA18271HDC2
	.comm	_R_EP4,8,3                      ; @R_EP4
	.comm	_R_EB22,8,3                     ; @R_EB22
	.comm	_R_EP1,8,3                      ; @R_EP1
	.comm	_R_TM,8,3                       ; @R_TM
	.comm	_R_EB1,8,3                      ; @R_EB1
	.comm	_R_MPD,8,3                      ; @R_MPD
	.comm	_R_CPD,8,3                      ; @R_CPD
	.no_dead_strip	_tda18271_channel_configuration
.subsections_via_symbols
