	.file	"extr_acl_common.c_acevals_to_aent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	acevals_to_aent, @function
acevals_to_aent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	rsi, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR ACE_POSIX_SUPPORTED_BITS[rip]
	test	r9, r9
	je	.L2
	or	eax, DWORD PTR ACE_DELETE_CHILD[rip]
.L2:
	mov	edi, DWORD PTR [rbx]
	xor	eax, DWORD PTR 4[rbx]
	cmp	edi, eax
	jne	.L6
	cmp	QWORD PTR 8[rsi], 0
	je	.L5
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rsi], rax
	je	.L5
	mov	eax, DWORD PTR USER[rip]
	or	eax, DWORD PTR GROUP[rip]
	or	eax, DWORD PTR GROUP_OBJ[rip]
	test	DWORD PTR 16[rbx], eax
	jne	.L6
.L5:
	lea	rsi, 16[rbp]
	mov	rdx, r9
	call	ace_allow_to_mode@PLT
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR USER[rip]
	or	ecx, DWORD PTR GROUP[rip]
	mov	DWORD PTR 0[rbp], edx
	test	ecx, edx
	jne	.L16
	mov	eax, edx
	and	eax, DWORD PTR USER_OBJ[rip]
	je	.L8
	mov	QWORD PTR 8[rbp], r12
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR ENOTSUP[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L16:
	.cfi_restore_state
	mov	rdx, QWORD PTR 24[rbx]
	mov	QWORD PTR 8[rbp], rdx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	test	DWORD PTR GROUP_OBJ[rip], edx
	jne	.L17
	test	DWORD PTR OTHER_OBJ[rip], edx
	je	.L10
	mov	QWORD PTR 8[rbp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	QWORD PTR 8[rbp], r13
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
.L4:
	endbr64
	mov	eax, DWORD PTR EINVAL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	acevals_to_aent, .-acevals_to_aent
	.comm	USER_OBJ,4,4
	.comm	USER,4,4
	.comm	OTHER_OBJ,4,4
	.comm	GROUP_OBJ,4,4
	.comm	GROUP,4,4
	.comm	ENOTSUP,4,4
	.comm	EINVAL,4,4
	.comm	ACE_POSIX_SUPPORTED_BITS,4,4
	.comm	ACE_DELETE_CHILD,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_acl_common.c_acevals_to_aent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	acevals_to_aent, %function
acevals_to_aent:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	lr, [sp, #20]
	mov	r6, r3
	cmp	lr, #0
	ldrne	r3, .L20
	ldr	ip, .L20+4
	ldrne	r3, [r3]
	ldr	ip, [ip]
	mov	r4, r0
	orrne	ip, ip, r3
	ldm	r0, {r0, r3}
	eor	ip, ip, r3
	cmp	r0, ip
	mov	r5, r1
	bne	.L6
	ldr	r3, [r2, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r2, [r2]
	ldr	r3, [r4, #8]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L20+8
	ldr	r2, .L20+12
	ldr	r1, .L20+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, [r4, #12]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L6
.L5:
	mov	r2, lr
	add	r1, r5, #8
	bl	ace_allow_to_mode
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r2, .L20+12
	ldr	r3, .L20+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #12]
	orr	r3, r3, r1
	ands	r3, r3, r2
	str	r2, [r5]
	bne	.L19
	ldr	r1, .L20+20
	ldr	r0, [r1]
	ands	r0, r2, r0
	beq	.L8
	mov	r0, r3
	str	r6, [r5, #4]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L20+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L19:
	ldr	r3, [r4, #16]
	str	r3, [r5, #4]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L20+16
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L9
	ldr	r3, [sp, #16]
	str	r3, [r5, #4]
	pop	{r4, r5, r6, pc}
.L9:
.L4:
	ldr	r3, .L20+28
	ldr	r3, [r3]
	tst	r2, r3
	ldreq	r3, .L20+32
	strne	r0, [r5, #4]
	ldreq	r0, [r3]
	pop	{r4, r5, r6, pc}
.L21:
	.align	2
.L20:
	.word	ACE_DELETE_CHILD
	.word	ACE_POSIX_SUPPORTED_BITS
	.word	USER
	.word	GROUP
	.word	GROUP_OBJ
	.word	USER_OBJ
	.word	ENOTSUP
	.word	OTHER_OBJ
	.word	EINVAL
	.size	acevals_to_aent, .-acevals_to_aent
	.comm	USER_OBJ,4,4
	.comm	USER,4,4
	.comm	OTHER_OBJ,4,4
	.comm	GROUP_OBJ,4,4
	.comm	GROUP,4,4
	.comm	ENOTSUP,4,4
	.comm	EINVAL,4,4
	.comm	ACE_POSIX_SUPPORTED_BITS,4,4
	.comm	ACE_DELETE_CHILD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
