	.file	"extr_vfs_syscalls.c_wait_for_namespace_event.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"namespace-items"
	.text
	.p2align 4
	.type	wait_for_namespace_event, @function
wait_for_namespace_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	lea	rbp, [rbx+rbx*2]
	sal	rbp, 3
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 8[rsp], rdi
	lea	rdi, nspace_handler_exclusion_lock[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	lck_mtx_lock@PLT
	mov	rax, QWORD PTR nspace_handlers[rip]
	add	rax, rbp
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jne	.L66
	mov	DWORD PTR [rax], 1
	lea	rdi, nspace_handler_exclusion_lock[rip]
	call	lck_mtx_unlock@PLT
	xor	eax, eax
	call	current_task@PLT
	mov	edi, eax
	call	bsd_set_dependency_capable@PLT
	lea	rdi, nspace_handler_lock[rip]
	call	lck_mtx_lock@PLT
	mov	rax, QWORD PTR nspace_handlers[rip]
	cmp	QWORD PTR 8[rax+rbp], 0
	je	.L67
.L4:
	cmp	QWORD PTR NSPACE_HANDLER_SNAPSHOT[rip], rbx
	je	.L68
.L5:
	lea	r14, .LC0[rip]
.L15:
	mov	edx, DWORD PTR MAX_NSPACE_ITEMS[rip]
	xor	r13d, r13d
	test	edx, edx
	jg	.L8
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	add	r13, 1
	cmp	DWORD PTR MAX_NSPACE_ITEMS[rip], r13d
	jle	.L11
.L8:
	mov	rax, QWORD PTR nspace_items[rip]
	lea	r8, 0[r13+r13*2]
	sal	r8, 4
	mov	edi, DWORD PTR [rax+r8]
	mov	r12, r8
	test	DWORD PTR NSPACE_ITEM_NEW[rip], edi
	je	.L10
	mov	rsi, rbx
	call	nspace_flags_matches_handler@PLT
	test	rax, rax
	je	.L10
	cmp	DWORD PTR MAX_NSPACE_ITEMS[rip], r13d
	jg	.L69
.L11:
	mov	edx, DWORD PTR PVFS[rip]
	xor	r8d, r8d
	or	edx, DWORD PTR PCATCH[rip]
	mov	rcx, r14
	lea	rsi, nspace_handler_lock[rip]
	lea	rdi, nspace_item_idx[rip]
	call	msleep@PLT
	mov	r15d, eax
	mov	rax, QWORD PTR NSPACE_HANDLER_SNAPSHOT[rip]
	cmp	rax, rbx
	jne	.L13
	mov	ecx, DWORD PTR snapshot_timestamp[rip]
	lea	edx, 1[rcx]
	cmp	edx, 1
	ja	.L13
	mov	r15d, DWORD PTR EINVAL[rip]
	test	r15d, r15d
	jne	.L6
.L14:
	lea	rdi, nspace_handler_lock[rip]
	call	lck_mtx_unlock@PLT
	lea	rdi, nspace_handler_exclusion_lock[rip]
	call	lck_mtx_lock@PLT
	mov	rax, QWORD PTR nspace_handlers[rip]
	lea	rdi, nspace_handler_exclusion_lock[rip]
	mov	DWORD PTR [rax+rbp], 0
	call	lck_mtx_unlock@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L70
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	test	r15d, r15d
	je	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	cmp	rbx, rax
	jne	.L14
	mov	eax, DWORD PTR snapshot_timestamp[rip]
	add	eax, 1
	cmp	eax, 1
	ja	.L14
.L6:
	mov	eax, DWORD PTR MAX_NSPACE_ITEMS[rip]
	test	eax, eax
	jle	.L14
	xor	r12d, r12d
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L32:
	add	r12, 1
	cmp	DWORD PTR MAX_NSPACE_ITEMS[rip], r12d
	jle	.L14
.L34:
	mov	rax, QWORD PTR nspace_items[rip]
	lea	r13, [r12+r12*2]
	sal	r13, 4
	mov	edi, DWORD PTR [rax+r13]
	test	DWORD PTR NSPACE_ITEM_NEW[rip], edi
	je	.L32
	mov	rsi, rbx
	call	nspace_flags_matches_handler@PLT
	test	rax, rax
	je	.L32
	mov	rax, QWORD PTR NSPACE_ITEM_DONE[rip]
	add	r13, QWORD PTR nspace_items[rip]
	mov	QWORD PTR 8[r13], 0
	lea	rdi, 8[r13]
	mov	QWORD PTR 24[r13], 0
	mov	DWORD PTR 0[r13], eax
	mov	QWORD PTR 16[r13], 0
	call	wakeup@PLT
	jmp	.L32
.L68:
	mov	eax, DWORD PTR snapshot_timestamp[rip]
	add	eax, 1
	cmp	eax, 1
	ja	.L5
	mov	r15d, DWORD PTR EINVAL[rip]
	test	r15d, r15d
	je	.L5
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L66:
	lea	rdi, nspace_handler_exclusion_lock[rip]
	call	lck_mtx_unlock@PLT
	mov	r15d, DWORD PTR EBUSY[rip]
	jmp	.L1
.L69:
	mov	rdx, QWORD PTR nspace_items[rip]
	mov	eax, DWORD PTR NSPACE_ITEM_NEW[rip]
	add	rdx, r12
	not	eax
	and	eax, DWORD PTR [rdx]
	or	eax, DWORD PTR NSPACE_ITEM_PROCESSING[rip]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR nspace_token_id[rip]
	mov	rdi, QWORD PTR 8[rdx]
	add	rax, 1
	mov	QWORD PTR 16[rdx], rax
	mov	QWORD PTR nspace_token_id[rip], rax
	call	assert@PLT
	xor	eax, eax
	call	current_proc@PLT
	mov	r13, rax
	xor	eax, eax
	call	vfs_context_current@PLT
	mov	rdi, rbx
	mov	r14d, eax
	call	nspace_open_flags_for_type@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR nspace_items[rip]
	add	rax, r12
	mov	rsi, QWORD PTR 24[rax]
	mov	rdi, QWORD PTR 8[rax]
	call	vnode_getwithvid@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L71
.L29:
	mov	rax, QWORD PTR nspace_items[rip]
	add	rax, r12
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L30
	mov	edx, DWORD PTR [rdi]
	test	DWORD PTR VNEEDSSNAPSHOT[rip], edx
	jne	.L72
.L30:
	mov	rdx, QWORD PTR NSPACE_ITEM_DONE[rip]
	mov	QWORD PTR 8[rax], 0
	lea	rdi, 8[rax]
	mov	QWORD PTR 24[rax], 0
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR 16[rax], 0
	call	wakeup@PLT
	mov	rax, QWORD PTR NSPACE_HANDLER_SNAPSHOT[rip]
	jmp	.L16
.L67:
	xor	eax, eax
	call	current_thread@PLT
	mov	r13, QWORD PTR nspace_handlers[rip]
	mov	edi, eax
	call	thread_tid@PLT
	add	r13, rbp
	mov	DWORD PTR 16[r13], eax
	mov	r13, QWORD PTR nspace_handlers[rip]
	xor	eax, eax
	add	r13, rbp
	call	current_proc@PLT
	mov	QWORD PTR 8[r13], rax
	jmp	.L4
.L72:
	call	vnode_lock_spin@PLT
	mov	rax, QWORD PTR nspace_items[rip]
	mov	rdi, QWORD PTR 8[rax+r12]
	mov	eax, DWORD PTR VNEEDSSNAPSHOT[rip]
	not	eax
	and	DWORD PTR [rdi], eax
	call	vnode_unlock@PLT
	mov	rax, QWORD PTR nspace_items[rip]
	add	rax, r12
	jmp	.L30
.L71:
	mov	rax, QWORD PTR nspace_items[rip]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, r14d
	mov	rdi, QWORD PTR 8[rax+r12]
	call	vn_open_with_vp@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L73
.L18:
	mov	rax, QWORD PTR nspace_items[rip]
	mov	rdi, QWORD PTR 8[rax+r12]
	call	vnode_put@PLT
	jmp	.L29
.L73:
	lea	rax, 48[rsp]
	lea	rsi, 40[rsp]
	mov	ecx, r14d
	mov	rdi, r13
	mov	rdx, rax
	mov	QWORD PTR 24[rsp], rax
	call	falloc@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR nspace_items[rip]
	mov	rdi, r13
	mov	rcx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rdx+r12]
	mov	QWORD PTR 16[rax], rcx
	lea	rcx, vnops[rip]
	mov	QWORD PTR 8[rax], rcx
	mov	QWORD PTR [rax], rdx
	call	proc_fdlock@PLT
	mov	rsi, QWORD PTR 48[rsp]
	xor	edx, edx
	mov	rdi, r13
	call	procfdtbl_releasefd@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, r13
	mov	ecx, 1
	call	fp_drop@PLT
	mov	rdi, r13
	call	proc_fdunlock@PLT
	mov	r15, QWORD PTR 8[rsp]
	mov	edx, 4
	mov	rax, QWORD PTR nspace_items[rip]
	add	rax, r12
	mov	rsi, QWORD PTR 32[r15]
	mov	rdi, rax
	add	rdi, 16
	call	copyout@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR nspace_items[rip]
	mov	r15, QWORD PTR 8[rsp]
	mov	edx, 8
	add	rax, r12
	mov	rsi, QWORD PTR 24[r15]
	mov	rdi, rax
	add	rdi, 40
	call	copyout@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L20
	mov	r15, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 24[rsp]
	mov	edx, 4
	mov	rsi, QWORD PTR 16[r15]
	call	copyout@PLT
	test	eax, eax
	jne	.L37
	cmp	QWORD PTR 8[r15], 0
	je	.L21
	mov	rax, QWORD PTR nspace_items[rip]
	movsx	r15, DWORD PTR 32[rax+r12]
	test	r15, r15
	jne	.L74
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 64[rsp], 0
.L23:
	mov	rax, QWORD PTR 8[rsp]
	lea	rdi, 56[rsp]
	mov	edx, 8
	mov	rsi, QWORD PTR 8[rax]
	call	copyout@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR 8[rsp]
	lea	rdi, 64[rsp]
	mov	edx, 8
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, 8[rax]
	mov	QWORD PTR 24[rsp], rax
	call	copyout@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L20
