	.file	"extr_os.c_parse_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unknown flag %s\n"
.LC1:
	.string	"No value argument after -%s\n"
.LC2:
	.string	"Invalid value '%s' for %s\n"
.LC3:
	.string	"No value after %s\n"
.LC4:
	.string	"Unhandled flag kind"
	.text
	.p2align 4
	.globl	parse_flags
	.type	parse_flags, @function
parse_flags:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR [rdi]
	mov	rbp, QWORD PTR [rsi]
	mov	QWORD PTR 16[rsp], rdi
	mov	QWORD PTR 24[rsp], rsi
	mov	DWORD PTR 12[rsp], eax
	cmp	eax, 1
	jle	.L2
	mov	r15d, 1
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L28:
	cmp	eax, 128
	je	.L26
	lea	rdi, .LC4[rip]
	mov	r15d, r13d
	call	puts@PLT
.L7:
	cmp	DWORD PTR 12[rsp], r15d
	jle	.L3
.L18:
	movsx	rbx, r15d
	sal	rbx, 3
	lea	r14, 0[rbp+rbx]
	mov	r12, QWORD PTR [r14]
	cmp	BYTE PTR [r12], 45
	jne	.L3
	cmp	BYTE PTR 1[r12], 45
	lea	rdi, 2[r12]
	je	.L5
	lea	rdi, 1[r12]
.L5:
	call	get_flag_def@PLT
	lea	r13d, 1[r15]
	lea	r14, 8[rbp+rbx]
	mov	rdx, rax
	test	rax, rax
	je	.L27
	mov	eax, DWORD PTR [rax]
	cmp	eax, 129
	je	.L8
	cmp	eax, 130
	jne	.L28
	mov	rax, QWORD PTR 8[rdx]
	mov	r15d, r13d
	mov	DWORD PTR [rax], 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	DWORD PTR 12[rsp], r13d
	jg	.L29
	mov	rsi, r12
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printf@PLT
.L13:
	mov	r15d, r13d
.L3:
	mov	r12d, DWORD PTR 12[rsp]
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 0[rbp]
	sub	r12d, r15d
	mov	DWORD PTR [rax], r12d
	mov	rax, QWORD PTR 24[rsp]
	mov	QWORD PTR [rax], r14
	call	strdup@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edi, eax
	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
	jmp	path_file@PLT
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	cmp	DWORD PTR 12[rsp], r13d
	jle	.L12
	mov	rsi, QWORD PTR [r14]
	mov	rax, QWORD PTR 16[rdx]
	add	r15d, 2
	lea	r14, 16[rbp+rbx]
	mov	QWORD PTR [rax], rsi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L29:
	mov	eax, DWORD PTR 4[rdx]
	mov	r13, QWORD PTR [r14]
	xor	r14d, r14d
	test	eax, eax
	jg	.L15
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	add	r14, 1
	cmp	DWORD PTR 4[rdx], r14d
	jle	.L17
.L15:
	mov	rax, QWORD PTR 32[rdx]
	mov	rsi, r13
	mov	QWORD PTR [rsp], rdx
	mov	edi, DWORD PTR [rax+r14*4]
	call	strcmp@PLT
	mov	rdx, QWORD PTR [rsp]
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR 24[rdx]
	add	r15d, 2
	mov	DWORD PTR [rax], r14d
	lea	r14, 16[rbp+rbx]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	r15d, r13d
	call	printf@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, r12
	mov	rsi, r13
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printf@PLT
	add	r15d, 2
	lea	r14, 16[rbp+rbx]
	jmp	.L7
.L2:
	lea	r14, 8[rbp]
	mov	r15d, 1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	parse_flags, .-parse_flags
	.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_os.c_parse_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unknown flag %s\012\000"
	.align	2
.LC1:
	.ascii	"No value argument after -%s\012\000"
	.align	2
.LC2:
	.ascii	"Invalid value '%s' for %s\012\000"
	.align	2
.LC3:
	.ascii	"No value after %s\012\000"
	.align	2
.LC4:
	.ascii	"Unhandled flag kind\000"
	.text
	.align	2
	.global	parse_flags
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_flags, %function
parse_flags:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0]
	sub	sp, sp, #12
	cmp	r9, #1
	mov	r5, #1
	stm	sp, {r0, r1}
	ldr	r8, [r1]
	bgt	.L18
	b	.L2
.L28:
	cmp	r3, #128
	beq	.L26
	ldr	r0, .L30
	mov	r5, ip
	bl	puts
.L7:
	cmp	r9, r5
	ble	.L3
.L18:
	ldr	r10, [r8, r5, lsl #2]
	lsl	r7, r5, #2
	ldrb	r3, [r10]	@ zero_extendqisi2
	add	fp, r8, r5, lsl #2
	cmp	r3, #45
	bne	.L3
	ldrb	r3, [r10, #1]	@ zero_extendqisi2
	cmp	r3, #45
	addne	r0, r10, #1
	addeq	r0, r10, #2
	bl	get_flag_def
	add	r2, r7, #4
	subs	r4, r0, #0
	add	fp, r8, r2
	add	ip, r5, #1
	beq	.L27
	ldr	r3, [r4]
	cmp	r3, #129
	beq	.L8
	cmp	r3, #130
	bne	.L28
	mov	r2, #1
	ldr	r3, [r4, #8]
	mov	r5, ip
	str	r2, [r3]
	b	.L7
.L8:
	cmp	r9, ip
	bgt	.L29
	mov	r7, r10
	ldr	r0, .L30+4
	mov	r1, r7
	mov	r10, ip
	bl	printf
.L13:
	mov	r5, r10
.L3:
	ldr	r3, [sp]
	sub	r5, r9, r5
	str	r5, [r3]
	ldr	r3, [sp, #4]
	ldr	r0, [r8]
	str	fp, [r3]
	bl	strdup
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	path_file
.L26:
	cmp	r9, ip
	ble	.L12
	ldr	r2, [r8, r2]
	ldr	r3, [r4, #12]
	add	r7, r7, #8
	str	r2, [r3]
	add	fp, r8, r7
	add	r5, r5, #2
	b	.L7
.L29:
	ldr	r3, [r4, #4]
	ldr	fp, [r8, r2]
	cmp	r3, #0
	movgt	r6, #0
	bgt	.L15
	b	.L17
.L16:
	ldr	r3, [r4, #4]
	add	r6, r6, #1
	cmp	r3, r6
	ble	.L17
.L15:
	ldr	r3, [r4, #20]
	mov	r1, fp
	ldr	r0, [r3, r6, lsl #2]
	bl	strcmp
	cmp	r0, #0
	bne	.L16
	ldr	r3, [r4, #16]
	add	r7, r7, #8
	str	r6, [r3]
	add	fp, r8, r7
	add	r5, r5, #2
	b	.L7
.L27:
	mov	r1, r10
	ldr	r0, .L30+8
	mov	r5, ip
	bl	printf
	b	.L7
.L12:
	mov	r7, r10
	ldr	r0, .L30+12
	mov	r1, r7
	mov	r10, ip
	bl	printf
	b	.L13
.L17:
	mov	r1, fp
	mov	r2, r10
	ldr	r0, .L30+16
	add	r7, r7, #8
	bl	printf
	add	r5, r5, #2
	add	fp, r8, r7
	b	.L7
.L2:
	add	fp, r8, #4
	b	.L3
.L31:
	.align	2
.L30:
	.word	.LC4
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	parse_flags, .-parse_flags
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
