	.file	"extr_amigaffs.c_prot_to_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	prot_to_mode
	.type	prot_to_mode, @function
prot_to_mode:
.LFB0:
	.cfi_startproc
	endbr64
	test	DWORD PTR FIBF_NOWRITE[rip], edi
	mov	eax, 0
	cmove	eax, DWORD PTR S_IWUSR[rip]
	test	DWORD PTR FIBF_NOREAD[rip], edi
	jne	.L3
	or	eax, DWORD PTR S_IRUSR[rip]
.L3:
	test	DWORD PTR FIBF_NOEXECUTE[rip], edi
	jne	.L4
	or	eax, DWORD PTR S_IXUSR[rip]
.L4:
	test	DWORD PTR FIBF_GRP_WRITE[rip], edi
	je	.L5
	or	eax, DWORD PTR S_IWGRP[rip]
.L5:
	test	DWORD PTR FIBF_GRP_READ[rip], edi
	je	.L6
	or	eax, DWORD PTR S_IRGRP[rip]
.L6:
	test	DWORD PTR FIBF_GRP_EXECUTE[rip], edi
	je	.L7
	or	eax, DWORD PTR S_IXGRP[rip]
.L7:
	test	DWORD PTR FIBF_OTR_WRITE[rip], edi
	je	.L8
	or	eax, DWORD PTR S_IWOTH[rip]
.L8:
	test	DWORD PTR FIBF_OTR_READ[rip], edi
	je	.L9
	or	eax, DWORD PTR S_IROTH[rip]
.L9:
	test	DWORD PTR FIBF_OTR_EXECUTE[rip], edi
	je	.L1
	or	eax, DWORD PTR S_IXOTH[rip]
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	prot_to_mode, .-prot_to_mode
	.comm	S_IXUSR,4,4
	.comm	S_IXOTH,4,4
	.comm	S_IXGRP,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IWOTH,4,4
	.comm	S_IWGRP,4,4
	.comm	S_IRUSR,4,4
	.comm	S_IROTH,4,4
	.comm	S_IRGRP,4,4
	.comm	FIBF_OTR_WRITE,4,4
	.comm	FIBF_OTR_READ,4,4
	.comm	FIBF_OTR_EXECUTE,4,4
	.comm	FIBF_NOWRITE,4,4
	.comm	FIBF_NOREAD,4,4
	.comm	FIBF_NOEXECUTE,4,4
	.comm	FIBF_GRP_WRITE,4,4
	.comm	FIBF_GRP_READ,4,4
	.comm	FIBF_GRP_EXECUTE,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_amigaffs.c_prot_to_mode.c"
	.text
	.align	2
	.global	prot_to_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	prot_to_mode, %function
prot_to_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	mov	r3, r0
	ldr	r2, .L31
	ldr	r2, [r2]
	tst	r0, r2
	movne	r0, #0
	ldreq	r2, .L31+4
	ldreq	r0, [r2]
	ldr	r2, .L31+8
	ldr	r2, [r2]
	tst	r3, r2
	ldreq	r2, .L31+12
	ldreq	r2, [r2]
	orreq	r0, r0, r2
	ldr	r2, .L31+16
	ldr	r2, [r2]
	tst	r3, r2
	ldreq	r2, .L31+20
	ldreq	r2, [r2]
	orreq	r0, r0, r2
	ldr	r2, .L31+24
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L31+28
	ldrne	r2, [r2]
	orrne	r0, r0, r2
	ldr	r2, .L31+32
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L31+36
	ldrne	r2, [r2]
	orrne	r0, r0, r2
	ldr	r2, .L31+40
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L31+44
	ldrne	r2, [r2]
	orrne	r0, r0, r2
	ldr	r2, .L31+48
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L31+52
	ldrne	r2, [r2]
	orrne	r0, r0, r2
	ldr	r2, .L31+56
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r2, .L31+60
	ldrne	r2, [r2]
	orrne	r0, r0, r2
	ldr	r2, .L31+64
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L31+68
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	bx	lr
.L32:
	.align	2
.L31:
	.word	FIBF_NOWRITE
	.word	S_IWUSR
	.word	FIBF_NOREAD
	.word	S_IRUSR
	.word	FIBF_NOEXECUTE
	.word	S_IXUSR
	.word	FIBF_GRP_WRITE
	.word	S_IWGRP
	.word	FIBF_GRP_READ
	.word	S_IRGRP
	.word	FIBF_GRP_EXECUTE
	.word	S_IXGRP
	.word	FIBF_OTR_WRITE
	.word	S_IWOTH
	.word	FIBF_OTR_READ
	.word	S_IROTH
	.word	FIBF_OTR_EXECUTE
	.word	S_IXOTH
	.size	prot_to_mode, .-prot_to_mode
	.comm	S_IXUSR,4,4
	.comm	S_IXOTH,4,4
	.comm	S_IXGRP,4,4
	.comm	S_IWUSR,4,4
	.comm	S_IWOTH,4,4
	.comm	S_IWGRP,4,4
	.comm	S_IRUSR,4,4
	.comm	S_IROTH,4,4
	.comm	S_IRGRP,4,4
	.comm	FIBF_OTR_WRITE,4,4
	.comm	FIBF_OTR_READ,4,4
	.comm	FIBF_OTR_EXECUTE,4,4
	.comm	FIBF_NOWRITE,4,4
	.comm	FIBF_NOREAD,4,4
	.comm	FIBF_NOEXECUTE,4,4
	.comm	FIBF_GRP_WRITE,4,4
	.comm	FIBF_GRP_READ,4,4
	.comm	FIBF_GRP_EXECUTE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
