	.file	"extr_30278.c_getopt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"--"
	.text
	.p2align 4
	.globl	getopt
	.type	getopt, @function
getopt:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rax, DWORD PTR optind[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edi
	test	eax, eax
	jne	.L2
	mov	QWORD PTR next.1929[rip], 0
	mov	eax, 1
	mov	QWORD PTR optarg[rip], 0
	mov	DWORD PTR optind[rip], 1
.L10:
	cmp	eax, ebx
	jge	.L8
	mov	rdi, QWORD PTR 0[rbp+rax*8]
	cmp	BYTE PTR [rdi], 45
	jne	.L4
	cmp	BYTE PTR 1[rdi], 0
	jne	.L5
.L4:
	mov	QWORD PTR optarg[rip], rdi
.L8:
	mov	r12d, DWORD PTR EOF[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rcx, QWORD PTR next.1929[rip]
	mov	QWORD PTR optarg[rip], 0
	test	rcx, rcx
	je	.L10
	movzx	r13d, BYTE PTR [rcx]
	test	r13b, r13b
	je	.L10
.L11:
	movsx	r12d, r13b
	add	rcx, 1
	mov	rdi, r14
	mov	esi, r12d
	mov	QWORD PTR next.1929[rip], rcx
	call	strchr@PLT
	test	rax, rax
	je	.L13
	cmp	r13b, 58
	je	.L13
	cmp	BYTE PTR 1[rax], 58
	jne	.L1
	mov	rax, QWORD PTR next.1929[rip]
	cmp	BYTE PTR [rax], 0
	je	.L9
	mov	QWORD PTR optarg[rip], rax
	mov	QWORD PTR next.1929[rip], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, .LC0[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L22
	movsx	rcx, DWORD PTR optind[rip]
	mov	rsi, QWORD PTR 0[rbp+rcx*8]
	mov	rax, rcx
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
	lea	rcx, 1[rsi]
	movzx	r13d, BYTE PTR 1[rsi]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR optind[rip]
	cmp	eax, ebx
	jl	.L23
.L13:
	mov	r12d, 63
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	movsx	rdx, eax
	add	eax, 1
	mov	rdx, QWORD PTR 0[rbp+rdx*8]
	mov	DWORD PTR optind[rip], eax
	mov	QWORD PTR optarg[rip], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR optind[rip]
	mov	QWORD PTR optarg[rip], 0
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
	cmp	eax, ebx
	jge	.L8
	cdqe
	mov	rax, QWORD PTR 0[rbp+rax*8]
	mov	QWORD PTR optarg[rip], rax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	getopt, .-getopt
	.local	next.1929
	.comm	next.1929,8,8
	.comm	optind,4,4
	.comm	optarg,8,8
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_30278.c_getopt.c"
	.text
	.align	2
	.global	getopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	getopt, %function
getopt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L28
	mov	r5, r0
	ldr	r3, [r7]
	mov	r6, r1
	cmp	r3, #0
	bne	.L2
	mov	r1, #1
	ldr	r8, .L28+4
	ldr	r9, .L28+8
	str	r3, [r8]
	str	r3, [r9]
	mov	r3, r1
	str	r1, [r7]
.L12:
	cmp	r3, r5
	bge	.L9
.L27:
	ldr	ip, [r6, r3, lsl #2]
	lsl	r0, r3, #2
	ldrb	r1, [ip]	@ zero_extendqisi2
	cmp	r1, #45
	bne	.L4
	ldrb	r1, [ip, #1]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L4
	subs	r1, r1, #45
	ldrbeq	r1, [ip, #2]	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	r1, #0
	beq	.L25
	str	r3, [r7]
	ldrb	r4, [ip, #1]	@ zero_extendqisi2
	add	ip, ip, #1
.L13:
	add	ip, ip, #1
	mov	r0, r2
	mov	r1, r4
	str	ip, [r8]
	bl	strchr
	sub	r3, r4, #58
	clz	r3, r3
	cmp	r0, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r3, #0
	bne	.L15
	ldrb	r2, [r0, #1]	@ zero_extendqisi2
	cmp	r2, #58
	beq	.L26
.L10:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	cmp	r3, r5
	addlt	r6, r6, r0
	str	r3, [r7]
	ldrlt	r3, [r6, #4]
	strlt	r3, [r9]
.L9:
	ldr	r3, .L28+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, #0
	ldr	r8, .L28+4
	ldr	r9, .L28+8
	ldr	ip, [r8]
	str	r1, [r9]
	cmp	ip, r1
	beq	.L12
	ldrb	r4, [ip]	@ zero_extendqisi2
	cmp	r4, r1
	bne	.L13
	cmp	r3, r5
	blt	.L27
	b	.L9
.L4:
	str	ip, [r9]
	b	.L9
.L26:
	ldr	r2, [r8]
	ldrb	r1, [r2]	@ zero_extendqisi2
	cmp	r1, #0
	strne	r2, [r9]
	strne	r3, [r8]
	bne	.L10
	ldr	r3, [r7]
	cmp	r3, r5
	bge	.L15
	ldr	r2, [r6, r3, lsl #2]
	add	r3, r3, #1
	str	r2, [r9]
	str	r3, [r7]
	b	.L10
.L15:
	mov	r0, #63
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L29:
	.align	2
.L28:
	.word	optind
	.word	.LANCHOR0
	.word	optarg
	.word	EOF
	.size	getopt, .-getopt
	.comm	optind,4,4
	.comm	optarg,4,4
	.comm	EOF,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	next.4213, %object
	.size	next.4213, 4
next.4213:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
