	.file	"extr_vfs_attrlist.c_calc_varsize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	calc_varsize, @function
calc_varsize:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR 128[rsp]
	mov	QWORD PTR 16[rsp], r9
	mov	rcx, QWORD PTR 144[rsp]
	mov	r8, QWORD PTR 152[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR 136[rsp]
	mov	r15, QWORD PTR 160[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rbx], 0
	mov	eax, DWORD PTR [rsi]
	test	DWORD PTR ATTR_CMN_NAME[rip], eax
	jne	.L44
.L2:
	test	rbp, rbp
	je	.L9
	test	DWORD PTR ATTR_CMN_FULLPATH[rip], eax
	jne	.L45
	mov	eax, DWORD PTR 4[r14]
	test	DWORD PTR ATTR_CMNEXT_RELPATH[rip], eax
	jne	.L18
.L41:
	mov	eax, DWORD PTR [r14]
.L9:
	test	DWORD PTR ATTR_CMN_EXTENDED_SECURITY[rip], eax
	jne	.L15
.L42:
	xor	eax, eax
.L12:
	endbr64
.L1:
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L46
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR va_acl[rip]
	mov	rdi, r12
	call	VATTR_IS_SUPPORTED@PLT
	test	rax, rax
	je	.L42
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L42
	mov	rdi, QWORD PTR [rax]
	cmp	rdi, QWORD PTR KAUTH_FILESEC_NOACL[rip]
	jne	.L17
	xor	edi, edi
.L17:
	call	KAUTH_FILESEC_SIZE@PLT
	mov	esi, 4
	mov	edi, eax
	call	roundup@PLT
	add	DWORD PTR [rbx], eax
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L45:
	mov	eax, DWORD PTR MAXPATHLEN[rip]
	mov	DWORD PTR 52[rsp], eax
	xor	eax, eax
	call	vfs_context_current@PLT
	mov	edx, DWORD PTR 52[rsp]
	xor	r8d, r8d
	mov	rsi, r13
	mov	r9d, eax
	lea	rcx, 52[rsp]
	mov	rdi, rbp
	call	build_path@PLT
	test	eax, eax
	jne	.L1
	mov	r15, QWORD PTR 16[rsp]
	mov	edi, 1
	mov	DWORD PTR [r15], 0
	test	r13, r13
	je	.L13
	mov	rdi, r13
	call	strlen@PLT
	mov	DWORD PTR [r15], eax
	lea	edi, 1[rax]
.L13:
	mov	esi, 4
	call	roundup@PLT
	add	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 4[r14]
	test	DWORD PTR ATTR_CMNEXT_RELPATH[rip], eax
	je	.L41
.L18:
	xor	eax, eax
	call	vfs_context_current@PLT
	mov	r8d, DWORD PTR BUILDPATH_VOLUME_RELATIVE[rip]
	mov	edx, DWORD PTR MAXPATHLEN[rip]
	mov	rdi, rbp
	mov	rsi, QWORD PTR 8[rsp]
	mov	r9d, eax
	lea	rcx, 52[rsp]
	call	build_path@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 52[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	esi, 4
	lea	eax, -1[rdi]
	mov	DWORD PTR [rdx], eax
	call	roundup@PLT
	add	DWORD PTR [rbx], eax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L44:
	mov	esi, DWORD PTR va_name[rip]
	mov	rdi, rdx
	mov	QWORD PTR 40[rsp], r8
	mov	QWORD PTR 32[rsp], rcx
	call	VATTR_IS_SUPPORTED@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 40[rsp]
	test	rax, rax
	jne	.L47
	mov	QWORD PTR 40[rsp], r8
	mov	QWORD PTR 32[rsp], rcx
	test	rbp, rbp
	je	.L5
	mov	rdi, rbp
	call	vnode_isvroot@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 40[rsp]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	jne	.L7
	cmp	DWORD PTR [rdi], 47
	je	.L48
.L7:
	mov	rdx, r15
	mov	rsi, r8
	call	getattrlist_findnamecomp@PLT
	mov	edi, DWORD PTR [r15]
	add	edi, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [r15], 0
	mov	edi, 1
.L4:
	mov	esi, 4
	call	roundup@PLT
	add	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR [r14]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L47:
	movsx	rax, DWORD PTR MAXPATHLEN[rip]
	mov	rcx, QWORD PTR [r12]
	mov	BYTE PTR -1[rcx+rax], 0
	mov	rdi, QWORD PTR [r12]
	mov	QWORD PTR [r8], rdi
	call	strlen@PLT
	mov	DWORD PTR [r15], eax
	lea	edi, 1[rax]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rdi, rbp
	call	vnode_getname@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 40[rsp]
	mov	rdi, rax
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR [r8], rax
	test	rax, rax
	je	.L49
.L40:
	call	strlen@PLT
	mov	DWORD PTR [r15], eax
	lea	edi, 1[rax]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	mov	QWORD PTR 40[rsp], r8
	mov	QWORD PTR 32[rsp], rcx
	call	vnode_getname@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	r8, QWORD PTR 40[rsp]
	mov	edi, 1
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR [r8], rax
	mov	DWORD PTR [r15], 0
	test	rax, rax
	je	.L4
	mov	rdi, rax
	jmp	.L40
.L49:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR [r8], rdi
	jmp	.L40
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	calc_varsize, .-calc_varsize
	.comm	va_name,4,4
	.comm	va_acl,4,4
	.comm	MAXPATHLEN,4,4
	.comm	KAUTH_FILESEC_NOACL,8,8
	.comm	BUILDPATH_VOLUME_RELATIVE,4,4
	.comm	ATTR_CMN_NAME,4,4
	.comm	ATTR_CMN_FULLPATH,4,4
	.comm	ATTR_CMN_EXTENDED_SECURITY,4,4
	.comm	ATTR_CMNEXT_RELPATH,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_attrlist.c_calc_varsize.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	calc_varsize, %function
calc_varsize:
	@ args = 28, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	mov	r8, #0
	mov	r4, r1
	ldr	r1, .L46
	sub	sp, sp, #36
	ldr	r3, .L46+4
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	str	r8, [r5]
	ldr	r3, [r3]
	ldr	r1, [r4]
	mov	r7, r2
	tst	r1, r3
	ldr	r3, [sp, #76]
	add	r2, sp, #88
	str	r3, [sp, #8]
	ldr	r3, [sp, #84]
	mov	r6, r0
	str	r3, [sp, #12]
	ldr	r9, [sp, #72]
	ldr	fp, [sp, #80]
	ldm	r2, {r2, r3, r10}
	bne	.L41
.L2:
	cmp	r6, #0
	beq	.L9
	ldr	r3, .L46+8
	ldr	r3, [r3]
	tst	r1, r3
	bne	.L42
.L10:
	ldr	r3, .L46+12
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L18
.L39:
	ldr	r1, [r4]
.L9:
	ldr	r3, .L46+16
	ldr	r3, [r3]
	tst	r1, r3
	bne	.L15
.L16:
	mov	r0, #0
.L1:
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L42:
	ldr	r3, .L46+20
	ldr	r8, [r3]
	str	r8, [sp, #24]
	bl	vfs_context_current
	mov	r3, #0
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r2, r8
	mov	r1, r9
	mov	r0, r6
	add	r3, sp, #24
	bl	build_path
	cmp	r0, #0
	bne	.L1
	ldr	r8, [sp, #8]
	cmp	r9, #0
	str	r0, [r8]
	moveq	r0, #1
	beq	.L13
	mov	r0, r9
	bl	strlen
	str	r0, [r8]
	add	r0, r0, #1
.L13:
	mov	r1, #4
	bl	roundup
	ldr	r3, [r5]
	add	r3, r3, r0
	str	r3, [r5]
	b	.L10
.L18:
	ldr	r2, .L46+20
	ldr	r3, .L46+24
	ldr	r8, [r2]
	ldr	r9, [r3]
	bl	vfs_context_current
	mov	r2, r8
	str	r0, [sp, #4]
	mov	r1, fp
	mov	r0, r6
	str	r9, [sp]
	add	r3, sp, #24
	bl	build_path
	cmp	r0, #0
	bne	.L1
	ldr	r0, [sp, #24]
	ldr	r2, [sp, #12]
	sub	r3, r0, #1
	str	r3, [r2]
	mov	r1, #4
	bl	roundup
	ldr	r3, [r5]
	add	r3, r3, r0
	str	r3, [r5]
	b	.L39
.L41:
	ldr	r1, .L46+28
	mov	r0, r7
	ldr	r1, [r1]
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	bl	VATTR_IS_SUPPORTED
	cmp	r0, r8
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #20]
	bne	.L44
	cmp	r6, #0
	moveq	r0, #1
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	streq	r6, [r10]
	beq	.L4
	mov	r0, r6
	bl	vnode_isvroot
	subs	r8, r0, #0
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #20]
	beq	.L6
	ldr	r1, [r6]
	ldr	r0, [r1]
	ldr	r1, [r0, #4]
	cmp	r1, #0
	bne	.L7
	ldr	r1, [r0]
	cmp	r1, #47
	bne	.L7
	mov	r0, r6
	bl	vnode_getname
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #20]
	cmp	r0, #0
	str	r0, [r2]
	str	r0, [r3]
	beq	.L45
.L38:
	bl	strlen
	str	r0, [r10]
	add	r0, r0, #1
	b	.L4
.L15:
	ldr	r3, .L46+32
	mov	r0, r7
	ldr	r1, [r3]
	bl	VATTR_IS_SUPPORTED
	cmp	r0, #0
	beq	.L16
	ldr	r3, [r7, #4]
	cmp	r3, #0
	beq	.L16
.L12:
	ldr	r2, .L46+36
	ldr	r0, [r3]
	ldr	r3, [r2]
	cmp	r0, r3
	moveq	r0, #0
	bl	KAUTH_FILESEC_SIZE
	mov	r1, #4
	bl	roundup
	mov	r2, r0
	ldr	r3, [r5]
	mov	r0, #0
	add	r3, r3, r2
	str	r3, [r5]
	b	.L1
.L44:
	ldr	r0, .L46+20
	ldr	r1, [r7]
	ldr	r0, [r0]
	add	r1, r1, r0
	strb	r8, [r1, #-1]
	ldr	r0, [r7]
	str	r0, [r3]
	bl	strlen
	str	r0, [r10]
	add	r0, r0, #1
.L4:
	mov	r1, #4
	bl	roundup
	ldr	r3, [r5]
	add	r3, r3, r0
	str	r3, [r5]
	ldr	r1, [r4]
	b	.L2
.L7:
	mov	r1, r3
	mov	r2, r10
	bl	getattrlist_findnamecomp
	ldr	r0, [r10]
	add	r0, r0, #1
	b	.L4
.L6:
	mov	r0, r6
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	bl	vnode_getname
	ldr	r2, [sp, #16]
	ldr	r3, [sp, #20]
	cmp	r0, #0
	str	r0, [r2]
	str	r0, [r3]
	moveq	r0, #1
	str	r8, [r10]
	bne	.L38
	b	.L4
.L45:
	ldr	r1, [r6]
	ldr	r0, [r1]
	str	r0, [r3]
	b	.L38
.L43:
	bl	__stack_chk_fail
.L47:
	.align	2
.L46:
	.word	.LC0
	.word	ATTR_CMN_NAME
	.word	ATTR_CMN_FULLPATH
	.word	ATTR_CMNEXT_RELPATH
	.word	ATTR_CMN_EXTENDED_SECURITY
	.word	MAXPATHLEN
	.word	BUILDPATH_VOLUME_RELATIVE
	.word	va_name
	.word	va_acl
	.word	KAUTH_FILESEC_NOACL
	.size	calc_varsize, .-calc_varsize
	.comm	va_name,4,4
	.comm	va_acl,4,4
	.comm	MAXPATHLEN,4,4
	.comm	KAUTH_FILESEC_NOACL,4,4
	.comm	BUILDPATH_VOLUME_RELATIVE,4,4
	.comm	ATTR_CMN_NAME,4,4
	.comm	ATTR_CMN_FULLPATH,4,4
	.comm	ATTR_CMN_EXTENDED_SECURITY,4,4
	.comm	ATTR_CMNEXT_RELPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
