	.file	"32783.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"open file[%s] failed \n"
.LC2:
	.string	" out of the max index[%d] \n"
.LC3:
	.string	"result[str %s], "
.LC4:
	.string	"    --  int[%d]:[%d]\n"
	.text
	.globl	read_version
	.type	read_version, @function
read_version:
.LFB0:
	.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, 1192
	.cfi_offset 3, -24
	mov	QWORD PTR -1192[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -1180[rbp], 0
	mov	QWORD PTR -1152[rbp], 0
	mov	QWORD PTR -1144[rbp], 0
	mov	DWORD PTR -1176[rbp], 0
	mov	rax, QWORD PTR -1192[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1168[rbp], rax
	cmp	QWORD PTR -1168[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -1192[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 255
	jmp	.L10
.L2:
	mov	BYTE PTR -29[rbp], 120
	jmp	.L4
.L8:
	cmp	DWORD PTR -1180[rbp], 3
	jle	.L5
	mov	eax, DWORD PTR -1180[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 255
	jmp	.L10
.L5:
	movzx	eax, BYTE PTR -29[rbp]
	test	al, al
	jne	.L6
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, 10
	je	.L6
	nop
.L7:
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -1172[rbp], eax
	cmp	DWORD PTR -1172[rbp], 10
	je	.L6
	cmp	DWORD PTR -1172[rbp], -1
	jne	.L7
.L6:
	lea	rcx, -1136[rbp]
	mov	eax, DWORD PTR -1180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rcx, QWORD PTR -128[rbp]
	mov	rbx, QWORD PTR -120[rbp]
	mov	QWORD PTR [rax], rcx
	mov	QWORD PTR 8[rax], rbx
	mov	rcx, QWORD PTR -112[rbp]
	mov	rbx, QWORD PTR -104[rbp]
	mov	QWORD PTR 16[rax], rcx
	mov	QWORD PTR 24[rax], rbx
	mov	rcx, QWORD PTR -96[rbp]
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 32[rax], rcx
	mov	QWORD PTR 40[rax], rbx
	mov	rcx, QWORD PTR -80[rbp]
	mov	rbx, QWORD PTR -72[rbp]
	mov	QWORD PTR 48[rax], rcx
	mov	QWORD PTR 56[rax], rbx
	mov	rcx, QWORD PTR -64[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	mov	QWORD PTR 64[rax], rcx
	mov	QWORD PTR 72[rax], rbx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -40[rbp]
	mov	QWORD PTR 80[rax], rcx
	mov	QWORD PTR 88[rax], rbx
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 96[rax], edx
	lea	rcx, -1136[rbp]
	mov	eax, DWORD PTR -1180[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	esi, 61
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -1160[rbp], rax
	mov	rax, QWORD PTR -1160[rbp]
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1160[rbp]
	add	rax, 1
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	edx, DWORD PTR -1180[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -1152[rbp+rdx*4], eax
	mov	eax, DWORD PTR -1180[rbp]
	cdqe
	mov	edx, DWORD PTR -1152[rbp+rax*4]
	movsx	rax, edx
	imul	rax, rax, -2139062143
	shr	rax, 32
	add	eax, edx
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 8
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	ecx, DWORD PTR -1180[rbp]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -1180[rbp], 1
.L4:
	mov	rdx, QWORD PTR -1168[rbp]
	lea	rax, -128[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR -1152[rbp]
	movzx	eax, al
	sal	eax, 24
	or	DWORD PTR -1176[rbp], eax
	mov	eax, DWORD PTR -1148[rbp]
	movzx	eax, al
	sal	eax, 16
	or	DWORD PTR -1176[rbp], eax
	mov	eax, DWORD PTR -1144[rbp]
	movzx	eax, al
	sal	eax, 8
	or	DWORD PTR -1176[rbp], eax
	mov	eax, DWORD PTR -1140[rbp]
	movzx	eax, al
	or	DWORD PTR -1176[rbp], eax
	mov	rax, QWORD PTR -1168[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L9
	mov	eax, 255
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -1176[rbp]
.L10:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	read_version, .-read_version
	.section	.rodata
.LC5:
	.string	"version is 0x%x.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -116[rbp], 0
	lea	rax, -112[rbp]
	movabs	rdx, 7306917975832753199
	movabs	rcx, 8028074745930342252
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rax], rcx
	mov	DWORD PTR 16[rax], 1852386926
	mov	WORD PTR 20[rax], 105
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	read_version
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"32783.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"open file[%s] failed \012\000"
	.align	2
.LC2:
	.ascii	" out of the max index[%d] \012\000"
	.align	2
.LC3:
	.ascii	"result[str %s], \000"
	.align	2
.LC4:
	.ascii	"    --  int[%d]:[%d]\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_version, %function
read_version:
	@ args = 0, pretend = 0, frame = 1152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1152
	str	r0, [fp, #-1152]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1144]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-1140]
	ldr	r1, .L12+4
	ldr	r0, [fp, #-1152]
	bl	fopen
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	bne	.L2
	ldr	r1, [fp, #-1152]
	ldr	r0, .L12+8
	bl	printf
	mov	r3, #255
	b	.L10
.L2:
	mov	r3, #120
	strb	r3, [fp, #-9]
	b	.L4
.L8:
	ldr	r3, [fp, #-1144]
	cmp	r3, #3
	ble	.L5
	ldr	r1, [fp, #-1144]
	ldr	r0, .L12+12
	bl	printf
	ldr	r0, [fp, #-1136]
	bl	fclose
	mov	r3, #255
	b	.L10
.L5:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L6
	nop
.L7:
	ldr	r0, [fp, #-1136]
	bl	fgetc
	str	r0, [fp, #-1132]
	ldr	r3, [fp, #-1132]
	cmp	r3, #10
	beq	.L6
	ldr	r3, [fp, #-1132]
	cmn	r3, #1
	bne	.L7
.L6:
	sub	r1, fp, #1104
	sub	r1, r1, #4
	ldr	r2, [fp, #-1144]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r0, r3
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, r3
	bl	memcpy
	sub	r1, fp, #1104
	sub	r1, r1, #4
	ldr	r2, [fp, #-1144]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, #61
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-1128]
	ldr	r3, [fp, #-1128]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L12+16
	bl	printf
	ldr	r3, [fp, #-1128]
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-1144]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-1120]
	ldr	r3, [fp, #-1144]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1120]
	ldr	r3, .L12+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	mov	r2, r1
	ldr	r1, [fp, #-1144]
	ldr	r0, .L12+24
	bl	printf
	ldr	r3, [fp, #-1144]
	add	r3, r3, #1
	str	r3, [fp, #-1144]
.L4:
	sub	r3, fp, #108
	ldr	r2, [fp, #-1136]
	mov	r1, #100
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-1124]
	and	r3, r3, #255
	lsl	r3, r3, #24
	mov	r2, r3
	ldr	r3, [fp, #-1140]
	orr	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1120]
	and	r3, r3, #255
	lsl	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #-1140]
	orr	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1116]
	and	r3, r3, #255
	lsl	r3, r3, #8
	mov	r2, r3
	ldr	r3, [fp, #-1140]
	orr	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1112]
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-1140]
	orr	r3, r3, r2
	str	r3, [fp, #-1140]
	ldr	r0, [fp, #-1136]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	mov	r3, #255
	b	.L10
.L9:
	ldr	r3, [fp, #-1140]
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	-2139062143
	.word	.LC4
	.size	read_version, .-read_version
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/tmp/cgel_version.ini\000"
	.align	2
.LC7:
	.ascii	"version is 0x%x.\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	sub	r3, fp, #108
	ldr	r2, .L17+4
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	sub	r3, fp, #108
	mov	r0, r3
	bl	read_version
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r1, [fp, #-112]
	ldr	r0, .L17+8
	bl	printf
	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	.LC8
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
