	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vclock_hisilicon
_set_vclock_hisilicon:                  ## @set_vclock_hisilicon
	.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	%rsi, %r14
	movq	(%rdi), %r15
	movq	_CRT_PLL1_HS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_CRT_PLL1_HS_OUTER_BYPASS
	notq	%rax
	andq	%rax, %rbx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movl	$1, %edi
	callq	_CRT_PLL1_HS_INTER_BYPASS
	movq	%rax, %rbx
	movl	$1, %edi
	callq	_CRT_PLL1_HS_POWERON
	orq	%rax, %rbx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_writel
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	$1, %edi
	callq	_CRT_PLL1_HS_POWERON
	notq	%rax
	andq	%rax, %r14
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	$1, %edi
	callq	_CRT_PLL1_HS_INTER_BYPASS
	notq	%rax
	andq	%rax, %r14
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_writel
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	$1, %edi
	callq	_CRT_PLL1_HS_OUTER_BYPASS
	orq	%rax, %r14
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CRT_PLL1_HS,8,3                ## @CRT_PLL1_HS
	.no_dead_strip	_set_vclock_hisilicon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_vclock_hisilicon
_set_vclock_hisilicon:                  ; @set_vclock_hisilicon
	.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, x1
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x22, _CRT_PLL1_HS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CRT_PLL1_HS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	mov	w0, #1
	bl	_CRT_PLL1_HS_OUTER_BYPASS
	bic	x0, x20, x0
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #1
	bl	_CRT_PLL1_HS_INTER_BYPASS
	mov	x20, x0
	mov	w0, #1
	bl	_CRT_PLL1_HS_POWERON
	orr	x0, x0, x20
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	w0, #1
	bl	_CRT_PLL1_HS_POWERON
	bic	x19, x19, x0
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	w0, #1
	bl	_CRT_PLL1_HS_INTER_BYPASS
	bic	x19, x19, x0
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_writel
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	mov	w0, #1
	bl	_CRT_PLL1_HS_OUTER_BYPASS
	orr	x0, x0, x19
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, 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	_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CRT_PLL1_HS,8,3                ; @CRT_PLL1_HS
	.no_dead_strip	_set_vclock_hisilicon
.subsections_via_symbols
