	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_enable_events               ## -- Begin function yp_enable_events
	.p2align	4, 0x90
_yp_enable_events:                      ## @yp_enable_events
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_getdtablesize
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_yp_fd_event@GOTPCREL(%rip), %r12
	movq	_env@GOTPCREL(%rip), %r13
	movq	_ye_entry@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_EV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	callq	_event_set
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_event_add
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_TAIL
	incl	%ebx
	xorl	%eax, %eax
	callq	_getdtablesize
	cmpl	%eax, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_fatal
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_READ,4,2                    ## @EV_READ
	.comm	_yp_fd_event,4,2                ## @yp_fd_event
	.comm	_env,8,3                        ## @env
	.comm	_ye_entry,4,2                   ## @ye_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_enable_events               ; -- Begin function yp_enable_events
	.p2align	2
_yp_enable_events:                      ; @yp_enable_events
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	bl	_getdtablesize
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w19, #0
Lloh0:
	adrp	x21, _EV_READ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EV_READ@GOTPAGEOFF]
Lloh2:
	adrp	x22, _yp_fd_event@GOTPAGE
Lloh3:
	ldr	x22, [x22, _yp_fd_event@GOTPAGEOFF]
Lloh4:
	adrp	x23, _env@GOTPAGE
Lloh5:
	ldr	x23, [x23, _env@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ye_entry@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ye_entry@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	bl	_event_set
	mov	x0, x20
	mov	x1, #0
	bl	_event_add
	ldr	x8, [x23]
	ldr	x0, [x8]
	ldr	w2, [x24]
	mov	x1, x20
	bl	_TAILQ_INSERT_TAIL
	add	w19, w19, #1
	bl	_getdtablesize
	cmp	w19, w0
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_fatal
	b	LBB0_2
LBB0_5:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_READ,4,2                    ; @EV_READ
	.comm	_yp_fd_event,4,2                ; @yp_fd_event
	.comm	_env,8,3                        ; @env
	.comm	_ye_entry,4,2                   ; @ye_entry
.subsections_via_symbols
