	.file	"extr_poll.c_uv_poll_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	uv_poll_init
	.type	uv_poll_init, @function
uv_poll_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	mov	esi, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	uv__fd_exists@PLT
	mov	r13d, DWORD PTR UV_EEXIST[rip]
	test	rax, rax
	je	.L14
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	esi, r12d
	mov	rdi, rbp
	call	uv__io_check_fd@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	esi, 1
	mov	edi, r12d
	call	uv__nonblock@PLT
	cmp	DWORD PTR UV_ENOTTY[rip], eax
	mov	r13d, eax
	jne	.L4
	mov	rax, QWORD PTR uv__nonblock_ioctl@GOTPCREL[rip]
	cmp	QWORD PTR uv__nonblock@GOTPCREL[rip], rax
	je	.L15
.L4:
	test	r13d, r13d
	jne	.L1
	mov	edx, DWORD PTR UV_POLL[rip]
	mov	rsi, rbx
	mov	rdi, rbp
	call	uv__handle_init@PLT
	mov	esi, DWORD PTR uv__poll_io[rip]
	lea	rdi, 8[rbx]
	mov	edx, r12d
	call	uv__io_init@PLT
	mov	QWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, 1
	mov	edi, r12d
	call	uv__nonblock_fcntl@PLT
	mov	r13d, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	uv_poll_init, .-uv_poll_init
	.comm	uv__poll_io,4,4
	.comm	UV_POLL,4,4
	.comm	UV_ENOTTY,4,4
	.comm	UV_EEXIST,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_poll.c_uv_poll_init.c"
	.text
	.align	2
	.global	uv_poll_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	uv_poll_init, %function
uv_poll_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r1, r2
	mov	r4, r2
	mov	r6, r0
	bl	uv__fd_exists
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r1, r4
	mov	r0, r6
	bl	uv__io_check_fd
	subs	r5, r0, #0
	bne	.L1
	mov	r1, #1
	mov	r0, r4
	bl	uv__nonblock
	ldr	r3, .L12+4
	ldr	r2, .L12+8
	ldr	r1, [r3]
	ldr	r3, .L12+12
	mov	r5, r0
	cmp	r1, r0
	cmpeq	r2, r3
	beq	.L11
.L4:
	cmp	r5, #0
	bne	.L1
	ldr	r3, .L12+16
	mov	r1, r7
	ldr	r2, [r3]
	mov	r0, r6
	bl	uv__handle_init
	ldr	r3, .L12+20
	mov	r2, r4
	ldr	r1, [r3]
	add	r0, r7, #4
	bl	uv__io_init
	mov	r0, r5
	str	r5, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, #1
	mov	r0, r4
	bl	uv__nonblock_fcntl
	mov	r5, r0
	b	.L4
.L13:
	.align	2
.L12:
	.word	UV_EEXIST
	.word	UV_ENOTTY
	.word	uv__nonblock
	.word	uv__nonblock_ioctl
	.word	UV_POLL
	.word	uv__poll_io
	.size	uv_poll_init, .-uv_poll_init
	.comm	uv__poll_io,4,4
	.comm	UV_POLL,4,4
	.comm	UV_ENOTTY,4,4
	.comm	UV_EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
