	.file	"extr_swtimer.c_swtmr_resume_timers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	swtmr_resume_timers
	.type	swtmr_resume_timers, @function
swtmr_resume_timers:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	call	lua_getstate@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	push_swtmr_registry_key@PLT
	mov	esi, DWORD PTR L_REGISTRY[rip]
	mov	rdi, rbp
	call	lua_rawget@PLT
	mov	esi, DWORD PTR SUSP_LIST_STR[rip]
	mov	rdi, rbp
	call	lua_pushstring@PLT
	mov	esi, -2
	mov	rdi, rbp
	call	lua_rawget@PLT
	mov	esi, -2
	mov	rdi, rbp
	call	lua_istable@PLT
	test	eax, eax
	je	.L3
	mov	esi, -1
	mov	rdi, rbp
	call	lua_isuserdata@PLT
	test	eax, eax
	jne	.L30
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	esi, 2
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	lua_pop@PLT
.L30:
	.cfi_restore_state
	mov	esi, -1
	mov	rdi, rbp
	call	lua_touserdata@PLT
	mov	esi, 1
	mov	rdi, rbp
	mov	rbx, rax
	call	lua_pop@PLT
	mov	esi, DWORD PTR SUSP_LIST_STR[rip]
	mov	rdi, rbp
	call	lua_pushstring@PLT
	mov	rdi, rbp
	call	lua_pushnil@PLT
	mov	esi, -3
	mov	rdi, rbp
	call	lua_rawset@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	lua_pop@PLT
	mov	edi, DWORD PTR FRC2_COUNT_ADDRESS[rip]
	call	RTC_REG_READ@PLT
	mov	r8, QWORD PTR timer_list[rip]
	xor	r9d, r9d
	mov	QWORD PTR 8[rsp], rax
	test	rbx, rbx
	je	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, rbx
	mov	rdx, QWORD PTR 8[rsp]
	mov	rbx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rsi]
	add	rax, rdx
	mov	QWORD PTR [rsi], rax
	test	r8, r8
	je	.L6
	mov	rax, r8
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L8
	mov	rdi, QWORD PTR [rsi]
	mov	rcx, QWORD PTR [rdx]
	cmp	rdi, rcx
	jl	.L31
.L9:
	mov	rax, rdx
.L11:
	mov	rcx, QWORD PTR [rsi]
	mov	rdx, QWORD PTR [rax]
	cmp	rcx, rdx
	jg	.L32
	cmp	r8, rax
	je	.L33
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	jne	.L9
.L6:
	test	rbx, rbx
	jne	.L12
.L34:
	test	r9b, r9b
	je	.L1
	mov	QWORD PTR timer_list[rip], r8
.L1:
	add	rsp, 24
	.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
.L8:
	.cfi_restore_state
	mov	QWORD PTR 8[rax], rsi
	mov	QWORD PTR 8[rsi], 0
	test	rbx, rbx
	jne	.L12
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L33:
	mov	QWORD PTR 8[rsi], r8
	mov	r9d, 1
	mov	r8, rsi
	test	rbx, rbx
	jne	.L12
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L31:
	mov	QWORD PTR 8[rsi], rdx
	mov	QWORD PTR 8[rax], rsi
	test	rbx, rbx
	jne	.L12
	jmp	.L34
	.cfi_endproc
.LFE0:
	.size	swtmr_resume_timers, .-swtmr_resume_timers
	.comm	timer_list,8,8
	.comm	SUSP_LIST_STR,4,4
	.comm	L_REGISTRY,4,4
	.comm	FRC2_COUNT_ADDRESS,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_swtimer.c_swtmr_resume_timers.c"
	.text
	.align	2
	.global	swtmr_resume_timers
	.syntax unified
	.arm
	.fpu softvfp
	.type	swtmr_resume_timers, %function
swtmr_resume_timers:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	bl	lua_getstate
	mov	r4, r0
	bl	push_swtmr_registry_key
	ldr	r3, .L34
	ldr	r6, .L34+4
	ldr	r1, [r3]
	mov	r0, r4
	bl	lua_rawget
	ldr	r1, [r6]
	mov	r0, r4
	bl	lua_pushstring
	mvn	r1, #1
	mov	r0, r4
	bl	lua_rawget
	mov	r0, r4
	mvn	r1, #1
	bl	lua_istable
	cmp	r0, #0
	beq	.L3
	mvn	r1, #0
	mov	r0, r4
	bl	lua_isuserdata
	cmp	r0, #0
	bne	.L29
.L3:
	mov	r0, r4
	mov	r1, #2
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	lua_pop
.L29:
	mvn	r1, #0
	mov	r0, r4
	bl	lua_touserdata
	mov	r1, #1
	mov	r5, r0
	mov	r0, r4
	bl	lua_pop
	ldr	r1, [r6]
	mov	r0, r4
	bl	lua_pushstring
	mov	r0, r4
	bl	lua_pushnil
	mvn	r1, #2
	mov	r0, r4
	bl	lua_rawset
	mov	r1, #1
	mov	r0, r4
	bl	lua_pop
	ldr	r3, .L34+8
	ldr	r0, [r3]
	bl	RTC_REG_READ
	cmp	r5, #0
	str	r0, [sp, #4]
	beq	.L1
	mov	r0, #0
	ldr	r6, .L34+12
	ldr	r4, [r6]
.L12:
	mov	ip, r5
	ldr	r2, [sp, #4]
	ldr	r3, [r5]
	cmp	r4, #0
	add	r3, r3, r2
	ldr	r5, [r5, #4]
	str	r3, [ip]
	beq	.L6
	mov	r3, r4
	b	.L11
.L31:
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L8
	ldr	lr, [ip]
	ldr	r1, [r2]
	cmp	lr, r1
	blt	.L30
.L9:
	mov	r3, r2
.L11:
	ldr	r1, [ip]
	ldr	r2, [r3]
	cmp	r1, r2
	bgt	.L31
	cmp	r4, r3
	beq	.L32
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L9
.L6:
	cmp	r5, #0
	bne	.L12
.L33:
	cmp	r0, #0
	strne	r4, [r6]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	cmp	r5, #0
	str	ip, [r3, #4]
	str	r2, [ip, #4]
	bne	.L12
	b	.L33
.L32:
	cmp	r5, #0
	str	r4, [ip, #4]
	mov	r0, #1
	mov	r4, ip
	bne	.L12
	b	.L33
.L30:
	cmp	r5, #0
	str	r2, [ip, #4]
	str	ip, [r3, #4]
	bne	.L12
	b	.L33
.L35:
	.align	2
.L34:
	.word	L_REGISTRY
	.word	SUSP_LIST_STR
	.word	FRC2_COUNT_ADDRESS
	.word	timer_list
	.size	swtmr_resume_timers, .-swtmr_resume_timers
	.comm	timer_list,4,4
	.comm	SUSP_LIST_STR,4,4
	.comm	L_REGISTRY,4,4
	.comm	FRC2_COUNT_ADDRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
