	.file	"extr_uv_time.c_uv_rtc_find_next_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uv_rtc_find_next_timer, @function
uv_rtc_find_next_timer:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR 4[rdi]
	mov	r10d, esi
	mov	rsi, QWORD PTR ULLONG_MAX[rip]
	mov	DWORD PTR [rdi], -1
	test	r8d, r8d
	jle	.L2
	mov	r11, QWORD PTR 8[rdi]
	mov	r9, -1
	xor	eax, eax
	mov	rdx, r11
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rcx, QWORD PTR [rdx]
	cmp	rcx, rsi
	jge	.L3
	movsx	r9, eax
	mov	rsi, rcx
.L3:
	add	eax, 1
	add	rdx, 16
	cmp	eax, r8d
	jne	.L4
	cmp	r9d, -1
	je	.L2
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	DWORD PTR [rdi], r9d
	sal	r9, 4
	mov	ebp, DWORD PTR 8[r11+r9]
	mov	edi, ebp
	call	uv_setup_intr@PLT
	test	rax, rax
	jne	.L14
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore 6
	mov	edx, DWORD PTR UVH_RTC1_INT_CONFIG_M_MASK[rip]
	mov	esi, DWORD PTR UVH_RTC1_INT_CONFIG[rip]
	mov	edi, r10d
	jmp	uv_write_global_mmr64@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edi, ebp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	uv_rtc_send_IPI@PLT
	.cfi_endproc
.LFE0:
	.size	uv_rtc_find_next_timer, .-uv_rtc_find_next_timer
	.comm	UVH_RTC1_INT_CONFIG_M_MASK,4,4
	.comm	UVH_RTC1_INT_CONFIG,4,4
	.comm	ULLONG_MAX,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_uv_time.c_uv_rtc_find_next_timer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uv_rtc_find_next_timer, %function
uv_rtc_find_next_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mvn	ip, #0
	mov	r5, r0
	ldr	r4, [r0, #4]
	ldr	r3, .L12
	cmp	r4, #0
	mov	r0, r1
	ldr	r1, [r3]
	str	ip, [r5]
	ble	.L2
	mov	r3, #0
	ldr	lr, [r5, #8]
.L4:
	ldr	r2, [lr, r3, lsl #3]
	cmp	r2, r1
	movlt	ip, r3
	add	r3, r3, #1
	movlt	r1, r2
	cmp	r3, r4
	bne	.L4
	cmn	ip, #1
	beq	.L2
	add	lr, lr, ip, lsl #3
	ldr	r4, [lr, #4]
	str	ip, [r5]
	mov	r0, r4
	bl	uv_setup_intr
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	uv_rtc_send_IPI
.L2:
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r2, [r2]
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	uv_write_global_mmr64
.L13:
	.align	2
.L12:
	.word	ULLONG_MAX
	.word	UVH_RTC1_INT_CONFIG_M_MASK
	.word	UVH_RTC1_INT_CONFIG
	.size	uv_rtc_find_next_timer, .-uv_rtc_find_next_timer
	.comm	UVH_RTC1_INT_CONFIG_M_MASK,4,4
	.comm	UVH_RTC1_INT_CONFIG,4,4
	.comm	ULLONG_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
