	.file	"extr_leds-pca963x.c_pca963x_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not parse configuration\n"
	.align 8
.LC1:
	.string	"board info must claim 1-%d LEDs"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"pca963x:%s"
.LC3:
	.string	"pca963x:%d:%.2x:%d"
	.text
	.p2align 4
	.type	pca963x_probe, @function
pca963x_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 4[rdi]
	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
	mov	r12, rdi
	mov	rdi, r15
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbx, QWORD PTR [rsi]
	sal	rbx, 4
	add	rbx, QWORD PTR pca963x_chipdefs[rip]
	call	dev_get_platdata@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L44
.L2:
	mov	eax, DWORD PTR 24[rbp]
	mov	edx, DWORD PTR [rbx]
	test	eax, eax
	jle	.L5
	cmp	eax, edx
	jg	.L5
.L4:
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 32
	mov	rdi, r15
	call	devm_kzalloc@PLT
	mov	QWORD PTR 8[rsp], rax
	test	rax, rax
	je	.L41
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR [rbx]
	mov	edx, 48
	mov	rdi, r15
	call	devm_kcalloc@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L41
	mov	r14, QWORD PTR 8[rsp]
	mov	rdi, r12
	mov	rsi, r14
	call	i2c_set_clientdata@PLT
	lea	rdi, 24[r14]
	call	mutex_init@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	edx, DWORD PTR [rbx]
	mov	QWORD PTR 16[r14], rbx
	mov	QWORD PTR [r14], r12
	mov	QWORD PTR 8[r14], rax
	cmp	edx, 3
	jle	.L9
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rsi, QWORD PTR 8[rbx]
	xor	edx, edx
	mov	rdi, r12
	add	rsi, r13
	add	r13, 1
	call	i2c_smbus_write_byte_data@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	lea	eax, 3[rdx]
	cmovns	eax, edx
	sar	eax, 2
	cmp	eax, r13d
	jg	.L10
.L9:
	mov	rax, QWORD PTR 24[rsp]
	xor	r14d, r14d
	lea	r13, 8[rax]
	xor	eax, eax
	test	edx, edx
	jle	.L23
	mov	QWORD PTR 16[rsp], rbx
	mov	rbx, rax
	mov	rax, r13
	mov	r13d, r14d
	mov	r14, rax
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdx, QWORD PTR 32[rbp]
	lea	rsi, [rdx+rbx]
	mov	rcx, QWORD PTR [rsi]
	test	rcx, rcx
	je	.L15
	lea	rdx, .LC2[rip]
	mov	esi, 4
	xor	eax, eax
	call	snprintf@PLT
	mov	rdx, QWORD PTR 32[rbp]
	mov	eax, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR 32[r14]
	mov	rcx, QWORD PTR 8[rdx+rbx]
	test	rcx, rcx
	je	.L17
.L30:
	mov	QWORD PTR 16[r14], rcx
.L17:
	cmp	r13d, eax
	jge	.L14
	cmp	QWORD PTR [rdx+rbx], 0
	je	.L14
	mov	DWORD PTR 8[r14], edi
	mov	eax, DWORD PTR pca963x_led_set[rip]
	mov	DWORD PTR 4[r14], eax
