	.file	"89199826.c"
	.intel_syntax noprefix
	.text
	.globl	apg_optarg
	.bss
	.align 8
	.type	apg_optarg, @object
	.size	apg_optarg, 8
apg_optarg:
	.zero	8
	.globl	apg_optind
	.align 4
	.type	apg_optind, @object
	.size	apg_optind, 4
apg_optind:
	.zero	4
	.globl	apg_opterr
	.data
	.align 4
	.type	apg_opterr, @object
	.size	apg_opterr, 4
apg_opterr:
	.long	1
	.globl	apg_optopt
	.bss
	.align 4
	.type	apg_optopt, @object
	.size	apg_optopt, 4
apg_optopt:
	.zero	4
	.local	scan
	.comm	scan,8,8
	.section	.rodata
.LC0:
	.string	"apg"
	.section	.data.rel.local,"aw"
	.align 8
	.type	prog, @object
	.size	prog, 8
prog:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"%s%s%c\n"
	.text
	.type	badopt, @function
badopt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR apg_opterr[rip]
	test	eax, eax
	je	.L2
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	esi, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	r8d, esi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fflush@PLT
.L2:
	mov	eax, 63
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	badopt, .-badopt
	.section	.rodata
.LC2:
	.string	": unknown option -"
	.align 8
.LC3:
	.string	": option requires an argument -"
	.text
	.globl	apg_getopt
	.type	apg_getopt, @function
apg_getopt:
.LFB1:
	.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	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR prog[rip], rax
	mov	QWORD PTR apg_optarg[rip], 0
	mov	eax, DWORD PTR apg_optind[rip]
	test	eax, eax
	jne	.L5
	mov	QWORD PTR scan[rip], 0
	mov	eax, DWORD PTR apg_optind[rip]
	add	eax, 1
	mov	DWORD PTR apg_optind[rip], eax
