	.file	"762012.c"
	.intel_syntax noprefix
	.text
	.globl	optind_s
	.bss
	.align 4
	.type	optind_s, @object
	.size	optind_s, 4
optind_s:
	.zero	4
	.globl	optarg_s
	.align 8
	.type	optarg_s, @object
	.size	optarg_s, 8
optarg_s:
	.zero	8
	.text
	.type	getopt_check_character, @function
getopt_check_character:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -20[rbp], al
	mov	DWORD PTR -4[rbp], 128
	jmp	.L2
.L6:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L3
	mov	eax, 63
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -20[rbp], al
	jne	.L2
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L5
	mov	eax, 1
	jmp	.L4
.L5:
	mov	eax, 2
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L6
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getopt_check_character, .-getopt_check_character
	.globl	getopt_s
	.type	getopt_s, @function
getopt_s:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	nop
	mov	eax, DWORD PTR optind_s[rip]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jle	.L17
	mov	eax, DWORD PTR optind_s[rip]
	add	eax, 1
	mov	DWORD PTR optind_s[rip], eax
	mov	eax, DWORD PTR optind_s[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 -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	eax, 63
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L11
	mov	eax, -1
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	getopt_check_character
	cmp	eax, 1
	je	.L12
	cmp	eax, 2
	je	.L13
	jmp	.L18
.L12:
	mov	eax, DWORD PTR optind_s[rip]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jle	.L15
	mov	eax, DWORD PTR optind_s[rip]
	add	eax, 1
	mov	DWORD PTR optind_s[rip], eax
	mov	eax, DWORD PTR optind_s[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_s[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L10
.L15:
	mov	eax, 63
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	jmp	.L10
.L18:
	mov	eax, 63
	jmp	.L10
.L17:
	mov	eax, -1
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getopt_s, .-getopt_s
	.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	"762012.c"
	.text
	.global	optind_s
	.bss
	.align	2
	.type	optind_s, %object
	.size	optind_s, 4
optind_s:
	.space	4
	.comm	optarg_s,4,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getopt_check_character, %function
getopt_check_character:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	mov	r3, #128
	str	r3, [fp, #-8]
	b	.L2
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L3
	mov	r3, #63
	b	.L4
.L3:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L2
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L5
	mov	r3, #1
	b	.L4
.L5:
	mov	r3, #2
	b	.L4
.L2:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getopt_check_character, .-getopt_check_character
	.align	2
	.global	getopt_s
	.syntax unified
	.arm
	.fpu softvfp
	.type	getopt_s, %function
getopt_s:
	@ 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]
	nop
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L17
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	mov	r3, #63
	b	.L10
.L9:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L11
	mvn	r3, #0
	b	.L10
.L11:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	getopt_check_character
	mov	r3, r0
	cmp	r3, #1
	beq	.L12
	cmp	r3, #2
	beq	.L13
	b	.L18
.L12:
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L15
	ldr	r3, .L19
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L19+4
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L10
.L15:
	mov	r3, #63
	b	.L10
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L10
.L18:
	mov	r3, #63
	b	.L10
.L17:
	mvn	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	optind_s
	.word	optarg_s
	.size	getopt_s, .-getopt_s
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
