	.file	"extr_websocket.c_ws_openfifo_out.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unable to open fifo out: %s."
	.text
	.p2align 4
	.type	ws_openfifo_out, @function
ws_openfifo_out:
.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	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR wsconfig[rip]
	call	ws_setfifo@PLT
	mov	edi, DWORD PTR wsconfig[rip]
	mov	esi, DWORD PTR O_WRONLY[rip]
	or	esi, DWORD PTR O_NONBLOCK[rip]
	call	open@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L12
	test	eax, eax
	js	.L13
.L10:
	mov	DWORD PTR [rbx], r12d
	cmp	DWORD PTR max_file_fd[rip], r12d
	jge	.L1
	mov	DWORD PTR max_file_fd[rip], r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR errno[rip]
	cmp	rdi, QWORD PTR ENXIO[rip]
	je	.L14
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	FATAL@PLT
	mov	DWORD PTR [rbx], -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	strerror@PLT
	movsx	rdi, eax
	call	LOG@PLT
	mov	DWORD PTR [rbx], -1
	jmp	.L1
.L13:
	mov	rdi, QWORD PTR errno[rip]
	call	strerror@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	FATAL@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	ws_openfifo_out, .-ws_openfifo_out
	.comm	wsconfig,4,4
	.comm	max_file_fd,4,4
	.comm	errno,8,8
	.comm	O_WRONLY,4,4
	.comm	O_NONBLOCK,4,4
	.comm	ENXIO,8,8
	.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_websocket.c_ws_openfifo_out.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to open fifo out: %s.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ws_openfifo_out, %function
ws_openfifo_out:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L15
	mov	r5, r0
	ldr	r0, [r4]
	bl	ws_setfifo
	ldr	r2, .L15+4
	ldr	r3, .L15+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, [r4]
	orr	r1, r1, r3
	bl	open
	cmn	r0, #1
	mov	r4, r0
	beq	.L12
	cmp	r0, #0
	blt	.L13
.L10:
	ldr	r3, .L15+12
	str	r4, [r5]
	ldr	r2, [r3]
	cmp	r2, r4
	strlt	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r2, .L15+16
	ldr	r3, .L15+20
	ldr	r0, [r2]
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
	bl	strerror
	mov	r1, r0
	ldr	r0, .L15+24
	bl	FATAL
	mov	r0, r4
	str	r4, [r5]
	pop	{r4, r5, r6, pc}
.L14:
	bl	strerror
	bl	LOG
	str	r4, [r5]
	b	.L1
.L13:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	bl	strerror
	mov	r1, r0
	ldr	r0, .L15+24
	bl	FATAL
	b	.L10
.L16:
	.align	2
.L15:
	.word	wsconfig
	.word	O_WRONLY
	.word	O_NONBLOCK
	.word	max_file_fd
	.word	errno
	.word	ENXIO
	.word	.LC0
	.size	ws_openfifo_out, .-ws_openfifo_out
	.comm	wsconfig,4,4
	.comm	max_file_fd,4,4
	.comm	errno,4,4
	.comm	O_WRONLY,4,4
	.comm	O_NONBLOCK,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
