	.file	"extr_ucsi_ccg.c_ccg_fw_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"CCG FW update successful\n"
	.text
	.p2align 4
	.type	ccg_fw_update, @function
ccg_fw_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	DWORD PTR 12[rsp], esi
	lea	rbp, 12[rsp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbx
	call	do_flash@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rsi, rbp
	mov	rdi, rbx
	call	ccg_fw_update_needed@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
.L2:
	mov	esi, DWORD PTR 12[rsp]
	cmp	esi, DWORD PTR FLASH_NOT_NEEDED[rip]
	jne	.L4
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
.L1:
	add	rsp, 16
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ccg_fw_update, .-ccg_fw_update
	.comm	FLASH_NOT_NEEDED,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_ucsi_ccg.c_ccg_fw_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CCG FW update successful\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ccg_fw_update, %function
ccg_fw_update:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r5, r0
	mov	r4, #0
	ldr	r6, .L7
	str	r1, [sp, #4]
	b	.L2
.L4:
	mov	r0, r5
	bl	do_flash
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r5
	add	r1, sp, #4
	bl	ccg_fw_update_needed
	subs	r4, r0, #0
	blt	.L1
.L2:
	ldr	r1, [sp, #4]
	ldr	r3, [r6]
	cmp	r1, r3
	bne	.L4
	ldr	r0, [r5]
	ldr	r1, .L7+4
	bl	dev_info
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	FLASH_NOT_NEEDED
	.word	.LC0
	.size	ccg_fw_update, .-ccg_fw_update
	.comm	FLASH_NOT_NEEDED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
