	.file	"extr_6472.c_add_fd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[*] Adding fd %d to eventpoll %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	" => Fd %d added!\n"
.LC2:
	.string	" => Error (%d) adding fd %d\n"
	.text
	.p2align 4
	.globl	add_fd
	.type	add_fd, @function
add_fd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, edi
	xor	eax, eax
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	lea	rdi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	printf@PLT
	mov	eax, DWORD PTR EPOLLIN[rip]
	mov	edx, r12d
	mov	edi, ebp
	or	eax, DWORD PTR EPOLLOUT[rip]
	mov	esi, DWORD PTR EPOLL_CTL_ADD[rip]
	lea	rcx, ev.1942[rip]
	mov	DWORD PTR errno[rip], 0
	or	eax, DWORD PTR EPOLLPRI[rip]
	or	eax, DWORD PTR EPOLLERR[rip]
	or	eax, DWORD PTR EPOLLHUP[rip]
	or	eax, DWORD PTR EPOLLET[rip]
	mov	DWORD PTR ev.1942[rip], eax
	movabs	rax, 25769803782
	mov	QWORD PTR ev.1942[rip+4], rax
	call	epoll_ctl@PLT
	test	rax, rax
	jne	.L2
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR errno[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	add_fd, .-add_fd
	.local	ev.1942
	.comm	ev.1942,12,8
	.comm	errno,4,4
	.comm	EPOLL_CTL_ADD,4,4
	.comm	EPOLLPRI,4,4
	.comm	EPOLLOUT,4,4
	.comm	EPOLLIN,4,4
	.comm	EPOLLHUP,4,4
	.comm	EPOLLET,4,4
	.comm	EPOLLERR,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_6472.c_add_fd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[*] Adding fd %d to eventpoll %d\012\000"
	.align	2
.LC1:
	.ascii	" => Fd %d added!\012\000"
	.align	2
.LC2:
	.ascii	" => Error (%d) adding fd %d\012\000"
	.text
	.align	2
	.global	add_fd
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_fd, %function
add_fd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r0
	mov	r4, r1
	mov	r2, r0
	ldr	r0, .L5
	bl	printf
	mov	r5, #0
	mov	lr, #6
	ldr	r1, .L5+4
	ldr	r3, .L5+8
	ldr	ip, [r1]
	ldr	r3, [r3]
	ldr	r2, .L5+12
	orr	ip, ip, r3
	ldr	r2, [r2]
	ldr	r3, .L5+16
	orr	ip, ip, r2
	ldr	r3, [r3]
	ldr	r2, .L5+20
	orr	ip, ip, r3
	ldr	r2, [r2]
	ldr	r3, .L5+24
	orr	ip, ip, r2
	ldr	r1, .L5+28
	ldr	r2, [r3]
	mov	r0, r6
	ldr	r3, .L5+32
	ldr	r6, .L5+36
	orr	ip, ip, r2
	ldr	r1, [r1]
	mov	r2, r4
	stm	r3, {ip, lr}
	str	lr, [r3, #8]
	str	r5, [r6]
	bl	epoll_ctl
	cmp	r0, r5
	bne	.L2
	mov	r1, r4
	pop	{r4, r5, r6, lr}
	ldr	r0, .L5+40
	b	printf
.L2:
	mov	r2, r4
	ldr	r1, [r6]
	ldr	r0, .L5+44
	pop	{r4, r5, r6, lr}
	b	printf
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	EPOLLIN
	.word	EPOLLOUT
	.word	EPOLLPRI
	.word	EPOLLERR
	.word	EPOLLHUP
	.word	EPOLLET
	.word	EPOLL_CTL_ADD
	.word	.LANCHOR0
	.word	errno
	.word	.LC1
	.word	.LC2
	.size	add_fd, .-add_fd
	.comm	errno,4,4
	.comm	EPOLL_CTL_ADD,4,4
	.comm	EPOLLPRI,4,4
	.comm	EPOLLOUT,4,4
	.comm	EPOLLIN,4,4
	.comm	EPOLLHUP,4,4
	.comm	EPOLLET,4,4
	.comm	EPOLLERR,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ev.4226, %object
	.size	ev.4226, 12
ev.4226:
	.space	12
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
