	.file	"109950.c"
	.intel_syntax noprefix
	.text
	.globl	shot_i
	.bss
	.align 32
	.type	shot_i, @object
	.size	shot_i, 4000000
shot_i:
	.zero	4000000
	.globl	shot_j
	.align 32
	.type	shot_j, @object
	.size	shot_j, 4000000
shot_j:
	.zero	4000000
	.globl	perm
	.align 32
	.type	perm, @object
	.size	perm, 4008
perm:
	.zero	4008
	.globl	X
	.align 32
	.type	X, @object
	.size	X, 8032032
X:
	.zero	8032032
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.text
	.globl	simanneal
	.type	simanneal, @function
simanneal:
.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, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	movsd	QWORD PTR -112[rbp], xmm0
	movsd	QWORD PTR -120[rbp], xmm1
	mov	DWORD PTR -104[rbp], esi
	mov	QWORD PTR -128[rbp], rdx
	mov	QWORD PTR -136[rbp], rcx
	mov	DWORD PTR -140[rbp], r8d
	mov	QWORD PTR -152[rbp], r9
	cmp	DWORD PTR -100[rbp], 2
	jle	.L33
	cmp	DWORD PTR -100[rbp], 1000
	jg	.L34
	mov	DWORD PTR -76[rbp], 1
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L5
.L10:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	DWORD PTR -92[rbp], eax
	jmp	.L6
