	.file	"extr_evutil.c_evutil_make_socket_nonblocking.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fcntl(%d, F_GETFL)"
.LC1:
	.string	"fcntl(%d, F_SETFL)"
	.text
	.p2align 4
	.globl	evutil_make_socket_nonblocking
	.type	evutil_make_socket_nonblocking, @function
evutil_make_socket_nonblocking:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR F_GETFL[rip]
	call	fcntl@PLT
	test	eax, eax
	js	.L8
	mov	edx, DWORD PTR O_NONBLOCK[rip]
	test	edx, eax
	je	.L4
.L5:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR F_SETFL[rip]
	or	edx, eax
	mov	rdi, rbp
	call	fcntl@PLT
	mov	r12d, eax
	cmp	eax, -1
	jne	.L5
	mov	rsi, rbp
	lea	rdi, .LC1[rip]
	call	event_warn@PLT
	jmp	.L1
.L8:
	mov	rsi, rbp
	lea	rdi, .LC0[rip]
	mov	r12d, -1
	call	event_warn@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	evutil_make_socket_nonblocking, .-evutil_make_socket_nonblocking
	.comm	SOCKET_ERROR,8,8
	.comm	O_NONBLOCK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.comm	FIONBIO,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_make_socket_nonblocking.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fcntl(%d, F_GETFL)\000"
	.align	2
.LC1:
	.ascii	"fcntl(%d, F_SETFL)\000"
	.text
	.align	2
	.global	evutil_make_socket_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	evutil_make_socket_nonblocking, %function
evutil_make_socket_nonblocking:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	mov	r2, #0
	ldr	r1, [r3]
	mov	r4, r0
	bl	fcntl
	cmp	r0, #0
	blt	.L8
	ldr	r3, .L9+4
	ldr	r2, [r3]
	tst	r2, r0
	beq	.L4
.L5:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r1, .L9+8
	orr	r2, r2, r0
	ldr	r1, [r1]
	mov	r0, r4
	bl	fcntl
	cmn	r0, #1
	mov	r5, r0
	bne	.L5
	mov	r1, r4
	ldr	r0, .L9+12
	bl	event_warn
	b	.L1
.L8:
	mov	r1, r4
	ldr	r0, .L9+16
	bl	event_warn
	mvn	r5, #0
	b	.L1
.L10:
	.align	2
.L9:
	.word	F_GETFL
	.word	O_NONBLOCK
	.word	F_SETFL
	.word	.LC1
	.word	.LC0
	.size	evutil_make_socket_nonblocking, .-evutil_make_socket_nonblocking
	.comm	SOCKET_ERROR,4,4
	.comm	O_NONBLOCK,4,4
	.comm	F_SETFL,4,4
	.comm	F_GETFL,4,4
	.comm	FIONBIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
