	.file	"969941.c"
	.intel_syntax noprefix
	.text
	.local	stacks
	.comm	stacks,1200024,32
	.globl	push
	.type	push, @function
push:
.LFB6:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 400000[rax]
	cmp	eax, 99999
	jle	.L2
	mov	eax, -1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 400004[rax]
	mov	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 400004[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 400000[rax]
	mov	rax, QWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 400000[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 400000[rax], edx
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.LFB7:
	.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 400000[rax]
	test	eax, eax
	jg	.L5
	mov	eax, -1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 400000[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 400000[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 400000[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 400004[rax]
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 400004[rax], edx
	mov	eax, DWORD PTR -4[rbp]
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pop, .-pop
	.local	line
	.comm	line,500000,32
	.local	input_stack
	.comm	input_stack,400008,32
	.globl	init_stack
	.type	init_stack, @function
init_stack:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, rax
	mov	esi, 500000
	lea	rdi, line[rip]
	call	fgets@PLT
	lea	rax, line[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, -24[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, input_stack[rip]
	call	push
	add	DWORD PTR -28[rbp], 1
.L8:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L9
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L11:
	lea	rdi, input_stack[rip]
	call	pop
	cdqe
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	push
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L11
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	init_stack, .-init_stack
	.globl	stack_heights_equal
	.type	stack_heights_equal, @function
stack_heights_equal:
.LFB9:
	.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 -8[rbp], 0
	mov	eax, DWORD PTR stacks[rip+400004]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip+400004]
	mov	eax, DWORD PTR [rax+rdx]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L15
	add	DWORD PTR -8[rbp], 1
.L15:
	add	DWORD PTR -12[rbp], 1
.L14:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L16
	cmp	DWORD PTR -8[rbp], 3
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stack_heights_equal, .-stack_heights_equal
	.globl	min_height_stack
	.type	min_height_stack, @function
min_height_stack:
.LFB10:
	.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], 0
	mov	eax, DWORD PTR stacks[rip+400004]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip+400004]
	mov	eax, DWORD PTR [rax+rdx]
	cmp	DWORD PTR -8[rbp], eax
	jle	.L20
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip+400004]
	mov	eax, DWORD PTR [rax+rdx]
	mov	DWORD PTR -8[rbp], eax
.L20:
	add	DWORD PTR -12[rbp], 1
.L19:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L21
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	min_height_stack, .-min_height_stack
	.globl	pop_greater_than
	.type	pop_greater_than, @function
pop_greater_than:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip+400004]
	mov	eax, DWORD PTR [rax+rdx]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L25
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pop
.L25:
	add	DWORD PTR -4[rbp], 1
.L24:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pop_greater_than, .-pop_greater_than
	.section	.rodata
.LC0:
	.string	"%d %d %d\n"
.LC1:
	.string	"height = %d\n"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20[rbp]
	lea	rcx, 8[rax]
	lea	rax, -20[rbp]
	lea	rdx, 4[rax]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -36[rbp], 0
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	mov	eax, DWORD PTR -20[rbp+rax*4]
	mov	rsi, rdx
	mov	edi, eax
	call	init_stack
	add	DWORD PTR -36[rbp], 1
.L28:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L29
	mov	DWORD PTR -36[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	imul	rax, rax, 400008
	lea	rdx, stacks[rip+400004]
	mov	eax, DWORD PTR [rax+rdx]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 1
.L30:
	cmp	DWORD PTR -36[rbp], 2
	jle	.L31
	jmp	.L32
.L33:
	call	min_height_stack
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 400004[rax]
	mov	edi, eax
	call	pop_greater_than
.L32:
	call	stack_heights_equal
	test	eax, eax
	je	.L33
	mov	eax, DWORD PTR stacks[rip+400004]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"969941.c"
	.text
	.local	stacks
	.comm	stacks,1200024,4
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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	r3, [fp, #-8]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	ldr	r2, .L4
	cmp	r3, r2
	blt	.L2
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	add	r3, r3, #397312
	ldr	r2, [r3, #2692]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r2, r2, #397312
	str	r3, [r2, #2692]
	ldr	r3, [fp, #-8]
	add	r3, r3, #397312
	ldr	r2, [r3, #2688]
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r2, r2, #397312
	str	r3, [r2, #2688]
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	100000
	.size	push, .-push
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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]
	ldr	r3, [fp, #-16]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	cmp	r3, #0
	bgt	.L7
	mvn	r3, #0
	b	.L8
.L7:
	ldr	r3, [fp, #-16]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, #397312
	str	r3, [r2, #2688]
	ldr	r3, [fp, #-16]
	add	r3, r3, #397312
	ldr	r2, [r3, #2688]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #397312
	ldr	r2, [r3, #2692]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #397312
	str	r3, [r2, #2692]
	ldr	r3, [fp, #-8]
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	pop, .-pop
	.local	line
	.comm	line,500000,4
	.local	input_stack
	.comm	input_stack,400008,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_stack, %function
init_stack:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L15+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, .L15+12
	bl	fgets
	ldr	r3, .L15+12
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L10
.L11:
	ldr	r3, [fp, #-20]
	sub	r1, fp, #20
	mov	r2, #10
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L15+16
	bl	push
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L13:
	ldr	r0, .L15+16
	bl	pop
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	push
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L13
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	stdin
	.word	500000
	.word	line
	.word	input_stack
	.size	init_stack, .-init_stack
	.align	2
	.global	stack_heights_equal
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_heights_equal, %function
stack_heights_equal:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L22
	add	r3, r3, #397312
	ldr	r3, [r3, #2692]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L18
.L20:
	ldr	r2, .L22
	ldr	r3, [fp, #-16]
	ldr	r1, .L22+4
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L22+8
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L19
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L20
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	stacks
	.word	400008
	.word	400004
	.size	stack_heights_equal, .-stack_heights_equal
	.align	2
	.global	min_height_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	min_height_stack, %function
min_height_stack:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L29
	add	r3, r3, #397312
	ldr	r3, [r3, #2692]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L25
.L27:
	ldr	r2, .L29
	ldr	r3, [fp, #-16]
	ldr	r1, .L29+4
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L29+8
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r2, .L29
	ldr	r3, [fp, #-16]
	ldr	r1, .L29+4
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L29+8
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L26:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L27
	ldr	r3, [fp, #-8]
	ldr	r2, .L29+4
	mul	r3, r2, r3
	ldr	r2, .L29
	add	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L30:
	.align	2
.L29:
	.word	stacks
	.word	400008
	.word	400004
	.size	min_height_stack, .-min_height_stack
	.align	2
	.global	pop_greater_than
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop_greater_than, %function
pop_greater_than:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r2, .L35
	ldr	r3, [fp, #-8]
	ldr	r1, .L35+4
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L35+8
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L33
	ldr	r3, [fp, #-8]
	ldr	r2, .L35+4
	mul	r3, r2, r3
	ldr	r2, .L35
	add	r3, r3, r2
	mov	r0, r3
	bl	pop
.L33:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L34
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	stacks
	.word	400008
	.word	400004
	.size	pop_greater_than, .-pop_greater_than
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d %d %d\012\000"
	.align	2
.LC2:
	.ascii	"height = %d\012\000"
	.align	2
.LC3:
	.ascii	"%d\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.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	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	add	r0, r3, #8
	sub	r3, fp, #20
	add	r2, r3, #4
	sub	r1, fp, #20
	mov	r3, r0
	ldr	r0, .L46+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L38
.L39:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-16]
	ldr	r3, [fp, #-28]
	ldr	r1, .L46+8
	mul	r3, r1, r3
	ldr	r1, .L46+12
	add	r3, r3, r1
	mov	r1, r3
	mov	r0, r2
	bl	init_stack
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L38:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L39
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L40
.L41:
	ldr	r2, .L46+12
	ldr	r3, [fp, #-28]
	ldr	r1, .L46+8
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, .L46+16
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L46+20
	bl	printf
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L40:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	ble	.L41
	b	.L42
.L43:
	bl	min_height_stack
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #397312
	ldr	r3, [r3, #2692]
	mov	r0, r3
	bl	pop_greater_than
.L42:
	bl	stack_heights_equal
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L46+12
	add	r3, r3, #397312
	ldr	r3, [r3, #2692]
	mov	r1, r3
	ldr	r0, .L46+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.word	.LC1
	.word	400008
	.word	stacks
	.word	400004
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
