	.file	"extr_mt9t013.c_mt9t013_probe_init_sensor.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mt9t013"
.LC1:
	.string	"mt9t013 model_id = 0x%x\n"
	.text
	.p2align 4
	.type	mt9t013_probe_init_sensor, @function
mt9t013_probe_init_sensor:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	gpio_request@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L8
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	esi, 1
	call	gpio_direction_output@PLT
	mov	edi, 20
	call	mdelay@PLT
	mov	esi, DWORD PTR MT9T013_REG_RESET_REGISTER[rip]
	mov	edx, 4105
	mov	rax, QWORD PTR mt9t013_client[rip]
	mov	edi, DWORD PTR [rax]
	call	mt9t013_i2c_write_w@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	rax, QWORD PTR mt9t013_client[rip]
	mov	esi, DWORD PTR MT9T013_REG_MODEL_ID[rip]
	mov	rdx, rsp
	mov	edi, DWORD PTR [rax]
	call	mt9t013_i2c_read_w@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	rsi, QWORD PTR [rsp]
	lea	rdi, .LC1[rip]
	call	CDBG@PLT
	mov	rax, QWORD PTR MT9T013_MODEL_ID[rip]
	cmp	QWORD PTR [rsp], rax
	je	.L4
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L3:
.L2:
	endbr64
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	call	gpio_direction_output@PLT
	mov	edi, DWORD PTR [rbx]
	call	gpio_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR mt9t013_client[rip]
	mov	edx, 2053
	mov	esi, 12388
	mov	edi, DWORD PTR [rax]
	call	mt9t013_i2c_write_w@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L3
	mov	edi, DWORD PTR MT9T013_RESET_DELAY_MSECS[rip]
	call	mdelay@PLT
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mt9t013_probe_init_sensor, .-mt9t013_probe_init_sensor
	.comm	mt9t013_client,8,8
	.comm	MT9T013_RESET_REGISTER_PWON,4,4
	.comm	MT9T013_RESET_DELAY_MSECS,4,4
	.comm	MT9T013_REG_RESET_REGISTER,4,4
	.comm	MT9T013_REG_MODEL_ID,4,4
	.comm	MT9T013_MODEL_ID,8,8
	.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_mt9t013.c_mt9t013_probe_init_sensor.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mt9t013\000"
	.align	2
.LC1:
	.ascii	"mt9t013 model_id = 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt9t013_probe_init_sensor, %function
mt9t013_probe_init_sensor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	sub	sp, sp, #8
	mov	r5, r0
	ldr	r1, .L10+4
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	gpio_request
	subs	r4, r0, #0
	beq	.L8
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, #1
	ldr	r0, [r5]
	ldr	r6, .L10+8
	bl	gpio_direction_output
	mov	r0, #20
	bl	mdelay
	ldr	r2, [r6]
	ldr	r3, .L10+12
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, .L10+16
	bl	mt9t013_i2c_write_w
	subs	r4, r0, #0
	blt	.L3
	ldr	r2, .L10+20
	ldr	r3, [r6]
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	r2, sp
	bl	mt9t013_i2c_read_w
	subs	r4, r0, #0
	blt	.L3
	ldr	r1, [sp]
	ldr	r0, .L10+24
	bl	CDBG
	ldr	r3, .L10+28
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L10+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L3:
.L2:
	mov	r1, #0
	ldr	r0, [r5]
	bl	gpio_direction_output
	ldr	r0, [r5]
	bl	gpio_free
	b	.L1
.L4:
	ldr	r3, [r6]
	ldr	r2, .L10+36
	ldr	r0, [r3]
	ldr	r1, .L10+40
	bl	mt9t013_i2c_write_w
	subs	r4, r0, #0
	blt	.L3
	ldr	r3, .L10+44
	ldr	r0, [r3]
	bl	mdelay
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	.LC0
	.word	mt9t013_client
	.word	MT9T013_REG_RESET_REGISTER
	.word	4105
	.word	MT9T013_REG_MODEL_ID
	.word	.LC1
	.word	MT9T013_MODEL_ID
	.word	ENODEV
	.word	2053
	.word	12388
	.word	MT9T013_RESET_DELAY_MSECS
	.size	mt9t013_probe_init_sensor, .-mt9t013_probe_init_sensor
	.comm	mt9t013_client,4,4
	.comm	MT9T013_RESET_REGISTER_PWON,4,4
	.comm	MT9T013_RESET_DELAY_MSECS,4,4
	.comm	MT9T013_REG_RESET_REGISTER,4,4
	.comm	MT9T013_REG_MODEL_ID,4,4
	.comm	MT9T013_MODEL_ID,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
