	.file	"extr_mt9m001.c_mt9m001_g_chip_ident.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mt9m001_g_chip_ident, @function
mt9m001_g_chip_ident:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	v4l2_get_subdevdata@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	to_mt9m001@PLT
	mov	rdx, QWORD PTR V4L2_CHIP_MATCH_I2C_ADDR[rip]
	cmp	QWORD PTR 16[rbx], rdx
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR 0[rbp]
	cmp	QWORD PTR 24[rbx], rcx
	je	.L4
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR [rax]
	mov	QWORD PTR [rbx], 0
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mt9m001_g_chip_ident, .-mt9m001_g_chip_ident
	.comm	V4L2_CHIP_MATCH_I2C_ADDR,8,8
	.comm	ENODEV,4,4
	.comm	EINVAL,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_mt9m001.c_mt9m001_g_chip_ident.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt9m001_g_chip_ident, %function
mt9m001_g_chip_ident:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	v4l2_get_subdevdata
	mov	r5, r0
	bl	to_mt9m001
	ldr	r3, .L7
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	cmp	r1, r2
	beq	.L2
	ldr	r3, .L7+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r2, [r5]
	ldr	r1, [r4, #12]
	cmp	r1, r2
	moveq	r3, r0
	moveq	r2, #0
	ldrne	r3, .L7+8
	ldreq	r3, [r3]
	ldrne	r0, [r3]
	stmeq	r4, {r2, r3}
	rsbne	r0, r0, #0
	moveq	r0, r2
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	V4L2_CHIP_MATCH_I2C_ADDR
	.word	EINVAL
	.word	ENODEV
	.size	mt9m001_g_chip_ident, .-mt9m001_g_chip_ident
	.comm	V4L2_CHIP_MATCH_I2C_ADDR,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
