	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fiji_process_firmware_header
_fiji_process_firmware_header:          ## @fiji_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
	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, %r15
	movq	8(%rdi), %r13
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_SMU73_Firmware_Header@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_DpmTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_smu7_read_smc_sram_dword
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r13)
LBB0_2:
	movq	(%r14), %rbx
	movl	(%r12), %edi
	movq	_SoftRegisters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_smu7_read_smc_sram_dword
	movq	%r14, %rcx
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r13)
LBB0_4:
	movq	(%rcx), %rbx
	movl	(%r12), %edi
	movq	_mcRegisterTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_smu7_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r13)
LBB0_6:
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%r12), %edi
	movq	_FanTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_smu7_read_smc_sram_dword
	movq	%r12, %rcx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rax
	movq	%rax, 8(%r13)
LBB0_8:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rcx), %edi
	movq	_mcArbDramTimingTable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_smu7_read_smc_sram_dword
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_10:
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SMU73_Firmware_Header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Version@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	_SMC_RAM_END@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_smu7_read_smc_sram_dword
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%r15)
LBB0_12:
	orl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	orl	%r12d, %r14d
	orl	%r13d, %r14d
	xorl	%ecx, %ecx
	orl	%eax, %r14d
	setne	%cl
	negl	%ecx
	movl	%ecx, %eax
	addq	$24, %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	_SMU73_Firmware_Header,4,2      ## @SMU73_Firmware_Header
	.comm	_DpmTable,4,2                   ## @DpmTable
	.comm	_SMC_RAM_END,4,2                ## @SMC_RAM_END
	.comm	_SoftRegisters,4,2              ## @SoftRegisters
	.comm	_mcRegisterTable,4,2            ## @mcRegisterTable
	.comm	_FanTable,4,2                   ## @FanTable
	.comm	_mcArbDramTimingTable,4,2       ## @mcArbDramTimingTable
	.comm	_Version,4,2                    ## @Version
	.no_dead_strip	_fiji_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 fiji_process_firmware_header
_fiji_process_firmware_header:          ; @fiji_process_firmware_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x24, x22, [x0, #8]
Lloh0:
	adrp	x25, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGEOFF]
	ldr	x20, [x25]
Lloh2:
	adrp	x26, _SMU73_Firmware_Header@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SMU73_Firmware_Header@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh4:
	adrp	x8, _DpmTable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DpmTable@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x20
Lloh7:
	adrp	x27, _SMC_RAM_END@GOTPAGE
Lloh8:
	ldr	x27, [x27, _SMC_RAM_END@GOTPAGEOFF]
	ldr	w3, [x27]
	add	x2, sp, #8
	mov	x0, x19
	bl	_smu7_read_smc_sram_dword
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	str	x8, [x24, #32]
LBB0_2:
	ldr	x21, [x25]
	ldr	w0, [x26]
Lloh9:
	adrp	x8, _SoftRegisters@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SoftRegisters@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x21
	ldr	w3, [x27]
	add	x2, sp, #8
	mov	x0, x19
	bl	_smu7_read_smc_sram_dword
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x22]
	ldr	x8, [sp, #8]
	str	x8, [x24, #24]
LBB0_4:
	ldr	x22, [x25]
	ldr	w0, [x26]
Lloh12:
	adrp	x8, _mcRegisterTable@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mcRegisterTable@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x22
	ldr	w3, [x27]
	add	x2, sp, #8
	mov	x0, x19
	bl	_smu7_read_smc_sram_dword
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	x8, [sp, #8]
	str	x8, [x24, #16]
LBB0_6:
	ldr	x22, [x25]
	ldr	w0, [x26]
Lloh15:
	adrp	x8, _FanTable@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FanTable@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x22
	ldr	w3, [x27]
	add	x2, sp, #8
	mov	x0, x19
	bl	_smu7_read_smc_sram_dword
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	str	x8, [x24, #8]
LBB0_8:
	ldr	x23, [x25]
	ldr	w0, [x26]
Lloh18:
	adrp	x8, _mcArbDramTimingTable@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mcArbDramTimingTable@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x23
	ldr	w3, [x27]
	add	x2, sp, #8
	mov	x0, x19
	bl	_smu7_read_smc_sram_dword
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x8, [sp, #8]
	str	x8, [x24]
LBB0_10:
	ldr	x24, [x25]
	ldr	w0, [x26]
Lloh21:
	adrp	x8, _Version@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Version@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x24
	ldr	w3, [x27]
	add	x2, sp, #8
	mov	x0, x19
	bl	_smu7_read_smc_sram_dword
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_12:
	orr	w8, w21, w20
	orr	w8, w8, w22
	orr	w8, w8, w23
	orr	w8, w8, w0
	cmp	w8, #0
	csetm	w0, ne
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ; @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU73_Firmware_Header,4,2      ; @SMU73_Firmware_Header
	.comm	_DpmTable,4,2                   ; @DpmTable
	.comm	_SMC_RAM_END,4,2                ; @SMC_RAM_END
	.comm	_SoftRegisters,4,2              ; @SoftRegisters
	.comm	_mcRegisterTable,4,2            ; @mcRegisterTable
	.comm	_FanTable,4,2                   ; @FanTable
	.comm	_mcArbDramTimingTable,4,2       ; @mcArbDramTimingTable
	.comm	_Version,4,2                    ; @Version
	.no_dead_strip	_fiji_process_firmware_header
.subsections_via_symbols
