	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evloop_do_on_socket_close
_evloop_do_on_socket_close:             ## @evloop_do_on_socket_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	(%rdi), %edx
	cmpl	$-1, %edx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_7
## %bb.2:
	movq	8(%r14), %rbx
	movl	(%rbx), %edi
	movq	_EPOLL_CTL_DEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ecx, %ecx
	callq	_epoll_ctl
	movq	_errno@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	testl	%eax, %eax
	setne	%al
	je	LBB0_6
## %bb.3:
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %rsi
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edx
	movl	(%rbx), %edi
	movl	(%r15), %esi
	xorl	%ecx, %ecx
	callq	_epoll_ctl
	movq	(%r12), %rsi
	testl	%eax, %eax
	setne	%al
	jne	LBB0_4
LBB0_6:
	testb	%al, %al
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_h2o_error_printf               ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED,4,2 ## @H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED
	.comm	_EPOLL_CTL_DEL,4,2              ## @EPOLL_CTL_DEL
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket_close: epoll(DEL) returned error %d (fd=%d)\n"

	.no_dead_strip	_evloop_do_on_socket_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evloop_do_on_socket_close
_evloop_do_on_socket_close:             ; @evloop_do_on_socket_close
	.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
	ldr	w2, [x0]
	cmn	w2, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.2:
	ldr	x20, [x19, #8]
	ldr	w0, [x20]
Lloh3:
	adrp	x21, _EPOLL_CTL_DEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _EPOLL_CTL_DEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x3, #0
	bl	_epoll_ctl
	cmp	w0, #0
	cset	w8, ne
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh7:
	adrp	x23, _EINTR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cmp	w0, #0
	ccmp	x1, x9, #0, ne
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x19]
	ldr	w0, [x20]
	ldr	w1, [x21]
	mov	x3, #0
	bl	_epoll_ctl
	cmp	w0, #0
	cset	w8, ne
	ldr	x1, [x22]
	b	LBB0_3
LBB0_5:
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w2, [x19]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_h2o_error_printf
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED,4,2 ; @H2O_SOCKET_FLAG__EPOLL_IS_REGISTERED
	.comm	_EPOLL_CTL_DEL,4,2              ; @EPOLL_CTL_DEL
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket_close: epoll(DEL) returned error %d (fd=%d)\n"

	.no_dead_strip	_evloop_do_on_socket_close
.subsections_via_symbols
