	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AT91F_SetPLL
_AT91F_SetPLL:                          ## @AT91F_SetPLL
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AT91C_BASE_PMC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_AT91C_BASE_CKGR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, (%rcx)
	movq	_AT91C_PLLA_VALUE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	movq	_AT91C_PMC_SR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_AT91C_PMC_LOCKA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	je	LBB0_1
## %bb.2:
	movl	4(%rcx), %edx
	testb	$28, %dl
	je	LBB0_5
## %bb.3:
	andl	$-29, %edx
	movl	%edx, 4(%rcx)
	movq	_AT91C_PMC_MCKRDY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rax)
	je	LBB0_4
LBB0_5:
	cmpl	$514, %edx                      ## imm = 0x202
	je	LBB0_9
## %bb.6:
	movl	$514, 4(%rcx)                   ## imm = 0x202
	andl	$3, %edx
	cmpl	$2, %edx
	je	LBB0_9
## %bb.7:
	movq	_AT91C_PMC_MCKRDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_9:
	movl	$1, %eax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91C_BASE_PMC,8,3             ## @AT91C_BASE_PMC
	.comm	_AT91C_BASE_CKGR,8,3            ## @AT91C_BASE_CKGR
	.comm	_AT91C_PLLA_VALUE,4,2           ## @AT91C_PLLA_VALUE
	.comm	_AT91C_PMC_SR,8,3               ## @AT91C_PMC_SR
	.comm	_AT91C_PMC_LOCKA,4,2            ## @AT91C_PMC_LOCKA
	.comm	_AT91C_PMC_MCKRDY,4,2           ## @AT91C_PMC_MCKRDY
	.no_dead_strip	_AT91F_SetPLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AT91F_SetPLL
_AT91F_SetPLL:                          ; @AT91F_SetPLL
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AT91C_BASE_PMC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91C_BASE_PMC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AT91C_BASE_CKGR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AT91C_BASE_CKGR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #-1
	str	w10, [x8]
Lloh6:
	adrp	x10, _AT91C_PLLA_VALUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AT91C_PLLA_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	str	w10, [x9]
Lloh9:
	adrp	x9, _AT91C_PMC_SR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AT91C_PMC_SR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w10, [x9]
Lloh12:
	adrp	x11, _AT91C_PMC_LOCKA@GOTPAGE
Lloh13:
	ldr	x11, [x11, _AT91C_PMC_LOCKA@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.1:
	ldr	w10, [x8, #4]
	tst	w10, #0x1c
	b.eq	LBB0_3
; %bb.2:
	and	w10, w10, #0xffffffe3
	str	w10, [x8, #4]
	ldr	w11, [x9]
Lloh15:
	adrp	x12, _AT91C_PMC_MCKRDY@GOTPAGE
Lloh16:
	ldr	x12, [x12, _AT91C_PMC_MCKRDY@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_8
LBB0_3:
	cmp	w10, #514
	b.eq	LBB0_6
; %bb.4:
	mov	w11, #514
	str	w11, [x8, #4]
	and	w8, w10, #0x3
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x9]
Lloh18:
	adrp	x9, _AT91C_PMC_MCKRDY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AT91C_PMC_MCKRDY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_6:
	mov	w0, #1
	ret
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_7
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91C_BASE_PMC,8,3             ; @AT91C_BASE_PMC
	.comm	_AT91C_BASE_CKGR,8,3            ; @AT91C_BASE_CKGR
	.comm	_AT91C_PLLA_VALUE,4,2           ; @AT91C_PLLA_VALUE
	.comm	_AT91C_PMC_SR,8,3               ; @AT91C_PMC_SR
	.comm	_AT91C_PMC_LOCKA,4,2            ; @AT91C_PMC_LOCKA
	.comm	_AT91C_PMC_MCKRDY,4,2           ; @AT91C_PMC_MCKRDY
	.no_dead_strip	_AT91F_SetPLL
.subsections_via_symbols
