	.file	"313659.c"
	.intel_syntax noprefix
	.text
	.globl	xoptarg
	.bss
	.align 8
	.type	xoptarg, @object
	.size	xoptarg, 8
xoptarg:
	.zero	8
	.globl	xoptind
	.align 4
	.type	xoptind, @object
	.size	xoptind, 4
xoptind:
	.zero	4
	.local	scan
	.comm	scan,8,8
	.section	.rodata
.LC0:
	.string	"%s: unknown option -%c\n"
	.align 8
.LC1:
	.string	"%s: option requires argument -%c\n"
	.text
	.globl	xgetopt
	.type	xgetopt, @function
xgetopt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR xoptarg[rip], 0
	mov	rax, QWORD PTR scan[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR scan[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
.L2:
	mov	eax, DWORD PTR xoptind[rip]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
.L4:
	mov	eax, DWORD PTR xoptind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR xoptind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L5
	mov	eax, DWORD PTR xoptind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
.L5:
	mov	eax, -1
	jmp	.L7
.L6:
	mov	eax, DWORD PTR xoptind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L8
	mov	eax, DWORD PTR xoptind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
	mov	eax, -1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR xoptind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	QWORD PTR scan[rip], rax
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
.L3:
	mov	rax, QWORD PTR scan[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR scan[rip], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	movsx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L9
	cmp	BYTE PTR -9[rbp], 58
	jne	.L10
.L9:
	movsx	ecx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 63
	jmp	.L7
.L10:
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L11
	mov	rax, QWORD PTR scan[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L12
	mov	rax, QWORD PTR scan[rip]
	mov	QWORD PTR xoptarg[rip], rax
	mov	QWORD PTR scan[rip], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR xoptind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L13
	mov	eax, DWORD PTR xoptind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR xoptarg[rip], rax
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
	jmp	.L11
.L13:
	movsx	ecx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 58
	jmp	.L7
.L11:
	movsx	eax, BYTE PTR -9[rbp]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	xgetopt, .-xgetopt
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"313659.c"
	.text
	.comm	xoptarg,4,4
	.global	xoptind
	.bss
	.align	2
	.type	xoptind, %object
	.size	xoptind, 4
xoptind:
	.space	4
	.local	scan
	.comm	scan,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: unknown option -%c\012\000"
	.align	2
.LC1:
	.ascii	"%s: option requires argument -%c\012\000"
	.text
	.align	2
	.global	xgetopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	xgetopt, %function
xgetopt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L14
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L14+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+8
	str	r3, [r2]
.L4:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L5
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L5
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
.L5:
	mvn	r3, #0
	b	.L7
.L6:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L8
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L14+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+8
	str	r3, [r2]
	mvn	r3, #0
	b	.L7
.L8:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+8
	str	r3, [r2]
.L3:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L14+4
	str	r2, [r1]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L9
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L10
.L9:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r1, .L14+16
	bl	fprintf
	mov	r3, #63
	b	.L7
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L11
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L14+4
	ldr	r3, [r3]
	ldr	r2, .L14
	str	r3, [r2]
	ldr	r3, .L14+4
	mov	r2, #0
	str	r2, [r3]
	b	.L11
.L12:
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L13
	ldr	r3, .L14+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L14
	str	r3, [r2]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+8
	str	r3, [r2]
	b	.L11
.L13:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r1, .L14+20
	bl	fprintf
	mov	r3, #58
	b	.L7
.L11:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	xoptarg
	.word	scan
	.word	xoptind
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	xgetopt, .-xgetopt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
