	.file	"extr_w83793.c_w83793_detect_subclients.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid subclient address %d; must be 0x48-0x4f\n"
	.align 8
.LC1:
	.string	"duplicate addresses 0x%x, use force_subclients\n"
	.text
	.p2align 4
	.type	w83793_detect_subclients, @function
w83793_detect_subclients:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	ebp, DWORD PTR [rdi]
	call	i2c_get_clientdata@PLT
	mov	rdi, r13
	mov	r12, rax
	call	i2c_adapter_id@PLT
	mov	r8d, eax
	mov	rax, QWORD PTR force_subclients[rip]
	cmp	DWORD PTR [rax], r8d
	jne	.L2
	cmp	DWORD PTR 4[rax], ebp
	je	.L11
.L2:
	mov	esi, DWORD PTR W83793_REG_I2C_SUBADDR[rip]
	mov	rdi, rbx
	call	w83793_read_value@PLT
	mov	ebp, eax
	test	al, 8
	je	.L12
.L5:
	mov	r14d, ebp
	and	r14d, 128
	je	.L13
	xor	r14d, r14d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR [r12]
	mov	rdi, QWORD PTR [rax]
	call	IS_ERR@PLT
	mov	edx, ebp
	lea	rdi, 4[rbx]
	sar	edx, 4
	xor	ebp, edx
	and	ebp, 7
	or	ebp, eax
	je	.L14
	and	edx, 7
	mov	rbx, QWORD PTR [r12]
	mov	rsi, r13
	add	edx, 72
	call	devm_i2c_new_dummy_device@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	eax, r14d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, eax
	mov	r14, QWORD PTR [r12]
	lea	rdi, 4[rbx]
	mov	rsi, r13
	and	edx, 7
	add	edx, 72
	call	devm_i2c_new_dummy_device@PLT
	mov	QWORD PTR [r14], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 8[rax]
	lea	ecx, -72[rdx]
	cmp	ecx, 7
	ja	.L3
	mov	eax, DWORD PTR 12[rax]
	lea	ecx, -72[rax]
	cmp	ecx, 7
	ja	.L7
	sal	eax, 4
	and	edx, 7
	mov	esi, DWORD PTR W83793_REG_I2C_SUBADDR[rip]
	mov	rdi, rbx
	and	eax, 112
	or	edx, eax
	call	w83793_write_value@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR [r12]
	lea	rsi, .LC1[rip]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	call	dev_err@PLT
	mov	r14d, DWORD PTR ENODEV[rip]
	neg	r14d
	jmp	.L1
.L7:
	mov	edx, eax
.L3:
	lea	rdi, 4[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	w83793_detect_subclients, .-w83793_detect_subclients
	.comm	force_subclients,8,8
	.comm	W83793_REG_I2C_SUBADDR,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
	.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_w83793.c_w83793_detect_subclients.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid subclient address %d; must be 0x48-0x4f\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"duplicate addresses 0x%x, use force_subclients\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w83793_detect_subclients, %function
w83793_detect_subclients:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0, #8]
	mov	r5, r0
	ldr	r4, [r0]
	bl	i2c_get_clientdata
	mov	r6, r0
	mov	r0, r7
	bl	i2c_adapter_id
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, [r3]
	cmp	r2, r0
	bne	.L14
	ldr	r2, [r3, #4]
	cmp	r2, r4
	beq	.L12
.L14:
	ldr	r4, .L19+4
.L2:
	ldr	r1, [r4]
	mov	r0, r5
	bl	w83793_read_value
	tst	r0, #8
	mov	r4, r0
	beq	.L16
.L5:
	ands	r8, r4, #128
	movne	r8, #0
	beq	.L17
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, [r6]
	ldr	r0, [r3]
	bl	IS_ERR
	eor	r3, r4, r4, asr #4
	and	r3, r3, #7
	orrs	r3, r3, r0
	asr	r4, r4, #4
	add	r0, r5, #4
	beq	.L18
	and	r4, r4, #7
	add	r2, r4, #72
	mov	r1, r7
	ldr	r4, [r6]
	bl	devm_i2c_new_dummy_device
	str	r0, [r4, #4]
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	and	r2, r0, #7
	mov	r1, r7
	add	r2, r2, #72
	add	r0, r5, #4
	ldr	r8, [r6]
	bl	devm_i2c_new_dummy_device
	str	r0, [r8]
	b	.L5
.L12:
	ldr	r2, [r3, #8]
	sub	r1, r2, #72
	cmp	r1, #7
	bhi	.L3
	ldr	r3, [r3, #12]
	sub	r1, r3, #72
	cmp	r1, #7
	bhi	.L7
	ldr	r4, .L19+4
	lsl	r3, r3, #4
	and	r3, r3, #112
	and	r2, r2, #7
	mov	r0, r5
	ldr	r1, [r4]
	orr	r2, r3, r2
	bl	w83793_write_value
	b	.L2
.L18:
	ldr	r3, [r6]
	ldr	r1, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r3]
	bl	dev_err
	ldr	r3, .L19+12
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L7:
	mov	r2, r3
.L3:
	ldr	r1, .L19+16
	add	r0, r5, #4
	bl	dev_err
	ldr	r3, .L19+20
	ldr	r8, [r3]
	rsb	r8, r8, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	force_subclients
	.word	W83793_REG_I2C_SUBADDR
	.word	.LC1
	.word	ENODEV
	.word	.LC0
	.word	EINVAL
	.size	w83793_detect_subclients, .-w83793_detect_subclients
	.comm	force_subclients,4,4
	.comm	W83793_REG_I2C_SUBADDR,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
