	.file	"502310.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Hello, which product do you want to buy?"
.LC1:
	.string	"1) IPhone 12"
.LC2:
	.string	"2) IPhone 12 Pro"
.LC3:
	.string	"3) IPhone 12 Pro Max Max"
.LC4:
	.string	"Great device, how many?"
	.align 8
.LC5:
	.string	"You should buy at least one Iphone!"
.LC6:
	.string	"You solved the problem"
.LC7:
	.string	"The Iphone Max Max is yours"
.LC8:
	.string	"You have to pay \342\202\254%d\n"
.LC9:
	.string	"You can buy maximum 3"
	.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, 32
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 3
	mov	eax, 0
	call	Source@PLT
	mov	DWORD PTR -20[rbp], eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	mov	eax, 0
	call	Source@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jg	.L2
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	DWORD PTR -12[rbp], 1200
	cmp	DWORD PTR -20[rbp], 3
	jne	.L4
	mov	eax, DWORD PTR -16[rbp]
	imul	edx, eax, 1500
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	Sink@PLT
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	Sink@PLT
	jmp	.L6
.L4:
	cmp	DWORD PTR -16[rbp], 3
	jle	.L7
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L3
.L7:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax, 1000
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	Sink@PLT
.L6:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"502310.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello, which product do you want to buy?\000"
	.align	2
.LC1:
	.ascii	"1) IPhone 12\000"
	.align	2
.LC2:
	.ascii	"2) IPhone 12 Pro\000"
	.align	2
.LC3:
	.ascii	"3) IPhone 12 Pro Max Max\000"
	.align	2
.LC4:
	.ascii	"Great device, how many?\000"
	.align	2
.LC5:
	.ascii	"You should buy at least one Iphone!\000"
	.align	2
.LC6:
	.ascii	"You solved the problem\000"
	.align	2
.LC7:
	.ascii	"The Iphone Max Max is yours\000"
	.align	2
.LC8:
	.ascii	"You have to pay \342\202\254%d\012\000"
	.align	2
.LC9:
	.ascii	"You can buy maximum 3\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, #24
	ldr	r0, .L8
	bl	puts
	ldr	r0, .L8+4
	bl	puts
	ldr	r0, .L8+8
	bl	puts
	ldr	r0, .L8+12
	bl	puts
	mov	r0, #3
	bl	Source
	str	r0, [fp, #-24]
	ldr	r0, .L8+16
	bl	puts
	mov	r0, #1
	bl	Source
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L2
	ldr	r0, .L8+20
	bl	puts
	mvn	r3, #0
	b	.L3
.L2:
	mov	r3, #1200
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #3
	bne	.L4
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	Sink
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L8+24
	bl	puts
	ldr	r0, .L8+28
	bl	puts
	mov	r3, #1
	b	.L3
.L5:
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+32
	bl	Sink
	b	.L6
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L7
	ldr	r0, .L8+36
	bl	puts
	mvn	r3, #0
	b	.L3
.L7:
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+32
	bl	Sink
.L6:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
