	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_pll
_calc_pll:                              ## @calc_pll
	.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
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nouveau_bios
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_nouveau_clock
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_nvbios_pll_parse
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	$0, 8(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_read_pll_ref
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	16(%rbp), %rcx
	movl	-56(%rbp), %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movl	-52(%rbp), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movl	-48(%rbp), %edx
	movl	%edx, (%rcx)
	movl	%eax, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_pll
_calc_pll:                              ; @calc_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x26, x0
	bl	_nouveau_dev
	mov	x25, x0
	bl	_nouveau_bios
	mov	x27, x0
	mov	x0, x25
	bl	_nouveau_clock
	mov	x25, x0
	mov	x0, x27
	mov	x1, x24
	mov	x2, x23
	bl	_nvbios_pll_parse
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	str	xzr, [x23, #8]
	mov	x0, x26
	mov	x1, x24
	bl	_read_pll_ref
	str	w0, [x23]
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x25]
	mov	x3, sp
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	ldp	w8, w9, [sp]
	str	w8, [x21]
	str	w9, [x20]
	ldr	w8, [sp, #8]
	str	w8, [x19]
LBB0_5:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_pll
.subsections_via_symbols
