	.file	"extr_i2c-core-base.c_i2c_detect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"This adapter dropped support for I2C classes and won't auto-detect %s devices anymore. If you need it, check 'Documentation/i2c/instantiating-devices.rst' for alternatives.\n"
	.align 8
.LC1:
	.string	"found normal entry for adapter %d, addr 0x%02x\n"
	.text
	.p2align 4
	.type	i2c_detect, @function
i2c_detect:
.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
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	i2c_adapter_id@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	r15, QWORD PTR [rbx]
	test	edx, edx
	je	.L7
	test	r15, r15
	je	.L7
	mov	r8d, DWORD PTR 0[rbp]
	cmp	r8d, DWORD PTR I2C_CLASS_DEPRECATED[rip]
	je	.L15
	and	r8d, DWORD PTR 8[rbx]
	mov	r14d, r8d
	je	.L1
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 16
	mov	r13d, eax
	call	kzalloc@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	mov	r12, rax
	neg	r14d
	test	rax, rax
	je	.L1
	movzx	ecx, WORD PTR [r15]
	cmp	cx, WORD PTR I2C_CLIENT_END[rip]
	mov	QWORD PTR 8[rax], rbp
	je	.L8
	add	rbp, 4
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	add	r15, 2
	movzx	ecx, WORD PTR [r15]
	cmp	cx, WORD PTR I2C_CLIENT_END[rip]
	je	.L5
.L6:
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	movzx	eax, WORD PTR [r15]
	mov	rdi, r12
	mov	rsi, rbx
	mov	WORD PTR [r12], ax
	call	i2c_detect_address@PLT
	mov	edi, eax
	mov	r14d, eax
	call	unlikely@PLT
	test	rax, rax
	je	.L16
.L5:
	mov	rdi, r12
	call	kfree@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L7:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, DWORD PTR 12[rbx]
	lea	rdi, 4[rbp]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	xor	r14d, r14d
	call	dev_dbg@PLT
	jmp	.L1
.L8:
	xor	r14d, r14d
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	i2c_detect, .-i2c_detect
	.comm	I2C_CLIENT_END,2,2
	.comm	I2C_CLASS_DEPRECATED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_i2c-core-base.c_i2c_detect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"This adapter dropped support for I2C classes and wo"
	.ascii	"n't auto-detect %s devices anymore. If you need it,"
	.ascii	" check 'Documentation/i2c/instantiating-devices.rst"
	.ascii	"' for alternatives.\012\000"
	.align	2
.LC1:
	.ascii	"found normal entry for adapter %d, addr 0x%02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_detect, %function
i2c_detect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r7, r0
	bl	i2c_adapter_id
	ldr	r6, [r5]
	ldr	fp, [r5, #12]
	clz	r3, r6
	cmp	fp, #0
	lsr	r3, r3, #5
	movne	fp, r3
	moveq	fp, #1
	cmp	fp, #0
	movne	r4, #0
	bne	.L1
	ldr	r3, .L18
	ldr	r4, [r7]
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L15
	mov	r9, r0
	ldr	r0, [r5, #4]
	ands	r4, r4, r0
	beq	.L1
	ldr	r3, .L18+4
	mov	r0, #8
	ldr	r1, [r3]
	bl	kzalloc
	subs	r8, r0, #0
	beq	.L16
	ldr	r2, .L18+8
	ldrh	r3, [r6]
	ldrh	r10, [r2]
	str	r7, [r8, #4]
	cmp	r3, r10
	beq	.L8
	ldr	fp, .L18+12
	add	r7, r7, #4
	b	.L6
.L17:
	ldrh	r3, [r6, #2]!
	cmp	r3, r10
	beq	.L5
.L6:
	mov	r2, r9
	mov	r1, fp
	mov	r0, r7
	bl	dev_dbg
	ldrh	r3, [r6]
	mov	r1, r5
	strh	r3, [r8]	@ movhi
	mov	r0, r8
	bl	i2c_detect_address
	mov	r4, r0
	bl	unlikely
	cmp	r0, #0
	beq	.L17
.L5:
	mov	r0, r8
	bl	kfree
.L1:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r2, [r5, #8]
	ldr	r1, .L18+16
	add	r0, r7, #4
	mov	r4, fp
	bl	dev_dbg
	b	.L1
.L16:
	ldr	r3, .L18+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L8:
	mov	r4, fp
	b	.L5
.L19:
	.align	2
.L18:
	.word	I2C_CLASS_DEPRECATED
	.word	GFP_KERNEL
	.word	I2C_CLIENT_END
	.word	.LC1
	.word	.LC0
	.word	ENOMEM
	.size	i2c_detect, .-i2c_detect
	.comm	I2C_CLIENT_END,2,2
	.comm	I2C_CLASS_DEPRECATED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
