	.file	"extr_tmr.c_alarm_timer_common.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alarm_timer_common, @function
alarm_timer_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	lua_getstate@PLT
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR LUA_NOREF[rip]
	je	.L1
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	lua_rawgeti@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	mov	eax, DWORD PTR 16[rbx]
	cmp	eax, DWORD PTR TIMER_MODE_SINGLE[rip]
	je	.L8
	cmp	eax, DWORD PTR TIMER_MODE_SEMI[rip]
	je	.L9
	cmp	DWORD PTR TIMER_MODE_AUTO[rip], eax
	je	.L5
.L10:
	mov	rdx, QWORD PTR 8[rbx]
	cmp	rdx, QWORD PTR LUA_REFNIL[rip]
	je	.L5
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	luaL_unref@PLT
	mov	rax, QWORD PTR LUA_NOREF[rip]
	mov	QWORD PTR 8[rbx], rax
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	edx, edx
	mov	esi, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	lua_call@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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
.L9:
	.cfi_restore_state
	or	eax, DWORD PTR TIMER_IDLE_FLAG[rip]
	cmp	DWORD PTR TIMER_MODE_AUTO[rip], eax
	mov	DWORD PTR 16[rbx], eax
	jne	.L10
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR [rbx]
	mov	esi, DWORD PTR LUA_REGISTRYINDEX[rip]
	mov	rdi, rbp
	call	luaL_unref@PLT
	mov	rax, QWORD PTR LUA_NOREF[rip]
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR TIMER_MODE_OFF[rip]
	cmp	DWORD PTR TIMER_MODE_AUTO[rip], eax
	mov	DWORD PTR 16[rbx], eax
	jne	.L10
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	alarm_timer_common, .-alarm_timer_common
	.comm	TIMER_MODE_SINGLE,4,4
	.comm	TIMER_MODE_SEMI,4,4
	.comm	TIMER_MODE_OFF,4,4
	.comm	TIMER_MODE_AUTO,4,4
	.comm	TIMER_IDLE_FLAG,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	LUA_REFNIL,8,8
	.comm	LUA_NOREF,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_tmr.c_alarm_timer_common.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alarm_timer_common, %function
alarm_timer_common:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r6, .L9
	bl	lua_getstate
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r5, r0
	ldr	r7, .L9+4
	ldr	r1, [r7]
	bl	lua_rawgeti
	ldr	r2, [r4, #4]
	mov	r0, r5
	ldr	r1, [r7]
	bl	lua_rawgeti
	ldr	r2, .L9+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L8
	ldr	r2, .L9+12
	ldr	r2, [r2]
	cmp	r3, r2
	ldreq	r2, .L9+16
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r4, #8]
.L4:
	ldr	r2, .L9+20
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L9+24
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	mov	r0, r5
	ldr	r1, [r7]
	bl	luaL_unref
	ldr	r3, [r6]
	str	r3, [r4, #4]
.L5:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	mov	r1, #1
	b	lua_call
.L8:
	ldr	r2, [r4]
	mov	r0, r5
	ldr	r1, [r7]
	bl	luaL_unref
	ldr	r3, .L9+28
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r2, [r4]
	str	r3, [r4, #8]
	b	.L4
.L10:
	.align	2
.L9:
	.word	LUA_NOREF
	.word	LUA_REGISTRYINDEX
	.word	TIMER_MODE_SINGLE
	.word	TIMER_MODE_SEMI
	.word	TIMER_IDLE_FLAG
	.word	TIMER_MODE_AUTO
	.word	LUA_REFNIL
	.word	TIMER_MODE_OFF
	.size	alarm_timer_common, .-alarm_timer_common
	.comm	TIMER_MODE_SINGLE,4,4
	.comm	TIMER_MODE_SEMI,4,4
	.comm	TIMER_MODE_OFF,4,4
	.comm	TIMER_MODE_AUTO,4,4
	.comm	TIMER_IDLE_FLAG,4,4
	.comm	LUA_REGISTRYINDEX,4,4
	.comm	LUA_REFNIL,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
