	.file	"extr_adp8870_bl.c_adp8870_led_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adp8870_led_setup, @function
adp8870_led_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 8[rdi]
	movsx	rsi, DWORD PTR [rdi]
	add	rsi, QWORD PTR ADP8870_ISC1[rip]
	sub	rsi, 1
	mov	rdi, rbp
	call	adp8870_write@PLT
	test	eax, eax
	je	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	mov	edx, 1
	mov	esi, DWORD PTR ADP8870_ISCC[rip]
	mov	rdi, rbp
	lea	ecx, -1[rax]
	sal	edx, cl
	call	adp8870_set_bits@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR [rbx]
	and	edx, 3
	cmp	eax, 4
	jg	.L8
	mov	esi, DWORD PTR ADP8870_ISCT2[rip]
	lea	ecx, -2[rax+rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	sal	edx, cl
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	adp8870_set_bits@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR ADP8870_ISCT1[rip]
	lea	ecx, -10[rax+rax]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	sal	edx, cl
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	adp8870_set_bits@PLT
	.cfi_endproc
.LFE0:
	.size	adp8870_led_setup, .-adp8870_led_setup
	.comm	ADP8870_ISCT2,4,4
	.comm	ADP8870_ISCT1,4,4
	.comm	ADP8870_ISCC,4,4
	.comm	ADP8870_ISC1,8,8
	.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_adp8870_bl.c_adp8870_led_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adp8870_led_setup, %function
adp8870_led_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r1, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #8]
	add	r1, r1, r3
	mov	r4, r0
	mov	r2, #0
	mov	r0, r5
	sub	r1, r1, #1
	bl	adp8870_write
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r2, #1
	ldr	r3, [r4]
	ldr	r1, .L7+4
	sub	r3, r3, #1
	mov	r0, r5
	ldr	r1, [r1]
	lsl	r2, r2, r3
	bl	adp8870_set_bits
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	cmp	r3, #4
	ldrgt	r1, .L7+8
	ldrle	r1, .L7+12
	subgt	r3, r3, #5
	suble	r3, r3, #1
	and	r2, r2, #3
	lsl	r3, r3, #1
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	ldr	r1, [r1]
	lsl	r2, r2, r3
	b	adp8870_set_bits
.L8:
	.align	2
.L7:
	.word	ADP8870_ISC1
	.word	ADP8870_ISCC
	.word	ADP8870_ISCT1
	.word	ADP8870_ISCT2
	.size	adp8870_led_setup, .-adp8870_led_setup
	.comm	ADP8870_ISCT2,4,4
	.comm	ADP8870_ISCT1,4,4
	.comm	ADP8870_ISCC,4,4
	.comm	ADP8870_ISC1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
