	.file	"extr_tcs34725.c_tcs34725EnableDone.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Enable finished\n"
	.text
	.p2align 4
	.globl	tcs34725EnableDone
	.type	tcs34725EnableDone, @function
tcs34725EnableDone:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdi, .LC0[rip]
	call	dbg_printf@PLT
	xor	eax, eax
	call	lua_getstate@PLT
	lea	rdi, tcs34725_timer[rip]
	mov	rbp, rax
	call	os_timer_disarm@PLT
	mov	edi, DWORD PTR TCS34725_ENABLE[rip]
	mov	esi, DWORD PTR TCS34725_ENABLE_PON[rip]
	or	esi, DWORD PTR TCS34725_ENABLE_AEN[rip]
	call	tcs34725Write8@PLT
	mov	edi, DWORD PTR TCS34725_INTEGRATIONTIME_2_4MS[rip]
	mov	rsi, rbp
	mov	DWORD PTR _tcs34725Initialised[rip], 1
	call	tcs34725SetIntegrationTime@PLT
	mov	edi, DWORD PTR TCS34725_GAIN_60X[rip]
	mov	rsi, rbp
	call	tcs34725SetGain@PLT
	mov	edx, DWORD PTR cb_tcs_en[rip]
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	mov	edx, DWORD PTR cb_tcs_en[rip]
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	luaL_unref@PLT
	mov	eax, DWORD PTR LUA_NOREF[rip]
	mov	rdi, rbp
	xor	edx, edx
	xor	esi, esi
	mov	DWORD PTR cb_tcs_en[rip], eax
	call	lua_call@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tcs34725EnableDone, .-tcs34725EnableDone
	.comm	tcs34725_timer,4,4
	.comm	cb_tcs_en,4,4
	.comm	_tcs34725Initialised,4,4
	.comm	TCS34725_INTEGRATIONTIME_2_4MS,4,4
	.comm	TCS34725_GAIN_60X,4,4
	.comm	TCS34725_ENABLE_PON,4,4
	.comm	TCS34725_ENABLE_AEN,4,4
	.comm	TCS34725_ENABLE,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	LUA_NOREF,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_tcs34725.c_tcs34725EnableDone.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Enable finished\012\000"
	.text
	.align	2
	.global	tcs34725EnableDone
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcs34725EnableDone, %function
tcs34725EnableDone:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, .L4
	bl	dbg_printf
	bl	lua_getstate
	mov	r4, r0
	ldr	r0, .L4+4
	bl	os_timer_disarm
	ldr	r2, .L4+8
	ldr	r3, .L4+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+16
	orr	r1, r1, r2
	ldr	r0, [r3]
	bl	tcs34725Write8
	mov	r2, #1
	ldr	r0, .L4+20
	ldr	r3, .L4+24
	mov	r1, r4
	ldr	r0, [r0]
	str	r2, [r3]
	bl	tcs34725SetIntegrationTime
	ldr	r3, .L4+28
	ldr	r5, .L4+32
	ldr	r6, .L4+36
	ldr	r0, [r3]
	mov	r1, r4
	bl	tcs34725SetGain
	ldr	r2, [r5]
	ldr	r1, [r6]
	mov	r0, r4
	bl	lua_rawgeti
	ldr	r1, [r6]
	ldr	r2, [r5]
	mov	r0, r4
	bl	luaL_unref
	mov	r2, #0
	ldr	r3, .L4+40
	mov	r0, r4
	ldr	r3, [r3]
	mov	r1, r2
	str	r3, [r5]
	bl	lua_call
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	tcs34725_timer
	.word	TCS34725_ENABLE_PON
	.word	TCS34725_ENABLE_AEN
	.word	TCS34725_ENABLE
	.word	TCS34725_INTEGRATIONTIME_2_4MS
	.word	_tcs34725Initialised
	.word	TCS34725_GAIN_60X
	.word	cb_tcs_en
	.word	LUA_REGISTRYINDEX
	.word	LUA_NOREF
	.size	tcs34725EnableDone, .-tcs34725EnableDone
	.comm	tcs34725_timer,4,4
	.comm	cb_tcs_en,4,4
	.comm	_tcs34725Initialised,4,4
	.comm	TCS34725_INTEGRATIONTIME_2_4MS,4,4
	.comm	TCS34725_GAIN_60X,4,4
	.comm	TCS34725_ENABLE_PON,4,4
	.comm	TCS34725_ENABLE_AEN,4,4
	.comm	TCS34725_ENABLE,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	LUA_NOREF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