.L9:
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	mov	DWORD PTR -88[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, shot_i[rip]
	mov	eax, DWORD PTR -92[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, shot_j[rip]
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -72[rbp], 1
	add	DWORD PTR -88[rbp], 1
.L7:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	cmp	DWORD PTR -88[rbp], eax
	jl	.L8
	add	DWORD PTR -92[rbp], 1
.L6:
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -60[rbp]
	add	eax, edx
	cmp	DWORD PTR -92[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -60[rbp]
	add	DWORD PTR -76[rbp], eax
	add	DWORD PTR -80[rbp], 1
.L5:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -140[rbp]
	jl	.L10
	mov	DWORD PTR -92[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -92[rbp], 1
.L11:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jle	.L12
	mov	DWORD PTR perm[rip], 0
	mov	eax, DWORD PTR -100[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	DWORD PTR [rdx+rax], 0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -56[rbp], xmm0
	mov	DWORD PTR -92[rbp], 1
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -92[rbp]
	add	edx, 1
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, perm[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movsd	xmm1, QWORD PTR -56[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	add	DWORD PTR -92[rbp], 1
.L13:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L14
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -120[rbp]
	divsd	xmm0, QWORD PTR -112[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	log@PLT
	movq	rax, xmm0
	movq	xmm0, QWORD PTR .LC1[rip]
	movq	xmm2, rax
	xorpd	xmm2, xmm0
	movapd	xmm0, xmm2
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -104[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR -120[rbp]
	movsd	QWORD PTR -32[rbp], xmm0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	pxor	xmm0, xmm0
	movsd	QWORD PTR [rdx+rax], xmm0
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	imul	rax, rax, 8016
	lea	rdx, X[rip]
	movsd	QWORD PTR [rax+rdx], xmm0
	add	DWORD PTR -92[rbp], 1
.L15:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jle	.L16
	mov	DWORD PTR -92[rbp], 1
	jmp	.L17
.L20:
	mov	DWORD PTR -88[rbp], 1
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -100[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	add	eax, edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, rdx
	movsd	xmm0, QWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	QWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -88[rbp], 1
.L18:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jle	.L19
	add	DWORD PTR -92[rbp], 1
.L17:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jle	.L20
	mov	DWORD PTR -84[rbp], 0
	jmp	.L21
.L29:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -84[rbp]
	mulsd	xmm0, QWORD PTR -40[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	exp@PLT
	movsd	xmm1, QWORD PTR -120[rbp]
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -32[rbp], xmm0
	call	rand@PLT
	sal	eax, 31
	mov	ebx, eax
	call	rand@PLT
	add	eax, ebx
	cdq
	idiv	DWORD PTR -72[rbp]
	mov	DWORD PTR -80[rbp], edx
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shot_i[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shot_j[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -88[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	movq	xmm1, QWORD PTR .LC1[rip]
	xorpd	xmm0, xmm1
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	subsd	xmm0, xmm1
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -64[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	subsd	xmm0, xmm1
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -64[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, perm[rip]
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, perm[rip]
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -92[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -64[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm1, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -64[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	addsd	xmm1, xmm0
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	addsd	xmm1, xmm0
	mov	eax, DWORD PTR -88[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -68[rbp]
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 1002
	add	rax, rdx
	lea	rdx, 0[0+rax*8]
	lea	rax, X[rip]
	movsd	xmm0, QWORD PTR [rdx+rax]
	addsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR -24[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	xmm0, QWORD PTR -24[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jbe	.L22
	movsd	xmm0, QWORD PTR -24[rbp]
	movq	xmm1, QWORD PTR .LC1[rip]
	xorpd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -32[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	call	exp@PLT
	movsd	QWORD PTR -160[rbp], xmm0
	call	rand@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -160[rbp]
	jbe	.L22
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, perm[rip]
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, perm[rip]
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L25
.L22:
	movsd	xmm0, QWORD PTR -56[rbp]
	addsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -48[rbp]
	comisd	xmm0, QWORD PTR -56[rbp]
	jbe	.L25
	movsd	xmm0, QWORD PTR -56[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L27
.L28:
	mov	eax, DWORD PTR -92[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, perm[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rcx
	sub	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -92[rbp], 1
.L27:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -100[rbp]
	jl	.L28
.L25:
	add	DWORD PTR -84[rbp], 1
.L21:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -104[rbp]
	jl	.L29
	jmp	.L1
.L33:
	nop
	jmp	.L1
.L34:
	nop
.L1:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	simanneal, .-simanneal
	.globl	lkh
	.type	lkh, @function
lkh:
.LFB7:
	.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
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lkh, .-lkh
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 464
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -452[rbp], 2
	mov	DWORD PTR -416[rbp], 0
	mov	DWORD PTR -412[rbp], 1
	lea	rsi, -452[rbp]
	lea	rcx, -416[rbp]
	lea	rdx, -448[rbp]
	movsd	xmm0, QWORD PTR .LC3[rip]
	mov	rax, QWORD PTR .LC4[rip]
	mov	r9, rsi
	mov	r8d, 1
	mov	esi, 4
	movapd	xmm1, xmm0
	movq	xmm0, rax
	mov	edi, 2
	call	simanneal
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC1:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.align 8
.LC2:
	.long	-4194304
	.long	1105199103
	.align 8
.LC3:
	.long	0
	.long	1079574528
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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	"109950.c"
	.text
	.comm	shot_i,4000000,4
	.comm	shot_j,4000000,4
	.comm	perm,4008,4
	.comm	X,8032032,8
	.comm	N,4,4
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_idivmod
	.global	__aeabi_dsub
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.align	2
	.global	simanneal
	.syntax unified
	.arm
	.fpu softvfp
	.type	simanneal, %function
simanneal:
	@ args = 28, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #96
	str	r0, [fp, #-112]
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	ble	.L33
	ldr	r3, [fp, #-112]
	cmp	r3, #1000
	bgt	.L34
	mov	r3, #1
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-92]
	b	.L5
.L10:
	ldr	r3, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-104]
	b	.L6
.L9:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	b	.L7
.L8:
	ldr	r1, .L35
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-104]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L35+4
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-100]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L7:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-100]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L6:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L9
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-92]
	add	r3, r3, #1
	str	r3, [fp, #-92]
.L5:
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #24]
	cmp	r2, r3
	blt	.L10
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L11
.L12:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L35+8
	ldr	r3, [fp, #-104]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L11:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	ble	.L12
	ldr	r3, .L35+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	ldr	r2, .L35+8
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L13
.L14:
	ldr	r2, .L35+8
	ldr	r3, [fp, #-104]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r1, .L35+8
	ldr	r1, [r1, r3, lsl #2]
	ldr	r0, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r0, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L13:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	blt	.L14
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	ldmib	fp, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	log
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	eor	r9, r3, #-2147483648
	ldr	r0, [fp, #12]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldmib	fp, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L15
.L16:
	ldr	r2, .L35+12
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r2, .L35+12
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	ip, .L35+12
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, ip, r3
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L15:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	ble	.L16
	mov	r3, #1
	str	r3, [fp, #-104]
	b	.L17
.L20:
	mov	r3, #1
	str	r3, [fp, #-100]
	b	.L18
.L19:
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldr	r2, [fp, #-112]
	mul	r2, r3, r2
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	add	r3, r2, r3
	lsl	r3, r3, #3
	ldr	r2, [fp, #16]
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	ip, .L35+12
	ldr	r2, [fp, #-104]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-100]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L18:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L17:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	ble	.L20
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L21
.L29:
	ldr	r0, [fp, #-96]
	bl	__aeabi_i2d
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	exp
	mov	r2, r0
	mov	r3, r1
	ldmib	fp, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #31
	mov	r8, r3
	bl	rand
	mov	r3, r0
	add	r3, r8, r3
	ldr	r1, [fp, #-84]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-92]
	ldr	r2, .L35
	ldr	r3, [fp, #-92]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-104]
	ldr	r2, .L35+4
	ldr	r3, [fp, #-92]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-100]
	ldr	r2, .L35+8
	ldr	r3, [fp, #-104]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-80]
	ldr	r2, .L35+8
	ldr	r3, [fp, #-100]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-80]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	mov	r6, r2
	eor	r7, r3, #-2147483648
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-80]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r2-r3}
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	ip, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	ip, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r1, .L35+8
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L35+8
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-80]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-104]
	sub	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	ip, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-76]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	sub	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	ip, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-80]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	ip, .L35+12
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-80]
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, ip, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r4, [fp, #-36]
	ldr	r3, [fp, #-32]
	eor	r5, r3, #-2147483648
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	exp
	mov	r8, r0
	mov	r9, r1
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	ldr	r2, .L35+16
	ldr	r3, .L35+20
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r1, .L35+8
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-80]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L35+8
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-76]
	str	r2, [r1, r3, lsl #2]
	b	.L25
.L22:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L27
.L28:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	ldr	r2, .L35+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #2
	ldr	r1, [fp, #20]
	add	r3, r1, r3
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L27:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	blt	.L28
.L25:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L21:
	ldr	r2, [fp, #-96]
	ldr	r3, [fp, #12]
	cmp	r2, r3
	blt	.L29
	b	.L1
.L33:
	nop
	b	.L1
.L34:
	nop
.L1:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L36:
	.align	2
.L35:
	.word	shot_i
	.word	shot_j
	.word	perm
	.word	X
	.word	-4194304
	.word	1105199103
	.size	simanneal, .-simanneal
	.align	2
	.global	lkh
	.syntax unified
	.arm
	.fpu softvfp
	.type	lkh, %function
lkh:
	@ 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]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	lkh, .-lkh
	.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 = 448
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #480
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-448]
	mov	r3, #0
	str	r3, [fp, #-408]
	mov	r3, #1
	str	r3, [fp, #-404]
	sub	r3, fp, #448
	str	r3, [sp, #24]
	mov	r3, #1
	str	r3, [sp, #20]
	sub	r3, fp, #408
	str	r3, [sp, #16]
	sub	r3, fp, #444
	str	r3, [sp, #12]
	mov	r3, #4
	str	r3, [sp, #8]
	mov	r2, #0
	ldr	r3, .L41+4
	stm	sp, {r2-r3}
	mov	r2, #0
	ldr	r3, .L41+8
	mov	r0, #2
	bl	simanneal
	mov	r3, #0
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC0
	.word	1079574528
	.word	1072693248
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
