	.file	"176704788.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.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
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	st
	.align 32
	.type	st, @object
	.size	st, 80000000
st:
	.zero	80000000
	.globl	a
	.align 4
	.type	a, @object
	.size	a, 4
a:
	.zero	4
	.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	rdx, m[rip]
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L3:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, st[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jne	.L3
	mov	DWORD PTR i[rip], 0
	jmp	.L4
.L7:
	mov	DWORD PTR j[rip], 0
	jmp	.L5
.L6:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR i[rip]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	ecx, esi
	mov	eax, DWORD PTR j[rip]
	add	eax, ecx
	movsx	rcx, eax
	movsx	rax, edx
	imul	rax, rax, 1000000
	add	rax, rcx
	lea	rdx, 0[0+rax*4]
	lea	rax, st[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR i[rip]
	mov	ecx, DWORD PTR j[rip]
	movsx	rcx, ecx
	cdqe
	imul	rax, rax, 1000000
	add	rax, rcx
	lea	rcx, 0[0+rax*4]
	lea	rax, st[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, DWORD PTR i[rip]
	lea	esi, 1[rcx]
	mov	ecx, DWORD PTR j[rip]
	cmp	edx, eax
	cmovge	eax, edx
	movsx	rcx, ecx
	movsx	rdx, esi
	imul	rdx, rdx, 1000000
	add	rdx, rcx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, st[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
.L5:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, DWORD PTR j[rip]
	add	edx, eax
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L6
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L4:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jle	.L7
	jmp	.L8
.L14:
	lea	rdx, j[rip]
	lea	rsi, i[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR j[rip]
	add	eax, 1
	mov	DWORD PTR j[rip], eax
	mov	eax, DWORD PTR j[rip]
	mov	edx, DWORD PTR i[rip]
	sub	eax, edx
	bsr	eax, eax
	xor	eax, 31
	mov	edx, 31
	sub	edx, eax
	mov	DWORD PTR k[rip], edx
	mov	DWORD PTR a[rip], -2147483648
	jmp	.L9
.L13:
	mov	eax, DWORD PTR k[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, DWORD PTR i[rip]
	add	edx, eax
	mov	eax, DWORD PTR j[rip]
	cmp	edx, eax
	jg	.L10
	mov	eax, DWORD PTR k[rip]
	mov	edx, DWORD PTR i[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, st[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR a[rip]
	cmp	edx, eax
	jle	.L11
	mov	eax, DWORD PTR k[rip]
	mov	edx, DWORD PTR i[rip]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1000000
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	lea	rax, st[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR a[rip], eax
.L11:
	mov	eax, DWORD PTR k[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, DWORD PTR i[rip]
	add	eax, edx
	mov	DWORD PTR i[rip], eax
.L10:
	mov	eax, DWORD PTR k[rip]
	sub	eax, 1
	mov	DWORD PTR k[rip], eax
.L9:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR j[rip]
	cmp	edx, eax
	jge	.L12
	mov	eax, DWORD PTR k[rip]
	test	eax, eax
	jns	.L13
.L12:
	mov	eax, DWORD PTR a[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, DWORD PTR m[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR m[rip], edx
	test	eax, eax
	jne	.L14
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"176704788.c"
	.text
	.comm	n,4,4
	.comm	m,4,4
	.comm	i,4,4
	.comm	j,4,4
	.comm	k,4,4
	.comm	st,80000000,4
	.comm	a,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d%d\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r2, .L16
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	b	.L2
.L3:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, .L16+16
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L16+20
	bl	__isoc99_scanf
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+12
	str	r3, [r2]
.L2:
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L16+12
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L7:
	ldr	r3, .L16+24
	mov	r2, #0
	str	r2, [r3]
	b	.L5
.L6:
	ldr	r3, .L16+12
	ldr	r1, [r3]
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r0, r2, r3
	ldr	ip, .L16+16
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r0
	ldr	r0, [ip, r3, lsl #2]
	ldr	r3, .L16+12
	ldr	r1, [r3]
	ldr	r3, .L16+24
	ldr	ip, [r3]
	ldr	lr, .L16+16
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r3, ip
	ldr	r3, [lr, r3, lsl #2]
	ldr	r2, .L16+12
	ldr	r2, [r2]
	add	r1, r2, #1
	ldr	r2, .L16+24
	ldr	ip, [r2]
	cmp	r0, r3
	movge	r0, r0
	movlt	r0, r3
	ldr	lr, .L16+16
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r3, ip
	str	r0, [lr, r3, lsl #2]
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
.L5:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+12
	str	r3, [r2]
.L4:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L16+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L7
	b	.L8
.L14:
	ldr	r2, .L16+24
	ldr	r1, .L16+12
	ldr	r0, .L16+8
	bl	__isoc99_scanf
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
	ldr	r3, .L16+24
	ldr	r2, [r3]
	ldr	r3, .L16+12
	ldr	r3, [r3]
	sub	r3, r2, r3
	clz	r3, r3
	rsb	r3, r3, #31
	ldr	r2, .L16+28
	str	r3, [r2]
	ldr	r3, .L16+32
	mov	r2, #-2147483648
	str	r2, [r3]
	b	.L9
.L13:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, .L16+24
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L10
	ldr	r3, .L16+28
	ldr	r1, [r3]
	ldr	r3, .L16+12
	ldr	r0, [r3]
	ldr	ip, .L16+16
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r0
	ldr	r2, [ip, r3, lsl #2]
	ldr	r3, .L16+32
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L11
	ldr	r3, .L16+28
	ldr	r1, [r3]
	ldr	r3, .L16+12
	ldr	r0, [r3]
	ldr	ip, .L16+16
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	add	r3, r3, r0
	ldr	r3, [ip, r3, lsl #2]
	ldr	r2, .L16+32
	str	r3, [r2]
.L11:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r2, r2, r3
	ldr	r3, .L16+12
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L16+12
	str	r3, [r2]
.L10:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L16+28
	str	r3, [r2]
.L9:
	ldr	r3, .L16+12
	ldr	r2, [r3]
	ldr	r3, .L16+24
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L12
	ldr	r3, .L16+28
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L13
.L12:
	ldr	r3, .L16+32
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+36
	bl	printf
.L8:
	ldr	r3, .L16
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L16
	str	r2, [r1]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	m
	.word	n
	.word	.LC0
	.word	i
	.word	st
	.word	.LC1
	.word	j
	.word	k
	.word	a
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
