	.file	"extr_ucsi_ccg.c_get_fw_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_fw_info, @function
get_fw_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdx, 8[rdi]
	mov	ecx, 8
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR CCGX_RAB_READ_ALL_VER[rip]
	call	ccg_read@PLT
	test	eax, eax
	js	.L1
	mov	rdx, QWORD PTR FW2[rip]
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 4[rax+rdx*8]
	call	CCG_VERSION@PLT
	mov	rdx, QWORD PTR FW2[rip]
	mov	ebx, eax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+rdx*8]
	call	CCG_VERSION_PATCH@PLT
	mov	esi, DWORD PTR CCGX_RAB_DEVICE_MODE[rip]
	lea	rdx, 4[rbp]
	mov	rdi, rbp
	or	ebx, eax
	mov	ecx, 4
	mov	DWORD PTR 0[rbp], ebx
	call	ccg_read@PLT
	mov	edx, 0
	test	eax, eax
	cmovg	eax, edx
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_fw_info, .-get_fw_info
	.comm	FW2,8,8
	.comm	CCGX_RAB_READ_ALL_VER,4,4
	.comm	CCGX_RAB_DEVICE_MODE,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_get_fw_info.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_fw_info, %function
get_fw_info:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L5
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	add	r2, r0, #8
	mov	r3, #4
	mov	r4, r0
	bl	ccg_read
	cmp	r0, #0
	poplt	{r4, r5, r6, pc}
	ldr	r5, .L5+4
	ldr	r3, [r4, #8]
	ldr	r2, [r5]
	add	r3, r3, r2, lsl #3
	ldr	r0, [r3, #4]
	bl	CCG_VERSION
	ldr	r2, [r5]
	ldr	r3, [r4, #8]
	mov	r5, r0
	ldr	r0, [r3, r2, lsl #3]
	bl	CCG_VERSION_PATCH
	mov	r2, r4
	ldr	r3, .L5+8
	orr	r5, r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #4
	str	r5, [r2], #4
	bl	ccg_read
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	CCGX_RAB_READ_ALL_VER
	.word	FW2
	.word	CCGX_RAB_DEVICE_MODE
	.size	get_fw_info, .-get_fw_info
	.comm	FW2,4,4
	.comm	CCGX_RAB_READ_ALL_VER,4,4
	.comm	CCGX_RAB_DEVICE_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
