	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_parse_pplib_clock_info
_ci_parse_pplib_clock_info:             ## @ci_parse_pplib_clock_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_ci_get_pi
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_ci_get_ps
	movq	8(%rax), %r14
	movslq	%r15d, %rcx
	movq	%rcx, %r15
	shlq	$4, %r15
	incl	%ecx
	movl	%ecx, (%rax)
	movl	20(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r14,%r15)
	movl	(%r13), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14,%r15)
	movl	16(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 4(%r14,%r15)
	movl	4(%r13), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r14,%r15)
	movl	52(%r12), %edx
	movl	84(%r12), %esi
	movl	12(%r13), %ecx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_r600_get_pcie_gen_support
	leaq	(%r14,%r15), %rcx
	addq	$12, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 12(%r14,%r15)
	movl	48(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %edi
	callq	_le16_to_cpu
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rdx
	callq	_r600_get_pcie_lane_support
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, 8(%r14,%r15)
	movl	(%rsi), %ecx
	movq	_ATOM_PPLIB_CLASSIFICATION_ACPI@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%rdi), %eax
	movl	%eax, 80(%r12)
LBB0_2:
	leaq	(%r14,%r15), %rax
	movq	_ATOM_PPLIB_CLASSIFICATION2_ULV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%rsi)
	je	LBB0_4
## %bb.3:
	movl	$1, 56(%r12)
	movdqu	(%rax), %xmm0
	movdqu	%xmm0, 64(%r12)
	movq	_CISLANDS_CGULVPARAMETER_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%r12)
	movl	(%rsi), %ecx
LBB0_4:
	movq	_ATOM_PPLIB_CLASSIFICATION_BOOT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	movdqu	40(%r12), %xmm0
	pshufd	$225, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,2,3]
	movdqu	%xmm0, (%rax)
LBB0_6:
	leaq	(%r14,%r15), %rax
	addq	$8, %rax
	movq	_ATOM_PPLIB_CLASSIFICATION_UI_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	cmpl	$128, %ecx
	je	LBB0_16
## %bb.7:
	cmpl	$129, %ecx
	jne	LBB0_24
## %bb.8:
	movl	$1, (%r12)
	movl	(%rdi), %ecx
	cmpl	%ecx, 36(%r12)
	jge	LBB0_10
## %bb.9:
	movl	%ecx, 36(%r12)
LBB0_10:
	cmpl	%ecx, 32(%r12)
	jle	LBB0_12
## %bb.11:
	movl	%ecx, 32(%r12)
LBB0_12:
	movl	(%rax), %eax
	cmpl	%eax, 28(%r12)
	jge	LBB0_14
## %bb.13:
	movl	%eax, 28(%r12)
LBB0_14:
	cmpl	%eax, 24(%r12)
	jle	LBB0_24
## %bb.15:
	movl	%eax, 24(%r12)
	jmp	LBB0_24
LBB0_16:
	movl	$1, 4(%r12)
	movl	(%rdi), %ecx
	cmpl	%ecx, 20(%r12)
	jge	LBB0_18
## %bb.17:
	movl	%ecx, 20(%r12)
LBB0_18:
	cmpl	%ecx, 16(%r12)
	jle	LBB0_20
## %bb.19:
	movl	%ecx, 16(%r12)
LBB0_20:
	movl	(%rax), %eax
	cmpl	%eax, 12(%r12)
	jge	LBB0_22
## %bb.21:
	movl	%eax, 12(%r12)
LBB0_22:
	cmpl	%eax, 8(%r12)
	jle	LBB0_24
## %bb.23:
	movl	%eax, 8(%r12)
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PPLIB_CLASSIFICATION_ACPI,4,2 ## @ATOM_PPLIB_CLASSIFICATION_ACPI
	.comm	_ATOM_PPLIB_CLASSIFICATION2_ULV,4,2 ## @ATOM_PPLIB_CLASSIFICATION2_ULV
	.comm	_CISLANDS_CGULVPARAMETER_DFLT,4,2 ## @CISLANDS_CGULVPARAMETER_DFLT
	.comm	_ATOM_PPLIB_CLASSIFICATION_BOOT,4,2 ## @ATOM_PPLIB_CLASSIFICATION_BOOT
	.comm	_ATOM_PPLIB_CLASSIFICATION_UI_MASK,4,2 ## @ATOM_PPLIB_CLASSIFICATION_UI_MASK
	.no_dead_strip	_ci_parse_pplib_clock_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_parse_pplib_clock_info
