	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_devinit_pll_set           ## -- Begin function nv04_devinit_pll_set
	.p2align	4, 0x90
_nv04_devinit_pll_set:                  ## @nv04_devinit_pll_set
	.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
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %r12d
	leal	-4(%rbx), %esi
	cmpl	$16477, %ebx                    ## imm = 0x405D
	cmovgel	%ebx, %esi
	leaq	-40(%rbp), %rdx
	callq	_nvbios_pll_parse
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	leaq	-44(%rbp), %rax
	leaq	-48(%rbp), %r10
	leaq	-40(%rbp), %rsi
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	leaq	-52(%rbp), %r9
	movq	%r14, %rdi
	movl	%r15d, %edx
	pushq	%rax
	pushq	%r10
	callq	_nv04_pll_calc
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	-40(%rbp), %eax
	movl	%eax, -68(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -76(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -72(%rbp)
	cmpl	$63, %r12d
	jg	LBB0_6
## %bb.4:
	cmpl	$54, %r12d
	ja	LBB0_9
## %bb.5:
	movl	%r12d, %eax
	movabsq	$27866022694354944, %rcx        ## imm = 0x63000000000000
	btq	%rax, %rcx
	jae	LBB0_9
LBB0_6:
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	cmpl	$16477, %ebx                    ## imm = 0x405D
	jl	LBB0_8
## %bb.7:
	callq	_setPLL_double_highregs
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	callq	_setPLL_double_lowregs
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_setPLL_single
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_devinit_pll_set           ; -- Begin function nv04_devinit_pll_set
	.p2align	2
_nv04_devinit_pll_set:                  ; @nv04_devinit_pll_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldr	w22, [x0]
	sub	w8, w1, #4
	mov	w9, #16476
	cmp	w1, w9
	csel	w1, w1, w8, gt
	add	x2, sp, #32
	bl	_nvbios_pll_parse
	cbnz	w0, LBB0_9
; %bb.1:
	add	x1, sp, #32
	add	x3, sp, #28
	add	x4, sp, #24
	add	x5, sp, #20
	add	x6, sp, #16
	add	x7, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_nv04_pll_calc
	cbz	w0, LBB0_6
; %bb.2:
	ldp	w9, w8, [sp, #28]
	ldr	w10, [sp, #24]
	stp	w9, w10, [sp, #40]
	ldp	w10, w9, [sp, #16]
	stp	w9, w10, [sp, #48]
	ldr	w9, [sp, #12]
	stp	w9, w8, [sp, #56]
	cmp	w22, #63
	b.gt	LBB0_4
; %bb.3:
	mov	w8, w22
	cmp	w22, #54
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #27866022694354944
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_10
LBB0_4:
	mov	w8, #16477
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, x19
	cmp	w19, w8
	b.lt	LBB0_7
; %bb.5:
	bl	_setPLL_double_highregs
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	bl	_setPLL_double_lowregs
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
	add	x2, sp, #40
	mov	x0, x20
	mov	x1, x19
	bl	_setPLL_single
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
