	.file	"439573.c"
	.intel_syntax noprefix
	.text
	.local	entries
	.comm	entries,4,4
	.local	depth_max
	.comm	depth_max,4,4
	.globl	ran_array
	.bss
	.align 8
	.type	ran_array, @object
	.size	ran_array, 8
ran_array:
	.zero	8
	.globl	ordered_ran_array
	.align 8
	.type	ordered_ran_array, @object
	.size	ordered_ran_array, 8
ordered_ran_array:
	.zero	8
	.globl	ordered_target
	.align 8
	.type	ordered_target, @object
	.size	ordered_target, 8
ordered_target:
	.zero	8
	.globl	current
	.align 4
	.type	current, @object
	.size	current, 4
current:
	.zero	4
	.globl	depth
	.align 4
	.type	depth, @object
	.size	depth, 4
depth:
	.zero	4
	.globl	max_xor
	.align 4
	.type	max_xor, @object
	.size	max_xor, 4
max_xor:
	.zero	4
	.section	.rodata
.LC0:
	.string	"w+"
.LC1:
	.string	"FOO_main.c"
.LC2:
	.string	"//\n"
.LC3:
	.string	"#include <stdio.h>\n"
.LC4:
	.string	"#include <stdlib.h>\n"
	.align 8
.LC5:
	.string	"int main(int argc, char* argv[])\n"
.LC6:
	.string	"{\n"
.LC7:
	.string	"\tlong i=0;\n"
.LC8:
	.string	"\tlong j,k;\n"
.LC9:
	.string	"\tj=atol(argv[1]);\n"
.LC10:
	.string	"\tfor(k=0;k<j;k++){\n"
.LC11:
	.string	"\t__asm__( \n"
.LC12:
	.string	"\t\".align 4\\n\\t\"\n"
.LC13:
	.string	"\t\"b LP_%06d\\n\\t\"\n"
.LC14:
	.string	"\t\"LP_%06d:\\n\\t\"\n"
.LC15:
	.string	"\t);\n"
.LC16:
	.string	"\t}\n"
.LC17:
	.string	"\treturn 0;\n"
.LC18:
	.string	"}\n"
	.text
	.type	create_main, @function
