	.file	"347620.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"apl:w:"
.LC1:
	.string	"Operacion no especificada"
	.align 8
.LC2:
	.string	"Medidas del rectangulo no especificadas"
	.align 8
.LC3:
	.string	"Area del rectangulo: %d * %d = %d\n"
	.align 8
.LC4:
	.string	"Perimetro del rectangulo: 2 * %d + 2 * %d = %d\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	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -8[rbp], -1
	jmp	.L2
.L9:
	cmp	DWORD PTR -4[rbp], 119
	je	.L3
	cmp	DWORD PTR -4[rbp], 119
	jg	.L4
	cmp	DWORD PTR -4[rbp], 112
	je	.L5
	cmp	DWORD PTR -4[rbp], 112
	jg	.L4
	cmp	DWORD PTR -4[rbp], 108
	je	.L6
	cmp	DWORD PTR -4[rbp], 108
	jg	.L4
	cmp	DWORD PTR -4[rbp], 63
	je	.L7
	cmp	DWORD PTR -4[rbp], 97
	jne	.L4
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L5:
	mov	DWORD PTR -16[rbp], 1
	jmp	.L2
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -12[rbp], eax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8[rbp], eax
	jmp	.L2
.L7:
	call	print_usage
	mov	eax, 1
	jmp	.L8
.L4:
	mov	eax, 1
	jmp	.L8
.L2:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L9
	cmp	DWORD PTR -20[rbp], 0
	jne	.L10
	cmp	DWORD PTR -16[rbp], 0
	jne	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	call	print_usage
	mov	eax, 1
	jmp	.L8
.L10:
	cmp	DWORD PTR -12[rbp], 0
	js	.L11
	cmp	DWORD PTR -8[rbp], 0
	jns	.L12
.L11:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	call	print_usage
	mov	eax, 1
	jmp	.L8
.L12:
	cmp	DWORD PTR -20[rbp], 0
	je	.L13
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, DWORD PTR -8[rbp]
	mov	ecx, eax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L13:
	cmp	DWORD PTR -16[rbp], 0
	je	.L14
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	lea	ecx, [rax+rax]
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	eax, 0
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.string	"Uso: ./app [-a | -p] [-l <largo>] [-w <ancho>]"
.LC6:
	.string	"Opciones:"
	.align 8
.LC7:
	.string	"    -a              Calcular area"
	.align 8
.LC8:
	.string	"    -p              Calcular perimetro"
	.align 8
.LC9:
	.string	"    -l [LARGO]      Largo del rectangulo"
	.align 8
.LC10:
	.string	"    -w [ANCHO]      Ancho del rectangulo"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_usage, .-print_usage
	.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	"347620.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"apl:w:\000"
	.align	2
.LC1:
	.ascii	"Operacion no especificada\000"
	.align	2
.LC2:
	.ascii	"Medidas del rectangulo no especificadas\000"
	.align	2
.LC3:
	.ascii	"Area del rectangulo: %d * %d = %d\012\000"
	.align	2
.LC4:
	.ascii	"Perimetro del rectangulo: 2 * %d + 2 * %d = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L11:
	ldr	r3, [fp, #-8]
	cmp	r3, #63
	beq	.L3
	ldr	r3, [fp, #-8]
	cmp	r3, #63
	blt	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #119
	bgt	.L4
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	blt	.L4
	ldr	r3, [fp, #-8]
	sub	r3, r3, #97
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L8
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L5
.L9:
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L2
.L7:
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L8:
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	b	.L2
.L5:
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-12]
	b	.L2
.L3:
	bl	print_usage
	mov	r3, #1
	b	.L10
.L4:
	mov	r3, #1
	b	.L10
.L2:
	ldr	r2, .L17+4
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L17+8
	bl	puts
	bl	print_usage
	mov	r3, #1
	b	.L10
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L13
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L14
.L13:
	ldr	r0, .L17+12
	bl	puts
	bl	print_usage
	mov	r3, #1
	b	.L10
.L14:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L17+16
	bl	printf
	b	.L16
.L15:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L16
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, .L17+20
	bl	printf
.L16:
	mov	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	optarg
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Uso: ./app [-a | -p] [-l <largo>] [-w <ancho>]\000"
	.align	2
.LC6:
	.ascii	"Opciones:\000"
	.align	2
.LC7:
	.ascii	"    -a              Calcular area\000"
	.align	2
.LC8:
	.ascii	"    -p              Calcular perimetro\000"
	.align	2
.LC9:
	.ascii	"    -l [LARGO]      Largo del rectangulo\000"
	.align	2
.LC10:
	.ascii	"    -w [ANCHO]      Ancho del rectangulo\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L20
	bl	puts
	ldr	r0, .L20+4
	bl	puts
	ldr	r0, .L20+8
	bl	puts
	ldr	r0, .L20+12
	bl	puts
	ldr	r0, .L20+16
	bl	puts
	ldr	r0, .L20+20
	bl	puts
	nop
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	print_usage, .-print_usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
