	.file	"extr_nfs2acl.c_nfsaclsvc_encode_getaclres.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nfsaclsvc_encode_getaclres, @function
nfsaclsvc_encode_getaclres:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR 24[rdx]
	test	rax, rax
	je	.L26
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rax]
	test	r12, r12
	je	.L4
	mov	r14, rdx
	lea	rdx, 24[rdx]
	mov	r13, rdi
	mov	rbp, QWORD PTR 8[rdi]
	call	nfs2svc_encode_fattr@PLT
	mov	edi, DWORD PTR [r14]
	mov	r15, rax
	lea	rbx, 4[rax]
	call	htonl@PLT
	mov	rsi, rbx
	mov	rdi, r13
	mov	DWORD PTR [r15], eax
	call	xdr_ressize_check@PLT
	test	eax, eax
	je	.L4
	mov	rbp, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR [r14]
	xor	esi, esi
	test	DWORD PTR NFS_DFACL[rip], eax
	je	.L5
	mov	rsi, QWORD PTR 8[r14]
.L5:
	xor	edi, edi
	test	DWORD PTR NFS_ACL[rip], eax
	jne	.L27
.L6:
	call	nfsacl_size@PLT
	mov	DWORD PTR 0[r13], eax
	test	eax, eax
	jle	.L10
	mov	edi, DWORD PTR 16[r13]
	mov	rcx, QWORD PTR 24[r13]
	mov	esi, DWORD PTR PAGE_SIZE[rip]
	lea	edx, 1[rdi]
	movsx	rdx, edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L28:
	sub	eax, esi
	add	rdx, 1
	test	eax, eax
	jle	.L10
.L9:
	mov	DWORD PTR 16[r13], edx
	mov	edi, DWORD PTR -4[rcx+rdx*4]
	test	edi, edi
	jne	.L28
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L27:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[r14]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rbx, rbp
	mov	rcx, QWORD PTR 16[r14]
	mov	r8d, DWORD PTR [r14]
	xor	r9d, r9d
	and	r8d, DWORD PTR NFS_ACL[rip]
	mov	rdx, r12
	mov	esi, ebx
	mov	rdi, r13
	call	nfsacl_encode@PLT
	test	eax, eax
	jle	.L4
	mov	rcx, QWORD PTR 8[r14]
	mov	r8d, DWORD PTR [r14]
	lea	esi, [rax+rbx]
	mov	rdx, r12
	mov	r9d, DWORD PTR NFS_ACL_DEFAULT[rip]
	and	r8d, DWORD PTR NFS_DFACL[rip]
	mov	rdi, r13
	call	nfsacl_encode@PLT
	test	eax, eax
	setg	al
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	movzx	eax, al
	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
.L26:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	nfsaclsvc_encode_getaclres, .-nfsaclsvc_encode_getaclres
	.comm	PAGE_SIZE,8,8
	.comm	NFS_DFACL,4,4
	.comm	NFS_ACL_DEFAULT,4,4
	.comm	NFS_ACL,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_nfs2acl.c_nfsaclsvc_encode_getaclres.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfsaclsvc_encode_getaclres, %function
nfsaclsvc_encode_getaclres:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r2, #12]
	cmp	r3, #0
	beq	.L27
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, [r3]
	sub	sp, sp, #8
	cmp	r7, #0
	beq	.L4
	mov	r5, r2
	add	r2, r2, #12
	mov	r4, r0
	ldr	r8, [r0, #4]
	bl	nfs2svc_encode_fattr
	mov	r6, r0
	ldr	r0, [r5]
	bl	htonl
	str	r0, [r6], #4
	mov	r1, r6
	mov	r0, r4
	bl	xdr_ressize_check
	cmp	r0, #0
	beq	.L4
	ldr	r10, .L29
	ldr	r9, .L29+4
	ldr	r1, [r5]
	ldr	r0, [r10]
	ldr	r3, [r9]
	ands	r0, r1, r0
	ldrne	r0, [r5, #8]
	ands	r1, r1, r3
	ldrne	r1, [r5, #4]
	ldr	r8, [r8]
	bl	nfsacl_size
	cmp	r0, #0
	mov	r3, r0
	str	r0, [r4]
	ble	.L10
	ldr	ip, [r4, #8]
	ldr	r0, .L29+8
	ldr	r2, [r4, #12]
	sub	r1, ip, #-1073741823
	ldr	r0, [r0]
	add	ip, ip, #1
	add	r2, r2, r1, lsl #2
	b	.L9
.L28:
	cmp	r3, #0
	add	ip, ip, #1
	ble	.L10
.L9:
	str	ip, [r4, #8]
	ldr	r1, [r2, #4]!
	sub	r3, r3, r0
	cmp	r1, #0
	bne	.L28
.L4:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r2, #0
	ldr	r3, [r5]
	ldr	r1, [r10]
	str	r2, [sp, #4]
	and	r3, r3, r1
	str	r3, [sp]
	sub	r6, r6, r8
	mov	r1, r6
	mov	r2, r7
	mov	r0, r4
	ldr	r3, [r5, #8]
	bl	nfsacl_encode
	cmp	r0, #0
	ble	.L4
	ldr	r3, .L29+12
	ldr	r1, [r9]
	ldr	ip, [r3]
	ldr	r3, [r5]
	mov	r2, r7
	and	r3, r3, r1
	str	r3, [sp]
	ldr	r3, [r5, #4]
	add	r1, r0, r6
	str	ip, [sp, #4]
	mov	r0, r4
	bl	nfsacl_encode
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L27:
	mov	r0, #0
	bx	lr
.L30:
	.align	2
.L29:
	.word	NFS_ACL
	.word	NFS_DFACL
	.word	PAGE_SIZE
	.word	NFS_ACL_DEFAULT
	.size	nfsaclsvc_encode_getaclres, .-nfsaclsvc_encode_getaclres
	.comm	PAGE_SIZE,4,4
	.comm	NFS_DFACL,4,4
	.comm	NFS_ACL_DEFAULT,4,4
	.comm	NFS_ACL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
