	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_epoll_close                    ## -- Begin function epoll_close
	.p2align	4, 0x90
_epoll_close:                           ## @epoll_close
	.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
	movl	%edi, %r13d
	testl	%edi, %edi
	setns	%al
	movq	_MAX_EVENTS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_Events@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%r13d, %rax
	movq	%rax, %rbx
	shlq	$4, %rbx
	movl	$-1, %r15d
	cmpl	%eax, (%r12,%rbx)
	jne	LBB0_4
## %bb.1:
	leaq	(%r12,%rbx), %r14
	movl	%r13d, %edi
	callq	_epoll_remove
	cmpq	$0, 8(%r12,%rbx)
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_remove_event_from_heap
LBB0_3:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$-1, (%r14)
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EVENTS,4,2                 ## @MAX_EVENTS
	.comm	_Events,8,3                     ## @Events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_epoll_close                    ; -- Begin function epoll_close
	.p2align	2
_epoll_close:                           ; @epoll_close
	.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	x20, x0
	cmp	w0, #0
Lloh0:
	adrp	x8, _MAX_EVENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_EVENTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, gt
	bl	_assert
Lloh3:
	adrp	x8, _Events@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Events@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	add	x19, x21, w20, sxtw #4
	ldr	w8, [x19]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.1:
	sxtw	x22, w20
	mov	x0, x20
	bl	_epoll_remove
	add	x8, x21, x22, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_remove_event_from_heap
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w0, #0
	mov	w8, #-1
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EVENTS,4,2                 ; @MAX_EVENTS
	.comm	_Events,8,3                     ; @Events
.subsections_via_symbols
