	.file	"extr_evutil.c_evutil_socket_.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	evutil_socket_
	.type	evutil_socket_, @function
evutil_socket_:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR EVUTIL_SOCK_NONBLOCK[rip]
	or	esi, DWORD PTR EVUTIL_SOCK_CLOEXEC[rip]
	not	esi
	and	esi, ebx
	call	socket@PLT
	test	rax, rax
	js	.L4
	mov	r12, rax
	test	DWORD PTR EVUTIL_SOCK_NONBLOCK[rip], ebx
	jne	.L15
.L3:
	test	DWORD PTR EVUTIL_SOCK_CLOEXEC[rip], ebx
	jne	.L16
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rax
	call	evutil_fast_socket_nonblocking@PLT
	test	rax, rax
	jns	.L3
.L12:
	mov	rdi, r12
	mov	r12, -1
	call	evutil_closesocket@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r12
	call	evutil_fast_socket_closeonexec@PLT
	test	rax, rax
	js	.L12
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	mov	r12, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	evutil_socket_, .-evutil_socket_
	.comm	SOCK_NONBLOCK,4,4
	.comm	SOCK_CLOEXEC,4,4
	.comm	SOCKET_TYPE_MASK,4,4
	.comm	EVUTIL_SOCK_NONBLOCK,4,4
	.comm	EVUTIL_SOCK_CLOEXEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_evutil.c_evutil_socket_.c"
	.text
	.align	2
	.global	evutil_socket_
	.syntax unified
	.arm
	.fpu softvfp
	.type	evutil_socket_, %function
evutil_socket_:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r6, .L17
	ldr	r7, .L17+4
	ldr	r1, [r6]
	ldr	r3, [r7]
	orr	r1, r1, r3
	bic	r1, r4, r1
	bl	socket
	subs	r5, r0, #0
	blt	.L4
	ldr	r3, [r6]
	tst	r4, r3
	bne	.L15
.L3:
	ldr	r3, [r7]
	tst	r4, r3
	bne	.L16
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	bl	evutil_fast_socket_nonblocking
	cmp	r0, #0
	bge	.L3
.L12:
	mov	r0, r5
	bl	evutil_closesocket
	mvn	r5, #0
	b	.L1
.L16:
	mov	r0, r5
	bl	evutil_fast_socket_closeonexec
	cmp	r0, #0
	blt	.L12
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mvn	r5, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	EVUTIL_SOCK_NONBLOCK
	.word	EVUTIL_SOCK_CLOEXEC
	.size	evutil_socket_, .-evutil_socket_
	.comm	SOCK_NONBLOCK,4,4
	.comm	SOCK_CLOEXEC,4,4
	.comm	SOCKET_TYPE_MASK,4,4
	.comm	EVUTIL_SOCK_NONBLOCK,4,4
	.comm	EVUTIL_SOCK_CLOEXEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
