	.file	"extr_fopen.c___parse_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__parse_mode
	.type	__parse_mode, @function
__parse_mode:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR O_WRONLY[rip]
	mov	ecx, DWORD PTR O_CREAT[rip]
	mov	r10d, DWORD PTR O_APPEND[rip]
	mov	r8d, DWORD PTR O_RDONLY[rip]
	or	ecx, eax
	not	eax
	mov	r9d, DWORD PTR O_RDWR[rip]
	or	r10d, ecx
	mov	esi, eax
	or	ecx, DWORD PTR O_TRUNC[rip]
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	test	dl, dl
	je	.L1
	cmp	dl, 43
	jne	.L2
	and	eax, esi
	or	eax, r9d
	.p2align 4,,10
	.p2align 3
.L2:
	add	rdi, 1
.L6:
	movzx	edx, BYTE PTR [rdi]
	cmp	dl, 97
	je	.L7
	jle	.L10
	cmp	dl, 114
	je	.L8
	cmp	dl, 119
	cmove	eax, ecx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, r8d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, r10d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	__parse_mode, .-__parse_mode
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,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_fopen.c___parse_mode.c"
	.text
	.align	2
	.global	__parse_mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	__parse_mode, %function
__parse_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	ldr	r4, .L13+4
	ldr	r1, [r3]
	ldr	r4, [r4]
	ldr	r3, .L13+8
	ldr	lr, .L13+12
	mvn	ip, r1
	ldr	r5, .L13+16
	orr	r1, r1, r4
	ldr	r3, [r3]
	ldr	r4, .L13+20
	ldr	lr, [lr]
	ldr	r6, [r4]
	mov	r2, #0
	orr	r4, r1, r3
	ldr	r5, [r5]
	sub	r0, r0, #1
	orr	r1, r1, lr
	b	.L6
.L11:
	cmp	r3, #0
	and	lr, ip, r2
	beq	.L1
	cmp	r3, #43
	orreq	r2, lr, r6
.L6:
	ldrb	r3, [r0, #1]!	@ zero_extendqisi2
	cmp	r3, #97
	beq	.L7
.L12:
	bls	.L11
	cmp	r3, #114
	moveq	r2, r5
	beq	.L6
	cmp	r3, #119
	ldrb	r3, [r0, #1]!	@ zero_extendqisi2
	moveq	r2, r1
	cmp	r3, #97
	bne	.L12
.L7:
	mov	r2, r4
	b	.L6
.L1:
	mov	r0, r2
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	O_WRONLY
	.word	O_CREAT
	.word	O_APPEND
	.word	O_TRUNC
	.word	O_RDONLY
	.word	O_RDWR
	.size	__parse_mode, .-__parse_mode
	.comm	O_WRONLY,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.comm	O_CREAT,4,4
	.comm	O_APPEND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
