	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fiji_start_smu
_fiji_start_smu:                        ## @fiji_start_smu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	callq	_smu7_is_smc_ram_running
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movq	_SMU7_FIRMWARE_HEADER_LOCATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SMU73_Firmware_Header@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SoftRegisters@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
	addq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$262144, %ecx                   ## imm = 0x40000
	callq	_smu7_read_smc_sram_dword
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_smu7_request_smu_load_fw       ## TAILCALL
LBB0_1:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.2:
	movl	4(%r15), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SMU_FIRMWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SMU_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_PHM_READ_VFPF_INDIRECT_FIELD
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	callq	_fiji_start_smu_in_protection_mode
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	callq	_fiji_start_smu_in_non_protection_mode
	testl	%eax, %eax
	jne	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_fiji_avfs_event_mgr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$0, (%r15)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_SMU_FIRMWARE,4,2               ## @SMU_FIRMWARE
	.comm	_SMU_MODE,4,2                   ## @SMU_MODE
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ## @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU73_Firmware_Header,4,2      ## @SMU73_Firmware_Header
	.comm	_SoftRegisters,4,2              ## @SoftRegisters
	.no_dead_strip	_fiji_start_smu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fiji_start_smu
_fiji_start_smu:                        ; @fiji_start_smu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x20, [x0, #16]
	bl	_smu7_is_smc_ram_running
	cbz	w0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_FIRMWARE_HEADER_LOCATION@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _SMU73_Firmware_Header@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMU73_Firmware_Header@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _SoftRegisters@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SoftRegisters@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_offsetof
	add	x1, x0, x21
	mov	x0, x19
	mov	x2, x20
	mov	w3, #262144
	bl	_smu7_read_smc_sram_dword
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_smu7_request_smu_load_fw
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_1
; %bb.3:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _CGS_IND_REG__SMC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SMU_FIRMWARE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SMU_FIRMWARE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _SMU_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SMU_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	bl	_PHM_READ_VFPF_INDIRECT_FIELD
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_fiji_start_smu_in_protection_mode
	cbz	w0, LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_fiji_start_smu_in_non_protection_mode
	cbnz	w0, LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_fiji_avfs_event_mgr
	cbz	x0, LBB0_1
; %bb.8:
	str	wzr, [x19]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_SMU_FIRMWARE,4,2               ; @SMU_FIRMWARE
	.comm	_SMU_MODE,4,2                   ; @SMU_MODE
	.comm	_SMU7_FIRMWARE_HEADER_LOCATION,8,3 ; @SMU7_FIRMWARE_HEADER_LOCATION
	.comm	_SMU73_Firmware_Header,4,2      ; @SMU73_Firmware_Header
	.comm	_SoftRegisters,4,2              ; @SoftRegisters
	.no_dead_strip	_fiji_start_smu
.subsections_via_symbols
