	.file	"extr_acl.c_jffs2_set_acl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	jffs2_set_acl, @function
jffs2_set_acl:
.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, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	S_ISLNK@PLT
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	neg	r12d
	test	rax, rax
	jne	.L1
	cmp	r13d, 128
	je	.L4
	cmp	r13d, 129
	je	.L20
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L20:
	.cfi_restore_state
	mov	r15d, DWORD PTR JFFS2_XPREFIX_ACL_ACCESS[rip]
	test	r14, r14
	je	.L6
	mov	eax, DWORD PTR 0[rbp]
	lea	rsi, 12[rsp]
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	call	posix_acl_equiv_mode@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR 12[rsp]
	cmp	DWORD PTR 0[rbp], eax
	jne	.L22
.L8:
	test	r12d, r12d
	mov	eax, 0
	cmove	r14, rax
.L6:
	mov	rdx, r14
	mov	esi, r15d
	mov	rdi, rbp
	call	__jffs2_set_acl@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, r14
	mov	esi, r13d
	mov	rdi, rbp
	call	set_cached_acl@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 0[rbp]
	mov	r15d, DWORD PTR JFFS2_XPREFIX_ACL_DEFAULT[rip]
	call	S_ISDIR@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	test	r14, r14
	je	.L1
	mov	r12d, DWORD PTR EACCES[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, DWORD PTR ATTR_MODE[rip]
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], edx
	call	jffs2_do_setattr@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L8
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	jffs2_set_acl, .-jffs2_set_acl
	.comm	JFFS2_XPREFIX_ACL_DEFAULT,4,4
	.comm	JFFS2_XPREFIX_ACL_ACCESS,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.comm	ATTR_MODE,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.c_jffs2_set_acl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	jffs2_set_acl, %function
jffs2_set_acl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L24
	sub	sp, sp, #16
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	S_ISLNK
	cmp	r0, #0
	bne	.L20
	cmp	r6, #128
	beq	.L4
	cmp	r6, #129
	beq	.L21
	ldr	r3, .L24+4
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r3, .L24+8
	cmp	r7, #0
	ldr	r8, [r3]
	beq	.L6
	ldr	r3, [r5]
	mov	r1, sp
	mov	r0, r7
	str	r3, [sp]
	bl	posix_acl_equiv_mode
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [sp]
	ldr	r2, [r5]
	cmp	r2, r3
	bne	.L23
.L8:
	cmp	r4, #0
	moveq	r7, #0
.L6:
	mov	r1, r8
	mov	r2, r7
	mov	r0, r5
	bl	__jffs2_set_acl
	subs	r4, r0, #0
	bne	.L1
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	set_cached_acl
	b	.L1
.L4:
	ldr	r3, .L24+12
	ldr	r0, [r5]
	ldr	r8, [r3]
	bl	S_ISDIR
	subs	r4, r0, #0
	bne	.L6
	cmp	r7, #0
	ldrne	r3, .L24+16
	ldrne	r0, [r3]
	rsbne	r4, r0, #0
	b	.L1
.L20:
	ldr	r3, .L24+20
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L23:
	ldr	r2, .L24+24
	str	r3, [sp, #4]
	ldr	r3, [r2]
	mov	r0, r5
	add	r1, sp, #4
	str	r3, [sp, #8]
	bl	jffs2_do_setattr
	subs	r4, r0, #0
	bge	.L8
	b	.L1
.L22:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC0
	.word	EINVAL
	.word	JFFS2_XPREFIX_ACL_ACCESS
	.word	JFFS2_XPREFIX_ACL_DEFAULT
	.word	EACCES
	.word	EOPNOTSUPP
	.word	ATTR_MODE
	.size	jffs2_set_acl, .-jffs2_set_acl
	.comm	JFFS2_XPREFIX_ACL_DEFAULT,4,4
	.comm	JFFS2_XPREFIX_ACL_ACCESS,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	EACCES,4,4
	.comm	ATTR_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
