	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gt215_pll_info                 ## -- Begin function gt215_pll_info
	.p2align	4, 0x90
_gt215_pll_info:                        ## @gt215_pll_info
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r13d
	callq	_gt215_clk
	movl	$0, (%rbx)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_gt215_clk_info
	movl	%eax, %r12d
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	movl	%r15d, %eax
	subl	%r12d, %eax
	addl	$2000, %eax                     ## imm = 0x7D0
	cmpl	$5000, %eax                     ## imm = 0x1388
	jae	LBB0_2
LBB0_7:
	addl	$7566, %r15d                    ## imm = 0x1D8E
	movslq	%r15d, %rax
	imulq	$290626215, %rax, %rdi          ## imm = 0x11529AA7
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$42, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$18, %esi
	callq	_max
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%r12d, %r12d
	cmovnel	%r12d, %eax
	jmp	LBB0_8
LBB0_2:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %esi
	callq	_nvbios_pll_parse
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	addl	$-16, %r13d
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_gt215_clk_info
	cmpl	-48(%rbp), %eax
	jne	LBB0_4
## %bb.5:
	leaq	-68(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	leaq	-60(%rbp), %r9
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	callq	_gt215_pll_calc
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	-68(%rbp), %eax
	shll	$16, %eax
	movl	-64(%rbp), %ecx
	shll	$8, %ecx
	orl	%eax, %ecx
	orl	-60(%rbp), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERANGE,4,2                     ## @ERANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gt215_pll_info                 ; -- Begin function gt215_pll_info
	.p2align	2
_gt215_pll_info:                        ; @gt215_pll_info
	.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	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x23, x1
	bl	_gt215_clk
	mov	x21, x0
	str	wzr, [x19]
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_gt215_clk_info
	mov	x22, x0
	cbz	w24, LBB0_2
; %bb.1:
	sub	w8, w20, w22
	add	w8, w8, #2000
	lsr	w8, w8, #3
	cmp	w8, #625
	b.hs	LBB0_3
LBB0_2:
	mov	w8, #7566
	add	w8, w20, w8
	mov	w9, #39591
	movk	w9, #4434, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #42
	add	w0, w8, w9
	mov	w1, #18
	bl	_max
	str	w0, [x19, #4]
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, #0
	csneg	w0, w22, w8, ne
	b	LBB0_8
LBB0_3:
	ldr	x8, [x21]
	ldr	w0, [x8]
	add	x2, sp, #24
	mov	x1, x24
	bl	_nvbios_pll_parse
	cbnz	w0, LBB0_8
; %bb.4:
	sub	w1, w23, #16
	ldr	w2, [sp, #24]
	mov	x0, x21
	mov	x3, x19
	bl	_gt215_clk_info
	ldr	w8, [sp, #24]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	add	x1, sp, #24
	add	x3, sp, #16
	add	x5, sp, #12
	add	x6, sp, #20
	mov	x0, x21
	mov	x2, x20
	mov	x4, #0
	bl	_gt215_pll_calc
	mov	x22, x0
	tbnz	w0, #31, LBB0_2
; %bb.6:
	ldp	w9, w8, [sp, #16]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [sp, #12]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_2
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERANGE,4,2                     ; @ERANGE
.subsections_via_symbols