.L28:
	mov	rax, QWORD PTR PCA963X_HW_BLINK[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L19
	mov	eax, DWORD PTR pca963x_blink_set[rip]
	mov	DWORD PTR [r14], eax
.L19:
	mov	rsi, r14
	mov	rdi, r15
	call	led_classdev_register@PLT
	test	eax, eax
	js	.L45
.L20:
	mov	rax, QWORD PTR 16[rsp]
	add	r13d, 1
	add	r14, 48
	add	rbx, 16
	cmp	DWORD PTR [rax], r13d
	jle	.L23
.L22:
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR 32[r14]
	mov	DWORD PTR -8[r14], r13d
	mov	QWORD PTR 24[r14], rax
	test	rbp, rbp
	je	.L13
	mov	eax, DWORD PTR 24[rbp]
	cmp	eax, r13d
	jg	.L46
.L14:
	mov	rax, QWORD PTR 8[r12]
	mov	r8d, DWORD PTR [r12]
	mov	r9d, r13d
	lea	rdx, .LC3[rip]
	mov	esi, 4
	mov	ecx, DWORD PTR [rax]
	xor	eax, eax
	call	snprintf@PLT
	mov	eax, DWORD PTR 32[r14]
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR pca963x_led_set[rip]
	mov	DWORD PTR 4[r14], eax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r8d, DWORD PTR ENOMEM[rip]
	neg	r8d
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	dev_err@PLT
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 8[r12]
	mov	r8d, DWORD PTR [r12]
	mov	esi, 4
	mov	r9d, r13d
	lea	rdx, .LC3[rip]
	mov	ecx, DWORD PTR [rax]
	xor	eax, eax
	call	snprintf@PLT
	mov	eax, DWORD PTR 32[r14]
	mov	rsi, r14
	mov	rdi, r15
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR pca963x_led_set[rip]
	mov	DWORD PTR 4[r14], eax
	call	led_classdev_register@PLT
	test	eax, eax
	jns	.L20
.L45:
	mov	r8d, eax
	lea	eax, -1[r13]
	test	r13d, r13d
	je	.L1
	movsx	rdx, eax
	mov	rcx, QWORD PTR 24[rsp]
	mov	eax, eax
	mov	r12d, r8d
	lea	rdx, [rdx+rdx*2]
	lea	rax, [rax+rax*2]
	sal	rdx, 4
	sal	rax, 4
	lea	rbp, -40[rcx+rdx]
	lea	rbx, 8[rcx+rdx]
	sub	rbp, rax
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbx
	sub	rbx, 48
	call	led_classdev_unregister@PLT
	cmp	rbp, rbx
	jne	.L27
	mov	r8d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, QWORD PTR 8[rsi]
	test	rcx, rcx
	jne	.L30
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, 4
	call	BIT@PLT
	mov	rsi, QWORD PTR PCA963X_MODE1[rip]
	mov	rdi, r12
	mov	edx, eax
	call	i2c_smbus_write_byte_data@PLT
	test	rbp, rbp
	je	.L42
	mov	rax, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR PCA963X_MODE2[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, QWORD PTR [rax]
	call	i2c_smbus_read_byte_data@PLT
	mov	rcx, QWORD PTR PCA963X_OPEN_DRAIN[rip]
	mov	edx, eax
	or	edx, 5
	cmp	QWORD PTR 8[rbp], rcx
	jne	.L25
	or	eax, 1
	mov	edx, eax
.L25:
	mov	rax, QWORD PTR PCA963X_INVERTED[rip]
	cmp	QWORD PTR 16[rbp], rax
	jne	.L26
	or	edx, 16
.L26:
	mov	rax, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR PCA963X_MODE2[rip]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, QWORD PTR [rax]
	call	i2c_smbus_write_byte_data@PLT
.L42:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L44:
	mov	rdi, r12
	mov	rsi, rbx
	call	pca963x_get_pdata@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L47
	test	r13, r13
	je	.L4
	mov	rbp, r13
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L47:
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	dev_warn@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pca963x_probe, .-pca963x_probe
	.comm	pca963x_led_set,4,4
	.comm	pca963x_chipdefs,8,8
	.comm	pca963x_blink_set,4,4
	.comm	PCA963X_OPEN_DRAIN,8,8
	.comm	PCA963X_MODE2,8,8
	.comm	PCA963X_MODE1,8,8
	.comm	PCA963X_INVERTED,8,8
	.comm	PCA963X_HW_BLINK,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_leds-pca963x.c_pca963x_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not parse configuration\012\000"
	.align	2
.LC1:
	.ascii	"board info must claim 1-%d LEDs\000"
	.align	2
.LC2:
	.ascii	"pca963x:%s\000"
	.align	2
.LC3:
	.ascii	"pca963x:%d:%.2x:%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pca963x_probe, %function
pca963x_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L49
	add	r9, r0, #4
	mov	r7, r0
	sub	sp, sp, #20
	mov	r0, r9
	ldr	r5, [r1]
	ldr	r4, [r3]
	bl	dev_get_platdata
	subs	r6, r0, #0
	add	r8, r4, r5, lsl #3
	beq	.L45
.L2:
	ldr	r3, [r6, #12]
	ldr	r2, [r4, r5, lsl #3]
	cmp	r3, #0
	ble	.L5
	cmp	r3, r2
	bgt	.L5
.L4:
	ldr	r10, .L49+4
	mov	r1, #16
	mov	r0, r9
	ldr	r2, [r10]
	bl	devm_kzalloc
	subs	r3, r0, #0
	mov	fp, r3
	beq	.L42
	ldr	r3, [r10]
	mov	r2, #28
	mov	r0, r9
	ldr	r1, [r4, r5, lsl #3]
	bl	devm_kcalloc
	subs	r3, r0, #0
	str	r3, [sp, #8]
	beq	.L42
	mov	r1, fp
	mov	r0, r7
	bl	i2c_set_clientdata
	add	r0, fp, #12
	bl	mutex_init
	ldr	r3, [r4, r5, lsl #3]
	ldr	r2, [sp, #8]
	cmp	r3, #3
	str	r8, [fp, #8]
	str	r7, [fp]
	str	r2, [fp, #4]
	ble	.L9
	mov	r4, #0
.L10:
	ldr	r1, [r8, #4]
	mov	r2, #0
	add	r1, r4, r1
	mov	r0, r7
	bl	i2c_smbus_write_byte_data
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, #0
	add	r2, r3, #3
	movge	r2, r3
	cmp	r4, r2, asr #2
	blt	.L10
.L9:
	cmp	r3, #0
	ble	.L23
	ldr	r3, [sp, #8]
	mov	r5, #0
	ldr	r10, .L49+8
	add	r4, r3, #4
	b	.L22
.L47:
	ldr	r1, [r6, #16]
	lsl	r3, r5, #3
	str	r3, [sp, #12]
	ldr	r3, [r1, r5, lsl #3]
	add	ip, r1, r5, lsl #3
	cmp	r3, #0
	beq	.L15
	mov	r1, #4
	ldr	r2, .L49+12
	bl	snprintf
	ldr	r1, [r6, #16]
	lsl	r3, r5, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	ldr	r2, [r6, #12]
	cmp	r3, #0
	ldr	r0, [r4, #20]
	beq	.L17
.L30:
	str	r3, [r4, #12]
.L17:
	cmp	r5, r2
	bge	.L14
	lsl	r3, r5, #3
	ldr	r3, [r1, r3]
	cmp	r3, #0
	beq	.L14
	str	r0, [r4, #8]
	ldr	r3, [r10]
	str	r3, [r4, #4]
.L28:
	ldr	r3, .L49+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L49+20
	ldreq	r3, [r3]
	streq	r3, [r4]
.L19:
	mov	r1, r4
	mov	r0, r9
	bl	led_classdev_register
	cmp	r0, #0
	blt	.L46
	ldr	r3, [r8]
	add	r5, r5, #1
	cmp	r3, r5
	add	r4, r4, #28
	ble	.L23
.L22:
	cmp	r6, #0
	ldr	r0, [r4, #20]
	str	r5, [r4, #-4]
	str	fp, [r4, #16]
	beq	.L13
	ldr	r2, [r6, #12]
	cmp	r2, r5
	bgt	.L47
.L14:
	ldr	r3, [r7, #8]
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r1, #4
	stm	sp, {r2, r5}
	ldr	r2, .L49+24
	bl	snprintf
	ldr	r3, [r4, #20]
	str	r3, [r4, #8]
	ldr	r3, [r10]
	str	r3, [r4, #4]
	b	.L28
.L42:
	ldr	r3, .L49+28
	ldr	fp, [r3]
	rsb	fp, fp, #0
.L1:
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, r9
	ldr	r1, .L49+32
	bl	dev_err
	ldr	r3, .L49+36
	ldr	fp, [r3]
	rsb	fp, fp, #0
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, [r7, #8]
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r1, #4
	stm	sp, {r2, r5}
	ldr	r2, .L49+24
	bl	snprintf
	ldr	r3, [r4, #20]
	str	r3, [r4, #8]
	ldr	r3, [r10]
	str	r3, [r4, #4]
	b	.L19
.L15:
	ldr	r3, [ip, #4]
	cmp	r3, #0
	bne	.L30
	b	.L14
.L23:
	ldr	r3, .L49+40
	mov	r0, #4
	ldr	r4, [r3]
	bl	BIT
	mov	r1, r4
	mov	r2, r0
	mov	r0, r7
	bl	i2c_smbus_write_byte_data
	cmp	r6, #0
	beq	.L43
	ldr	r3, [sp, #8]
	ldr	r4, .L49+44
	ldr	r3, [r3, #20]
	ldr	r1, [r4]
	ldr	r0, [r3]
	bl	i2c_smbus_read_byte_data
	ldr	r3, .L49+48
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	ldr	r1, [r6, #8]
	cmp	r2, r3
	ldr	r3, .L49+52
	orreq	r2, r0, #1
	ldr	r3, [r3]
	orrne	r2, r0, #5
	cmp	r1, r3
	ldr	r3, [sp, #8]
	ldr	r1, [r4]
	ldr	r3, [r3, #20]
	orreq	r2, r2, #16
	ldr	r0, [r3]
	bl	i2c_smbus_write_byte_data
.L43:
	mov	fp, #0
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	mov	r1, r8
	mov	r0, r7
	bl	pca963x_get_pdata
	mov	r10, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L48
	cmp	r10, #0
	beq	.L4
	mov	r6, r10
	b	.L2
.L46:
	cmp	r5, #0
	mov	fp, r0
	sub	r5, r5, #1
	beq	.L1
	ldr	r3, [sp, #8]
	rsb	r5, r5, r5, lsl #3
	add	r4, r3, r5, lsl #2
	add	r4, r4, #4
	sub	r5, r3, #24
.L27:
	mov	r0, r4
	sub	r4, r4, #28
	bl	led_classdev_unregister
	cmp	r5, r4
	bne	.L27
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L48:
	mov	r0, r9
	ldr	r1, .L49+56
	bl	dev_warn
	b	.L4
.L50:
	.align	2
.L49:
	.word	pca963x_chipdefs
	.word	GFP_KERNEL
	.word	pca963x_led_set
	.word	.LC2
	.word	PCA963X_HW_BLINK
	.word	pca963x_blink_set
	.word	.LC3
	.word	ENOMEM
	.word	.LC1
	.word	EINVAL
	.word	PCA963X_MODE1
	.word	PCA963X_MODE2
	.word	PCA963X_OPEN_DRAIN
	.word	PCA963X_INVERTED
	.word	.LC0
	.size	pca963x_probe, .-pca963x_probe
	.comm	pca963x_led_set,4,4
	.comm	pca963x_chipdefs,4,4
	.comm	pca963x_blink_set,4,4
	.comm	PCA963X_OPEN_DRAIN,4,4
	.comm	PCA963X_MODE2,4,4
	.comm	PCA963X_MODE1,4,4
	.comm	PCA963X_INVERTED,4,4
	.comm	PCA963X_HW_BLINK,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
