	.file	"419901.c"
	.intel_syntax noprefix
	.text
	.globl	optarg
	.bss
	.align 8
	.type	optarg, @object
	.size	optarg, 8
optarg:
	.zero	8
	.globl	optind77
	.align 4
	.type	optind77, @object
	.size	optind77, 4
optind77:
	.zero	4
	.local	scan
	.comm	scan,8,8
	.section	.rodata
.LC0:
	.string	"--"
.LC1:
	.string	"%s: unknown option -%c\n"
	.text
	.globl	our_getopt
	.type	our_getopt, @function
our_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, 32
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR optarg[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 optind77[rip]
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR optind77[rip]
	add	eax, 1
	mov	DWORD PTR optind77[rip], eax
.L4:
	mov	eax, DWORD PTR optind77[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L5
	mov	eax, DWORD PTR optind77[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 optind77[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 optind77[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR optind77[rip]
	add	eax, 1
	mov	DWORD PTR optind77[rip], eax
	mov	eax, -1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR optind77[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 optind77[rip]
	add	eax, 1
	mov	DWORD PTR optind77[rip], eax
.L3:
	mov	rax, QWORD PTR scan[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR scan[rip], rdx
	movzx	r12d, BYTE PTR [rax]
	movsx	edx, r12b
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	index@PLT
	mov	rbx, rax
	test	rbx, rbx
	je	.L9
	cmp	r12b, 58
	jne	.L10
.L9:
	movsx	ecx, r12b
	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, 63
	jmp	.L7
.L10:
	add	rbx, 1
	movzx	eax, BYTE PTR [rbx]
	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 optarg[rip], rax
	mov	QWORD PTR scan[rip], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR optind77[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 optarg[rip], rax
	mov	eax, DWORD PTR optind77[rip]
	add	eax, 1
	mov	DWORD PTR optind77[rip], eax
.L11:
	movsx	eax, r12b
.L7:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	our_getopt, .-our_getopt
	.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	"419901.c"
	.text
	.comm	optarg,4,4
	.global	optind77
	.bss
	.align	2
	.type	optind77, %object
	.size	optind77, 4
optind77:
	.space	4
	.local	scan
	.comm	scan,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--\000"
	.align	2
.LC1:
	.ascii	"%s: unknown option -%c\012\000"
	.text
	.align	2
	.global	our_getopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	our_getopt, %function
our_getopt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L13
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L13+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+8
	str	r3, [r2]
.L4:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L5
	ldr	r3, .L13+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, .L13+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, .L13+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L13+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L13+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+8
	str	r3, [r2]
	mvn	r3, #0
	b	.L7
.L8:
	ldr	r3, .L13+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, .L13+4
	str	r3, [r2]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+8
	str	r3, [r2]
.L3:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L13+4
	str	r2, [r1]
	ldrb	r5, [r3]	@ zero_extendqisi2
	mov	r3, r5
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	index
	mov	r4, r0
	cmp	r4, #0
	beq	.L9
	cmp	r5, #58
	bne	.L10
.L9:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	mov	r3, r5
	ldr	r1, .L13+20
	bl	fprintf
	mov	r3, #63
	b	.L7
.L10:
	add	r4, r4, #1
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L11
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r3, .L13+4
	mov	r2, #0
	str	r2, [r3]
	b	.L11
.L12:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+8
	str	r3, [r2]
.L11:
	mov	r3, r5
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	optarg
	.word	scan
	.word	optind77
	.word	.LC0
	.word	stderr
	.word	.LC1
	.size	our_getopt, .-our_getopt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
