	.file	"extr_io.c_mrb_io_modestr_to_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"illegal access mode %S"
	.text
	.p2align 4
	.type	mrb_io_modestr_to_flags, @function
mrb_io_modestr_to_flags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movzx	eax, BYTE PTR [rsi]
	lea	rbx, 1[rsi]
	cmp	al, 114
	je	.L2
	cmp	al, 119
	je	.L3
	cmp	al, 97
	je	.L17
	call	mrb_str_new_cstr@PLT
	mov	esi, DWORD PTR E_ARGUMENT_ERROR[rip]
	mov	rdi, rbp
	xor	r12d, r12d
	mov	ecx, eax
	lea	rdx, .LC0[rip]
	call	mrb_raisef@PLT
.L6:
	movzx	eax, BYTE PTR 1[r13]
	lea	r14, .LC0[rip]
	test	al, al
	jne	.L7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	r12d, DWORD PTR FMODE_BINMODE[rip]
.L11:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L1
.L7:
	add	rbx, 1
	cmp	al, 43
	je	.L9
	cmp	al, 98
	je	.L18
	mov	rsi, r13
	mov	rdi, rbp
	call	mrb_str_new_cstr@PLT
	mov	esi, DWORD PTR E_ARGUMENT_ERROR[rip]
	mov	rdx, r14
	mov	rdi, rbp
	mov	ecx, eax
	call	mrb_raisef@PLT
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L7
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	or	r12d, DWORD PTR FMODE_READWRITE[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR FMODE_READABLE[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r12d, DWORD PTR FMODE_WRITABLE[rip]
	or	r12d, DWORD PTR FMODE_APPEND[rip]
	or	r12d, DWORD PTR FMODE_CREATE[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r12d, DWORD PTR FMODE_WRITABLE[rip]
	or	r12d, DWORD PTR FMODE_CREATE[rip]
	or	r12d, DWORD PTR FMODE_TRUNC[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mrb_io_modestr_to_flags, .-mrb_io_modestr_to_flags
	.comm	FMODE_WRITABLE,4,4
	.comm	FMODE_TRUNC,4,4
	.comm	FMODE_READWRITE,4,4
	.comm	FMODE_READABLE,4,4
	.comm	FMODE_CREATE,4,4
	.comm	FMODE_BINMODE,4,4
	.comm	FMODE_APPEND,4,4
	.comm	E_ARGUMENT_ERROR,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_io.c_mrb_io_modestr_to_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"illegal access mode %S\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrb_io_modestr_to_flags, %function
mrb_io_modestr_to_flags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldrb	r3, [r4], #1	@ zero_extendqisi2
	mov	r7, r1
	cmp	r3, #114
	mov	r6, r0
	beq	.L2
	cmp	r3, #119
	beq	.L3
	cmp	r3, #97
	beq	.L18
	ldr	r3, .L20
	mov	r5, #0
	ldr	r8, [r3]
	bl	mrb_str_new_cstr
	mov	r1, r8
	mov	r3, r0
	ldr	r2, .L20+4
	mov	r0, r6
	bl	mrb_raisef
.L6:
	ldrb	r3, [r7, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L1
	ldr	fp, .L20+8
	ldr	r10, .L20+4
	ldr	r9, .L20+12
	b	.L12
.L19:
	ldr	r3, [r9]
	orr	r5, r5, r3
.L11:
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L1
.L12:
	cmp	r3, #43
	beq	.L9
	cmp	r3, #98
	beq	.L19
	ldr	r3, .L20
	mov	r1, r7
	mov	r0, r6
	ldr	r8, [r3]
	bl	mrb_str_new_cstr
	mov	r2, r10
	mov	r3, r0
	mov	r1, r8
	mov	r0, r6
	bl	mrb_raisef
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L1:
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, [fp]
	orr	r5, r5, r3
	b	.L11
.L2:
	ldr	r3, .L20+16
	ldr	r5, [r3]
	b	.L6
.L18:
	ldr	r1, .L20+20
	ldr	r2, .L20+24
	ldr	r3, .L20+28
.L16:
	ldr	r5, [r1]
	ldr	r2, [r2]
	ldr	r3, [r3]
	orr	r5, r5, r2
	orr	r5, r5, r3
	b	.L6
.L3:
	ldr	r1, .L20+20
	ldr	r2, .L20+28
	ldr	r3, .L20+32
	b	.L16
.L21:
	.align	2
.L20:
	.word	E_ARGUMENT_ERROR
	.word	.LC0
	.word	FMODE_READWRITE
	.word	FMODE_BINMODE
	.word	FMODE_READABLE
	.word	FMODE_WRITABLE
	.word	FMODE_APPEND
	.word	FMODE_CREATE
	.word	FMODE_TRUNC
	.size	mrb_io_modestr_to_flags, .-mrb_io_modestr_to_flags
	.comm	FMODE_WRITABLE,4,4
	.comm	FMODE_TRUNC,4,4
	.comm	FMODE_READWRITE,4,4
	.comm	FMODE_READABLE,4,4
	.comm	FMODE_CREATE,4,4
	.comm	FMODE_BINMODE,4,4
	.comm	FMODE_APPEND,4,4
	.comm	E_ARGUMENT_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
