	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_devinit_pll_set          ## -- Begin function gf100_devinit_pll_set
	.p2align	4, 0x90
_gf100_devinit_pll_set:                 ## @gf100_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	(%rdi), %r14
	movl	(%r14), %edi
	leaq	-48(%rbp), %rdx
	callq	_nvbios_pll_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_gt215_pll_calc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	-48(%rbp), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %esi
	addl	$12, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_nvkm_mask
	movl	-44(%rbp), %esi
	addl	$4, %esi
	movl	-52(%rbp), %eax
	shll	$16, %eax
	movl	-64(%rbp), %edx
	shll	$8, %edx
	orl	%eax, %edx
	orl	-56(%rbp), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	movl	-44(%rbp), %esi
	addl	$16, %esi
	movl	-60(%rbp), %edx
	shll	$16, %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_nvkm_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08x/%dKhz unimplemented\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_devinit_pll_set          ; -- Begin function gf100_devinit_pll_set
	.p2align	2
_gf100_devinit_pll_set:                 ; @gf100_devinit_pll_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x19, [x0]
	ldr	w0, [x19]
	add	x2, sp, #24
	bl	_nvbios_pll_parse
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	add	x1, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x0, x23
	mov	x2, x21
	bl	_gt215_pll_calc
	mov	x20, x0
	tbnz	w0, #31, LBB0_1
; %bb.3:
	ldr	w8, [sp, #24]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [sp, #28]
	add	w1, w8, #12
	mov	x0, x19
	mov	w2, #0
	mov	w3, #256
	bl	_nvkm_mask
	ldr	w8, [sp, #28]
	add	w1, w8, #4
	ldr	w8, [sp, #8]
	ldr	w9, [sp, #20]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	w8, [sp, #28]
	add	w1, w8, #16
	ldr	w8, [sp, #16]
	lsl	w2, w8, #16
	mov	x0, x19
	bl	_nvkm_wr32
	b	LBB0_1
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x22
	mov	x3, x21
	bl	_nvkm_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08x/%dKhz unimplemented\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
