	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mn88443x_t_set_freq
_mn88443x_t_set_freq:                   ## @mn88443x_t_set_freq
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	16(%rdi), %r15
	movl	(%rdi), %eax
	movq	_CLK_LOW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_3
## %bb.1:
	movq	_CLK_DIRECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
## %bb.2:
	movl	$1, 4(%rbx)
	movq	_CLKSET1_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$7, %edx
	callq	_regmap_write
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_3:
	movl	$0, 4(%rbx)
	movq	_CLKSET1_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	(%rbx), %r12d
LBB0_4:
	movq	8(%rbx), %rsi
	movl	%r12d, %edi
	callq	_mn88443x_t_is_valid_clk
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	8(%rbx), %rax
	movq	_DIRECT_IF_57MHZ@GOTPCREL(%rip), %rcx
	movq	_DIRECT_IF_44MHZ@GOTPCREL(%rip), %rdx
	leal	(%r12,%r12), %esi
	xorl	%r14d, %r14d
	cmpq	(%rdx), %rax
	movl	$0, %edi
	cmovel	%esi, %edi
	cmpq	(%rcx), %rax
	cmovel	%esi, %edi
	subl	%eax, %edi
	shll	$24, %edi
	movl	%r12d, %esi
	callq	_div_s64
	movl	%eax, %ebx
	shll	$22, %r12d
	movq	_S_T_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_div_s64
	movl	%eax, %r12d
	movq	_NCOFREQU_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	sarl	$16, %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_NCOFREQM_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	sarl	$8, %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_NCOFREQL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_regmap_write
	movq	_FADU_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	sarl	$16, %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_FADM_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	sarl	$8, %edx
	movq	%r15, %rdi
	callq	_regmap_write
	movq	_FADL_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_regmap_write
	movq	_ADCSET1_T_REFSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADCSET1_T_REFSEL_1_5V@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ADCSET1_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_regmap_update_bits
	movq	_AGCSET2_T_IFPOLINV_INC@GOTPCREL(%rip), %rax
	movq	_AGCSET2_T_RFPOLINV_INC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AGCSET2_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ecx, %edx
	callq	_regmap_update_bits
	movq	_AGCV3_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	_MDSET_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$250, %edx
	callq	_regmap_write
	jmp	LBB0_7
LBB0_5:
	movl	(%rbx), %edx
	movq	8(%rbx), %r8
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK_LOW,4,2                    ## @CLK_LOW
	.comm	_CLK_DIRECT,4,2                 ## @CLK_DIRECT
	.comm	_CLKSET1_T,4,2                  ## @CLKSET1_T
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid clock, CLK:%d, ADCKT:%lld, IF:%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DIRECT_IF_57MHZ,8,3            ## @DIRECT_IF_57MHZ
	.comm	_DIRECT_IF_44MHZ,8,3            ## @DIRECT_IF_44MHZ
	.comm	_S_T_FREQ,4,2                   ## @S_T_FREQ
	.comm	_NCOFREQU_T,4,2                 ## @NCOFREQU_T
	.comm	_NCOFREQM_T,4,2                 ## @NCOFREQM_T
	.comm	_NCOFREQL_T,4,2                 ## @NCOFREQL_T
	.comm	_FADU_T,4,2                     ## @FADU_T
	.comm	_FADM_T,4,2                     ## @FADM_T
	.comm	_FADL_T,4,2                     ## @FADL_T
	.comm	_ADCSET1_T_REFSEL_MASK,4,2      ## @ADCSET1_T_REFSEL_MASK
	.comm	_ADCSET1_T_REFSEL_1_5V,4,2      ## @ADCSET1_T_REFSEL_1_5V
	.comm	_ADCSET1_T,4,2                  ## @ADCSET1_T
	.comm	_AGCSET2_T_IFPOLINV_INC,4,2     ## @AGCSET2_T_IFPOLINV_INC
	.comm	_AGCSET2_T_RFPOLINV_INC,4,2     ## @AGCSET2_T_RFPOLINV_INC
	.comm	_AGCSET2_T,4,2                  ## @AGCSET2_T
	.comm	_AGCV3_T,4,2                    ## @AGCV3_T
	.comm	_MDSET_T,4,2                    ## @MDSET_T
	.no_dead_strip	_mn88443x_t_set_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mn88443x_t_set_freq