.L5:
	mov	rax, QWORD PTR scan[rip]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR scan[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
.L6:
	mov	eax, DWORD PTR apg_optind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L8
	mov	eax, DWORD PTR apg_optind[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	.L8
	mov	eax, DWORD PTR apg_optind[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	.L9
.L8:
	mov	eax, -1
	jmp	.L10
.L9:
	mov	eax, DWORD PTR apg_optind[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]
	cmp	al, 45
	jne	.L11
	mov	eax, DWORD PTR apg_optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
	mov	eax, DWORD PTR apg_optind[rip]
	add	eax, 1
	mov	DWORD PTR apg_optind[rip], eax
	mov	eax, -1
	jmp	.L10
.L11:
	mov	eax, DWORD PTR apg_optind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR apg_optind[rip], edx
	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
.L7:
	mov	rax, QWORD PTR scan[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR scan[rip], rdx
	movzx	r12d, BYTE PTR [rax]
	movsx	eax, r12b
	movzx	eax, al
	mov	DWORD PTR apg_optopt[rip], eax
	mov	rbx, QWORD PTR -40[rbp]
	jmp	.L12
.L15:
	movzx	eax, BYTE PTR [rbx]
	cmp	r12b, al
	je	.L21
	add	rbx, 1
.L12:
	test	rbx, rbx
	je	.L14
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L15
	jmp	.L14
.L21:
	nop
.L14:
	test	rbx, rbx
	je	.L16
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L16
	cmp	r12b, 58
	je	.L16
	cmp	r12b, 63
	jne	.L17
.L16:
	movsx	eax, r12b
	mov	esi, eax
	lea	rdi, .LC2[rip]
	call	badopt
	jmp	.L10
.L17:
	add	rbx, 1
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 58
	jne	.L18
	mov	rax, QWORD PTR scan[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L19
	mov	rax, QWORD PTR scan[rip]
	mov	QWORD PTR apg_optarg[rip], rax
	mov	QWORD PTR scan[rip], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR apg_optind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L20
	movsx	eax, r12b
	mov	esi, eax
	lea	rdi, .LC3[rip]
	call	badopt
	jmp	.L10
.L20:
	mov	eax, DWORD PTR apg_optind[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR apg_optind[rip], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR apg_optarg[rip], rax
.L18:
	movsx	eax, r12b
	movzx	eax, al
.L10:
	add	rsp, 32
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	apg_getopt, .-apg_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	"89199826.c"
	.text
	.comm	apg_optarg,4,4
	.global	apg_optind
	.bss
	.align	2
	.type	apg_optind, %object
	.size	apg_optind, 4
apg_optind:
	.space	4
	.global	apg_opterr
	.data
	.align	2
	.type	apg_opterr, %object
	.size	apg_opterr, 4
apg_opterr:
	.word	1
	.comm	apg_optopt,4,4
	.local	scan
	.comm	scan,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"apg\000"
	.data
	.align	2
	.type	prog, %object
	.size	prog, 4
prog:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s%s%c\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	badopt, %function
badopt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L4+4
	ldr	r0, [r3]
	ldr	r3, .L4+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	ldr	r1, .L4+12
	bl	fprintf
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L2:
	mov	r3, #63
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	apg_opterr
	.word	stderr
	.word	prog
	.word	.LC1
	.size	badopt, .-badopt
	.section	.rodata
	.align	2
.LC2:
	.ascii	": unknown option -\000"
	.align	2
.LC3:
	.ascii	": option requires an argument -\000"
	.text
	.align	2
	.global	apg_getopt
	.syntax unified
	.arm
	.fpu softvfp
	.type	apg_getopt, %function
apg_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, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L24
	str	r3, [r2]
	ldr	r3, .L24+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L24+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L24+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24+8
	str	r3, [r2]
.L7:
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L24+12
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L10
	ldr	r3, .L24+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	.L10
	ldr	r3, .L24+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	.L11
.L10:
	mvn	r3, #0
	b	.L12
.L11:
	ldr	r3, .L24+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, #45
	bne	.L13
	ldr	r3, .L24+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L24+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24+8
	str	r3, [r2]
	mvn	r3, #0
	b	.L12
.L13:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L24+8
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24+12
	str	r3, [r2]
.L9:
	ldr	r3, .L24+12
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L24+12
	str	r2, [r1]
	ldrb	r5, [r3]	@ zero_extendqisi2
	mov	r2, r5
	ldr	r3, .L24+16
	str	r2, [r3]
	ldr	r4, [fp, #-24]
	b	.L14
.L17:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r5, r3
	beq	.L23
	add	r4, r4, #1
.L14:
	cmp	r4, #0
	beq	.L16
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	b	.L16
.L23:
	nop
.L16:
	cmp	r4, #0
	beq	.L18
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	cmp	r5, #58
	beq	.L18
	cmp	r5, #63
	bne	.L19
.L18:
	mov	r3, r5
	mov	r1, r3
	ldr	r0, .L24+20
	bl	badopt
	mov	r3, r0
	b	.L12
.L19:
	add	r4, r4, #1
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L20
	ldr	r3, .L24+12
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L24+12
	ldr	r3, [r3]
	ldr	r2, .L24+4
	str	r3, [r2]
	ldr	r3, .L24+12
	mov	r2, #0
	str	r2, [r3]
	b	.L20
.L21:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L22
	mov	r3, r5
	mov	r1, r3
	ldr	r0, .L24+24
	bl	badopt
	mov	r3, r0
	b	.L12
.L22:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L24+8
	str	r2, [r1]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L24+4
	str	r3, [r2]
.L20:
	mov	r3, r5
.L12:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L25:
	.align	2
.L24:
	.word	prog
	.word	apg_optarg
	.word	apg_optind
	.word	scan
	.word	apg_optopt
	.word	.LC2
	.word	.LC3
	.size	apg_getopt, .-apg_getopt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
