	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_accept4_                ## -- Begin function evutil_accept4_
	.p2align	4, 0x90
_evutil_accept4_:                       ## @evutil_accept4_
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	callq	_accept
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movq	_EVUTIL_SOCK_CLOEXEC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_evutil_fast_socket_closeonexec
	testq	%rax, %rax
	js	LBB0_5
LBB0_3:
	movq	_EVUTIL_SOCK_NONBLOCK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_evutil_fast_socket_nonblocking
	testq	%rax, %rax
	jns	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_evutil_closesocket
	movq	$-1, %rbx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVUTIL_SOCK_CLOEXEC,4,2        ## @EVUTIL_SOCK_CLOEXEC
	.comm	_EVUTIL_SOCK_NONBLOCK,4,2       ## @EVUTIL_SOCK_NONBLOCK
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOSYS,8,3                     ## @ENOSYS
	.comm	_errno,8,3                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_accept4_                ; -- Begin function evutil_accept4_
	.p2align	2
_evutil_accept4_:                       ; @evutil_accept4_
	.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	x20, x3
	bl	_accept
	mov	x19, x0
	tbnz	x0, #63, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _EVUTIL_SOCK_CLOEXEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVUTIL_SOCK_CLOEXEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_evutil_fast_socket_closeonexec
	tbnz	x0, #63, LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EVUTIL_SOCK_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVUTIL_SOCK_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_evutil_fast_socket_nonblocking
	tbz	x0, #63, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_evutil_closesocket
	mov	x19, #-1
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EVUTIL_SOCK_CLOEXEC,4,2        ; @EVUTIL_SOCK_CLOEXEC
	.comm	_EVUTIL_SOCK_NONBLOCK,4,2       ; @EVUTIL_SOCK_NONBLOCK
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOSYS,8,3                     ; @ENOSYS
	.comm	_errno,8,3                      ; @errno
.subsections_via_symbols
