	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_process_firmware_header
_kv_process_firmware_header:            ## @kv_process_firmware_header
	.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	%rdi, %r15
	callq	_kv_get_pi
	movq	%rax, %r14
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	_SMU7_Firmware_Header@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_DpmTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movl	8(%r14), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_kv_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r14)
LBB0_2:
	movq	(%r12), %rbx
	movl	(%r13), %edi
	movq	_SoftRegisters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movl	8(%r14), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_kv_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ## @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU7_Firmware_Header,4,2       ## @SMU7_Firmware_Header
	.comm	_DpmTable,4,2                   ## @DpmTable
	.comm	_SoftRegisters,4,2              ## @SoftRegisters
	.no_dead_strip	_kv_process_firmware_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_process_firmware_header
_kv_process_firmware_header:            ; @kv_process_firmware_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	bl	_kv_get_pi
	mov	x19, x0
Lloh0:
	adrp	x21, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGEOFF]
	ldr	x23, [x21]
Lloh2:
	adrp	x22, _SMU7_Firmware_Header@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SMU7_Firmware_Header@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _DpmTable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DpmTable@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x23
	ldr	w3, [x19, #8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_kv_read_smc_sram_dword
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x19, #16]
LBB0_2:
	ldr	x21, [x21]
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _SoftRegisters@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SoftRegisters@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x21
	ldr	w3, [x19, #8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_kv_read_smc_sram_dword
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ; @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU7_Firmware_Header,4,2       ; @SMU7_Firmware_Header
	.comm	_DpmTable,4,2                   ; @DpmTable
	.comm	_SoftRegisters,4,2              ; @SoftRegisters
	.no_dead_strip	_kv_process_firmware_header
.subsections_via_symbols
