	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vegam_populate_smc_link_level
_vegam_populate_smc_link_level:         ## @vegam_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rcx
	movq	8(%rdi), %r15
	leaq	8(%r15), %rdi
	movl	8(%r15), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rcx
	movq	$-1, %rbx
	movl	$8, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movq	(%rax,%r12), %rdx
	movq	%rdx, 40(%rcx,%r14)
	movl	-8(%rax,%r12), %edi
	callq	_encode_pcie_lane_width
	movq	(%r13), %rcx
	movq	%rax, 32(%rcx,%r14)
	movl	$1, (%rcx,%r14)
	movzbl	(%r15), %eax
	movq	%rax, 24(%rcx,%r14)
	movl	$5, %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx,%r14)
	movl	$30, %edi
	callq	_PP_HOST_TO_SMC_UL
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx,%r14)
	movslq	8(%r15), %rax
	incq	%rbx
	addq	$16, %r12
	addq	$48, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:
	cltq
	movq	%rax, (%rcx)
	callq	_phm_get_dpm_level_enable_mask_value
	movl	%eax, 4(%r15)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vegam_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 vegam_populate_smc_link_level
_vegam_populate_smc_link_level:         ; @vegam_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
	ldp	x22, x21, [x0]
	mov	x19, x21
	ldr	w9, [x19, #8]!
	tbnz	w9, #31, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x1]
	mov	x25, #-1
	mov	w26, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	add	x9, x9, x24
	ldr	x10, [x9, #8]
	add	x8, x8, x23
	str	x10, [x8, #40]
	ldr	w0, [x9]
	bl	_encode_pcie_lane_width
	ldr	x8, [x20]
	add	x8, x8, x23
	str	w26, [x8]
	ldrb	w9, [x21]
	stp	x9, x0, [x8, #24]
	mov	w0, #5
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20]
	add	x8, x8, x23
	str	x0, [x8, #16]
	mov	w0, #30
	bl	_PP_HOST_TO_SMC_UL
	ldr	x8, [x20]
	add	x9, x8, x23
	str	x0, [x9, #8]
	ldrsw	x9, [x21, #8]
	add	x25, x25, #1
	add	x24, x24, #16
	add	x23, x23, #48
	cmp	x25, x9
	b.lt	LBB0_2
LBB0_3:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x8, w9
	str	x8, [x22]
	mov	x0, x19
	bl	_phm_get_dpm_level_enable_mask_value
	str	w0, [x21, #4]
	mov	w0, #0
	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	_vegam_populate_smc_link_level
.subsections_via_symbols
