	.file	"extr_leds-tca6507.c_set_times.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Chose on  times %d(%d) %d(%d) for %dms\n"
	.align 8
.LC1:
	.string	"Chose off times %d(%d) %d(%d) for %dms\n"
	.text
	.p2align 4
	.type	set_times, @function
set_times:
.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
	movsx	r13, esi
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rax, 0[0+r13*8]
	lea	r14, 20[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR [rdi]
	lea	r15, 16[rsp]
	mov	rdx, r14
	mov	rsi, r15
	mov	edi, DWORD PTR [rax+r13*8]
	call	choose_times@PLT
	test	eax, eax
	js	.L1
	movsx	rcx, DWORD PTR 20[rsp]
	mov	edx, DWORD PTR 16[rsp]
	mov	ebx, eax
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	rax, QWORD PTR time_codes[rip]
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	r12, r13
	mov	r8, rcx
	mov	r9d, DWORD PTR [rax+rcx*4]
	movsx	rcx, edx
	mov	ecx, DWORD PTR [rax+rcx*4]
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [rax+r13*8]
	push	rax
	.cfi_def_cfa_offset 112
	call	dev_dbg@PLT
	mov	ecx, DWORD PTR 36[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR TCA6507_FADE_ON[rip]
	call	set_code@PLT
	mov	ecx, DWORD PTR 32[rsp]
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR TCA6507_FULL_ON[rip]
	call	set_code@PLT
	mov	r13, QWORD PTR 24[rsp]
	mov	rdx, r14
	mov	rsi, r15
	mov	rax, QWORD PTR 0[rbp]
	add	rax, r13
	mov	DWORD PTR [rax], ebx
	mov	edi, DWORD PTR 4[rax]
	call	choose_times@PLT
	movsx	rcx, DWORD PTR 36[rsp]
	mov	edx, DWORD PTR 32[rsp]
	lea	rsi, .LC1[rip]
	mov	ebx, eax
	mov	rax, QWORD PTR time_codes[rip]
	mov	rdi, QWORD PTR 8[rbp]
	mov	r8, rcx
	mov	r9d, DWORD PTR [rax+rcx*4]
	movsx	rcx, edx
	mov	ecx, DWORD PTR [rax+rcx*4]
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR 4[rax+r13]
	mov	DWORD PTR [rsp], eax
	call	dev_dbg@PLT
	mov	ecx, DWORD PTR 36[rsp]
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR TCA6507_FADE_OFF[rip]
	call	set_code@PLT
	mov	ecx, DWORD PTR 32[rsp]
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR TCA6507_FIRST_OFF[rip]
	call	set_code@PLT
	mov	ecx, DWORD PTR 32[rsp]
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, DWORD PTR TCA6507_SECOND_OFF[rip]
	call	set_code@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, r12d
	mov	rdi, rbp
	mov	ecx, DWORD PTR INIT_CODE[rip]
	mov	esi, DWORD PTR TCA6507_INITIALIZE[rip]
	mov	DWORD PTR 4[rax+r13], ebx
	call	set_code@PLT
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_times, .-set_times
	.comm	time_codes,8,8
	.comm	TCA6507_SECOND_OFF,4,4
	.comm	TCA6507_INITIALIZE,4,4
	.comm	TCA6507_FULL_ON,4,4
	.comm	TCA6507_FIRST_OFF,4,4
	.comm	TCA6507_FADE_ON,4,4
	.comm	TCA6507_FADE_OFF,4,4
	.comm	INIT_CODE,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-tca6507.c_set_times.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Chose on  times %d(%d) %d(%d) for %dms\012\000"
	.align	2
.LC1:
	.ascii	"Chose off times %d(%d) %d(%d) for %dms\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_times, %function
set_times:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	sub	sp, sp, #32
	mov	r4, r0
	ldr	r0, [r3, r1, lsl #3]
	ldr	r3, .L8
	mov	r5, r1
	add	r2, sp, #24
	add	r1, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	choose_times
	subs	r6, r0, #0
	blt	.L1
	ldr	r3, [r4]
	ldr	r8, .L8+4
	ldr	ip, [r3, r5, lsl #3]
	ldr	r0, [r8]
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #24]
	ldr	r3, [r0, r2, lsl #2]
	str	ip, [sp, #8]
	ldr	r0, [r0, r1, lsl #2]
	str	r1, [sp]
	str	r0, [sp, #4]
	ldr	r1, .L8+8
	ldr	r0, [r4, #4]
	bl	dev_dbg
	ldr	r2, .L8+12
	ldr	r3, [sp, #24]
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r5
	bl	set_code
	ldr	r2, .L8+16
	ldr	r3, [sp, #20]
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r5
	bl	set_code
	ldr	r3, [r4]
	lsl	r7, r5, #3
	add	r0, r3, r7
	str	r6, [r3, r5, lsl #3]
	add	r2, sp, #24
	add	r1, sp, #20
	ldr	r0, [r0, #4]
	bl	choose_times
	mov	r6, r0
	ldr	r3, [r4]
	ldr	r0, [r8]
	add	r3, r3, r7
	ldr	ip, [r3, #4]
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #24]
	ldr	r3, [r0, r2, lsl #2]
	str	ip, [sp, #8]
	ldr	r0, [r0, r1, lsl #2]
	str	r1, [sp]
	str	r0, [sp, #4]
	ldr	r1, .L8+20
	ldr	r0, [r4, #4]
	bl	dev_dbg
	ldr	r2, .L8+24
	ldr	r3, [sp, #24]
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r5
	bl	set_code
	ldr	r2, .L8+28
	ldr	r3, [sp, #20]
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r5
	bl	set_code
	ldr	r2, .L8+32
	ldr	r3, [sp, #20]
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, r5
	bl	set_code
	ldr	r3, [r4]
	ldr	ip, .L8+36
	ldr	r1, .L8+40
	add	r7, r3, r7
	mov	r2, r5
	mov	r0, r4
	ldr	r3, [ip]
	ldr	r1, [r1]
	str	r6, [r7, #4]
	bl	set_code
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	time_codes
	.word	.LC0
	.word	TCA6507_FADE_ON
	.word	TCA6507_FULL_ON
	.word	.LC1
	.word	TCA6507_FADE_OFF
	.word	TCA6507_FIRST_OFF
	.word	TCA6507_SECOND_OFF
	.word	INIT_CODE
	.word	TCA6507_INITIALIZE
	.size	set_times, .-set_times
	.comm	time_codes,4,4
	.comm	TCA6507_SECOND_OFF,4,4
	.comm	TCA6507_INITIALIZE,4,4
	.comm	TCA6507_FULL_ON,4,4
	.comm	TCA6507_FIRST_OFF,4,4
	.comm	TCA6507_FADE_ON,4,4
	.comm	TCA6507_FADE_OFF,4,4
	.comm	INIT_CODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
