	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc_set_syspllparam
_tc_set_syspllparam:                    ## @tc_set_syspllparam
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_SYSCLK_SEL_LSCLK@GOTPCREL(%rip), %rax
	movq	_LSCLK_DIV_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movl	8(%rdi), %edi
	callq	_clk_get_rate
	cmpq	$25999999, %rax                 ## imm = 0x18CBA7F
	jg	LBB0_4
## %bb.1:
	cmpq	$13000000, %rax                 ## imm = 0xC65D40
	je	LBB0_9
## %bb.2:
	cmpq	$19200000, %rax                 ## imm = 0x124F800
	jne	LBB0_8
## %bb.3:
	movq	_REF_FREQ_19M2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	cmpq	$38400000, %rax                 ## imm = 0x249F000
	je	LBB0_5
## %bb.6:
	cmpq	$26000000, %rax                 ## imm = 0x18CBA80
	jne	LBB0_8
## %bb.7:
	movq	_REF_FREQ_26M@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_REF_FREQ_13M@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_REF_FREQ_38M4@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %ebx
	movl	(%r14), %edi
	movq	_SYS_PLLPARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCLK_SEL_LSCLK,4,2           ## @SYSCLK_SEL_LSCLK
	.comm	_LSCLK_DIV_2,4,2                ## @LSCLK_DIV_2
	.comm	_REF_FREQ_38M4,4,2              ## @REF_FREQ_38M4
	.comm	_REF_FREQ_26M,4,2               ## @REF_FREQ_26M
	.comm	_REF_FREQ_19M2,4,2              ## @REF_FREQ_19M2
	.comm	_REF_FREQ_13M,4,2               ## @REF_FREQ_13M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid refclk rate: %lu Hz\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SYS_PLLPARAM,4,2               ## @SYS_PLLPARAM
	.no_dead_strip	_tc_set_syspllparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc_set_syspllparam
_tc_set_syspllparam:                    ; @tc_set_syspllparam
	.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	x19, x0
Lloh0:
	adrp	x8, _SYSCLK_SEL_LSCLK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYSCLK_SEL_LSCLK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _LSCLK_DIV_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LSCLK_DIV_2@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	w0, [x0, #8]
	bl	_clk_get_rate
	mov	x2, x0
	mov	w8, #47743
	movk	w8, #396, lsl #16
	cmp	x0, x8
	b.gt	LBB0_4
; %bb.1:
	mov	w8, #23872
	movk	w8, #198, lsl #16
	cmp	x2, x8
	b.eq	LBB0_8
; %bb.2:
	mov	w8, #63488
	movk	w8, #292, lsl #16
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _REF_FREQ_19M2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REF_FREQ_19M2@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	mov	w8, #61440
	movk	w8, #585, lsl #16
	cmp	x2, x8
	b.eq	LBB0_9
; %bb.5:
	mov	w8, #47744
	movk	w8, #396, lsl #16
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _REF_FREQ_26M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REF_FREQ_26M@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_8:
Lloh15:
	adrp	x8, _REF_FREQ_13M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REF_FREQ_13M@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh17:
	adrp	x8, _REF_FREQ_38M4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REF_FREQ_38M4@GOTPAGEOFF]
LBB0_10:
	orr	w9, w21, w20
	ldr	w8, [x8]
	orr	w2, w9, w8
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _SYS_PLLPARAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SYS_PLLPARAM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	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
	b	_regmap_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCLK_SEL_LSCLK,4,2           ; @SYSCLK_SEL_LSCLK
	.comm	_LSCLK_DIV_2,4,2                ; @LSCLK_DIV_2
	.comm	_REF_FREQ_38M4,4,2              ; @REF_FREQ_38M4
	.comm	_REF_FREQ_26M,4,2               ; @REF_FREQ_26M
	.comm	_REF_FREQ_19M2,4,2              ; @REF_FREQ_19M2
	.comm	_REF_FREQ_13M,4,2               ; @REF_FREQ_13M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid refclk rate: %lu Hz\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SYS_PLLPARAM,4,2               ; @SYS_PLLPARAM
	.no_dead_strip	_tc_set_syspllparam
.subsections_via_symbols
