	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_socket_                 ## -- Begin function evutil_socket_
	.p2align	4, 0x90
_evutil_socket_:                        ## @evutil_socket_
	.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	%esi, %r15d
	movq	_EVUTIL_SOCK_NONBLOCK@GOTPCREL(%rip), %r13
	movq	_EVUTIL_SOCK_CLOEXEC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%r13), %esi
	notl	%esi
	andl	%r15d, %esi
	callq	_socket
	movq	$-1, %r14
	testq	%rax, %rax
	js	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	testl	%r15d, (%r13)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_evutil_fast_socket_nonblocking
	testq	%rax, %rax
	js	LBB0_6
LBB0_3:
	testl	%r15d, (%r12)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_evutil_fast_socket_closeonexec
	testq	%rax, %rax
	js	LBB0_6
LBB0_7:
	movq	%rbx, %r14
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_evutil_closesocket
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVUTIL_SOCK_NONBLOCK,4,2       ## @EVUTIL_SOCK_NONBLOCK
	.comm	_EVUTIL_SOCK_CLOEXEC,4,2        ## @EVUTIL_SOCK_CLOEXEC
	.comm	_SOCKET_TYPE_MASK,4,2           ## @SOCKET_TYPE_MASK
	.comm	_SOCK_CLOEXEC,4,2               ## @SOCK_CLOEXEC
	.comm	_SOCK_NONBLOCK,4,2              ## @SOCK_NONBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evutil_socket_                 ; -- Begin function evutil_socket_
	.p2align	2
_evutil_socket_:                        ; @evutil_socket_
	.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, x1
Lloh0:
	adrp	x22, _EVUTIL_SOCK_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EVUTIL_SOCK_NONBLOCK@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x21, _EVUTIL_SOCK_CLOEXEC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EVUTIL_SOCK_CLOEXEC@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
	bic	w1, w1, w8
	bl	_socket
	tbnz	x0, #63, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_evutil_fast_socket_nonblocking
	tbnz	x0, #63, LBB0_5
LBB0_3:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_evutil_fast_socket_closeonexec
	tbz	x0, #63, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_evutil_closesocket
LBB0_6:
	mov	x19, #-1
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EVUTIL_SOCK_NONBLOCK,4,2       ; @EVUTIL_SOCK_NONBLOCK
	.comm	_EVUTIL_SOCK_CLOEXEC,4,2        ; @EVUTIL_SOCK_CLOEXEC
	.comm	_SOCKET_TYPE_MASK,4,2           ; @SOCKET_TYPE_MASK
	.comm	_SOCK_CLOEXEC,4,2               ; @SOCK_CLOEXEC
	.comm	_SOCK_NONBLOCK,4,2              ; @SOCK_NONBLOCK
.subsections_via_symbols