create_main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR ran_array[rip]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -128[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 16
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rdx, QWORD PTR ordered_ran_array[rip]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rdx, QWORD PTR ran_array[rip]
	mov	rcx, QWORD PTR ordered_target[rip]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cdqe
	add	rax, 1
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -128[rbp], 1
.L2:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -132[rbp]
	jl	.L3
	mov	rdx, QWORD PTR ran_array[rip]
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -124[rbp], eax
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_main, .-create_main
	.section	.rodata
	.align 8
.LC19:
	.string	"generator needs one input number, argc = %d\n"
.LC20:
	.string	"  max_depth= %d\n"
	.align 8
.LC21:
	.string	"too many functions %d, must be less than %d\n"
	.align 8
.LC22:
	.string	"failed to malloc random array\n"
	.align 8
.LC23:
	.string	"failed to malloc ordered random array\n"
	.align 8
.LC24:
	.string	"failed to malloc ordered target array\n"
	.align 8
.LC25:
	.string	"failed to malloc temp random array\n"
	.align 8
.LC27:
	.string	" bad ranval = %d, max_depth = %d\n"
	.align 8
.LC28:
	.string	"too many values in temp_array, should be less than %d, we have %d\n"
	.align 8
.LC29:
	.string	"should have found %d random numbers generated but only found %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 1000000
	cmp	DWORD PTR -36[rbp], 1
	jg	.L7
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -20[rbp]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR ran_array[rip], rax
	mov	rax, QWORD PTR ran_array[rip]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR ordered_ran_array[rip], rax
	mov	rax, QWORD PTR ordered_ran_array[rip]
	test	rax, rax
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR ordered_target[rip], rax
	mov	rax, QWORD PTR ordered_target[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC25[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -32[rbp], 1
.L13:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	jl	.L14
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L16:
	call	drand48@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -28[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	add	DWORD PTR -32[rbp], 1
.L15:
	cmp	DWORD PTR -32[rbp], 99
	jle	.L16
	mov	DWORD PTR -32[rbp], 0
	jmp	.L17
.L22:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR .LC26[rip]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR -56[rbp], xmm1
	call	drand48@PLT
	mulsd	xmm0, QWORD PTR -56[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	js	.L18
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cmp	DWORD PTR -28[rbp], eax
	jl	.L20
.L18:
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -16[rbp]
	mov	edx, DWORD PTR -28[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	add	DWORD PTR -28[rbp], 1
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cmp	DWORD PTR -28[rbp], eax
	jl	.L20
	mov	DWORD PTR -28[rbp], 0
.L20:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L21
	mov	rdx, QWORD PTR ran_array[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -32[rbp], 1
.L17:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L22
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	jmp	.L23
.L25:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	js	.L24
	mov	rdx, QWORD PTR ordered_ran_array[rip]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR ordered_target[rip]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 2
	add	rdx, rcx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jle	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -16[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	add	DWORD PTR -32[rbp], 1
.L23:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	jl	.L25
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	je	.L26
	mov	eax, DWORD PTR -16[rbp]
	lea	esi, -1[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -24[rbp]
	mov	ecx, edx
	mov	edx, esi
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	rdx, QWORD PTR ran_array[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR ordered_target[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	create_main
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC26:
	.long	0
	.long	1076101120
	.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	"439573.c"
	.text
	.local	entries
	.comm	entries,4,4
	.local	depth_max
	.comm	depth_max,4,4
	.comm	ran_array,4,4
	.comm	ordered_ran_array,4,4
	.comm	ordered_target,4,4
	.global	current
	.bss
	.align	2
	.type	current, %object
	.size	current, 4
current:
	.space	4
	.global	depth
	.align	2
	.type	depth, %object
	.size	depth, 4
depth:
	.space	4
	.comm	max_xor,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w+\000"
	.align	2
.LC1:
	.ascii	"FOO_main.c\000"
	.align	2
.LC2:
	.ascii	"//\012\000"
	.align	2
.LC3:
	.ascii	"#include <stdio.h>\012\000"
	.align	2
.LC4:
	.ascii	"#include <stdlib.h>\012\000"
	.align	2
.LC5:
	.ascii	"int main(int argc, char* argv[])\012\000"
	.align	2
.LC6:
	.ascii	"{\012\000"
	.align	2
.LC7:
	.ascii	"\011long i=0;\012\000"
	.align	2
.LC8:
	.ascii	"\011long j,k;\012\000"
	.align	2
.LC9:
	.ascii	"\011j=atol(argv[1]);\012\000"
	.align	2
.LC10:
	.ascii	"\011for(k=0;k<j;k++){\012\000"
	.align	2
.LC11:
	.ascii	"\011__asm__( \012\000"
	.align	2
.LC12:
	.ascii	"\011\".align 4\\n\\t\"\012\000"
	.align	2
.LC13:
	.ascii	"\011\"b LP_%06d\\n\\t\"\012\000"
	.align	2
.LC14:
	.ascii	"\011\"LP_%06d:\\n\\t\"\012\000"
	.align	2
.LC15:
	.ascii	"\011);\012\000"
	.align	2
.LC16:
	.ascii	"\011}\012\000"
	.align	2
.LC17:
	.ascii	"\011return 0;\012\000"
	.align	2
.LC18:
	.ascii	"}\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_main, %function
create_main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	fopen
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L6+12
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L6+12
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L6+16
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L6+20
	bl	fwrite
	ldr	r1, [fp, #-116]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-116]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L6+24
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L6+28
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L6+32
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L6+36
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L6+40
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L6+44
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L6+48
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L6+52
	bl	fwrite
	ldr	r3, .L6+56
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+60
	ldr	r0, [fp, #-116]
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L2
.L3:
	ldr	r3, [fp, #-116]
	mov	r2, #16
	mov	r1, #1
	ldr	r0, .L6+52
	bl	fwrite
	ldr	r3, .L6+64
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+68
	ldr	r0, [fp, #-116]
	bl	fprintf
	ldr	r3, .L6+56
	ldr	r2, [r3]
	ldr	r3, .L6+72
	ldr	r1, [r3]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+60
	ldr	r0, [fp, #-116]
	bl	fprintf
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L2:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	blt	.L3
	ldr	r3, .L6+56
	ldr	r2, [r3]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L6+68
	ldr	r0, [fp, #-116]
	bl	fprintf
	ldr	r3, [fp, #-116]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L6+76
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L6+80
	bl	fwrite
	ldr	r1, [fp, #-116]
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-116]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L6+84
	bl	fwrite
	ldr	r3, [fp, #-116]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L6+88
	bl	fwrite
	ldr	r0, [fp, #-116]
	bl	fclose
	str	r0, [fp, #-112]
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC19
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	ran_array
	.word	.LC13
	.word	ordered_ran_array
	.word	.LC14
	.word	ordered_target
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	create_main, .-create_main
	.section	.rodata
	.align	2
.LC20:
	.ascii	"generator needs one input number, argc = %d\012\000"
	.align	2
.LC21:
	.ascii	"  max_depth= %d\012\000"
	.align	2
.LC22:
	.ascii	"too many functions %d, must be less than %d\012\000"
	.align	2
.LC23:
	.ascii	"failed to malloc random array\012\000"
	.align	2
.LC24:
	.ascii	"failed to malloc ordered random array\012\000"
	.align	2
.LC25:
	.ascii	"failed to malloc ordered target array\012\000"
	.align	2
.LC26:
	.ascii	"failed to malloc temp random array\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.global	__aeabi_dmul
	.align	2
.LC27:
	.ascii	" bad ranval = %d, max_depth = %d\012\000"
	.align	2
.LC28:
	.ascii	"too many values in temp_array, should be less than "
	.ascii	"%d, we have %d\012\000"
	.align	2
.LC29:
	.ascii	"should have found %d random numbers generated but o"
	.ascii	"nly found %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, .L30
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	bgt	.L9
	ldr	r1, [fp, #-48]
	ldr	r0, .L30+4
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L30+8
	bl	printf
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L10
	ldr	r3, .L30+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, .L30+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+20
	str	r2, [r3]
	ldr	r3, .L30+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L30+12
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L30+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+28
	str	r2, [r3]
	ldr	r3, .L30+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L30+12
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L30+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L30+36
	str	r2, [r3]
	ldr	r3, .L30+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L30+12
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L30+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L13:
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L30+12
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L30+44
	bl	fwrite
	mov	r0, #1
	bl	exit
.L14:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L15
.L16:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	blt	.L16
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L17
.L18:
	bl	drand48
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L17:
	ldr	r3, [fp, #-40]
	cmp	r3, #99
	ble	.L18
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L19
.L24:
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L30+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	bl	drand48
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	blt	.L20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	blt	.L22
.L20:
	ldr	r3, .L30+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	ldr	r1, .L30+52
	bl	fprintf
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	blt	.L22
	mov	r3, #0
	str	r3, [fp, #-36]
.L22:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L23
	ldr	r3, .L30+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L19:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L24
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L25
.L27:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L26
	ldr	r3, .L30+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, .L30+36
	ldr	r1, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L26
	ldr	r3, .L30+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L30+56
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L25:
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	cmp	r3, r2
	blt	.L27
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	beq	.L28
	ldr	r3, .L30+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	ldr	r1, .L30+60
	bl	fprintf
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, .L30+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, .L30+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r0, [fp, #-24]
	bl	create_main
	str	r0, [fp, #-16]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L31:
	.align	2
.L30:
	.word	1000000
	.word	.LC20
	.word	.LC21
	.word	stderr
	.word	.LC22
	.word	ran_array
	.word	.LC23
	.word	ordered_ran_array
	.word	.LC24
	.word	ordered_target
	.word	.LC25
	.word	.LC26
	.word	1076101120
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
