	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uv_rtc_find_next_timer
_uv_rtc_find_next_timer:                ## @uv_rtc_find_next_timer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r8d
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$-1, (%rdi)
	movl	4(%rdi), %r10d
	testl	%r10d, %r10d
	jle	LBB0_10
## %bb.1:
	movq	8(%rdi), %r9
	cmpl	$1, %r10d
	jne	LBB0_3
## %bb.2:
	movl	$-1, %edx
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	movl	%r10d, %r11d
	andl	$-2, %r11d
	leaq	16(%r9), %rbx
	movl	$-1, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rbx), %r15
	movq	(%rbx), %r14
	cmpq	%rsi, %r15
	movl	%edx, %ecx
	cmovll	%eax, %ecx
	cmovlq	%r15, %rsi
	leal	1(%rax), %edx
	cmpq	%rsi, %r14
	cmovgel	%ecx, %edx
	cmovlq	%r14, %rsi
	addq	$2, %rax
	addq	$32, %rbx
	cmpq	%r11, %rax
	jne	LBB0_4
LBB0_5:
	testb	$1, %r10b
	je	LBB0_7
## %bb.6:
	movq	%rax, %rcx
	shlq	$4, %rcx
	movq	(%r9,%rcx), %rcx
	cmpq	%rsi, %rcx
	cmovll	%eax, %edx
	cmovlq	%rcx, %rsi
LBB0_7:
	testl	%edx, %edx
	js	LBB0_10
## %bb.8:
	movl	%edx, (%rdi)
	movq	8(%rdi), %rax
	movl	%edx, %ecx
	shlq	$4, %rcx
	movl	8(%rax,%rcx), %ebx
	movl	%ebx, %edi
	callq	_uv_setup_intr
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uv_rtc_send_IPI                ## TAILCALL
LBB0_10:
	movq	_UVH_RTC1_INT_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UVH_RTC1_INT_CONFIG_M_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r8d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uv_write_global_mmr64          ## TAILCALL
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ULLONG_MAX,8,3                 ## @ULLONG_MAX
	.comm	_UVH_RTC1_INT_CONFIG,4,2        ## @UVH_RTC1_INT_CONFIG
	.comm	_UVH_RTC1_INT_CONFIG_M_MASK,4,2 ## @UVH_RTC1_INT_CONFIG_M_MASK
	.no_dead_strip	_uv_rtc_find_next_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uv_rtc_find_next_timer
_uv_rtc_find_next_timer:                ; @uv_rtc_find_next_timer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _ULLONG_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ULLONG_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #-1
	str	w9, [x0]
	ldr	w9, [x0, #4]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x11, #0
	ldr	x12, [x0, #8]
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12], #16
	cmp	x13, x8
	csel	x8, x13, x8, lt
	csel	w10, w11, w10, lt
	add	x11, x11, #1
	cmp	x9, x11
	b.ne	LBB0_2
; %bb.3:
	tbnz	w10, #31, LBB0_6
; %bb.4:
	str	w10, [x0]
	ldr	x9, [x0, #8]
	add	x9, x9, w10, uxtw #4
	ldr	w19, [x9, #8]
	mov	x0, x19
	mov	x1, x8
	bl	_uv_setup_intr
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_uv_rtc_send_IPI
LBB0_6:
Lloh3:
	adrp	x8, _UVH_RTC1_INT_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UVH_RTC1_INT_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _UVH_RTC1_INT_CONFIG_M_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _UVH_RTC1_INT_CONFIG_M_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_uv_write_global_mmr64
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ULLONG_MAX,8,3                 ; @ULLONG_MAX
	.comm	_UVH_RTC1_INT_CONFIG,4,2        ; @UVH_RTC1_INT_CONFIG
	.comm	_UVH_RTC1_INT_CONFIG_M_MASK,4,2 ; @UVH_RTC1_INT_CONFIG_M_MASK
	.no_dead_strip	_uv_rtc_find_next_timer
.subsections_via_symbols