.L21:
	mov	rax, QWORD PTR 8[rsp]
	cmp	QWORD PTR [rax], 0
	jne	.L25
.L64:
	mov	rax, QWORD PTR nspace_items[rip]
	xor	r15d, r15d
	mov	rdi, QWORD PTR 8[rax+r12]
	call	vnode_put@PLT
	jmp	.L14
.L37:
	mov	r15d, eax
.L20:
	mov	rdx, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdi, r13
	call	fp_free@PLT
.L19:
	mov	rax, QWORD PTR nspace_items[rip]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, r14d
	mov	rdi, QWORD PTR 8[rax+r12]
	call	vn_close@PLT
	jmp	.L18
.L25:
	lea	r10, 56[rsp]
	mov	rdi, r10
	mov	QWORD PTR 24[rsp], r10
	call	VATTR_INIT@PLT
	mov	r10, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR va_linkid[rip]
	mov	rdi, r10
	call	VATTR_WANTED@PLT
	mov	rax, QWORD PTR nspace_items[rip]
	mov	r10, QWORD PTR 24[rsp]
	mov	edx, r14d
	mov	rdi, QWORD PTR 8[rax+r12]
	mov	rsi, r10
	call	vnode_getattr@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L20
	mov	r10, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR va_linkid[rip]
	mov	QWORD PTR 64[rsp], 0
	mov	rdi, r10
	call	VATTR_IS_SUPPORTED@PLT
	test	rax, rax
	je	.L28
	movsx	rax, DWORD PTR 56[rsp]
	mov	QWORD PTR 64[rsp], rax
