	.file	"14201408.c"
	.intel_syntax noprefix
	.text
	.globl	xoptind
	.data
	.align 4
	.type	xoptind, @object
	.size	xoptind, 4
xoptind:
	.long	1
	.globl	xoptarg
	.bss
	.align 8
	.type	xoptarg, @object
	.size	xoptarg, 8
xoptarg:
	.zero	8
	.globl	xopterr
	.align 4
	.type	xopterr, @object
	.size	xopterr, 4
xopterr:
	.zero	4
	.local	letP
	.comm	letP,8,8
	.globl	SW
	.data
	.type	SW, @object
	.size	SW, 1
SW:
	.byte	45
	.section	.rodata
.LC0:
	.string	"get command line option"
	.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
	movzx	eax, BYTE PTR SW[rip]
	test	al, al
	jne	.L2
	mov	BYTE PTR SW[rip], 47
.L2:
	mov	eax, DWORD PTR xoptind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L17
	mov	rax, QWORD PTR letP[rip]
	test	rax, rax
	jne	.L4
	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 letP[rip], rax
	mov	rax, QWORD PTR letP[rip]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR letP[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR letP[rip], rdx
	movzx	edx, BYTE PTR [rax]
	movzx	eax, BYTE PTR SW[rip]
	cmp	dl, al
	jne	.L18
.L4:
	mov	rax, QWORD PTR letP[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR letP[rip], rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
	jmp	.L3
.L6:
	cmp	BYTE PTR -9[rbp], 58
	je	.L19
	movzx	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	.L19
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L10
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
	mov	rax, QWORD PTR letP[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
	mov	eax, DWORD PTR xoptind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L20
	mov	eax, DWORD PTR xoptind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR xoptind[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR letP[rip], rax
.L11:
	mov	rax, QWORD PTR letP[rip]
	mov	QWORD PTR xoptarg[rip], rax
	mov	QWORD PTR letP[rip], 0
	jmp	.L13
.L10:
	mov	rax, QWORD PTR letP[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L14
	mov	eax, DWORD PTR xoptind[rip]
	add	eax, 1
	mov	DWORD PTR xoptind[rip], eax
	mov	QWORD PTR letP[rip], 0
.L14:
	mov	QWORD PTR xoptarg[rip], 0
.L13:
	movzx	eax, BYTE PTR -9[rbp]
	jmp	.L15
.L17:
	nop
	jmp	.L3
.L18:
	nop
.L3:
	mov	QWORD PTR letP[rip], 0
	mov	rax, QWORD PTR letP[rip]
	mov	QWORD PTR xoptarg[rip], rax
	mov	eax, -1
	jmp	.L15
.L19:
	nop
	jmp	.L9
.L20:
	nop
.L9:
	mov	QWORD PTR xoptarg[rip], 0
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, DWORD PTR xopterr[rip]
	test	eax, eax
	je	.L16
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L16:
	mov	eax, 63
.L15:
	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	"14201408.c"
	.text
	.global	xoptind
	.data
	.align	2
	.type	xoptind, %object
	.size	xoptind, 4
xoptind:
	.word	1
	.comm	xoptarg,4,4
	.global	xopterr
	.bss
	.align	2
	.type	xopterr, %object
	.size	xopterr, 4
xopterr:
	.space	4
	.local	letP
	.comm	letP,4,4
	.global	SW
	.data
	.type	SW, %object
	.size	SW, 1
SW:
	.byte	45
	.section	.rodata
	.align	2
.LC0:
	.ascii	"get command line option\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, .L21
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L21
	mov	r2, #47
	strb	r2, [r3]
.L2:
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L17
	ldr	r3, .L21+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L21+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L21+8
	str	r3, [r2]
	ldr	r3, .L21+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L21+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L21+8
	str	r2, [r1]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L21
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L18
.L4:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L21+8
	str	r2, [r1]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L21+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+4
	str	r3, [r2]
	b	.L3
.L6:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #58
	beq	.L19
	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	.L19
	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	.L10
	ldr	r3, .L21+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+4
	str	r3, [r2]
	ldr	r3, .L21+8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L21+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L20
	ldr	r3, .L21+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L21+4
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L21+8
	str	r3, [r2]
.L11:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	ldr	r2, .L21+12
	str	r3, [r2]
	ldr	r3, .L21+8
	mov	r2, #0
	str	r2, [r3]
	b	.L13
.L10:
	ldr	r3, .L21+8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L21+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L21+4
	str	r3, [r2]
	ldr	r3, .L21+8
	mov	r2, #0
	str	r2, [r3]
.L14:
	ldr	r3, .L21+12
	mov	r2, #0
	str	r2, [r3]
.L13:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	b	.L15
.L17:
	nop
	b	.L3
.L18:
	nop
.L3:
	ldr	r3, .L21+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L21+8
	ldr	r3, [r3]
	ldr	r2, .L21+12
	str	r3, [r2]
	mvn	r3, #0
	b	.L15
.L19:
	nop
	b	.L9
.L20:
	nop
.L9:
	ldr	r3, .L21+12
	mov	r2, #0
	str	r2, [r3]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	ldr	r3, .L21+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L21+20
	bl	perror
.L16:
	mov	r3, #63
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	SW
	.word	xoptind
	.word	letP
	.word	xoptarg
	.word	xopterr
	.word	.LC0
	.size	xgetopt, .-xgetopt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
