	.file	"37638538.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.align 8
.LC1:
	.string	"INFO: getopt option: '%c' (optarg: '%s', optind: %d, opterr: %d, optopt: %d)\n"
.LC2:
	.string	"argv[%d]: '%s'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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 -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	sub	DWORD PTR -36[rbp], 1
	add	QWORD PTR -48[rbp], 8
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L2
.L5:
	mov	edi, DWORD PTR optopt[rip]
	mov	ecx, DWORD PTR opterr[rip]
	mov	edx, DWORD PTR optind[rip]
	mov	rax, QWORD PTR optarg[rip]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR optarg[rip]
	jmp	.L4
.L3:
	lea	rax, .LC0[rip]
.L4:
	mov	esi, DWORD PTR -20[rbp]
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, edx
	mov	rdx, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L5
	mov	DWORD PTR -24[rbp], 0
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L8
.L7:
	lea	rax, .LC0[rip]
.L8:
	mov	ecx, DWORD PTR -24[rbp]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L9
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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	"37638538.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"INFO: getopt option: '%c' (optarg: '%s', optind: %d"
	.ascii	", opterr: %d, optopt: %d)\012\000"
	.align	2
.LC2:
	.ascii	"argv[%d]: '%s'\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L2
.L5:
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L10
	ldr	r2, [r3]
	b	.L4
.L3:
	ldr	r2, .L10+4
.L4:
	ldr	r3, .L10+8
	ldr	r0, [r3]
	ldr	r3, .L10+12
	ldr	r3, [r3]
	ldr	r1, .L10+16
	ldr	r1, [r1]
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r1, [fp, #-8]
	ldr	r0, .L10+20
	bl	printf
.L2:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L6
.L9:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L8
.L7:
	ldr	r3, .L10+4
.L8:
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L6:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L9
	mov	r0, #0
	bl	exit
.L11:
	.align	2
.L10:
	.word	optarg
	.word	.LC0
	.word	optind
	.word	opterr
	.word	optopt
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
