	.file	"629041.c"
	.intel_syntax noprefix
	.text
	.globl	get_array
	.type	get_array, @function
get_array:
.LFB0:
	.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	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*4]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_array, .-get_array
	.globl	set_array
	.type	set_array, @function
set_array:
.LFB1:
	.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	DWORD PTR -16[rbp], edx
	mov	DWORD PTR -20[rbp], ecx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rax*4], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set_array, .-set_array
	.globl	getV1
	.type	getV1, @function
getV1:
.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 6
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	getV1, .-getV1
	.globl	minus
	.type	minus, @function
minus:
.LFB3:
	.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], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	minus, .-minus
	.globl	shift_left
	.type	shift_left, @function
shift_left:
.LFB4:
	.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	eax, esi
	mov	BYTE PTR -12[rbp], al
	movsx	eax, BYTE PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	sar	rdx, cl
	mov	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	shift_left, .-shift_left
	.globl	shift_right
	.type	shift_right, @function
shift_right:
.LFB5:
	.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	eax, esi
	mov	BYTE PTR -12[rbp], al
	movsx	eax, BYTE PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	shift_right, .-shift_right
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	getV1
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 5
	mov	edi, eax
	call	minus
	mov	WORD PTR -90[rbp], ax
	mov	BYTE PTR -91[rbp], 0
	movsx	ebx, WORD PTR -90[rbp]
	mov	eax, 8
	cdq
	idiv	ebx
	mov	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	eax, edx
	mov	BYTE PTR -91[rbp], al
	movsx	rax, BYTE PTR -91[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	shift_left
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	shift_right
	mov	edi, eax
	call	minus_one
	cdqe
	mov	QWORD PTR -72[rbp], rax
	cmp	DWORD PTR -84[rbp], 7
	setle	al
	movzx	eax, al
	mov	DWORD PTR -88[rbp], eax
	cmp	QWORD PTR -72[rbp], 0
	jns	.L13
	add	DWORD PTR -88[rbp], 1
.L13:
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -32[rbp], 4
	lea	rax, -64[rbp]
	mov	ecx, 1
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	set_array
	mov	DWORD PTR -76[rbp], 0
	movsx	eax, BYTE PTR -91[rbp]
	mov	DWORD PTR -84[rbp], eax
	lea	rax, -64[rbp]
	mov	edx, 3
	mov	esi, 1
	mov	rdi, rax
	call	get_array
	mov	edx, eax
	mov	eax, DWORD PTR -76[rbp]
	add	eax, 2
	movsx	rsi, eax
	mov	eax, DWORD PTR -76[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	add	rax, rsi
	mov	ecx, DWORD PTR -64[rbp+rax*4]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -84[rbp], eax
	movsx	rax, WORD PTR -90[rbp]
	cmp	QWORD PTR -72[rbp], rax
	jne	.L16
	mov	rax, QWORD PTR -72[rbp]
	add	eax, 3
	jmp	.L19
.L17:
	add	DWORD PTR -88[rbp], 2
	sub	QWORD PTR -72[rbp], 1
.L16:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L17
	cmp	DWORD PTR -88[rbp], 7
	jne	.L18
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -84[rbp]
	add	edx, eax
	movsx	eax, WORD PTR -90[rbp]
	lea	ebx, [rdx+rax]
	mov	esi, 1
	mov	edi, 0
	call	diff
	lea	edx, [rbx+rax]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	add	eax, 3
	jmp	.L19
.L18:
	mov	eax, 0
.L19:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	diff
	.type	diff, @function
diff:
.LFB7:
	.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	eax, edi
	mov	DWORD PTR -8[rbp], esi
	mov	BYTE PTR -4[rbp], al
	mov	edi, 98
	call	putchar@PLT
	movsx	eax, BYTE PTR -4[rbp]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L22
	movsx	eax, BYTE PTR -4[rbp]
	sub	eax, DWORD PTR -8[rbp]
	jmp	.L23
.L22:
	movsx	edx, BYTE PTR -4[rbp]
	mov	eax, DWORD PTR -8[rbp]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	diff
	add	eax, 1
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	diff, .-diff
	.globl	minus_one
	.type	minus_one, @function
minus_one:
.LFB8:
	.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 -8[rbp], 0
	jmp	.L25
.L26:
	add	DWORD PTR -20[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L25:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L26
	mov	DWORD PTR -4[rbp], 3
	jmp	.L27
.L28:
	sub	DWORD PTR -4[rbp], 1
	sub	DWORD PTR -20[rbp], 1
.L27:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L28
	mov	eax, DWORD PTR -20[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	minus_one, .-minus_one
	.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	"629041.c"
	.text
	.align	2
	.global	get_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_array, %function
get_array:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_array, .-get_array
	.align	2
	.global	set_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_array, %function
set_array:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_array, .-set_array
	.align	2
	.global	getV1
	.syntax unified
	.arm
	.fpu softvfp
	.type	getV1, %function
getV1:
	@ 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]
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getV1, .-getV1
	.align	2
	.global	minus
	.syntax unified
	.arm
	.fpu softvfp
	.type	minus, %function
minus:
	@ 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	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	minus, .-minus
	.align	2
	.global	shift_left
	.syntax unified
	.arm
	.fpu softvfp
	.type	shift_left, %function
shift_left:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	asr	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	shift_left, .-shift_left
	.align	2
	.global	shift_right
	.syntax unified
	.arm
	.fpu softvfp
	.type	shift_right, %function
shift_right:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	lsl	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	shift_right, .-shift_right
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-88]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-88]
	bl	getV1
	str	r0, [fp, #-68]
	mov	r1, #5
	ldr	r0, [fp, #-68]
	bl	minus
	mov	r3, r0
	strh	r3, [fp, #-78]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-79]
	ldrsh	r3, [fp, #-78]
	mov	r1, r3
	mov	r0, #8
	bl	__aeabi_idiv
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-68]
	and	r3, r3, #255
	add	r3, r2, r3
	strb	r3, [fp, #-79]
	ldrb	r3, [fp, #-79]	@ zero_extendqisi2
	mov	r1, #2
	mov	r0, r3
	bl	shift_left
	str	r0, [fp, #-76]
	mov	r1, #1
	ldr	r0, [fp, #-76]
	bl	shift_right
	mov	r3, r0
	mov	r0, r3
	bl	minus_one
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-68]
	cmp	r3, #7
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L13
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L13:
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #4
	str	r3, [fp, #-24]
	sub	r0, fp, #56
	mov	r3, #1
	mov	r2, #2
	mov	r1, #0
	bl	set_array
	mov	r3, #0
	str	r3, [fp, #-60]
	ldrb	r3, [fp, #-79]	@ zero_extendqisi2
	str	r3, [fp, #-68]
	sub	r3, fp, #56
	mov	r2, #3
	mov	r1, #1
	mov	r0, r3
	bl	get_array
	ldr	r3, [fp, #-60]
	add	r1, r3, #2
	ldr	r2, [fp, #-60]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	sub	r3, r0, r3
	str	r3, [fp, #-68]
	ldrsh	r3, [fp, #-78]
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-76]
	add	r3, r3, #3
	b	.L19
.L17:
	ldr	r3, [fp, #-72]
	add	r3, r3, #2
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
.L16:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-72]
	cmp	r3, #7
	bne	.L18
	ldr	r3, [fp, #-76]
	add	r2, r3, #3
	ldr	r3, [fp, #-72]
	add	r2, r2, r3
	ldr	r3, [fp, #-68]
	add	r2, r2, r3
	ldrsh	r3, [fp, #-78]
	add	r4, r2, r3
	mov	r1, #1
	mov	r0, #0
	bl	diff
	mov	r3, r0
	add	r2, r4, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	b	.L19
.L18:
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	diff
	.syntax unified
	.arm
	.fpu softvfp
	.type	diff, %function
diff:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	mov	r0, #98
	bl	putchar
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L24
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	b	.L25
.L24:
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	diff
	mov	r3, r0
	add	r3, r3, #1
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	diff, .-diff
	.align	2
	.global	minus_one
	.syntax unified
	.arm
	.fpu softvfp
	.type	minus_one, %function
minus_one:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L28:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L28
	mov	r3, #3
	str	r3, [fp, #-8]
	b	.L29
.L30:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L29:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L30
	ldr	r3, [fp, #-16]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	minus_one, .-minus_one
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
