	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evCancelRW                     ## -- Begin function evCancelRW
	.p2align	4, 0x90
_evCancelRW:                            ## @evCancelRW
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	32(%rsi), %rax
	movq	40(%rsi), %rcx
	leaq	16(%rdi), %rdx
	testq	%rax, %rax
	cmovneq	%rax, %rdx
	movq	%rcx, (%rdx)
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movq	%rax, (%rcx)
LBB0_2:
	movq	16(%rbx), %rax
	movq	24(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rcx, (%rax)
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%rax, 16(%rcx)
	jmp	LBB0_10
LBB0_3:
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.6:
	movq	%rcx, 8(%rdi)
	movq	%rax, 16(%rcx)
	jmp	LBB0_10
LBB0_9:
	movq	%rax, (%rdi)
	jmp	LBB0_10
LBB0_4:
	cmpq	%rbx, 8(%rdi)
	jne	LBB0_10
## %bb.5:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
LBB0_10:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.11:
	callq	_evDeselectFD
LBB0_12:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	shll	$2, %esi
	callq	_memput
	movq	%rbx, %rdi
	callq	_FREE
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evCancelRW                     ; -- Begin function evCancelRW
	.p2align	2
_evCancelRW:                            ; @evCancelRW
	.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
	mov	x19, x1
	ldp	x8, x9, [x1, #32]
	add	x10, x0, #16
	cmp	x8, #0
	csel	x10, x10, x8, eq
	str	x9, [x10]
	cbz	x9, LBB0_2
; %bb.1:
	str	x8, [x9]
LBB0_2:
	ldp	x8, x9, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	str	x9, [x8]
	cbz	x9, LBB0_7
; %bb.4:
	str	x8, [x9, #16]
	b	LBB0_10
LBB0_5:
	cbz	x9, LBB0_8
; %bb.6:
	str	x9, [x0, #8]
	str	x8, [x9, #16]
	b	LBB0_10
LBB0_7:
	str	x8, [x0]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x0, #8]
	cmp	x8, x19
	b.ne	LBB0_10
; %bb.9:
	stp	xzr, xzr, [x0]
LBB0_10:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_12
; %bb.11:
	bl	_evDeselectFD
LBB0_12:
	ldp	w8, w0, [x19]
	lsl	w1, w8, #2
	bl	_memput
	mov	x0, x19
	bl	_FREE
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