.L28:
	mov	rax, QWORD PTR 8[rsp]
	lea	rdi, 64[rsp]
	mov	edx, 8
	mov	rsi, QWORD PTR [rax]
	call	copyout@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L20
	jmp	.L64
.L70:
	call	__stack_chk_fail@PLT
.L74:
	mov	rdi, r15
	call	uio_offset@PLT
	mov	rdi, r15
	mov	QWORD PTR 56[rsp], rax
	call	uio_resid@PLT
	mov	QWORD PTR 64[rsp], rax
	jmp	.L23
	.cfi_endproc
.LFE0:
	.size	wait_for_namespace_event, .-wait_for_namespace_event
	.comm	vnops,4,4
	.comm	va_linkid,4,4
	.comm	snapshot_timestamp,4,4
	.comm	nspace_token_id,8,8
	.comm	nspace_items,8,8
	.comm	nspace_item_idx,4,4
	.comm	nspace_handlers,8,8
	.comm	nspace_handler_lock,4,4
	.comm	nspace_handler_exclusion_lock,4,4
	.comm	VNEEDSSNAPSHOT,4,4
	.comm	PVFS,4,4
	.comm	PCATCH,4,4
	.comm	NSPACE_ITEM_PROCESSING,4,4
	.comm	NSPACE_ITEM_NEW,4,4
	.comm	NSPACE_ITEM_DONE,8,8
	.comm	NSPACE_HANDLER_SNAPSHOT,8,8
	.comm	MAX_NSPACE_ITEMS,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_vfs_syscalls.c_wait_for_namespace_event.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"namespace-items\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_for_namespace_event, %function
