	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_calibrate_rf
_tda18271_calibrate_rf:                 ## @tda18271_calibrate_rf
	.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	%rdi, %rbx
	movl	%esi, -44(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_R_EP4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	andb	$-4, (%r15,%rax)
	movq	(%rcx), %rsi
	movq	%rcx, %r13
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EP3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orb	$64, (%r15,%rax)
	movq	_R_EB18@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	orb	$3, (%r15,%rax)
	movq	(%rcx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_bp_filter
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_gain_taper
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_rf_band
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_km
	movq	_R_EP1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_tda18271_write_regs
	movq	_R_EB13@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_TDA18271_MAIN_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_charge_pump_source
	movq	_TDA18271_CAL_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_charge_pump_source
	movq	_R_EB14@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movb	$0, (%r15,%rax)
	movq	(%rcx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB20@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	andb	$-33, (%r15,%rax)
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%r13), %rax
	orb	$3, (%r15,%rax)
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_tda18271_write_regs
	movl	-44(%rbp), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_tda18271_calc_cal_pll
	movq	_R_CPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_tda18271_write_regs
	addl	$1000000, %r14d                 ## imm = 0xF4240
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_tda18271_calc_main_pll
	movq	_R_MPD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_tda18271_write_regs
	movl	$5, %edi
	callq	_msleep
	movq	_R_EP2@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EP1@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_TDA18271_MAIN_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tda18271_charge_pump_source
	movq	_TDA18271_CAL_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tda18271_charge_pump_source
	movl	$10, %edi
	callq	_msleep
	movq	(%r12), %rax
	orb	$32, (%r15,%rax)
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	$60, %edi
	callq	_msleep
	movq	_R_EP4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andb	$-4, (%r15,%rax)
	movq	_R_EP3@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	andb	$-65, (%r15,%rax)
	movq	_R_EB18@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	andb	$-4, (%r15,%rax)
	movq	(%rcx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_tda18271_write_regs
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	%rbx, %rdi
	callq	_tda18271_read_extended
	movq	_R_EB14@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%r15,%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_EP4,8,3                      ## @R_EP4
	.comm	_R_EP3,8,3                      ## @R_EP3
	.comm	_R_EB18,8,3                     ## @R_EB18
	.comm	_R_EP1,8,3                      ## @R_EP1
	.comm	_R_EB13,8,3                     ## @R_EB13
	.comm	_TDA18271_MAIN_PLL,4,2          ## @TDA18271_MAIN_PLL
	.comm	_TDA18271_CAL_PLL,4,2           ## @TDA18271_CAL_PLL
	.comm	_R_EB14,8,3                     ## @R_EB14
	.comm	_R_EB20,8,3                     ## @R_EB20
	.comm	_R_CPD,8,3                      ## @R_CPD
	.comm	_R_MPD,8,3                      ## @R_MPD
	.comm	_R_EP2,8,3                      ## @R_EP2
	.no_dead_strip	_tda18271_calibrate_rf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_calibrate_rf
_tda18271_calibrate_rf:                 ; @tda18271_calibrate_rf
	.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	x19, x0
	str	w1, [sp, #12]
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x23, _R_EP4@GOTPAGE
Lloh1:
	ldr	x23, [x23, _R_EP4@GOTPAGEOFF]
	ldr	x8, [x23]
	ldrb	w9, [x21, x8]
	and	w9, w9, #0xfc
	strb	w9, [x21, x8]
	ldr	x1, [x23]
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh2:
	adrp	x8, _R_EP3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_EP3@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrb	w9, [x21, x8]
	orr	w9, w9, #0x40
	strb	w9, [x21, x8]
Lloh5:
	adrp	x24, _R_EB18@GOTPAGE
Lloh6:
	ldr	x24, [x24, _R_EB18@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrb	w9, [x21, x8]
	orr	w9, w9, #0x3
	strb	w9, [x21, x8]
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_bp_filter
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_gain_taper
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_rf_band
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_km
Lloh7:
	adrp	x25, _R_EP1@GOTPAGE
Lloh8:
	ldr	x25, [x25, _R_EP1@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #3
	bl	_tda18271_write_regs
Lloh9:
	adrp	x8, _R_EB13@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R_EB13@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh12:
	adrp	x27, _TDA18271_MAIN_PLL@GOTPAGE
Lloh13:
	ldr	x27, [x27, _TDA18271_MAIN_PLL@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_charge_pump_source
Lloh14:
	adrp	x28, _TDA18271_CAL_PLL@GOTPAGE
Lloh15:
	ldr	x28, [x28, _TDA18271_CAL_PLL@GOTPAGEOFF]
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_charge_pump_source
Lloh16:
	adrp	x26, _R_EB14@GOTPAGE
Lloh17:
	ldr	x26, [x26, _R_EB14@GOTPAGEOFF]
	ldr	x8, [x26]
	strb	wzr, [x21, x8]
	ldr	x1, [x26]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh18:
	adrp	x22, _R_EB20@GOTPAGE
Lloh19:
	ldr	x22, [x22, _R_EB20@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrb	w9, [x21, x8]
	and	w9, w9, #0xffffffdf
	strb	w9, [x21, x8]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x8, [x23]
	ldrb	w9, [x21, x8]
	orr	w9, w9, #0x3
	strb	w9, [x21, x8]
	ldr	x1, [x23]
	mov	x0, x19
	mov	w2, #2
	bl	_tda18271_write_regs
	ldr	w20, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_tda18271_calc_cal_pll
Lloh20:
	adrp	x8, _R_CPD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_CPD@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_tda18271_write_regs
	add	w8, w20, #244, lsl #12          ; =999424
	add	w1, w8, #576
	mov	x0, x19
	bl	_tda18271_calc_main_pll
Lloh23:
	adrp	x8, _R_MPD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R_MPD@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_tda18271_write_regs
	mov	w0, #5
	bl	_msleep
Lloh26:
	adrp	x20, _R_EP2@GOTPAGE
Lloh27:
	ldr	x20, [x20, _R_EP2@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	w1, [x27]
	mov	x0, x19
	mov	w2, #0
	bl	_tda18271_charge_pump_source
	ldr	w1, [x28]
	mov	x0, x19
	mov	w2, #0
	bl	_tda18271_charge_pump_source
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x22]
	ldrb	w9, [x21, x8]
	orr	w9, w9, #0x20
	strb	w9, [x21, x8]
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	w0, #60
	bl	_msleep
	ldr	x8, [x23]
	ldrb	w9, [x21, x8]
	and	w9, w9, #0xfc
	strb	w9, [x21, x8]
Lloh28:
	adrp	x20, _R_EP3@GOTPAGE
Lloh29:
	ldr	x20, [x20, _R_EP3@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrb	w9, [x21, x8]
	and	w9, w9, #0xffffffbf
	strb	w9, [x21, x8]
	ldr	x8, [x24]
	ldrb	w9, [x21, x8]
	and	w9, w9, #0xfc
	strb	w9, [x21, x8]
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_tda18271_write_regs
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x0, x19
	bl	_tda18271_read_extended
	ldr	x8, [x26]
	ldrb	w0, [x21, x8]
	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	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R_EP4,8,3                      ; @R_EP4
	.comm	_R_EP3,8,3                      ; @R_EP3
	.comm	_R_EB18,8,3                     ; @R_EB18
	.comm	_R_EP1,8,3                      ; @R_EP1
	.comm	_R_EB13,8,3                     ; @R_EB13
	.comm	_TDA18271_MAIN_PLL,4,2          ; @TDA18271_MAIN_PLL
	.comm	_TDA18271_CAL_PLL,4,2           ; @TDA18271_CAL_PLL
	.comm	_R_EB14,8,3                     ; @R_EB14
	.comm	_R_EB20,8,3                     ; @R_EB20
	.comm	_R_CPD,8,3                      ; @R_CPD
	.comm	_R_MPD,8,3                      ; @R_MPD
	.comm	_R_EP2,8,3                      ; @R_EP2
	.no_dead_strip	_tda18271_calibrate_rf
.subsections_via_symbols
