	.file	"73349.c"
	.intel_syntax noprefix
	.text
	.globl	add1
	.bss
	.align 32
	.type	add1, @object
	.size	add1, 200
add1:
	.zero	200
	.globl	add2
	.align 32
	.type	add2, @object
	.size	add2, 200
add2:
	.zero	200
	.globl	sum
	.align 32
	.type	sum, @object
	.size	sum, 200
sum:
	.zero	200
	.section	.rodata
.LC0:
	.string	"add1 = : "
.LC1:
	.string	"add2 = : "
.LC2:
	.string	"sum = : "
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 200
	lea	rdi, add1[rip]
	call	mygetline
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 200
	lea	rdi, add2[rip]
	call	mygetline
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, edx
	mov	edi, eax
	call	max
	mov	DWORD PTR -8[rbp], eax
	mov	ecx, DWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -16[rbp]
	mov	r9d, ecx
	mov	r8d, edx
	mov	ecx, eax
	lea	rdx, sum[rip]
	lea	rsi, add2[rip]
	lea	rdi, add1[rip]
	call	add
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, sum[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -20[rbp], 1
.L2:
	cmp	DWORD PTR -20[rbp], 198
	jle	.L3
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	mygetline
	.type	mygetline, @function
mygetline:
.LFB1:
	.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
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
.L6:
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jle	.L7
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L7
	cmp	DWORD PTR -4[rbp], 10
	jne	.L8
.L7:
	cmp	DWORD PTR -4[rbp], 10
	jne	.L9
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -8[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 10
.L9:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mygetline, .-mygetline
	.globl	max
	.type	max, @function
max:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L12
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L14
	mov	eax, DWORD PTR -8[rbp]
	jmp	.L11
.L14:
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	max, .-max
	.globl	add
	.type	add, @function
add:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -60[rbp], ecx
	mov	DWORD PTR -64[rbp], r8d
	mov	DWORD PTR -68[rbp], r9d
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 48
	add	DWORD PTR -16[rbp], 1
.L16:
	cmp	DWORD PTR -16[rbp], 199
	jle	.L17
	mov	DWORD PTR -20[rbp], 0
	jmp	.L18
.L24:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -64[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L19
	mov	DWORD PTR -28[rbp], 0
	jmp	.L20
.L19:
	cmp	DWORD PTR -20[rbp], 0
	jle	.L20
	cmp	DWORD PTR -12[rbp], 9
	setg	al
	movzx	eax, al
	mov	DWORD PTR -28[rbp], eax
.L20:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	lea	ecx, -48[rax]
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	lea	edx, [rcx+rax]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 9
	setg	al
	movzx	eax, al
	mov	DWORD PTR -24[rbp], eax
	mov	edx, DWORD PTR -8[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -4[rbp], edx
	cmp	DWORD PTR -60[rbp], 0
	js	.L21
	cmp	DWORD PTR -64[rbp], 0
	js	.L21
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 48[rax]
	mov	eax, 199
	sub	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L22
.L21:
	cmp	DWORD PTR -60[rbp], 0
	jns	.L23
	cmp	DWORD PTR -64[rbp], 0
	js	.L23
	mov	eax, DWORD PTR -64[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	edx, 199
	sub	edx, DWORD PTR -20[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	jmp	.L22
.L23:
	cmp	DWORD PTR -60[rbp], 0
	js	.L22
	cmp	DWORD PTR -64[rbp], 0
	jns	.L22
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, 199
	sub	edx, DWORD PTR -20[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -56[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
.L22:
	add	DWORD PTR -20[rbp], 1
	sub	DWORD PTR -60[rbp], 1
	sub	DWORD PTR -64[rbp], 1
.L18:
	cmp	DWORD PTR -60[rbp], 0
	jns	.L24
	cmp	DWORD PTR -64[rbp], 0
	jns	.L24
	mov	eax, DWORD PTR -24[rbp]
	lea	ecx, 48[rax]
	mov	eax, 199
	sub	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	cmp	DWORD PTR -24[rbp], 0
	jne	.L25
	mov	eax, 200
	sub	eax, DWORD PTR -20[rbp]
	jmp	.L27
.L25:
	mov	eax, 199
	sub	eax, DWORD PTR -20[rbp]
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	add, .-add
	.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	"73349.c"
	.text
	.comm	add1,200,4
	.comm	add2,200,4
	.comm	sum,200,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"add1 = : \000"
	.align	2
.LC1:
	.ascii	"add2 = : \000"
	.align	2
.LC2:
	.ascii	"sum = : \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, #32
	ldr	r0, .L5
	bl	printf
	mov	r1, #200
	ldr	r0, .L5+4
	bl	mygetline
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r0, .L5+8
	bl	printf
	mov	r1, #200
	ldr	r0, .L5+12
	bl	mygetline
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	max
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, .L5+16
	ldr	r1, .L5+12
	ldr	r0, .L5+4
	bl	add
	str	r0, [fp, #-8]
	ldr	r0, .L5+20
	bl	printf
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r2, .L5+16
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #198
	ble	.L3
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	add1
	.word	.LC1
	.word	add2
	.word	sum
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	mygetline
	.syntax unified
	.arm
	.fpu softvfp
	.type	mygetline, %function
mygetline:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L10:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
.L8:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L9
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L10
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L11
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	mov	r2, #10
	strb	r2, [r3]
.L11:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mygetline, .-mygetline
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-12]
	b	.L13
.L16:
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L18
.L19:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L18:
	ldr	r3, [fp, #-20]
	cmp	r3, #199
	ble	.L19
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L20
.L26:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #4]
	add	r3, r3, #1
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L22
.L21:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-32]
.L22:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	ldr	r3, [fp, #4]
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	ldr	r3, .L30
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L23
	ldr	r3, [fp, #4]
	cmp	r3, #0
	blt	.L23
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #199
	mov	r1, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r1
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L24
.L23:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L25
	ldr	r3, [fp, #4]
	cmp	r3, #0
	blt	.L25
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #199
	mov	r1, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L24
.L25:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	blt	.L24
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bge	.L24
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #199
	mov	r1, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L24:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #4]
	sub	r3, r3, #1
	str	r3, [fp, #4]
.L20:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L26
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bge	.L26
	ldr	r3, [fp, #-28]
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #199
	mov	r1, r3
	ldr	r3, [fp, #-48]
	add	r3, r3, r1
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #200
	b	.L29
.L27:
	ldr	r3, [fp, #-24]
	rsb	r3, r3, #199
.L29:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L31:
	.align	2
.L30:
	.word	1717986919
	.size	add, .-add
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
