	.file	"368765.c"
	.intel_syntax noprefix
	.text
	.globl	megaInit
	.type	megaInit, @function
megaInit:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	megaInit, .-megaInit
	.globl	RandomFunc
	.type	RandomFunc, @function
RandomFunc:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	sub	ax, 2410
	mov	WORD PTR -10[rbp], ax
	movzx	eax, WORD PTR -10[rbp]
	shr	ax, 4
	movzx	eax, ax
	and	eax, 1
	test	eax, eax
	je	.L3
	movzx	eax, WORD PTR -10[rbp]
	add	eax, eax
	mov	WORD PTR -10[rbp], ax
	jmp	.L4
.L3:
	movzx	eax, WORD PTR -10[rbp]
	add	eax, eax
	mov	WORD PTR -10[rbp], ax
.L4:
	movzx	eax, WORD PTR -10[rbp]
	lea	edx, -19438[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	RandomFunc, .-RandomFunc
	.section	.rodata
	.align 8
.LC0:
	.string	"Call this program with %i arguments\n"
.LC1:
	.string	"You win!"
.LC2:
	.string	"%u\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	call	megaInit
	cmp	DWORD PTR -36[rbp], 2
	je	.L7
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L7:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	WORD PTR -22[rbp], ax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	movzx	edx, WORD PTR -22[rbp]
	mov	WORD PTR -12[rbp+rax*2], dx
	add	DWORD PTR -20[rbp], 1
.L8:
	cmp	DWORD PTR -20[rbp], 0
	jle	.L9
	lea	rdx, -10[rbp]
	lea	rax, -12[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	RandomFunc
	movzx	eax, WORD PTR -10[rbp]
	cmp	ax, 31026
	jne	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L10:
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	movzx	eax, WORD PTR -10[rbp+rax*2]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
.L11:
	cmp	DWORD PTR -16[rbp], 0
	jle	.L12
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"368765.c"
	.text
	.align	2
	.global	megaInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	megaInit, %function
megaInit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	megaInit, .-megaInit
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	RandomFunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	RandomFunc, %function
RandomFunc:
	@ 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]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	sub	r3, r3, #2400
	sub	r3, r3, #10
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r3, [fp, #-12]
	lsr	r3, r3, #4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldrh	r3, [fp, #-12]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
	b	.L4
.L3:
	ldrh	r3, [fp, #-12]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-12]	@ movhi
.L4:
	ldrh	r3, [fp, #-12]
	sub	r3, r3, #19200
	sub	r3, r3, #238
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-20]
	strh	r2, [r3]	@ movhi
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	RandomFunc, .-RandomFunc
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Call this program with %i arguments\012\000"
	.align	2
.LC2:
	.ascii	"You win!\000"
	.align	2
.LC3:
	.ascii	"%u\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	megaInit
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L9
	mov	r1, #1
	ldr	r0, .L17+4
	bl	printf
	mvn	r0, #0
	bl	exit
.L9:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L11:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #12
	ldrh	r2, [fp, #-26]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	ble	.L11
	sub	r2, fp, #12
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	RandomFunc
	ldrh	r3, [fp, #-12]
	ldr	r2, .L17+8
	cmp	r3, r2
	bne	.L12
	ldr	r0, .L17+12
	bl	puts
.L12:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L13
.L14:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #8
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L13:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC1
	.word	31026
	.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