_ci_parse_pplib_clock_info:             ; @ci_parse_pplib_clock_info
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ci_get_pi
	mov	x19, x0
	mov	x0, x20
	bl	_ci_get_ps
	ldr	x8, [x0, #8]
	add	x24, x8, w23, sxtw #4
	add	w8, w23, #1
	str	w8, [x0]
	ldr	w0, [x22, #20]
	bl	_le16_to_cpu
	str	w0, [x24]
	ldr	w8, [x22]
	orr	w8, w0, w8, lsl #16
	str	w8, [x24]
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
	str	w0, [x24, #4]
	ldr	w8, [x22, #4]
	orr	w8, w0, w8, lsl #16
	str	w8, [x24, #4]
	ldr	w1, [x19, #84]
	ldr	w2, [x19, #52]
	ldr	w3, [x22, #12]
	mov	x0, x21
	bl	_r600_get_pcie_gen_support
	mov	x25, x24
	str	w0, [x25, #12]!
	ldr	w23, [x19, #48]
	ldr	w0, [x22, #8]
	bl	_le16_to_cpu
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_r600_get_pcie_lane_support
	mov	x8, x24
	str	w0, [x8, #8]!
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _ATOM_PPLIB_CLASSIFICATION_ACPI@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATOM_PPLIB_CLASSIFICATION_ACPI@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x25]
	str	w10, [x19, #80]
LBB0_2:
	ldr	w10, [x20, #4]
Lloh3:
	adrp	x11, _ATOM_PPLIB_CLASSIFICATION2_ULV@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ATOM_PPLIB_CLASSIFICATION2_ULV@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
	mov	w9, #1
	str	w9, [x19, #56]
	ldr	q0, [x24]
	str	q0, [x19, #64]
Lloh6:
	adrp	x9, _CISLANDS_CGULVPARAMETER_DFLT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CISLANDS_CGULVPARAMETER_DFLT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x19, #60]
	ldr	w9, [x20]
LBB0_4:
Lloh9:
	adrp	x10, _ATOM_PPLIB_CLASSIFICATION_BOOT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ATOM_PPLIB_CLASSIFICATION_BOOT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	ldur	q0, [x19, #40]
	mov.16b	v1, v0
	mov.s	v1[0], v0[1]
	mov.s	v1[1], v0[0]
	str	q1, [x24]
LBB0_6:
Lloh12:
	adrp	x10, _ATOM_PPLIB_CLASSIFICATION_UI_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ATOM_PPLIB_CLASSIFICATION_UI_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #128
	b.eq	LBB0_16
; %bb.7:
	cmp	w9, #129
	b.ne	LBB0_24
; %bb.8:
	mov	w9, #1
	str	w9, [x19]
	ldr	w10, [x19, #36]
	ldr	w9, [x25]
	cmp	w10, w9
	b.ge	LBB0_10
; %bb.9:
	str	w9, [x19, #36]
LBB0_10:
	ldr	w10, [x19, #32]
	cmp	w10, w9
	b.le	LBB0_12
; %bb.11:
	str	w9, [x19, #32]
LBB0_12:
	ldr	w9, [x19, #28]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ge	LBB0_14
; %bb.13:
	str	w8, [x19, #28]
LBB0_14:
	ldr	w9, [x19, #24]
	cmp	w9, w8
	b.le	LBB0_24
; %bb.15:
	str	w8, [x19, #24]
	b	LBB0_24
LBB0_16:
	mov	w9, #1
	str	w9, [x19, #4]
	ldr	w10, [x19, #20]
	ldr	w9, [x25]
	cmp	w10, w9
	b.ge	LBB0_18
; %bb.17:
	str	w9, [x19, #20]
LBB0_18:
	ldr	w10, [x19, #16]
	cmp	w10, w9
	b.le	LBB0_20
; %bb.19:
	str	w9, [x19, #16]
LBB0_20:
	ldr	w9, [x19, #12]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ge	LBB0_22
; %bb.21:
	str	w8, [x19, #12]
LBB0_22:
	ldr	w9, [x19, #8]
	cmp	w9, w8
	b.le	LBB0_24
; %bb.23:
	str	w8, [x19, #8]
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PPLIB_CLASSIFICATION_ACPI,4,2 ; @ATOM_PPLIB_CLASSIFICATION_ACPI
	.comm	_ATOM_PPLIB_CLASSIFICATION2_ULV,4,2 ; @ATOM_PPLIB_CLASSIFICATION2_ULV
	.comm	_CISLANDS_CGULVPARAMETER_DFLT,4,2 ; @CISLANDS_CGULVPARAMETER_DFLT
	.comm	_ATOM_PPLIB_CLASSIFICATION_BOOT,4,2 ; @ATOM_PPLIB_CLASSIFICATION_BOOT
	.comm	_ATOM_PPLIB_CLASSIFICATION_UI_MASK,4,2 ; @ATOM_PPLIB_CLASSIFICATION_UI_MASK
	.no_dead_strip	_ci_parse_pplib_clock_info
.subsections_via_symbols
