	.file	"31620.c"
	.intel_syntax noprefix
	.text
	.globl	r
	.bss
	.align 4
	.type	r, @object
	.size	r, 4
r:
	.zero	4
	.globl	s
	.align 4
	.type	s, @object
	.size	s, 4
s:
	.zero	4
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR r[rip], 0
	jmp	.L2
.L15:
	mov	DWORD PTR s[rip], 1
	jmp	.L3
.L4:
	mov	edi, 32
	call	putchar@PLT
	mov	eax, DWORD PTR s[rip]
	add	eax, 1
	mov	DWORD PTR s[rip], eax
.L3:
	mov	ecx, DWORD PTR r[rip]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR s[rip]
	cmp	edx, eax
	jg	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR r[rip]
	cmp	edx, eax
	jle	.L5
	mov	DWORD PTR s[rip], 1
	jmp	.L6
.L7:
	mov	edi, 90
	call	putchar@PLT
	mov	eax, DWORD PTR s[rip]
	add	eax, 1
	mov	DWORD PTR s[rip], eax
.L6:
	mov	eax, DWORD PTR r[rip]
	add	eax, 1
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR s[rip]
	cmp	edx, eax
	jg	.L7
	jmp	.L8
.L5:
	mov	DWORD PTR s[rip], 1
	jmp	.L9
.L10:
	mov	edi, 90
	call	putchar@PLT
	mov	eax, DWORD PTR s[rip]
	add	eax, 1
	mov	DWORD PTR s[rip], eax
.L9:
	mov	eax, DWORD PTR r[rip]
	add	eax, 1
	add	eax, eax
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR s[rip]
	cmp	edx, eax
	jg	.L10
	mov	DWORD PTR s[rip], 1
	jmp	.L11
.L12:
	mov	edi, 32
	call	putchar@PLT
	mov	eax, DWORD PTR s[rip]
	add	eax, 1
	mov	DWORD PTR s[rip], eax
.L11:
	mov	edx, DWORD PTR r[rip]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, edx
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR s[rip]
	cmp	edx, eax
	jg	.L12
	mov	DWORD PTR s[rip], 1
	jmp	.L13
.L14:
	mov	edi, 90
	call	putchar@PLT
	mov	eax, DWORD PTR s[rip]
	add	eax, 1
	mov	DWORD PTR s[rip], eax
.L13:
	mov	eax, DWORD PTR r[rip]
	add	eax, 1
	add	eax, eax
	sub	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR s[rip]
	cmp	edx, eax
	jg	.L14
.L8:
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR r[rip]
	add	eax, 1
	mov	DWORD PTR r[rip], eax
.L2:
	mov	eax, DWORD PTR r[rip]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L15
	mov	eax, 0
	leave
	.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	"31620.c"
	.text
	.comm	r,4,4
	.comm	s,4,4
	.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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r3, .L17
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L15:
	ldr	r3, .L17+4
	mov	r2, #1
	str	r2, [r3]
	b	.L3
.L4:
	mov	r0, #32
	bl	putchar
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
.L3:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L4
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L17
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L5
	ldr	r3, .L17+4
	mov	r2, #1
	str	r2, [r3]
	b	.L6
.L7:
	mov	r0, #90
	bl	putchar
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
.L6:
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r2, r3, #1
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L7
	b	.L8
.L5:
	ldr	r3, .L17+4
	mov	r2, #1
	str	r2, [r3]
	b	.L9
.L10:
	mov	r0, #90
	bl	putchar
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
.L9:
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L10
	ldr	r3, .L17+4
	mov	r2, #1
	str	r2, [r3]
	b	.L11
.L12:
	mov	r0, #32
	bl	putchar
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
.L11:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	sub	r3, r2, r3
	lsl	r2, r3, #1
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L12
	ldr	r3, .L17+4
	mov	r2, #1
	str	r2, [r3]
	b	.L13
.L14:
	mov	r0, #90
	bl	putchar
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17+4
	str	r3, [r2]
.L13:
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r2, r3, #1
	ldr	r3, [fp, #-8]
	sub	r2, r2, r3
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L14
.L8:
	mov	r0, #10
	bl	putchar
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L17
	str	r3, [r2]
.L2:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L15
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	r
	.word	s
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
