	.file	"extr_s5k5baf.c_s5k5baf_check_fw_revision.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"FW API=%#x, revision=%#x sensor_id=%#x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"FW API version not supported\n"
	.text
	.p2align 4
	.type	s5k5baf_check_fw_revision, @function
s5k5baf_check_fw_revision:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR REG_FW_APIVER[rip]
	call	s5k5baf_read@PLT
	mov	esi, DWORD PTR REG_FW_REVISION[rip]
	mov	rdi, rbp
	movsx	rbx, eax
	call	s5k5baf_read@PLT
	mov	esi, DWORD PTR REG_FW_SENSOR_ID[rip]
	mov	rdi, rbp
	mov	r12d, eax
	call	s5k5baf_read@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	s5k5baf_clear_error@PLT
	test	eax, eax
	js	.L1
	movzx	ecx, r12b
	movsx	r8, r13d
	mov	rdx, rbx
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	v4l2_info@PLT
	xor	eax, eax
	cmp	QWORD PTR S5K5BAF_FW_APIVER[rip], rbx
	jne	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	v4l2_err@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	s5k5baf_check_fw_revision, .-s5k5baf_check_fw_revision
	.comm	S5K5BAF_FW_APIVER,8,8
	.comm	REG_FW_SENSOR_ID,4,4
	.comm	REG_FW_REVISION,4,4
	.comm	REG_FW_APIVER,4,4
	.comm	ENODEV,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_s5k5baf.c_s5k5baf_check_fw_revision.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"FW API=%#x, revision=%#x sensor_id=%#x\012\000"
	.align	2
.LC1:
	.ascii	"FW API version not supported\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5k5baf_check_fw_revision, %function
s5k5baf_check_fw_revision:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L7
	sub	sp, sp, #12
	ldr	r1, [r3]
	mov	r4, r0
	bl	s5k5baf_read
	ldr	r3, .L7+4
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	s5k5baf_read
	ldr	r2, .L7+8
	mov	r6, r0
	ldr	r1, [r2]
	mov	r0, r4
	bl	s5k5baf_read
	mov	r7, r0
	mov	r0, r4
	bl	s5k5baf_clear_error
	cmp	r0, #0
	blt	.L1
	and	r3, r6, #255
	mov	r2, r5
	mov	r0, r4
	ldr	r1, .L7+12
	str	r7, [sp]
	bl	v4l2_info
	ldr	r3, .L7+16
	ldr	r3, [r3]
	cmp	r3, r5
	moveq	r0, #0
	bne	.L6
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	mov	r0, r4
	ldr	r1, .L7+20
	bl	v4l2_err
	ldr	r3, .L7+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	.align	2
.L7:
	.word	REG_FW_APIVER
	.word	REG_FW_REVISION
	.word	REG_FW_SENSOR_ID
	.word	.LC0
	.word	S5K5BAF_FW_APIVER
	.word	.LC1
	.word	ENODEV
	.size	s5k5baf_check_fw_revision, .-s5k5baf_check_fw_revision
	.comm	S5K5BAF_FW_APIVER,4,4
	.comm	REG_FW_SENSOR_ID,4,4
	.comm	REG_FW_REVISION,4,4
	.comm	REG_FW_APIVER,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
