	.file	"158519.c"
	.intel_syntax noprefix
	.text
	.globl	opterr
	.data
	.align 4
	.type	opterr, @object
	.size	opterr, 4
opterr:
	.long	1
	.globl	optind
	.align 4
	.type	optind, @object
	.size	optind, 4
optind:
	.long	1
	.globl	optopt
	.bss
	.align 4
	.type	optopt, @object
	.size	optopt, 4
optopt:
	.zero	4
	.globl	optarg
	.align 8
	.type	optarg, @object
	.size	optarg, 8
optarg:
	.zero	8
	.section	.rodata
.LC0:
	.string	"--"
.LC1:
	.string	": unknown option, -"
.LC2:
	.string	": argument missing for -"
	.text
	.globl	getopt
	.type	getopt, @function
getopt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR sp.0[rip]
	cmp	eax, 1
	jne	.L2
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L3
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L3
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L4
.L3:
	mov	eax, -1
	jmp	.L5
.L4:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
	mov	eax, -1
	jmp	.L5
.L2:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR sp.0[rip]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	r12d, al
	mov	DWORD PTR optopt[rip], r12d
	cmp	r12d, 58
	je	.L6
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, r12d
	mov	rdi, rax
	call	strchr@PLT
	mov	rbx, rax
	test	rbx, rbx
	jne	.L7
.L6:
	mov	eax, DWORD PTR opterr[rip]
	test	eax, eax
	je	.L8
	mov	eax, r12d
	mov	BYTE PTR -26[rbp], al
	mov	BYTE PTR -25[rbp], 10
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	mov	edx, 19
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	lea	rax, -26[rbp]
	mov	edx, 2
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
.L8:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR sp.0[rip]
	add	eax, 1
	mov	DWORD PTR sp.0[rip], eax
	mov	eax, DWORD PTR sp.0[rip]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
	mov	DWORD PTR sp.0[rip], 1
.L9:
	mov	eax, 63
	jmp	.L5
.L7:
	add	rbx, 1
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 58
	jne	.L10
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR sp.0[rip]
	cdqe
	add	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L11
	mov	eax, DWORD PTR optind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR optind[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR sp.0[rip]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	QWORD PTR optarg[rip], rax
	jmp	.L12
.L11:
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -36[rbp], eax
	jg	.L13
	mov	eax, DWORD PTR opterr[rip]
	test	eax, eax
	je	.L14
	mov	eax, r12d
	mov	BYTE PTR -26[rbp], al
	mov	BYTE PTR -25[rbp], 10
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	mov	edx, 24
	lea	rsi, .LC2[rip]
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
	lea	rax, -26[rbp]
	mov	edx, 2
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	write@PLT
.L14:
	mov	DWORD PTR sp.0[rip], 1
	mov	eax, 63
	jmp	.L5
.L13:
	mov	eax, DWORD PTR optind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR optind[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR optarg[rip], rax
.L12:
	mov	DWORD PTR sp.0[rip], 1
	jmp	.L15
.L10:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR sp.0[rip]
	add	eax, 1
	mov	DWORD PTR sp.0[rip], eax
	mov	eax, DWORD PTR sp.0[rip]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	DWORD PTR sp.0[rip], 1
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
.L16:
	mov	QWORD PTR optarg[rip], 0
.L15:
	mov	eax, r12d
.L5:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getopt, .-getopt
	.data
	.align 4
	.type	sp.0, @object
	.size	sp.0, 4
sp.0:
	.long	1
	.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	"158519.c"
	.text
	.global	opterr
	.data
	.align	2
	.type	opterr, %object
	.size	opterr, 4
opterr:
	.word	1
	.global	optind
	.align	2
	.type	optind, %object
	.size	optind, 4
optind:
	.word	1
	.comm	optopt,4,4
	.comm	optarg,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--\000"
	.align	2
.LC1:
	.ascii	": unknown option, -\000"
	.align	2
.LC2:
	.ascii	": argument missing for -\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	getopt, %function
getopt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L2
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L3
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
.L3:
	mvn	r3, #0
	b	.L5
.L4:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L18+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	mvn	r3, #0
	b	.L5
.L2:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L18+4
	ldr	r2, [r2]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r4, r3
	ldr	r3, .L18+16
	str	r4, [r3]
	cmp	r4, #58
	beq	.L6
	mov	r1, r4
	ldr	r0, [fp, #-32]
	bl	strchr
	mov	r5, r0
	cmp	r5, #0
	bne	.L7
.L6:
	ldr	r3, .L18+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	and	r3, r4, #255
	strb	r3, [fp, #-20]
	mov	r3, #10
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	mov	r0, #2
	bl	write
	mov	r2, #19
	ldr	r1, .L18+24
	mov	r0, #2
	bl	write
	sub	r3, fp, #20
	mov	r2, #2
	mov	r1, r3
	mov	r0, #2
	bl	write
.L8:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L18+4
	ldr	r2, [r2]
	add	r2, r2, #1
	ldr	r1, .L18+4
	str	r2, [r1]
	ldr	r2, .L18+4
	ldr	r2, [r2]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18+4
	mov	r2, #1
	str	r2, [r3]
.L9:
	mov	r3, #63
	b	.L5
.L7:
	add	r5, r5, #1
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L10
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L18+8
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	add	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, .L18+28
	str	r3, [r2]
	b	.L12
.L11:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bgt	.L13
	ldr	r3, .L18+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	and	r3, r4, #255
	strb	r3, [fp, #-20]
	mov	r3, #10
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #-28]
	ldr	r4, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	mov	r0, #2
	bl	write
	mov	r2, #24
	ldr	r1, .L18+32
	mov	r0, #2
	bl	write
	sub	r3, fp, #20
	mov	r2, #2
	mov	r1, r3
	mov	r0, #2
	bl	write
.L14:
	ldr	r3, .L18+4
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #63
	b	.L5
.L13:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L18+8
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L18+28
	str	r3, [r2]
.L12:
	ldr	r3, .L18+4
	mov	r2, #1
	str	r2, [r3]
	b	.L15
.L10:
	ldr	r3, .L18+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L18+4
	ldr	r2, [r2]
	add	r2, r2, #1
	ldr	r1, .L18+4
	str	r2, [r1]
	ldr	r2, .L18+4
	ldr	r2, [r2]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L18+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L18+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18+8
	str	r3, [r2]
.L16:
	ldr	r3, .L18+28
	mov	r2, #0
	str	r2, [r3]
.L15:
	mov	r3, r4
.L5:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	sp.4787
	.word	optind
	.word	.LC0
	.word	optopt
	.word	opterr
	.word	.LC1
	.word	optarg
	.word	.LC2
	.size	getopt, .-getopt
	.data
	.align	2
	.type	sp.4787, %object
	.size	sp.4787, 4
sp.4787:
	.word	1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
