	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_base_active_by_fd        ## -- Begin function event_base_active_by_fd
	.p2align	4, 0x90
_event_base_active_by_fd:               ## @event_base_active_by_fd
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_th_base_lock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_EVBASE_ACQUIRE_LOCK
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movq	_EV_WRITE@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	orw	(%rax), %cx
	movq	_EV_CLOSED@GOTPCREL(%rip), %rax
	orw	(%rax), %cx
	andl	%r15d, %ecx
	movswl	%cx, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_evmap_io_active_
	movl	(%r12), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EVBASE_RELEASE_LOCK            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_th_base_lock,4,2               ## @th_base_lock
	.comm	_EV_READ,2,1                    ## @EV_READ
	.comm	_EV_WRITE,2,1                   ## @EV_WRITE
	.comm	_EV_CLOSED,2,1                  ## @EV_CLOSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_base_active_by_fd        ; -- Begin function event_base_active_by_fd
	.p2align	2
_event_base_active_by_fd:               ; @event_base_active_by_fd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _th_base_lock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _th_base_lock@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_EVBASE_ACQUIRE_LOCK
Lloh2:
	adrp	x8, _EV_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_READ@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh4:
	adrp	x9, _EV_WRITE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EV_WRITE@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _EV_CLOSED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EV_CLOSED@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w8, w8, w9
	and	w8, w8, w19
	sxth	w2, w8
	mov	x0, x21
	mov	x1, x20
	bl	_evmap_io_active_
	ldr	w1, [x22]
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EVBASE_RELEASE_LOCK
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_th_base_lock,4,2               ; @th_base_lock
	.comm	_EV_READ,2,1                    ; @EV_READ
	.comm	_EV_WRITE,2,1                   ; @EV_WRITE
	.comm	_EV_CLOSED,2,1                  ; @EV_CLOSED
.subsections_via_symbols
