	.file	"extr_ngx_epoll_module.c_ngx_epoll_add_event.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"epoll add event: fd:%d op:%d ev:%08XD"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"epoll_ctl(%d, %d) failed"
	.text
	.p2align 4
	.type	ngx_epoll_add_event, @function
ngx_epoll_add_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, edx
	mov	edx, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rdi
	xor	edi, edi
	cmp	QWORD PTR NGX_READ_EVENT[rip], rsi
	mov	rdi, QWORD PTR 8[rbp]
	mov	r8, QWORD PTR 16[rbp]
	je	.L11
	mov	ecx, DWORD PTR EPOLLIN[rip]
	or	ecx, DWORD PTR EPOLLRDHUP[rip]
.L3:
	mov	edi, DWORD PTR [rdi]
	mov	r12d, DWORD PTR EPOLL_CTL_ADD[rip]
	test	edi, edi
	je	.L5
	or	ecx, esi
	mov	r12d, DWORD PTR EPOLL_CTL_MOD[rip]
	mov	edx, ecx
.L5:
	or	edx, eax
	mov	rax, QWORD PTR 8[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	esi, DWORD PTR 20[rbx]
	mov	DWORD PTR 8[rsp], edx
	mov	edi, DWORD PTR NGX_LOG_DEBUG_EVENT[rip]
	mov	r9d, r12d
	lea	rcx, .LC0[rip]
	or	rax, rbp
	mov	QWORD PTR 16[rsp], rax
	push	rdx
	.cfi_def_cfa_offset 80
	mov	r8d, DWORD PTR 0[rbp]
	xor	edx, edx
	call	ngx_log_debug3@PLT
	mov	edx, DWORD PTR 0[rbp]
	lea	rcx, 16[rsp]
	mov	esi, r12d
	mov	edi, DWORD PTR ep[rip]
	call	epoll_ctl@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	cmp	eax, -1
	je	.L12
	mov	DWORD PTR [rbx], 1
	mov	rax, QWORD PTR NGX_OK[rip]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	ecx, DWORD PTR EPOLLOUT[rip]
	mov	rdi, r8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR 20[rbx]
	mov	r9d, DWORD PTR 0[rbp]
	mov	r8d, r12d
	lea	rcx, .LC1[rip]
	mov	edx, DWORD PTR ngx_errno[rip]
	mov	edi, DWORD PTR NGX_LOG_ALERT[rip]
	call	ngx_log_error@PLT
	mov	rax, QWORD PTR NGX_ERROR[rip]
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ngx_epoll_add_event, .-ngx_epoll_add_event
	.comm	ngx_errno,4,4
	.comm	ep,4,4
	.comm	NGX_READ_EVENT,8,8
	.comm	NGX_ONESHOT_EVENT,4,4
	.comm	NGX_OK,8,8
	.comm	NGX_LOG_DEBUG_EVENT,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_EXCLUSIVE_EVENT,4,4
	.comm	NGX_ERROR,8,8
	.comm	EPOLL_CTL_MOD,4,4
	.comm	EPOLL_CTL_ADD,4,4
	.comm	EPOLLRDHUP,4,4
	.comm	EPOLLOUT,4,4
	.comm	EPOLLIN,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_ngx_epoll_module.c_ngx_epoll_add_event.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"epoll add event: fd:%d op:%d ev:%08XD\000"
	.align	2
.LC1:
	.ascii	"epoll_ctl(%d, %d) failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_epoll_add_event, %function
ngx_epoll_add_event:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	ldr	r5, [r0, #16]
	ldr	r3, [r3]
	sub	sp, sp, #32
	cmp	r3, r1
	ldr	r3, .L13+4
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldmib	r5, {r0, r3}
	moveq	r0, r3
	ldrne	r3, .L13+8
	ldrne	ip, .L13+12
	ldr	r0, [r0]
	ldrne	r3, [r3]
	ldrne	ip, [ip]
	ldreq	ip, .L13+16
	orrne	r3, r3, ip
	ldreq	r3, [ip]
	cmp	r0, #0
	ldrne	r0, .L13+20
	ldreq	r3, .L13+24
	ldrne	r6, [r0]
	ldreq	r6, [r3]
	orrne	r1, r1, r3
	orr	r1, r1, r2
	str	r1, [sp, #8]
	str	r6, [sp, #4]
	ldr	r2, [r5]
	ldr	ip, [r4, #4]
	ldr	r3, .L13+28
	str	r2, [sp]
	orr	ip, r5, ip
	mov	r2, #0
	ldr	r0, [r3]
	str	r1, [sp, #20]
	ldr	r3, .L13+32
	ldr	r1, [r4, #12]
	str	ip, [sp, #24]
	bl	ngx_log_debug3
	ldr	r2, .L13+36
	mov	r1, r6
	ldr	r0, [r2]
	add	r3, sp, #20
	ldr	r2, [r5]
	bl	epoll_ctl
	cmn	r0, #1
	beq	.L11
	mov	r2, #1
	ldr	r3, .L13+40
	str	r2, [r4]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r1, [r5]
	ldr	r3, .L13+44
	ldr	r2, .L13+48
	str	r1, [sp, #4]
	str	r6, [sp]
	ldr	r0, [r3]
	ldr	r1, [r4, #12]
	ldr	r3, .L13+52
	ldr	r2, [r2]
	bl	ngx_log_error
	ldr	r3, .L13+56
	ldr	r0, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	NGX_READ_EVENT
	.word	.LC2
	.word	EPOLLIN
	.word	EPOLLRDHUP
	.word	EPOLLOUT
	.word	EPOLL_CTL_MOD
	.word	EPOLL_CTL_ADD
	.word	NGX_LOG_DEBUG_EVENT
	.word	.LC0
	.word	ep
	.word	NGX_OK
	.word	NGX_LOG_ALERT
	.word	ngx_errno
	.word	.LC1
	.word	NGX_ERROR
	.size	ngx_epoll_add_event, .-ngx_epoll_add_event
	.comm	ngx_errno,4,4
	.comm	ep,4,4
	.comm	NGX_READ_EVENT,4,4
	.comm	NGX_ONESHOT_EVENT,4,4
	.comm	NGX_OK,4,4
	.comm	NGX_LOG_DEBUG_EVENT,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_EXCLUSIVE_EVENT,4,4
	.comm	NGX_ERROR,4,4
	.comm	EPOLL_CTL_MOD,4,4
	.comm	EPOLL_CTL_ADD,4,4
	.comm	EPOLLRDHUP,4,4
	.comm	EPOLLOUT,4,4
	.comm	EPOLLIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
