	.file	"extr_options.c_read_option.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"#"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Too many option arguments for %s"
	.section	.rodata.str1.1
.LC2:
	.string	"%s:%zu: %s"
	.text
	.p2align 4
	.type	read_option, @function
read_option:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rcx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	strcspn@PLT
	test	rax, rax
	je	.L18
	cmp	BYTE PTR [r12+rax], 0
	mov	edi, DWORD PTR ERROR_NO_OPTION_VALUE[rip]
	jne	.L5
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	r15, rsp
	call	strcspn@PLT
	movsx	rdx, DWORD PTR SIZEOF_ARG[rip]
	mov	rsi, rsp
	lea	rdx, 15[0+rdx*8]
	mov	rcx, rdx
	and	rdx, -4096
	sub	rsi, rdx
	and	rcx, -16
	mov	rdx, rsi
	cmp	rsp, rdx
	je	.L7
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L20
.L7:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L21
.L8:
	mov	DWORD PTR -60[rbp], 0
	mov	r8, rsp
	cmp	rax, r14
	jb	.L22
.L9:
	mov	rdi, r8
	lea	rsi, -60[rbp]
	mov	rdx, r13
	mov	QWORD PTR -72[rbp], r8
	call	argv_from_string@PLT
	mov	r8, QWORD PTR -72[rbp]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC1[rip]
	mov	rsi, r12
	call	error@PLT
	mov	edi, eax
.L11:
	mov	rsp, r15
.L5:
	mov	eax, DWORD PTR SUCCESS[rip]
	cmp	edi, eax
	jne	.L23
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	call	get_status_message@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 8[rbx]
	lea	rdi, .LC2[rip]
	mov	ecx, eax
	call	warn@PLT
	mov	DWORD PTR [rbx], 1
.L18:
	mov	eax, DWORD PTR SUCCESS[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	BYTE PTR 0[r13+rax], 0
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR -60[rbp]
	mov	rdi, r12
	mov	rdx, r8
	call	set_option@PLT
	mov	edi, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_option, .-read_option
	.comm	SUCCESS,4,4
	.comm	SIZEOF_ARG,4,4
	.comm	ERROR_NO_OPTION_VALUE,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_options.c_read_option.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"#\000"
	.align	2
.LC1:
	.ascii	"Too many option arguments for %s\000"
	.align	2
.LC2:
	.ascii	"%s:%zu: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_option, %function
read_option:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	mov	r6, r3
	ldr	r3, .L16
	ldr	r1, .L16+4
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r4, r0
	bl	strcspn
	cmp	r0, #0
	ldr	r7, [fp, #4]
	beq	.L13
	ldrb	r8, [r4, r0]	@ zero_extendqisi2
	cmp	r8, #0
	beq	.L4
	ldr	r3, .L16+8
	ldr	r3, [r3]
.L5:
	ldr	r4, .L16+12
	ldr	r0, [r4]
	cmp	r3, r0
	beq	.L1
	mov	r0, r3
	ldr	r5, [r7, #8]
	ldr	r6, [r7, #4]
	bl	get_status_message
	mov	r2, r6
	mov	r3, r0
	mov	r1, r5
	ldr	r0, .L16+16
	bl	warn
	mov	r3, #1
	ldr	r0, [r4]
	str	r3, [r7]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L4:
	ldr	r1, .L16+4
	mov	r0, r5
	bl	strcspn
	ldr	r3, .L16+20
	cmp	r0, r6
	ldr	r3, [r3]
	mov	r6, sp
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r9, sp
	strbcc	r8, [r5, r0]
	mov	r2, r5
	mov	r0, r9
	sub	r1, fp, #36
	str	r8, [fp, #-36]
	bl	argv_from_string
	cmp	r0, #0
	beq	.L15
	mov	r2, r9
	mov	r0, r4
	ldr	r1, [fp, #-36]
	bl	set_option
	mov	r3, r0
.L8:
	mov	sp, r6
	b	.L5
.L13:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	b	.L1
.L15:
	mov	r1, r4
	ldr	r0, .L16+24
	bl	error
	mov	r3, r0
	b	.L8
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC0
	.word	ERROR_NO_OPTION_VALUE
	.word	SUCCESS
	.word	.LC2
	.word	SIZEOF_ARG
	.word	.LC1
	.size	read_option, .-read_option
	.comm	SUCCESS,4,4
	.comm	SIZEOF_ARG,4,4
	.comm	ERROR_NO_OPTION_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
