	.file	"extr_select.c_select_add.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	select_add
	.type	select_add, @function
select_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR [rsi]
	and	r12d, DWORD PTR EV_SIGNAL[rip]
	jne	.L22
	mov	rbp, rdi
	call	check_selectop@PLT
	mov	edi, DWORD PTR 4[r14]
	mov	r8d, edi
	cmp	DWORD PTR 0[rbp], edi
	jge	.L3
	mov	r13d, DWORD PTR 4[rbp]
	mov	eax, 4
	cmp	r13d, 3
	cmovbe	r13d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 4[r14]
	add	r13d, r13d
.L5:
	mov	esi, DWORD PTR NFDBITS[rip]
	add	edi, 1
	call	howmany@PLT
	movsx	rdx, r13d
	cdqe
	sal	rax, 2
	cmp	rdx, rax
	jb	.L6
	cmp	DWORD PTR 4[rbp], r13d
	jne	.L23
.L7:
	mov	r8d, DWORD PTR 4[r14]
	mov	DWORD PTR 0[rbp], r8d
.L3:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR EV_READ[rip], eax
	jne	.L24
	test	DWORD PTR EV_WRITE[rip], eax
	jne	.L25
.L10:
	mov	rdi, rbp
	call	check_selectop@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, r8d
	call	FD_SET@PLT
	movsx	rdx, DWORD PTR 4[r14]
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax+rdx*8], r14
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR 32[rbp]
	mov	edi, r8d
	call	FD_SET@PLT
	movsx	rdx, DWORD PTR 4[r14]
	mov	rax, QWORD PTR 24[rbp]
	mov	r8, rdx
	mov	QWORD PTR [rax+rdx*8], r14
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR EV_WRITE[rip], eax
	je	.L10
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L22:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rsi
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	evsignal_add@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	esi, r13d
	mov	rdi, rbp
	call	select_resize@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rbp
	or	r12d, -1
	call	check_selectop@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	select_add, .-select_add
	.comm	NFDBITS,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_SIGNAL,4,4
	.comm	EV_READ,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_select.c_select_add.c"
	.text
	.align	2
	.global	select_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	select_add, %function
select_add:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L26
	ldr	r2, [r1]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	ands	r8, r2, r3
	mov	r5, r1
	bne	.L22
	mov	r6, r0
	bl	check_selectop
	ldr	r3, [r5, #4]
	ldr	r2, [r6]
	mov	r0, r3
	cmp	r2, r3
	bge	.L3
	ldr	r4, [r6, #4]
	ldr	r7, .L26+4
	cmp	r4, #3
	movls	r4, #4
	b	.L5
.L6:
	ldr	r3, [r5, #4]
	lsl	r4, r4, #1
.L5:
	ldr	r1, [r7]
	add	r0, r3, #1
	bl	howmany
	cmp	r4, r0, lsl #2
	bcc	.L6
	ldr	r3, [r6, #4]
	cmp	r3, r4
	bne	.L23
.L7:
	ldr	r0, [r5, #4]
	str	r0, [r6]
.L3:
	ldr	r2, .L26+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L24
	ldr	r2, .L26+12
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L25
.L10:
	mov	r0, r6
	bl	check_selectop
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r1, [r6, #12]
	bl	FD_SET
	ldr	r2, [r5, #4]
	ldr	r3, [r6, #8]
	str	r5, [r3, r2, lsl #2]
	b	.L10
.L24:
	ldr	r1, [r6, #20]
	bl	FD_SET
	ldr	r2, [r6, #16]
	ldr	r0, [r5, #4]
	ldr	r3, [r5]
	str	r5, [r2, r0, lsl #2]
	ldr	r2, .L26+12
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L10
	b	.L25
.L22:
	mov	r0, r1
	pop	{r4, r5, r6, r7, r8, lr}
	b	evsignal_add
.L23:
	mov	r1, r4
	mov	r0, r6
	bl	select_resize
	cmp	r0, #0
	beq	.L7
	mov	r0, r6
	bl	check_selectop
	mvn	r8, #0
	b	.L1
.L27:
	.align	2
.L26:
	.word	EV_SIGNAL
	.word	NFDBITS
	.word	EV_READ
	.word	EV_WRITE
	.size	select_add, .-select_add
	.comm	NFDBITS,4,4
	.comm	EV_WRITE,4,4
	.comm	EV_SIGNAL,4,4
	.comm	EV_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
