	.file	"extr_clock_oldops.c_alarm_expire.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alarm_expire, @function
alarm_expire:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rdx, QWORD PTR SYSTEM_CLOCK[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR clock_list[rip]
	mov	rbx, rsp
	mov	rdi, rbx
	mov	rax, QWORD PTR [rax+rdx*8]
	call	[QWORD PTR [rax]]
	xor	edi, edi
	call	LOCK_ALARM@PLT
	mov	rbp, QWORD PTR alrmlist[rip+24]
	test	rbp, rbp
	je	.L10
	lea	r12, alrmlist[rip]
	lea	r13, alrmdone[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	xor	edi, edi
	cmp	QWORD PTR ALARM_CLOCK[rip], rax
	sete	dil
	call	assert@PLT
	mov	rax, QWORD PTR alrmdone[rip]
	mov	QWORD PTR 24[rbp], rax
	test	rax, rax
	je	.L7
	mov	QWORD PTR 16[rax], rbp
.L8:
	mov	rax, QWORD PTR ALARM_DONE[rip]
	mov	QWORD PTR alrmdone[rip], rbp
	mov	QWORD PTR 16[rbp], r13
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	mov	rbp, QWORD PTR alrmlist[rip+24]
	test	rbp, rbp
	je	.L10
.L9:
	mov	rsi, rbx
	mov	rdi, rbp
	call	CMP_MACH_TIMESPEC@PLT
	test	rax, rax
	jg	.L3
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR alrmlist[rip+24], rax
	test	rax, rax
	je	.L4
	mov	QWORD PTR 16[rax], r12
.L4:
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR ALARM_SLEEP[rip]
	jne	.L5
	mov	rax, QWORD PTR ALARM_DONE[rip]
	mov	QWORD PTR 24[rbp], 0
	mov	edi, ebp
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rax
	call	thread_wakeup@PLT
	mov	rbp, QWORD PTR alrmlist[rip+24]
	test	rbp, rbp
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	xor	edi, edi
	call	UNLOCK_ALARM@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	lea	rdi, alarm_done_call[rip]
	call	thread_call_enter@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	set_alarm@PLT
	jmp	.L10
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alarm_expire, .-alarm_expire
	.comm	clock_list,8,8
	.comm	alrmlist,4,4
	.comm	alrmdone,8,8
	.comm	alarm_done_call,4,4
	.comm	SYSTEM_CLOCK,8,8
	.comm	ALARM_SLEEP,8,8
	.comm	ALARM_DONE,8,8
	.comm	ALARM_CLOCK,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_clock_oldops.c_alarm_expire.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alarm_expire, %function
alarm_expire:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L24
	ldr	r3, .L24+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #12
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, .L24+8
	ldr	r3, [r3]
	mov	r0, sp
	ldr	r5, .L24+12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	blx	r3
	mov	r0, #0
	bl	LOCK_ALARM
	ldr	r4, [r5, #12]
	cmp	r4, #0
	beq	.L10
	mov	r10, #0
	ldr	r7, .L24+16
	ldr	r9, .L24+20
	ldr	r6, .L24+24
	ldr	r8, .L24+28
	ldr	fp, .L24+32
	b	.L9
.L5:
	ldr	r0, [r9]
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	ldr	r3, [r6]
	cmp	r3, #0
	str	r3, [r4, #12]
	strne	r4, [r3, #8]
	beq	.L22
.L8:
	ldr	r2, [r8]
	ldr	r3, [sp]
	stmib	r4, {r2, r6}
	str	r4, [r6]
	str	r3, [r4]
	ldr	r4, [r5, #12]
	cmp	r4, #0
	beq	.L10
.L9:
	mov	r1, sp
	mov	r0, r4
	bl	CMP_MACH_TIMESPEC
	cmp	r0, #0
	bgt	.L3
	ldr	r3, [r4, #12]
	ldr	r2, [r7]
	cmp	r3, #0
	str	r3, [r5, #12]
	strne	r5, [r3, #8]
	ldr	r3, [r4, #4]
	cmp	r3, r2
	bne	.L5
	ldr	r2, [r8]
	ldr	r3, [sp]
	mov	r0, r4
	str	r10, [r4, #12]
	str	r2, [r4, #4]
	str	r3, [r4]
	bl	thread_wakeup
	ldr	r4, [r5, #12]
	cmp	r4, #0
	bne	.L9
.L10:
	mov	r0, #0
	bl	UNLOCK_ALARM
	ldr	r3, .L24+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r0, fp
	bl	thread_call_enter
	b	.L8
.L3:
	mov	r0, r4
	bl	set_alarm
	b	.L10
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	SYSTEM_CLOCK
	.word	clock_list
	.word	.LC0
	.word	alrmlist
	.word	ALARM_SLEEP
	.word	ALARM_CLOCK
	.word	alrmdone
	.word	ALARM_DONE
	.word	alarm_done_call
	.size	alarm_expire, .-alarm_expire
	.comm	clock_list,4,4
	.comm	alrmlist,4,4
	.comm	alrmdone,4,4
	.comm	alarm_done_call,4,4
	.comm	SYSTEM_CLOCK,4,4
	.comm	ALARM_SLEEP,4,4
	.comm	ALARM_DONE,4,4
	.comm	ALARM_CLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
