	.file	"extr_usbvision-i2c.c_try_read_address.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Needed %d retries for address %#2x"
	.align 8
.LC1:
	.string	"Maybe there's no device at this address"
	.text
	.p2align 4
	.type	try_read_address, @function
try_read_address:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	i2c_get_adapdata@PLT
	test	ebx, ebx
	js	.L7
	mov	rbp, rax
	movzx	r14d, r14b
	lea	r15, 4[rsp]
	xor	r13d, r13d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, 5
	call	udelay@PLT
	cmp	ebx, r13d
	je	.L3
	mov	edi, 10
	add	r13d, 1
	call	udelay@PLT
	cmp	ebx, r13d
	jl	.L5
.L4:
	mov	ecx, 1
	mov	rdx, r15
	mov	esi, r14d
	mov	rdi, rbp
	call	usbvision_i2c_read@PLT
	mov	r12d, eax
	cmp	eax, 1
	jne	.L18
.L3:
	test	r13d, r13d
	jne	.L5
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR DBG_I2C[rip]
	mov	ecx, r14d
	mov	edx, r13d
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	PDEBUG@PLT
	mov	edi, DWORD PTR DBG_I2C[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	PDEBUG@PLT
	jmp	.L1
.L7:
	mov	r12d, -1
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	try_read_address, .-try_read_address
	.comm	DBG_I2C,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_usbvision-i2c.c_try_read_address.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Needed %d retries for address %#2x\000"
	.align	2
.LC1:
	.ascii	"Maybe there's no device at this address\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	try_read_address, %function
try_read_address:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	ldr	r3, .L20
	sub	sp, sp, #8
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	i2c_get_adapdata
	cmp	r6, #0
	blt	.L7
	mov	r8, r0
	mov	r5, #0
	b	.L4
.L18:
	mov	r0, #5
	bl	udelay
	cmp	r6, r5
	beq	.L3
	mov	r0, #10
	add	r5, r5, #1
	bl	udelay
	cmp	r6, r5
	blt	.L5
.L4:
	mov	r3, #1
	mov	r2, sp
	mov	r1, r7
	mov	r0, r8
	bl	usbvision_i2c_read
	cmp	r0, #1
	mov	r4, r0
	bne	.L18
.L3:
	cmp	r5, #0
	bne	.L5
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r6, .L20+4
	mov	r3, r7
	mov	r2, r5
	ldr	r0, [r6]
	ldr	r1, .L20+8
	bl	PDEBUG
	ldr	r0, [r6]
	ldr	r1, .L20+12
	bl	PDEBUG
	b	.L1
.L7:
	mvn	r4, #0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	DBG_I2C
	.word	.LC0
	.word	.LC1
	.size	try_read_address, .-try_read_address
	.comm	DBG_I2C,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
