	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_populate_smc_link_level
_ci_populate_smc_link_level:            ## @ci_populate_smc_link_level
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_ci_get_pi
	movq	%rax, %r15
	leaq	16(%rax), %rdi
	cmpq	$0, 16(%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movl	$8, %r13d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movq	(%rax,%r13), %rdx
	movq	%rdx, 32(%rcx,%rbx)
	movl	-8(%rax,%r13), %edi
	callq	_r600_encode_pci_lane_width
	movq	(%r12), %rcx
	movl	%eax, 24(%rcx,%rbx)
	movl	$1, (%rcx,%rbx)
	movl	$5, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 16(%rcx,%rbx)
	movl	$30, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movq	%rax, 8(%rcx,%rbx)
	incq	%r14
	movq	16(%r15), %rax
	addq	$16, %r13
	addq	$40, %rbx
	cmpq	%rax, %r14
	jb	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, 8(%r15)
	callq	_ci_get_dpm_level_enable_mask_value
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ci_populate_smc_link_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_populate_smc_link_level
_ci_populate_smc_link_level:            ; @ci_populate_smc_link_level
	.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	x21, x1
	bl	_ci_get_pi
	mov	x19, x0
	mov	x20, x0
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x21]
	mov	w25, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x9, x9, x23
	ldr	x10, [x9, #8]
	add	x8, x8, x22
	str	x10, [x8, #32]
	ldr	w0, [x9]
	bl	_r600_encode_pci_lane_width
	ldr	x8, [x21]
	add	x8, x8, x22
	str	w0, [x8, #24]
	str	w25, [x8]
	mov	w0, #5
	bl	_cpu_to_be32
	ldr	x8, [x21]
	add	x8, x8, x22
	str	x0, [x8, #16]
	mov	w0, #30
	bl	_cpu_to_be32
	ldr	x8, [x21]
	add	x9, x8, x22
	str	x0, [x9, #8]
	add	x24, x24, #1
	ldr	x9, [x19, #16]
	add	x23, x23, #16
	add	x22, x22, #40
	cmp	x24, x9
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x9, #0
LBB0_4:
	str	x9, [x19, #8]
	mov	x0, x20
	bl	_ci_get_dpm_level_enable_mask_value
	str	w0, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ci_populate_smc_link_level
.subsections_via_symbols
