	.file	"extr_vfs_export.c_vfs_setpublicfs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vfs_setpublicfs
	.type	vfs_setpublicfs, @function
vfs_setpublicfs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR nfs_pub[rip]
	test	rdi, rdi
	je	.L31
	mov	rbx, rdi
	mov	rbp, rdx
	test	eax, eax
	je	.L6
	cmp	QWORD PTR nfs_pub[rip+16], rdi
	mov	r12d, DWORD PTR EBUSY[rip]
	je	.L6
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L32
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	mov	esi, 8
	lea	rdi, nfs_pub[rip+24]
	call	bzero@PLT
	mov	eax, DWORD PTR [rbx]
	mov	esi, DWORD PTR LK_EXCLUSIVE[rip]
	mov	rdx, rsp
	mov	rdi, rbx
	mov	DWORD PTR nfs_pub[rip+28], eax
	call	VFS_ROOT@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR [rsp]
	lea	rsi, nfs_pub[rip+24]
	call	VOP_VPTOFH@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR [rsp]
	call	vput@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L7
	mov	rsi, QWORD PTR nfs_pub[rip+8]
	mov	rdx, QWORD PTR MAXNAMLEN[rip]
	test	rsi, rsi
	je	.L33
.L8:
	xor	ecx, ecx
	call	copyinstr@PLT
	mov	rdi, QWORD PTR nfs_pub[rip+8]
	mov	ebp, eax
	test	eax, eax
	jne	.L9
	movzx	eax, BYTE PTR [rdi]
	mov	rdx, rdi
	test	al, al
	jne	.L11
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
	test	al, al
	je	.L7
.L11:
	cmp	al, 47
	jne	.L10
	mov	ebp, DWORD PTR EINVAL[rip]
	test	ebp, ebp
	jne	.L9
.L7:
	mov	QWORD PTR nfs_pub[rip+16], rbx
	mov	DWORD PTR nfs_pub[rip], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	test	eax, eax
	je	.L29
	mov	rdi, QWORD PTR nfs_pub[rip+8]
	mov	DWORD PTR nfs_pub[rip], 0
	test	rdi, rdi
	je	.L29
	mov	esi, DWORD PTR M_TEMP[rip]
	call	free@PLT
	mov	QWORD PTR nfs_pub[rip+8], 0
.L29:
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR M_TEMP[rip]
	mov	r12d, ebp
	call	free@PLT
	mov	QWORD PTR nfs_pub[rip+8], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, 1[rdx]
	mov	esi, DWORD PTR M_TEMP[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	call	malloc@PLT
	mov	rdx, QWORD PTR MAXNAMLEN[rip]
	mov	rdi, QWORD PTR 0[rbp]
	mov	QWORD PTR nfs_pub[rip+8], rax
	mov	rsi, rax
	jmp	.L8
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vfs_setpublicfs, .-vfs_setpublicfs
	.comm	nfs_pub,32,32
	.comm	M_WAITOK,4,4
	.comm	M_TEMP,4,4
	.comm	MAXNAMLEN,8,8
	.comm	LK_EXCLUSIVE,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_export.c_vfs_setpublicfs.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vfs_setpublicfs
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfs_setpublicfs, %function
vfs_setpublicfs:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L31
	ldr	r6, .L31+4
	sub	sp, sp, #8
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r3, [r6]
	beq	.L28
	cmp	r3, #0
	mov	r7, r2
	beq	.L6
	ldr	r3, [r6, #8]
	cmp	r3, r5
	beq	.L6
	ldr	r3, .L31+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r1, #8
	ldr	r0, .L31+12
	bl	bzero
	ldr	r2, .L31+16
	ldr	r3, [r5]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, sp
	str	r3, [r6, #16]
	bl	VFS_ROOT
	subs	r4, r0, #0
	bne	.L1
	ldr	r1, .L31+12
	ldr	r0, [sp]
	bl	VOP_VPTOFH
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [sp]
	bl	vput
	ldr	r0, [r7]
	cmp	r0, #0
	beq	.L7
	ldr	r1, [r6, #4]
	ldr	r8, .L31+20
	cmp	r1, #0
	ldr	r2, [r8]
	beq	.L30
.L8:
	mov	r3, #0
	bl	copyinstr
	subs	r7, r0, #0
	bne	.L9
	ldr	r2, [r6, #4]
	ldrb	r3, [r2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	b	.L7
.L10:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
.L11:
	cmp	r3, #47
	bne	.L10
	ldr	r3, .L31+24
	ldr	r7, [r3]
	cmp	r7, #0
	bne	.L9
.L7:
	mov	r3, #1
	str	r5, [r6, #8]
	str	r3, [r6]
	b	.L1
.L28:
	cmp	r3, #0
	beq	.L5
	ldr	r0, [r6, #4]
	str	r5, [r6]
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L31+28
	mov	r4, r5
	ldr	r1, [r3]
	bl	free
	str	r5, [r6, #4]
	b	.L1
.L5:
	mov	r4, #0
	b	.L1
.L9:
	ldr	r3, .L31+28
	ldr	r0, [r6, #4]
	ldr	r1, [r3]
	bl	free
	mov	r3, #0
	mov	r4, r7
	str	r3, [r6, #4]
	b	.L1
.L30:
	ldr	r1, .L31+32
	ldr	r3, .L31+28
	add	r0, r2, #1
	ldr	r2, [r1]
	ldr	r1, [r3]
	bl	malloc
	mov	r1, r0
	ldr	r2, [r8]
	ldr	r0, [r7]
	str	r1, [r6, #4]
	b	.L8
.L29:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC0
	.word	nfs_pub
	.word	EBUSY
	.word	nfs_pub+12
	.word	LK_EXCLUSIVE
	.word	MAXNAMLEN
	.word	EINVAL
	.word	M_TEMP
	.word	M_WAITOK
	.size	vfs_setpublicfs, .-vfs_setpublicfs
	.comm	nfs_pub,20,4
	.comm	M_WAITOK,4,4
	.comm	M_TEMP,4,4
	.comm	MAXNAMLEN,4,4
	.comm	LK_EXCLUSIVE,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
