	.file	"extr_kern_event.c_kqueue_body.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kqueue_body
	.type	kqueue_body, @function
kqueue_body:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	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, rcx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	vfs_context_current@PLT
	mov	r8d, r12d
	lea	rdx, 12[rsp]
	mov	r9, r13
	mov	ecx, eax
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	call	falloc_withalloc@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L7:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	kqueue_alloc@PLT
	mov	rdx, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L9
	mov	ecx, DWORD PTR FREAD[rip]
	lea	rdi, kqueueops[rip]
	or	ecx, DWORD PTR FWRITE[rip]
	mov	QWORD PTR 8[rdx], rax
	mov	DWORD PTR [rdx], ecx
	mov	QWORD PTR 16[rdx], rdi
	mov	rdi, rbp
	call	proc_fdlock@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	call	fdflags@PLT
	mov	edx, DWORD PTR UF_EXCLOSE[rip]
	mov	rdi, rbp
	or	DWORD PTR [rax], edx
	mov	esi, DWORD PTR 12[rsp]
	xor	edx, edx
	call	procfdtbl_releasefd@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	ecx, 1
	call	fp_drop@PLT
	mov	rdi, rbp
	call	proc_fdunlock@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, rbp
	call	fp_free@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kqueue_body, .-kqueue_body
	.comm	kqueueops,4,4
	.comm	UF_EXCLOSE,4,4
	.comm	FWRITE,4,4
	.comm	FREAD,4,4
	.comm	ENOMEM,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_kern_event.c_kqueue_body.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kqueue_body
	.syntax unified
	.arm
	.fpu softvfp
	.type	kqueue_body, %function
kqueue_body:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r3
	ldr	r3, .L10
	sub	sp, sp, #28
	mov	r5, r1
	mov	r6, r2
	mov	r4, r0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	vfs_context_current
	stm	sp, {r5, r6}
	mov	r3, r0
	add	r2, sp, #16
	mov	r0, r4
	add	r1, sp, #12
	bl	falloc_withalloc
	subs	r5, r0, #0
	beq	.L7
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r1, r5
	mov	r0, r4
	bl	kqueue_alloc
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, [sp, #12]
	ldr	r1, .L10+12
	orr	r2, r2, ip
	stmib	r3, {r0, r1}
	str	r2, [r3]
	mov	r0, r4
	bl	proc_fdlock
	ldr	r1, [sp, #16]
	mov	r0, r4
	bl	fdflags
	ldr	r2, .L10+16
	ldr	r3, [r0]
	ldr	r1, [r2]
	mov	r2, r5
	orr	r3, r3, r1
	str	r3, [r0]
	ldr	r1, [sp, #16]
	mov	r0, r4
	bl	procfdtbl_releasefd
	mov	r3, #1
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #16]
	mov	r0, r4
	bl	fp_drop
	mov	r0, r4
	bl	proc_fdunlock
	ldr	r3, [sp, #16]
	str	r3, [r7]
	b	.L1
.L9:
	mov	r0, r4
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #16]
	bl	fp_free
	ldr	r3, .L10+20
	ldr	r5, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	FWRITE
	.word	FREAD
	.word	kqueueops
	.word	UF_EXCLOSE
	.word	ENOMEM
	.size	kqueue_body, .-kqueue_body
	.comm	kqueueops,4,4
	.comm	UF_EXCLOSE,4,4
	.comm	FWRITE,4,4
	.comm	FREAD,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
