	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_pending                  ## -- Begin function event_pending
	.p2align	4, 0x90
_event_pending:                         ## @event_pending
	.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
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movq	_EVLIST_INSERTED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	4(%r15), %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_EVLIST_ACTIVE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	orl	8(%r15), %ecx
LBB0_5:
	movq	_EVLIST_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%ebx, %edx
	movq	_EV_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovnel	%eax, %edx
	orl	%ecx, %edx
	movq	_EVLIST_SIGNAL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_EV_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovnel	%ecx, %ebx
	movq	_EV_READ@GOTPCREL(%rip), %rdi
	orl	%eax, %ecx
	orl	(%rdi), %ecx
	movq	_EV_WRITE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	orl	%edx, %ebx
	andl	%ecx, %esi
	movswl	%si, %r13d
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	andl	%ebx, %eax
	testl	%r13d, %eax
	je	LBB0_8
## %bb.7:
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_gettime
	addq	$12, %r15
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rdx, %r15
	callq	_timersub
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_timeradd
LBB0_8:
	andl	%r13d, %ebx
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVLIST_INSERTED,4,2            ## @EVLIST_INSERTED
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_EV_WRITE,4,2                   ## @EV_WRITE
	.comm	_EVLIST_ACTIVE,4,2              ## @EVLIST_ACTIVE
	.comm	_EVLIST_TIMEOUT,4,2             ## @EVLIST_TIMEOUT
	.comm	_EV_TIMEOUT,4,2                 ## @EV_TIMEOUT
	.comm	_EVLIST_SIGNAL,4,2              ## @EVLIST_SIGNAL
	.comm	_EV_SIGNAL,4,2                  ## @EV_SIGNAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_pending                  ; -- Begin function event_pending
	.p2align	2
_event_pending:                         ; @event_pending
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _EVLIST_INSERTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVLIST_INSERTED@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x9]
Lloh3:
	adrp	x9, _EV_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EV_READ@GOTPAGEOFF]
Lloh5:
	adrp	x10, _EV_WRITE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EV_WRITE@GOTPAGEOFF]
	tst	w11, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w11, [x20, #4]
	ldr	w12, [x9]
	ldr	w13, [x10]
	orr	w12, w13, w12
	and	w11, w12, w11
	b	LBB0_3
LBB0_2:
	mov	w11, #0
LBB0_3:
Lloh7:
	adrp	x12, _EVLIST_ACTIVE@GOTPAGE
Lloh8:
	ldr	x12, [x12, _EVLIST_ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w12, [x20, #8]
	orr	w11, w12, w11
LBB0_5:
Lloh10:
	adrp	x12, _EVLIST_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x12, [x12, _EVLIST_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x12]
Lloh13:
	adrp	x12, _EV_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x12, [x12, _EV_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
	tst	w13, w8
	csel	w13, wzr, w12, eq
	orr	w11, w13, w11
Lloh16:
	adrp	x13, _EVLIST_SIGNAL@GOTPAGE
Lloh17:
	ldr	x13, [x13, _EVLIST_SIGNAL@GOTPAGEOFF]
Lloh18:
	adrp	x14, _EV_SIGNAL@GOTPAGE
Lloh19:
	ldr	x14, [x14, _EV_SIGNAL@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
Lloh21:
	ldr	w14, [x14]
	tst	w13, w8
	csel	w8, wzr, w14, eq
	orr	w21, w11, w8
	ldr	w8, [x9]
	ldr	w9, [x10]
	orr	w10, w14, w12
	orr	w8, w10, w8
	orr	w8, w8, w9
	and	w8, w8, w1
	sxth	w22, w8
	cbz	x19, LBB0_8
; %bb.6:
	and	w8, w21, w12
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	add	x0, sp, #8
	bl	_gettime
	add	x0, x20, #12
	add	x1, sp, #8
	mov	x2, sp
	bl	_timersub
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x19
	bl	_timeradd
LBB0_8:
	and	w0, w21, w22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EVLIST_INSERTED,4,2            ; @EVLIST_INSERTED
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_EV_WRITE,4,2                   ; @EV_WRITE
	.comm	_EVLIST_ACTIVE,4,2              ; @EVLIST_ACTIVE
	.comm	_EVLIST_TIMEOUT,4,2             ; @EVLIST_TIMEOUT
	.comm	_EV_TIMEOUT,4,2                 ; @EV_TIMEOUT
	.comm	_EVLIST_SIGNAL,4,2              ; @EVLIST_SIGNAL
	.comm	_EV_SIGNAL,4,2                  ; @EV_SIGNAL
.subsections_via_symbols
