	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plla_set_config                ## -- Begin function plla_set_config
	.p2align	4, 0x90
_plla_set_config:                       ## @plla_set_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_PLL_LOW_FREQ@GOTPCREL(%rip), %rcx
	movl	%edi, %eax
	subl	(%rcx), %eax
	movq	_PLL_FREQ_STEP@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	_C_PLL_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jle	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_debug
	xorl	%r15d, %r15d
LBB0_3:
	movq	_C_PLL_CONFIG@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r15d, %eax
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	addq	%rax, %rbx
	movl	(%r14,%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	24(%r14,%rbx), %edi
	movl	20(%r14,%rbx), %esi
	movl	16(%r14,%rbx), %edx
	movl	12(%r14,%rbx), %ecx
	movl	4(%r14,%rbx), %r9d
	movl	8(%r14,%rbx), %r8d
	callq	_plla_configure
	movl	(%r14,%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_LOW_FREQ,4,2               ## @PLL_LOW_FREQ
	.comm	_PLL_FREQ_STEP,4,2              ## @PLL_FREQ_STEP
	.comm	_C_PLL_CONFIG,8,3               ## @C_PLL_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Freq %d MHz out of range, default to lowest\n"

L_.str.1:                               ## @.str.1
	.asciz	"Attempting to set PLLA to %d MHz ...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_plla_set_config                ; -- Begin function plla_set_config
	.p2align	2
_plla_set_config:                       ; @plla_set_config
	.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, _PLL_LOW_FREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLL_LOW_FREQ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w0, w8
Lloh3:
	adrp	x9, _PLL_FREQ_STEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLL_FREQ_STEP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w21, w8, w9
Lloh6:
	adrp	x20, _C_PLL_CONFIG@GOTPAGE
Lloh7:
	ldr	x20, [x20, _C_PLL_CONFIG@GOTPAGEOFF]
	tbnz	w21, #31, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.le	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debug
	mov	w21, #0
LBB0_3:
	ldr	x8, [x20]
	mov	w9, #28
	umaddl	x19, w21, w9, x8
	ldr	w1, [x19]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldp	w1, w0, [x19, #20]
	ldp	w3, w2, [x19, #12]
	ldp	w5, w4, [x19, #4]
	bl	_plla_configure
	ldr	w0, [x19]
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_LOW_FREQ,4,2               ; @PLL_LOW_FREQ
	.comm	_PLL_FREQ_STEP,4,2              ; @PLL_FREQ_STEP
	.comm	_C_PLL_CONFIG,8,3               ; @C_PLL_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Freq %d MHz out of range, default to lowest\n"

l_.str.1:                               ; @.str.1
	.asciz	"Attempting to set PLLA to %d MHz ...\n"

.subsections_via_symbols
