	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function epoll_work
LCPI0_0:
	.quad	0x3fefaee41e6a7498              ## double 0.99009900990099009
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_epoll_work
	.p2align	4, 0x90
_epoll_work:                            ## @epoll_work
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_ev_heap_size@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_et_heap_size@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	callq	_time
	movq	_now@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_get_utime_monotonic
	movq	_pending_signals@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_epoll_runqueue
	xorl	%eax, %eax
	callq	_epoll_run_timers
	movl	%eax, %ebx
	testl	%eax, %eax
	setle	%al
	cmpq	$0, (%r15)
	setne	%cl
	orb	%al, %cl
	movq	(%r12), %rax
	cmpb	$1, %cl
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	testq	%rax, %rax
	je	LBB0_6
LBB0_17:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_pending_signals@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$10000, %ebx                    ## imm = 0x2710
	testq	%rax, %rax
	jne	LBB0_17
LBB0_6:
	xorl	%eax, %eax
	callq	_get_utime_monotonic
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	cmpl	%r14d, %ebx
	cmovll	%ebx, %r14d
	movl	%r14d, %edi
	callq	_epoll_fetch_events
	xorl	%eax, %eax
	callq	_get_utime_monotonic
	subsd	-40(%rbp), %xmm0                ## 8-byte Folded Reload
	movq	_tot_idle_time@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	addsd	%xmm0, %xmm1
	movsd	%xmm1, (%rax)
	movq	_a_idle_time@GOTPCREL(%rip), %rbx
	addsd	(%rbx), %xmm0
	movsd	%xmm0, (%rbx)
	xorl	%edi, %edi
	callq	_time
	movq	_now@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	_epoll_work.prev_now(%rip), %edx
	movl	%eax, %edi
	subl	%edx, %edi
	jle	LBB0_16
## %bb.7:
	leal	60(%rdx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_16
## %bb.8:
	movq	_a_idle_quotient@GOTPCREL(%rip), %r8
	movsd	(%r8), %xmm0                    ## xmm0 = mem[0],zero
	movsd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero
	movl	%edx, %esi
	notl	%esi
	addl	%eax, %esi
	andl	$3, %edi
	je	LBB0_12
## %bb.9:
	negl	%edi
	xorl	%ecx, %ecx
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	decl	%ecx
	cmpl	%ecx, %edi
	jne	LBB0_10
## %bb.11:
	subl	%ecx, %edx
LBB0_12:
	cmpl	$3, %esi
	jb	LBB0_15
## %bb.13:
	movl	%eax, %esi
	subl	%edx, %esi
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm3, %xmm0
	addl	$-4, %esi
	jne	LBB0_14
LBB0_15:
	movsd	%xmm1, (%rbx)
	movsd	%xmm0, (%r8)
LBB0_16:
	movl	%eax, _epoll_work.prev_now(%rip)
	xorl	%eax, %eax
	callq	_epoll_run_timers
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_epoll_runqueue                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_heap_size,8,3               ## @ev_heap_size
	.comm	_et_heap_size,8,3               ## @et_heap_size
	.comm	_now,4,2                        ## @now
	.comm	_pending_signals,8,3            ## @pending_signals
	.comm	_tot_idle_time,8,3              ## @tot_idle_time
	.comm	_a_idle_time,8,3                ## @a_idle_time
.zerofill __DATA,__bss,_epoll_work.prev_now,4,2 ## @epoll_work.prev_now
	.comm	_a_idle_quotient,8,3            ## @a_idle_quotient
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_epoll_work                     ; -- Begin function epoll_work
	.p2align	2
_epoll_work:                            ; @epoll_work
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _ev_heap_size@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ev_heap_size@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _et_heap_size@GOTPAGE
Lloh3:
	ldr	x9, [x9, _et_heap_size@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_5
; %bb.1:
	mov	w0, #0
	bl	_time
Lloh5:
	adrp	x8, _now@GOTPAGE
Lloh6:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	bl	_get_utime_monotonic
Lloh8:
	adrp	x22, _pending_signals@GOTPAGE
Lloh9:
	ldr	x22, [x22, _pending_signals@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_epoll_runqueue
	bl	_epoll_run_timers
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	w0, #1, #8, eq
	ldr	x8, [x22]
	ccmp	x8, #0, #0, lt
	b.eq	LBB0_2
; %bb.3:
	mov	x20, x0
	cbz	x8, LBB0_6
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh10:
	adrp	x8, _pending_signals@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pending_signals@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	mov	w20, #10000
	cbnz	x8, LBB0_4
LBB0_6:
	bl	_get_utime_monotonic
	fmov	d8, d0
	cmp	w20, w19
	csel	w0, w20, w19, lt
	bl	_epoll_fetch_events
	bl	_get_utime_monotonic
	fsub	d0, d0, d8
Lloh13:
	adrp	x8, _tot_idle_time@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tot_idle_time@GOTPAGEOFF]
	ldr	d1, [x8]
	fadd	d1, d1, d0
	str	d1, [x8]
Lloh15:
	adrp	x19, _a_idle_time@GOTPAGE
Lloh16:
	ldr	x19, [x19, _a_idle_time@GOTPAGEOFF]
	ldr	d1, [x19]
	fadd	d0, d0, d1
	str	d0, [x19]
	mov	w0, #0
	bl	_time
Lloh17:
	adrp	x8, _now@GOTPAGE
Lloh18:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh19:
	str	w0, [x8]
	adrp	x8, _epoll_work.prev_now@PAGE
	ldr	w10, [x8, _epoll_work.prev_now@PAGEOFF]
	subs	w9, w0, w10
	b.le	LBB0_11
; %bb.7:
	add	w10, w10, #60
	cmp	w0, w10
	b.ge	LBB0_11
; %bb.8:
Lloh20:
	adrp	x10, _a_idle_quotient@GOTPAGE
Lloh21:
	ldr	x10, [x10, _a_idle_quotient@GOTPAGEOFF]
	ldr	d0, [x10]
	ldr	d1, [x19]
	mov	x11, #29848
	movk	x11, #7786, lsl #16
	movk	x11, #44772, lsl #32
	movk	x11, #16367, lsl #48
	fmov	d2, #1.00000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	fmov	d3, x11
	fmul	d1, d1, d3
	fmadd	d0, d0, d3, d2
	subs	w9, w9, #1
	b.ne	LBB0_9
; %bb.10:
	str	d1, [x19]
	str	d0, [x10]
LBB0_11:
	str	w0, [x8, _epoll_work.prev_now@PAGEOFF]
	bl	_epoll_run_timers
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_epoll_runqueue
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_heap_size,8,3               ; @ev_heap_size
	.comm	_et_heap_size,8,3               ; @et_heap_size
	.comm	_now,4,2                        ; @now
	.comm	_pending_signals,8,3            ; @pending_signals
	.comm	_tot_idle_time,8,3              ; @tot_idle_time
	.comm	_a_idle_time,8,3                ; @a_idle_time
.zerofill __DATA,__bss,_epoll_work.prev_now,4,2 ; @epoll_work.prev_now
	.comm	_a_idle_quotient,8,3            ; @a_idle_quotient
.subsections_via_symbols