_mn88443x_t_set_freq:                   ; @mn88443x_t_set_freq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	ldp	x19, x20, [x0, #16]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CLK_LOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLK_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _CLK_DIRECT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CLK_DIRECT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.lt	LBB0_2
; %bb.1:
	str	wzr, [x21, #4]
Lloh6:
	adrp	x8, _CLKSET1_T@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLKSET1_T@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_regmap_write
	ldr	w22, [x21]
	b	LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [x21, #4]
Lloh9:
	adrp	x8, _CLKSET1_T@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CLKSET1_T@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7
	bl	_regmap_write
	mov	w22, #0
LBB0_3:
	ldr	x1, [x21, #8]
	mov	x0, x22
	bl	_mn88443x_t_is_valid_clk
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _DIRECT_IF_57MHZ@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DIRECT_IF_57MHZ@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _DIRECT_IF_44MHZ@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DIRECT_IF_44MHZ@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	lsl	w9, w22, #1
	csel	w9, w9, wzr, eq
	sub	w8, w9, w8
	lsl	w0, w8, #24
	mov	x1, x22
	bl	_div_s64
	mov	x20, x0
	lsl	w0, w22, #22
Lloh18:
	adrp	x8, _S_T_FREQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_T_FREQ@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_div_s64
	mov	x21, x0
Lloh21:
	adrp	x8, _NCOFREQU_T@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NCOFREQU_T@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	asr	w2, w20, #16
	mov	x0, x19
	bl	_regmap_write
Lloh24:
	adrp	x8, _NCOFREQM_T@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NCOFREQM_T@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	asr	w2, w20, #8
	mov	x0, x19
	bl	_regmap_write
Lloh27:
	adrp	x8, _NCOFREQL_T@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NCOFREQL_T@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_regmap_write
Lloh30:
	adrp	x8, _FADU_T@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FADU_T@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	asr	w2, w21, #16
	mov	x0, x19
	bl	_regmap_write
Lloh33:
	adrp	x8, _FADM_T@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FADM_T@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	asr	w2, w21, #8
	mov	x0, x19
	bl	_regmap_write
Lloh36:
	adrp	x8, _FADL_T@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FADL_T@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_regmap_write
Lloh39:
	adrp	x8, _ADCSET1_T_REFSEL_MASK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ADCSET1_T_REFSEL_MASK@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _ADCSET1_T_REFSEL_1_5V@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ADCSET1_T_REFSEL_1_5V@GOTPAGEOFF]
Lloh44:
	ldr	w3, [x8]
Lloh45:
	adrp	x8, _ADCSET1_T@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ADCSET1_T@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regmap_update_bits
Lloh48:
	adrp	x8, _AGCSET2_T_IFPOLINV_INC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AGCSET2_T_IFPOLINV_INC@GOTPAGEOFF]
Lloh50:
	adrp	x9, _AGCSET2_T_RFPOLINV_INC@GOTPAGE
Lloh51:
	ldr	x9, [x9, _AGCSET2_T_RFPOLINV_INC@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh54:
	adrp	x8, _AGCSET2_T@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AGCSET2_T@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x3, x2
	bl	_regmap_update_bits
Lloh57:
	adrp	x8, _AGCV3_T@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AGCV3_T@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_regmap_write
Lloh60:
	adrp	x8, _MDSET_T@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MDSET_T@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #250
	bl	_regmap_write
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w2, [x21]
	ldr	x4, [x21, #8]
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_dev_err
Lloh65:
	adrp	x8, _EINVAL@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK_LOW,4,2                    ; @CLK_LOW
	.comm	_CLK_DIRECT,4,2                 ; @CLK_DIRECT
	.comm	_CLKSET1_T,4,2                  ; @CLKSET1_T
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid clock, CLK:%d, ADCKT:%lld, IF:%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DIRECT_IF_57MHZ,8,3            ; @DIRECT_IF_57MHZ
	.comm	_DIRECT_IF_44MHZ,8,3            ; @DIRECT_IF_44MHZ
	.comm	_S_T_FREQ,4,2                   ; @S_T_FREQ
	.comm	_NCOFREQU_T,4,2                 ; @NCOFREQU_T
	.comm	_NCOFREQM_T,4,2                 ; @NCOFREQM_T
	.comm	_NCOFREQL_T,4,2                 ; @NCOFREQL_T
	.comm	_FADU_T,4,2                     ; @FADU_T
	.comm	_FADM_T,4,2                     ; @FADM_T
	.comm	_FADL_T,4,2                     ; @FADL_T
	.comm	_ADCSET1_T_REFSEL_MASK,4,2      ; @ADCSET1_T_REFSEL_MASK
	.comm	_ADCSET1_T_REFSEL_1_5V,4,2      ; @ADCSET1_T_REFSEL_1_5V
	.comm	_ADCSET1_T,4,2                  ; @ADCSET1_T
	.comm	_AGCSET2_T_IFPOLINV_INC,4,2     ; @AGCSET2_T_IFPOLINV_INC
	.comm	_AGCSET2_T_RFPOLINV_INC,4,2     ; @AGCSET2_T_RFPOLINV_INC
	.comm	_AGCSET2_T,4,2                  ; @AGCSET2_T
	.comm	_AGCV3_T,4,2                    ; @AGCV3_T
	.comm	_MDSET_T,4,2                    ; @MDSET_T
	.no_dead_strip	_mn88443x_t_set_freq
.subsections_via_symbols
