	.file	"549322.c"
	.intel_syntax noprefix
	.text
	.globl	input
	.bss
	.align 32
	.type	input, @object
	.size	input, 60
input:
	.zero	60
	.globl	stmt
	.align 32
	.type	stmt, @object
	.size	stmt, 180
stmt:
	.zero	180
	.globl	len
	.align 4
	.type	len, @object
	.size	len, 4
len:
	.zero	4
	.globl	cur
	.align 4
	.type	cur, @object
	.size	cur, 4
cur:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.section	.rodata
.LC0:
	.string	"if %s goto %d \n"
.LC1:
	.string	"goto %d \n"
.LC2:
	.string	"%d : %s\n"
.LC3:
	.string	"%d : STOP \n"
.LC4:
	.string	"%d : %s \n"
	.text
	.globl	gen
	.type	gen, @function
gen:
.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, 16
	mov	DWORD PTR -12[rbp], 101
	mov	DWORD PTR -8[rbp], 102
	mov	DWORD PTR -4[rbp], 103
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	lea	rsi, stmt[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	rdx, stmt[rip+60]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR cur[rip]
	cmp	eax, 2
	jg	.L2
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	lea	rdx, stmt[rip+120]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	gen, .-gen
	.section	.rodata
	.align 8
.LC5:
	.string	"Format of if stmt \nFor example"
.LC6:
	.string	"1) if (a < b) then (s = a); "
	.align 8
.LC7:
	.string	"2) if (a < b) then (s = a) else (s = b); "
.LC8:
	.string	"\nEnter stmt:"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	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, input[rip]
	mov	eax, 0
	call	gets@PLT
	lea	rdi, input[rip]
	call	strlen@PLT
	mov	DWORD PTR len[rip], eax
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR i[rip], 0
	jmp	.L6
.L11:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, input[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 40
	jne	.L7
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR i[rip]
	mov	DWORD PTR j[rip], eax
	jmp	.L8
.L9:
	mov	esi, DWORD PTR j[rip]
	mov	ecx, DWORD PTR cur[rip]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, esi
	lea	rsi, input[rip]
	movzx	edx, BYTE PTR [rdx+rsi]
	movsx	rsi, eax
	movsx	rcx, ecx
	mov	rax, rcx
	sal	rax, 4
	sub	rax, rcx
	sal	rax, 2
	lea	rcx, [rax+rsi]
	lea	rax, stmt[rip]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L8:
	mov	eax, DWORD PTR j[rip]
	sub	eax, 1
	cdqe
	lea	rdx, input[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 41
	jne	.L9
	mov	eax, DWORD PTR cur[rip]
	add	eax, 1
	mov	DWORD PTR cur[rip], eax
	mov	eax, DWORD PTR j[rip]
	mov	DWORD PTR i[rip], eax
.L7:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L6:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR len[rip]
	cmp	edx, eax
	jge	.L10
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, input[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 59
	jne	.L11
.L10:
	mov	eax, 0
	call	gen
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"549322.c"
	.text
	.comm	input,60,4
	.comm	stmt,180,4
	.comm	len,4,4
	.comm	cur,4,4
	.comm	i,4,4
	.comm	j,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"if %s goto %d \012\000"
	.align	2
.LC1:
	.ascii	"goto %d \012\000"
	.align	2
.LC2:
	.ascii	"%d : %s\012\000"
	.align	2
.LC3:
	.ascii	"%d : STOP \012\000"
	.align	2
.LC4:
	.ascii	"%d : %s \012\000"
	.text
	.align	2
	.global	gen
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen, %function
gen:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #101
	str	r3, [fp, #-16]
	mov	r3, #102
	str	r3, [fp, #-12]
	mov	r3, #103
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r1, .L5
	ldr	r0, .L5+4
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r0, .L5+8
	bl	printf
	ldr	r2, .L5+12
	ldr	r1, [fp, #-16]
	ldr	r0, .L5+16
	bl	printf
	ldr	r3, .L5+20
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L2
	ldr	r1, [fp, #-12]
	ldr	r0, .L5+24
	bl	printf
	b	.L4
.L2:
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+8
	bl	printf
	ldr	r2, .L5+28
	ldr	r1, [fp, #-12]
	ldr	r0, .L5+32
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L5+24
	bl	printf
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stmt
	.word	.LC0
	.word	.LC1
	.word	stmt+60
	.word	.LC2
	.word	cur
	.word	.LC3
	.word	stmt+120
	.word	.LC4
	.size	gen, .-gen
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Format of if stmt \012For example\000"
	.align	2
.LC6:
	.ascii	"1) if (a < b) then (s = a); \000"
	.align	2
.LC7:
	.ascii	"2) if (a < b) then (s = a) else (s = b); \000"
	.align	2
.LC8:
	.ascii	"\012Enter stmt:\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L15
	bl	puts
	ldr	r0, .L15+4
	bl	puts
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, .L15+12
	bl	puts
	ldr	r0, .L15+16
	bl	gets
	ldr	r0, .L15+16
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15+20
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L15+24
	mov	r2, #0
	str	r2, [r3]
	b	.L8
.L13:
	ldr	r3, .L15+24
	ldr	r3, [r3]
	ldr	r2, .L15+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #40
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L15+24
	ldr	r3, [r3]
	ldr	r2, .L15+28
	str	r3, [r2]
	b	.L10
.L11:
	ldr	r3, .L15+28
	ldr	r3, [r3]
	ldr	r2, .L15+32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	add	r0, r2, #1
	str	r0, [fp, #-8]
	ldr	r0, .L15+16
	ldrb	ip, [r0, r3]	@ zero_extendqisi2
	ldr	r0, .L15+36
	mov	r3, r1
	lsl	r3, r3, #4
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r0, r3
	add	r3, r3, r2
	mov	r2, ip
	strb	r2, [r3]
	ldr	r3, .L15+28
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+28
	str	r3, [r2]
.L10:
	ldr	r3, .L15+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L15+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #41
	bne	.L11
	ldr	r3, .L15+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+32
	str	r3, [r2]
	ldr	r3, .L15+28
	ldr	r3, [r3]
	ldr	r2, .L15+24
	str	r3, [r2]
.L9:
	ldr	r3, .L15+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15+24
	str	r3, [r2]
.L8:
	ldr	r3, .L15+24
	ldr	r2, [r3]
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L12
	ldr	r3, .L15+24
	ldr	r3, [r3]
	ldr	r2, .L15+16
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L13
.L12:
	bl	gen
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	input
	.word	len
	.word	i
	.word	j
	.word	cur
	.word	stmt
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
