	.file	"extr_vegam_smumgr.c_vegam_start_smu_in_non_protection_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vegam_start_smu_in_non_protection_mode, @function
vegam_start_smu_in_non_protection_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r8d, r8d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ecx, DWORD PTR boot_seq_done[rip]
	mov	edx, DWORD PTR RCU_UC_EVENTS[rip]
	mov	esi, DWORD PTR SMC_IND[rip]
	call	PHM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL@PLT
	mov	edx, DWORD PTR ixFIRMWARE_FLAGS[rip]
	mov	edi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	esi, DWORD PTR CGS_IND_REG__SMC[rip]
	call	cgs_write_ind_register@PLT
	mov	ecx, DWORD PTR rst_reg[rip]
	mov	edx, DWORD PTR SMC_SYSCON_RESET_CNTL[rip]
	mov	r8d, 1
	mov	esi, DWORD PTR CGS_IND_REG__SMC[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	PHM_WRITE_VFPF_INDIRECT_FIELD@PLT
	mov	rdi, rbp
	call	smu7_upload_smu_firmware_image@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	smu7_program_jump_on_start@PLT
	mov	ecx, DWORD PTR ck_disable[rip]
	mov	edi, DWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	edx, DWORD PTR SMC_SYSCON_CLOCK_CNTL_0[rip]
	mov	esi, DWORD PTR CGS_IND_REG__SMC[rip]
	call	PHM_WRITE_VFPF_INDIRECT_FIELD@PLT
	mov	ecx, DWORD PTR rst_reg[rip]
	mov	edi, DWORD PTR 0[rbp]
	xor	r8d, r8d
	mov	edx, DWORD PTR SMC_SYSCON_RESET_CNTL[rip]
	mov	esi, DWORD PTR CGS_IND_REG__SMC[rip]
	call	PHM_WRITE_VFPF_INDIRECT_FIELD@PLT
	mov	ecx, DWORD PTR INTERRUPTS_ENABLED[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR FIRMWARE_FLAGS[rip]
	mov	esi, DWORD PTR SMC_IND[rip]
	mov	r8d, 1
	call	PHM_WAIT_VFPF_INDIRECT_FIELD@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vegam_start_smu_in_non_protection_mode, .-vegam_start_smu_in_non_protection_mode
	.comm	rst_reg,4,4
	.comm	ixFIRMWARE_FLAGS,4,4
	.comm	ck_disable,4,4
	.comm	boot_seq_done,4,4
	.comm	SMC_SYSCON_RESET_CNTL,4,4
	.comm	SMC_SYSCON_CLOCK_CNTL_0,4,4
	.comm	SMC_IND,4,4
	.comm	RCU_UC_EVENTS,4,4
	.comm	INTERRUPTS_ENABLED,4,4
	.comm	FIRMWARE_FLAGS,4,4
	.comm	CGS_IND_REG__SMC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vegam_smumgr.c_vegam_start_smu_in_non_protection_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vegam_start_smu_in_non_protection_mode, %function
vegam_start_smu_in_non_protection_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, #0
	mov	r4, r0
	mov	r8, #1
	sub	sp, sp, #8
	ldr	r3, .L5
	ldr	r2, .L5+4
	ldr	r7, .L5+8
	str	r5, [sp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r7]
	bl	PHM_WAIT_VFPF_INDIRECT_FIELD_UNEQUAL
	ldr	r6, .L5+12
	ldr	r2, .L5+16
	ldr	r10, .L5+20
	ldr	r9, .L5+24
	mov	r3, r5
	ldr	r2, [r2]
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	cgs_write_ind_register
	ldr	r0, [r4]
	ldr	r1, [r6]
	ldr	r3, [r10]
	ldr	r2, [r9]
	str	r8, [sp]
	bl	PHM_WRITE_VFPF_INDIRECT_FIELD
	mov	r0, r4
	bl	smu7_upload_smu_firmware_image
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	bl	smu7_program_jump_on_start
	ldr	r3, .L5+28
	ldr	r2, .L5+32
	str	r5, [sp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	PHM_WRITE_VFPF_INDIRECT_FIELD
	str	r5, [sp]
	ldr	r3, [r10]
	ldr	r2, [r9]
	ldr	r1, [r6]
	ldr	r0, [r4]
	bl	PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	r3, .L5+36
	ldr	r2, .L5+40
	str	r8, [sp]
	mov	r0, r4
	ldr	r1, [r7]
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	PHM_WAIT_VFPF_INDIRECT_FIELD
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	.align	2
.L5:
	.word	boot_seq_done
	.word	RCU_UC_EVENTS
	.word	SMC_IND
	.word	CGS_IND_REG__SMC
	.word	ixFIRMWARE_FLAGS
	.word	rst_reg
	.word	SMC_SYSCON_RESET_CNTL
	.word	ck_disable
	.word	SMC_SYSCON_CLOCK_CNTL_0
	.word	INTERRUPTS_ENABLED
	.word	FIRMWARE_FLAGS
	.size	vegam_start_smu_in_non_protection_mode, .-vegam_start_smu_in_non_protection_mode
	.comm	rst_reg,4,4
	.comm	ixFIRMWARE_FLAGS,4,4
	.comm	ck_disable,4,4
	.comm	boot_seq_done,4,4
	.comm	SMC_SYSCON_RESET_CNTL,4,4
	.comm	SMC_SYSCON_CLOCK_CNTL_0,4,4
	.comm	SMC_IND,4,4
	.comm	RCU_UC_EVENTS,4,4
	.comm	INTERRUPTS_ENABLED,4,4
	.comm	FIRMWARE_FLAGS,4,4
	.comm	CGS_IND_REG__SMC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
