	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vegam_start_smu_in_non_protection_mode
_vegam_start_smu_in_non_protection_mode: ## @vegam_start_smu_in_non_protection_mode
	.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, %rbx
	movq	_SMC_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCU_UC_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_boot_seq_done@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL
	movl	(%rbx), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_ixFIRMWARE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_cgs_write_ind_register
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movq	_SMC_SYSCON_RESET_CNTL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_rst_reg@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	$1, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movq	%rbx, %rdi
	callq	_smu7_upload_smu_firmware_image
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_smu7_program_jump_on_start
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movq	_SMC_SYSCON_CLOCK_CNTL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ck_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	(%r15), %ecx
	xorl	%r8d, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movq	_SMC_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIRMWARE_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INTERRUPTS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_PHM_WAIT_VFPF_INDIRECT_FIELD
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMC_IND,4,2                    ## @SMC_IND
	.comm	_RCU_UC_EVENTS,4,2              ## @RCU_UC_EVENTS
	.comm	_boot_seq_done,4,2              ## @boot_seq_done
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_ixFIRMWARE_FLAGS,4,2           ## @ixFIRMWARE_FLAGS
	.comm	_SMC_SYSCON_RESET_CNTL,4,2      ## @SMC_SYSCON_RESET_CNTL
	.comm	_rst_reg,4,2                    ## @rst_reg
	.comm	_SMC_SYSCON_CLOCK_CNTL_0,4,2    ## @SMC_SYSCON_CLOCK_CNTL_0
	.comm	_ck_disable,4,2                 ## @ck_disable
	.comm	_FIRMWARE_FLAGS,4,2             ## @FIRMWARE_FLAGS
	.comm	_INTERRUPTS_ENABLED,4,2         ## @INTERRUPTS_ENABLED
	.no_dead_strip	_vegam_start_smu_in_non_protection_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vegam_start_smu_in_non_protection_mode
_vegam_start_smu_in_non_protection_mode: ; @vegam_start_smu_in_non_protection_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _SMC_IND@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SMC_IND@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _RCU_UC_EVENTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCU_UC_EVENTS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _boot_seq_done@GOTPAGE
Lloh6:
	ldr	x8, [x8, _boot_seq_done@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_PHM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL
	ldr	w0, [x19]
Lloh8:
	adrp	x22, _CGS_IND_REG__SMC@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CGS_IND_REG__SMC@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _ixFIRMWARE_FLAGS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ixFIRMWARE_FLAGS@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_cgs_write_ind_register
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh13:
	adrp	x23, _SMC_SYSCON_RESET_CNTL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SMC_SYSCON_RESET_CNTL@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh15:
	adrp	x24, _rst_reg@GOTPAGE
Lloh16:
	ldr	x24, [x24, _rst_reg@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	w4, #1
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	mov	x0, x19
	bl	_smu7_upload_smu_firmware_image
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_smu7_program_jump_on_start
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh17:
	adrp	x8, _SMC_SYSCON_CLOCK_CNTL_0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SMC_SYSCON_CLOCK_CNTL_0@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _ck_disable@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ck_disable@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	w4, #0
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	w1, [x21]
Lloh23:
	adrp	x8, _FIRMWARE_FLAGS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FIRMWARE_FLAGS@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _INTERRUPTS_ENABLED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _INTERRUPTS_ENABLED@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #1
	bl	_PHM_WAIT_VFPF_INDIRECT_FIELD
LBB0_2:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SMC_IND,4,2                    ; @SMC_IND
	.comm	_RCU_UC_EVENTS,4,2              ; @RCU_UC_EVENTS
	.comm	_boot_seq_done,4,2              ; @boot_seq_done
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_ixFIRMWARE_FLAGS,4,2           ; @ixFIRMWARE_FLAGS
	.comm	_SMC_SYSCON_RESET_CNTL,4,2      ; @SMC_SYSCON_RESET_CNTL
	.comm	_rst_reg,4,2                    ; @rst_reg
	.comm	_SMC_SYSCON_CLOCK_CNTL_0,4,2    ; @SMC_SYSCON_CLOCK_CNTL_0
	.comm	_ck_disable,4,2                 ; @ck_disable
	.comm	_FIRMWARE_FLAGS,4,2             ; @FIRMWARE_FLAGS
	.comm	_INTERRUPTS_ENABLED,4,2         ; @INTERRUPTS_ENABLED
	.no_dead_strip	_vegam_start_smu_in_non_protection_mode
.subsections_via_symbols
