	.file	"extr_intel_guc_fw.c_intel_guc_fw_upload.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	intel_guc_fw_upload
	.type	intel_guc_fw_upload, @function
intel_guc_fw_upload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	guc_to_gt@PLT
	mov	r13, QWORD PTR [rax]
	mov	r12, rax
	mov	rdi, r13
	call	guc_prepare_xfer@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	guc_xfer_rsa@PLT
	mov	rsi, r12
	mov	edx, 8192
	mov	rdi, rbp
	mov	ecx, DWORD PTR UOS_MOVE[rip]
	call	intel_uc_fw_upload@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L2:
	mov	esi, DWORD PTR INTEL_UC_FIRMWARE_FAIL[rip]
	mov	rdi, rbp
	call	intel_uc_fw_change_status@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r13
	call	guc_wait_ucode@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	esi, DWORD PTR INTEL_UC_FIRMWARE_RUNNING[rip]
	mov	rdi, rbp
	call	intel_uc_fw_change_status@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	intel_guc_fw_upload, .-intel_guc_fw_upload
	.comm	UOS_MOVE,4,4
	.comm	INTEL_UC_FIRMWARE_RUNNING,4,4
	.comm	INTEL_UC_FIRMWARE_FAIL,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_intel_guc_fw.c_intel_guc_fw_upload.c"
	.text
	.align	2
	.global	intel_guc_fw_upload
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_guc_fw_upload, %function
intel_guc_fw_upload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	guc_to_gt
	mov	r4, r0
	ldr	r6, [r0]
	mov	r0, r6
	bl	guc_prepare_xfer
	mov	r1, r6
	mov	r0, r5
	bl	guc_xfer_rsa
	ldr	r3, .L7
	mov	r1, r4
	mov	r0, r5
	mov	r2, #8192
	ldr	r3, [r3]
	bl	intel_uc_fw_upload
	subs	r4, r0, #0
	beq	.L6
.L2:
	ldr	r3, .L7+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	intel_uc_fw_change_status
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r6
	bl	guc_wait_ucode
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L7+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	intel_uc_fw_change_status
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	UOS_MOVE
	.word	INTEL_UC_FIRMWARE_FAIL
	.word	INTEL_UC_FIRMWARE_RUNNING
	.size	intel_guc_fw_upload, .-intel_guc_fw_upload
	.comm	UOS_MOVE,4,4
	.comm	INTEL_UC_FIRMWARE_RUNNING,4,4
	.comm	INTEL_UC_FIRMWARE_FAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
