	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uv_rtc_set_timer
_uv_rtc_set_timer:                      ## @uv_rtc_set_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	callq	_uv_cpu_to_pnode
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_uv_cpu_to_blade_id
	movq	_blade_info@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rbx
	movl	%r12d, %edi
	callq	_uv_cpu_hub_info
	movl	(%rax), %r14d
	movq	8(%rbx), %r15
	movslq	%r14d, %r13
	leaq	4(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	(%rbx), %eax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, (%r15,%r13,4)
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	cmpl	%eax, %r14d
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rcx
	cmpl	%esi, (%rcx,%rax,4)
	jle	LBB0_5
LBB0_3:
	movl	%r14d, (%rbx)
	movl	%r12d, %edi
	callq	_uv_setup_intr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ULLONG_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_uv_rtc_find_next_timer
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_blade_info,8,3                 ## @blade_info
	.comm	_ULLONG_MAX,4,2                 ## @ULLONG_MAX
	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_uv_rtc_set_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_set_timer
_uv_rtc_set_timer:                      ; @uv_rtc_set_timer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x23, x0
	bl	_uv_cpu_to_pnode
	mov	x19, x0
	mov	x0, x23
	bl	_uv_cpu_to_blade_id
Lloh0:
	adrp	x8, _blade_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _blade_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8, w0, sxtw #3]
	mov	x0, x23
	bl	_uv_cpu_hub_info
	ldr	w25, [x0]
	ldr	x24, [x20, #8]
	add	x22, x20, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	str	w21, [x24, w25, sxtw #2]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	cmp	w25, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, w21
	b.le	LBB0_5
LBB0_3:
	str	w25, [x20]
	mov	x0, x23
	mov	x1, x21
	bl	_uv_setup_intr
	cbz	x0, LBB0_5
; %bb.4:
	sxtw	x8, w25
Lloh3:
	adrp	x9, _ULLONG_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ULLONG_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x24, x8, lsl #2]
	mov	x0, x20
	mov	x1, x19
	bl	_uv_rtc_find_next_timer
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x8, _ETIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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	_blade_info,8,3                 ; @blade_info
	.comm	_ULLONG_MAX,4,2                 ; @ULLONG_MAX
	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_uv_rtc_set_timer
.subsections_via_symbols
