	.file	"514834.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.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
	lea	r11, -36864[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 4000
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40840[rbp], 0
	mov	DWORD PTR -40836[rbp], 0
	mov	DWORD PTR -40824[rbp], 0
	mov	DWORD PTR -40820[rbp], 0
	lea	rdx, -40852[rbp]
	lea	rax, -40856[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40848[rbp], 0
	jmp	.L2
.L3:
	lea	rdx, -40016[rbp]
	mov	eax, DWORD PTR -40848[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -40848[rbp], 1
.L2:
	mov	eax, DWORD PTR -40856[rbp]
	cmp	DWORD PTR -40848[rbp], eax
	jl	.L3
	mov	DWORD PTR -40848[rbp], 0
	jmp	.L4
.L9:
	mov	DWORD PTR -40836[rbp], 0
	mov	DWORD PTR -40840[rbp], 0
	mov	DWORD PTR -40832[rbp], 1
	lea	rdx, -40416[rbp]
	mov	eax, DWORD PTR -40848[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -40816[rbp]
	mov	eax, DWORD PTR -40848[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -40848[rbp]
	cdqe
	mov	eax, DWORD PTR -40816[rbp+rax*4]
	mov	DWORD PTR -40844[rbp], eax
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -40844[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	add	DWORD PTR -40836[rbp], eax
	mov	eax, DWORD PTR -40844[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	mov	edx, DWORD PTR -40832[rbp]
	imul	eax, edx
	mov	DWORD PTR -40832[rbp], eax
	mov	ecx, DWORD PTR -40856[rbp]
	mov	eax, DWORD PTR -40832[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -40832[rbp], edx
	add	DWORD PTR -40844[rbp], 1
.L5:
	mov	eax, DWORD PTR -40848[rbp]
	cdqe
	mov	eax, DWORD PTR -40416[rbp+rax*4]
	cmp	DWORD PTR -40844[rbp], eax
	jle	.L6
	mov	ecx, DWORD PTR -40856[rbp]
	mov	eax, DWORD PTR -40836[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -40836[rbp], edx
	mov	edx, DWORD PTR -40832[rbp]
	mov	eax, DWORD PTR -40836[rbp]
	mov	esi, edx
	mov	edi, eax
	call	min
	mov	DWORD PTR -40824[rbp], eax
	mov	edx, DWORD PTR -40836[rbp]
	mov	eax, DWORD PTR -40832[rbp]
	mov	esi, edx
	mov	edi, eax
	call	max
	mov	DWORD PTR -40820[rbp], eax
	mov	eax, DWORD PTR -40824[rbp]
	mov	DWORD PTR -40828[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -40828[rbp]
	cdqe
	mov	eax, DWORD PTR -40016[rbp+rax*4]
	xor	DWORD PTR -40840[rbp], eax
	add	DWORD PTR -40828[rbp], 1
.L7:
	mov	eax, DWORD PTR -40828[rbp]
	cmp	eax, DWORD PTR -40820[rbp]
	jle	.L8
	mov	eax, DWORD PTR -40840[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -40848[rbp], 1
.L4:
	mov	eax, DWORD PTR -40852[rbp]
	cmp	DWORD PTR -40848[rbp], eax
	jl	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	max
	.type	max, @function
max:
.LFB1:
	.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L13
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
.L13:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	max, .-max
	.globl	min
	.type	min, @function
min:
.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 -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jge	.L16
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
.L16:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	min, .-min
	.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	"514834.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d %d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40848
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #40704
	sub	sp, sp, #148
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3964]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3960]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3948]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3944]
	sub	r2, fp, #40704
	sub	r2, r2, #12
	sub	r2, r2, #136
	sub	r3, fp, #40704
	sub	r3, r3, #12
	sub	r3, r3, #140
	mov	r1, r3
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3972]
	b	.L2
.L3:
	sub	r3, fp, #39936
	sub	r3, r3, #12
	sub	r3, r3, #68
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3972]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3972]
	add	r3, r3, #1
	str	r3, [r2, #-3972]
.L2:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3980]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3972]
	cmp	r2, r3
	blt	.L3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3972]
	b	.L4
.L9:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3960]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3964]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-3956]
	sub	r3, fp, #40704
	sub	r3, r3, #12
	sub	r3, r3, #100
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3972]
	lsl	r2, r2, #2
	add	r1, r3, r2
	sub	r3, fp, #40192
	sub	r3, r3, #12
	sub	r3, r3, #212
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3972]
	lsl	r2, r2, #2
	add	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3972]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3, #-3940]
	str	r3, [r2, #-3968]
	b	.L5
.L6:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3140]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3960]
	add	r3, r2, r3
	str	r3, [r1, #-3960]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-3140]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3956]
	mul	r3, r2, r3
	str	r3, [r1, #-3956]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r3, #-3980]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3956]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4, #-3956]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3968]
	add	r3, r3, #1
	str	r3, [r2, #-3968]
.L5:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3972]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3540]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3968]
	cmp	r2, r3
	ble	.L6
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r3, #-3980]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3960]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [r4, #-3960]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r2, #-3956]
	ldr	r0, [r3, #-3960]
	bl	min
	str	r0, [r4, #-3948]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r2, #-3960]
	ldr	r0, [r3, #-3956]
	bl	max
	str	r0, [r4, #-3944]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3948]
	str	r3, [r2, #-3952]
	b	.L7
.L8:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #-3140]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3964]
	eor	r3, r3, r2
	str	r3, [r1, #-3964]
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3952]
	add	r3, r3, #1
	str	r3, [r2, #-3952]
.L7:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r2, [r2, #-3952]
	ldr	r3, [r3, #-3944]
	cmp	r2, r3
	ble	.L8
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r1, [r3, #-3964]
	ldr	r0, .L12+12
	bl	printf
	sub	r3, fp, #36864
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3972]
	add	r3, r3, #1
	str	r3, [r2, #-3972]
.L4:
	sub	r3, fp, #36864
	sub	r3, r3, #12
	ldr	r3, [r3, #-3976]
	sub	r2, fp, #36864
	sub	r2, r2, #12
	ldr	r2, [r2, #-3972]
	cmp	r2, r3
	blt	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	max
	.syntax unified
	.arm
	.fpu softvfp
	.type	max, %function
max:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L15
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	max, .-max
	.align	2
	.global	min
	.syntax unified
	.arm
	.fpu softvfp
	.type	min, %function
min:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L18
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	min, .-min
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
