	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_dpm_patch_boot_state
_smu7_dpm_patch_boot_state:             ## @smu7_dpm_patch_boot_state
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_FirmwareInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	(%r15), %edi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movl	%eax, %esi
	callq	_smu_atom_get_data_table
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	16(%rax), %edi
	callq	_le32_to_cpu
	movq	%rax, 16(%r12)
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 24(%r12)
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 48(%r12)
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 40(%r12)
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 32(%r12)
	movq	%r15, %rdi
	callq	_smu7_get_current_pcie_speed
	movl	%eax, 8(%r12)
	movq	%r15, %rdi
	callq	_smu7_get_current_pcie_lane_number
	movq	%rax, (%r12)
	movq	(%r14), %rcx
	movups	16(%r12), %xmm0
	movups	%xmm0, 16(%rcx)
	movl	8(%r12), %edx
	movl	%edx, 8(%rcx)
	movq	%rax, (%rcx)
LBB0_2:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_FirmwareInfo,4,2               ## @FirmwareInfo
	.no_dead_strip	_smu7_dpm_patch_boot_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_dpm_patch_boot_state
_smu7_dpm_patch_boot_state:             ; @smu7_dpm_patch_boot_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _FirmwareInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FirmwareInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	ldr	w0, [x20]
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x4, sp
	bl	_smu_atom_get_data_table
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0, #16]
	bl	_le32_to_cpu
	str	x0, [x22, #16]
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	str	x0, [x22, #24]
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	str	x0, [x22, #48]
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	str	x0, [x22, #40]
	ldr	w0, [x21]
	bl	_le16_to_cpu
	str	x0, [x22, #32]
	mov	x0, x20
	bl	_smu7_get_current_pcie_speed
	str	w0, [x22, #8]
	mov	x0, x20
	bl	_smu7_get_current_pcie_lane_number
	str	x0, [x22]
	ldr	x8, [x22, #24]
	ldr	x9, [x19]
	str	x8, [x9, #24]
	ldr	x8, [x22, #16]
	str	x8, [x9, #16]
	ldr	w8, [x22, #8]
	str	w8, [x9, #8]
	str	x0, [x9]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_FirmwareInfo,4,2               ; @FirmwareInfo
	.no_dead_strip	_smu7_dpm_patch_boot_state
.subsections_via_symbols