wait_for_namespace_event:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r1
	sub	sp, sp, #60
	str	r3, [sp, #16]
	ldr	fp, .L78
	ldr	r3, .L78+4
	ldr	r0, .L78+8
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	lck_mtx_lock
	ldr	r3, [fp]
	add	r2, r8, r8, lsl #1
	lsl	r2, r2, #2
	str	r2, [sp, #12]
	ldr	r2, [r3, r2]
	cmp	r2, #0
	str	r2, [sp, #20]
	bne	.L68
	mov	r2, #1
	ldr	r4, [sp, #12]
	ldr	r0, .L78+8
	str	r2, [r3, r4]
	bl	lck_mtx_unlock
	bl	current_task
	bl	bsd_set_dependency_capable
	ldr	r0, .L78+12
	bl	lck_mtx_lock
	ldr	r3, [fp]
	add	r3, r3, r4
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L69
.L4:
	ldr	r3, .L78+16
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L70
.L5:
	ldr	r5, .L78+20
	ldr	r6, .L78+24
	ldr	r7, .L78+28
	ldr	r10, .L78+32
.L15:
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r9, #0
	movgt	r4, r9
	bgt	.L8
	b	.L11
.L10:
	ldr	r3, [r5]
	add	r9, r9, #1
	cmp	r3, r9
	add	r4, r4, #24
	ble	.L11
.L8:
	ldr	r2, [r6]
	ldr	r3, [r7]
	ldr	r0, [r2, r4]
	tst	r0, r3
	beq	.L10
	mov	r1, r8
	bl	nspace_flags_matches_handler
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r5]
	cmp	r3, r9
	bgt	.L71
.L11:
	mov	r1, #0
	ldr	r3, .L78+36
	ldr	r0, .L78+40
	ldr	r2, [r3]
	ldr	r3, [r10]
	str	r1, [sp]
	orr	r2, r2, r3
	ldr	r1, .L78+12
	ldr	r3, .L78+44
	bl	msleep
	ldr	r3, .L78+16
	ldr	r2, [r3]
	cmp	r2, r8
	bne	.L13
	ldr	r3, .L78+48
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, #1
	bhi	.L13
	ldr	r3, .L78+52
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
.L14:
	ldr	r0, .L78+12
	str	r3, [sp, #16]
	bl	lck_mtx_unlock
	ldr	r0, .L78+8
	bl	lck_mtx_lock
	mov	r1, #0
	ldr	r3, [sp, #12]
	ldr	r2, [fp]
	ldr	r0, .L78+8
	str	r1, [r2, r3]
	bl	lck_mtx_unlock
	ldr	r3, [sp, #16]
.L1:
	ldr	r2, .L78+4
	ldr	r1, [r2]
	ldr	r2, [sp, #52]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L72
	mov	r0, r3
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	cmp	r0, #0
	beq	.L15
	mov	r3, r0
	b	.L16
.L70:
	ldr	r3, .L78+48
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, #1
	bhi	.L5
	ldr	r3, .L78+52
	ldr	r3, [r3]
	cmp	r3, #0
	ldrne	r5, .L78+20
	beq	.L5
.L6:
	ldr	r2, [r5]
	cmp	r2, #0
	ble	.L14
	mov	r4, #0
	str	r8, [sp, #16]
	mov	r6, r4
	mov	r8, r5
	ldr	r9, .L78+24
	ldr	r10, .L78+28
	ldr	r7, .L78+56
	ldr	r5, [sp, #20]
	str	r3, [sp, #24]
	b	.L34
.L32:
	ldr	r2, [r8]
	add	r5, r5, #1
	cmp	r2, r5
	add	r4, r4, #24
	ble	.L73
.L34:
	ldr	r0, [r9]
	ldr	r2, [r10]
	ldr	r0, [r0, r4]
	tst	r0, r2
	beq	.L32
	ldr	r1, [sp, #16]
	bl	nspace_flags_matches_handler
	cmp	r0, #0
	beq	.L32
	ldr	r0, [r9]
	ldr	ip, [r7]
	add	r2, r0, r4
	str	r6, [r2, #4]
	str	r6, [r2, #12]
	str	ip, [r0, r4]
	add	r0, r2, #4
	str	r6, [r2, #8]
	bl	wakeup
	b	.L32
.L68:
	ldr	r0, .L78+8
	bl	lck_mtx_unlock
	ldr	r3, .L78+60
	ldr	r3, [r3]
	b	.L1
.L71:
	ldr	r0, [r6]
	ldr	r1, .L78+64
	ldr	r2, .L78+68
	ldr	lr, [r7]
	ldr	r3, [r0, r4]
	ldr	ip, [r2]
	ldr	r2, [r1]
	bic	r3, r3, lr
	orr	r3, r3, ip
	add	r2, r2, #1
	add	ip, r0, r4
	str	r3, [r0, r4]
	ldr	r0, [ip, #4]
	str	r2, [ip, #8]
	str	r2, [r1]
	bl	assert
	bl	current_proc
	mov	r9, r0
	bl	vfs_context_current
	mov	r10, r0
	mov	r0, r8
	bl	nspace_open_flags_for_type
	ldr	r3, [r6]
	str	r0, [sp, #24]
	add	r3, r3, r4
	ldr	r1, [r3, #12]
	mov	r7, r0
	ldr	r0, [r3, #4]
	bl	vnode_getwithvid
	subs	r3, r0, #0
	beq	.L74
.L29:
	ldr	r2, [r6]
	add	r2, r2, r4
	ldr	r0, [r2, #4]
	cmp	r0, #0
	beq	.L30
	ldr	r7, .L78+72
	ldr	ip, [r0]
	ldr	r1, [r7]
	tst	ip, r1
	bne	.L75
.L30:
	mov	r1, #0
	ldr	r0, .L78+56
	str	r1, [r2, #4]
	ldr	r0, [r0]
	str	r1, [r2, #12]
	str	r0, [r2]
	str	r1, [r2, #8]
	add	r0, r2, #4
	str	r3, [sp, #16]
	bl	wakeup
	ldr	r3, .L78+16
	ldr	r2, [r3]
	ldr	r3, [sp, #16]
.L16:
	cmp	r8, r2
	bne	.L14
	ldr	r2, .L78+48
	ldr	r2, [r2]
	add	r2, r2, #1
	cmp	r2, #1
	bhi	.L14
	b	.L6
.L69:
	bl	current_thread
	ldr	r6, [sp, #12]
	ldr	r5, [fp]
	bl	thread_tid
	add	r5, r5, r6
	str	r0, [r5, #8]
	ldr	r4, [fp]
	bl	current_proc
	add	r4, r4, r6
	str	r0, [r4, #4]
	b	.L4
.L75:
	str	r3, [sp, #16]
	bl	vnode_lock_spin
	ldr	r2, [r6]
	ldr	r1, [r7]
	add	r2, r2, r4
	ldr	r0, [r2, #4]
	ldr	r2, [r0]
	bic	r2, r2, r1
	str	r2, [r0]
	bl	vnode_unlock
	ldr	r2, [r6]
	ldr	r3, [sp, #16]
	add	r2, r2, r4
	b	.L30
.L74:
	ldr	r3, [r6]
	mov	r2, r10
	add	r3, r3, r4
	ldr	r0, [r3, #4]
	mov	r1, r7
	bl	vn_open_with_vp
	subs	r3, r0, #0
	beq	.L76
.L18:
	ldr	r2, [r6]
	str	r3, [sp, #16]
	add	r2, r2, r4
	ldr	r0, [r2, #4]
	bl	vnode_put
	ldr	r3, [sp, #16]
	b	.L29
.L73:
	ldr	r3, [sp, #24]
	b	.L14
.L76:
	mov	r3, r10
	mov	r0, r9
	add	r2, sp, #40
	add	r1, sp, #36
	bl	falloc
	subs	r3, r0, #0
	bne	.L19
	ldr	r2, [r6]
	ldr	r1, [sp, #36]
	add	r2, r2, r4
	ldr	r0, [r2, #4]
	ldr	r2, [r1]
	ldr	r1, .L78+76
	str	r3, [sp, #28]
	stm	r2, {r0, r1, r7}
	mov	r0, r9
	bl	proc_fdlock
	ldr	r3, [sp, #28]
	ldr	r1, [sp, #40]
	mov	r2, r3
	mov	r0, r9
	bl	procfdtbl_releasefd
	mov	r3, #1
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #40]
	mov	r0, r9
	bl	fp_drop
	mov	r0, r9
	bl	proc_fdunlock
	ldr	r0, [r6]
	ldr	r7, [sp, #16]
	add	r0, r0, r4
	mov	r2, #4
	ldr	r1, [r7, #16]
	add	r0, r0, #8
	bl	copyout
	subs	r3, r0, #0
	bne	.L20
	ldr	r0, [r6]
	mov	r2, #4
	add	r0, r0, r4
	ldr	r1, [r7, #12]
	add	r0, r0, #20
	bl	copyout
	subs	r3, r0, #0
	bne	.L20
	mov	r2, #4
	ldr	r1, [r7, #8]
	add	r0, sp, #40
	bl	copyout
	subs	r3, r0, #0
	bne	.L20
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [r6]
	add	r3, r3, r4
	ldr	r7, [r3, #16]
	cmp	r7, #0
	streq	r7, [sp, #44]
	streq	r7, [sp, #48]
	bne	.L77
.L23:
	ldr	r7, [sp, #16]
	mov	r2, #4
	ldr	r1, [r7, #4]
	add	r0, sp, #44
	bl	copyout
	subs	r3, r0, #0
	bne	.L20
	mov	r2, #4
	ldr	r1, [r7, #4]
	add	r0, sp, #48
	add	r1, r1, r2
	bl	copyout
	subs	r3, r0, #0
	bne	.L20
.L21:
	ldr	r3, [sp, #16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
.L66:
	ldr	r3, [r6]
	add	r4, r3, r4
	ldr	r0, [r4, #4]
	bl	vnode_put
	mov	r3, #0
	b	.L14
.L25:
	ldr	r7, .L78+80
	add	r0, sp, #44
	bl	VATTR_INIT
	ldr	r1, [r7]
	add	r0, sp, #44
	bl	VATTR_WANTED
	ldr	r3, [r6]
	mov	r2, r10
	add	r3, r3, r4
	ldr	r0, [r3, #4]
	add	r1, sp, #44
	bl	vnode_getattr
	subs	r3, r0, #0
	bne	.L20
	ldr	r1, [r7]
	add	r0, sp, #44
	str	r3, [sp, #48]
	bl	VATTR_IS_SUPPORTED
	cmp	r0, #0
	ldrne	r3, [sp, #44]
	mov	r2, #4
	strne	r3, [sp, #48]
	ldr	r3, [sp, #16]
	add	r0, sp, #48
	ldr	r1, [r3]
	bl	copyout
	subs	r3, r0, #0
	beq	.L66
.L20:
	mov	r0, r9
	ldr	r2, [sp, #36]
	ldr	r1, [sp, #40]
	str	r3, [sp, #16]
	bl	fp_free
	ldr	r3, [sp, #16]
.L19:
	ldr	r0, [r6]
	mov	r2, r10
	add	r0, r0, r4
	ldr	r1, [sp, #24]
	ldr	r0, [r0, #4]
	str	r3, [sp, #16]
	bl	vn_close
	ldr	r3, [sp, #16]
	b	.L18
.L72:
	bl	__stack_chk_fail
.L77:
	mov	r0, r7
	bl	uio_offset
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #44]
	bl	uio_resid
	str	r0, [sp, #48]
	b	.L23
.L79:
	.align	2
.L78:
	.word	nspace_handlers
	.word	.LC1
	.word	nspace_handler_exclusion_lock
	.word	nspace_handler_lock
	.word	NSPACE_HANDLER_SNAPSHOT
	.word	MAX_NSPACE_ITEMS
	.word	nspace_items
	.word	NSPACE_ITEM_NEW
	.word	PCATCH
	.word	PVFS
	.word	nspace_item_idx
	.word	.LC0
	.word	snapshot_timestamp
	.word	EINVAL
	.word	NSPACE_ITEM_DONE
	.word	EBUSY
	.word	nspace_token_id
	.word	NSPACE_ITEM_PROCESSING
	.word	VNEEDSSNAPSHOT
	.word	vnops
	.word	va_linkid
	.size	wait_for_namespace_event, .-wait_for_namespace_event
	.comm	vnops,4,4
	.comm	va_linkid,4,4
	.comm	snapshot_timestamp,4,4
	.comm	nspace_token_id,4,4
	.comm	nspace_items,4,4
	.comm	nspace_item_idx,4,4
	.comm	nspace_handlers,4,4
	.comm	nspace_handler_lock,4,4
	.comm	nspace_handler_exclusion_lock,4,4
	.comm	VNEEDSSNAPSHOT,4,4
	.comm	PVFS,4,4
	.comm	PCATCH,4,4
	.comm	NSPACE_ITEM_PROCESSING,4,4
	.comm	NSPACE_ITEM_NEW,4,4
	.comm	NSPACE_ITEM_DONE,4,4
	.comm	NSPACE_HANDLER_SNAPSHOT,4,4
	.comm	MAX_NSPACE_ITEMS,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
