	.file	"206394179.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Xilinx ZynqMP FPGA Manager"
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"/sys/class/fpga_manager/fpga0/name"
.LC3:
	.string	"Error! opening file"
.LC4:
	.string	"%[^\n]"
	.text
	.globl	fpga_getplatform
	.type	fpga_getplatform, @function
fpga_getplatform:
.LFB6:
	.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
	lea	rax, .LC0[rip]
	mov	QWORD PTR -128[rbp], rax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L2
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	mov	eax, 1
	jmp	.L5
.L3:
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fpga_getplatform, .-fpga_getplatform
	.section	.rodata
	.align 8
.LC5:
	.string	"\n%s: FPGA Utility for Loading/reading PL Configuration\n\n"
	.align 8
.LC6:
	.string	"Usage:\t%s -b <bin file path> -o <dtbo file path>\n\r"
	.align 8
.LC7:
	.string	"Options: -b <binfile>\t\t(Bin file path)\n"
	.align 8
.LC8:
	.string	"         -o <dtbofile>\t\t(DTBO file path)\n"
	.align 8
.LC9:
	.string	"         -f <flags>\t\tOptional: <Bitstream type flags>\n"
	.align 8
.LC10:
	.string	"\t\t\t\t   f := <Full | Partial > \n"
.LC11:
	.string	"\t\t\t\tDefault: <Full>\n"
	.align 8
.LC12:
	.string	"\t  -s <secure flags>\tOptional: <Secure flags>\n"
	.align 8
.LC13:
	.string	"\t\t\t\t   s := <AuthDDR | AuthOCM | EnUsrKey | EnDevKey | AuthEnUsrKeyDDR | AuthEnUsrKeyOCM | AuthEnDevKeyDDR | AuthEnDevKeyOCM>\n"
	.align 8
.LC14:
	.string	"\t  -k <AesKey>\t\tOptional: <AES User Key>\n"
	.align 8
.LC15:
	.string	"\t  -r <Readback> \tOptional: <file name>\n"
	.align 8
.LC16:
	.string	"\t\t\t\tDefault: By default Read back contents will be stored in readback.bin file\n"
	.align 8
.LC17:
	.string	"\t  -t\t\t\tOptional: <Readback Type>\n"
	.align 8
.LC18:
	.string	"\t\t\t\t   0 - Configuration Register readback\n"
	.align 8
.LC19:
	.string	"\t\t\t\t   1 - Configuration Data Frames readback\n"
	.align 8
.LC20:
	.string	"\t\t\t\tDefault: 0 (Configuration register readback)\n"
	.align 8
.LC21:
	.string	"\t  -R \t\t\tOptional: Remove overlay from a live tree\n"
.LC22:
	.string	" \n"
.LC23:
	.string	"Examples:\n"
	.align 8
.LC24:
	.string	"(Load Full bitstream using Overlay)\n"
	.align 8
.LC25:
	.string	"%s -b top.bit.bin -o can.dtbo\n"
	.align 8
.LC26:
	.string	"(Load Partial bitstream through the sysfs interface)\n"
	.align 8
.LC27:
	.string	"%s -b top.bit.bin -f Partial \n"
	.align 8
.LC28:
	.string	"(Load Authenticated bitstream through the sysfs interface)\n"
	.align 8
.LC29:
	.string	"%s -b top.bit.bin -f Full -s AuthDDR \n"
	.align 8
.LC30:
	.string	"(Load Parital Encrypted Userkey bitstream using Overlay)\n"
	.align 8
.LC31:
	.string	"%s -b top.bit.bin -o pl.dtbo -f Partial -s EnUsrKey -k <32byte key value>\n"
	.align 8
.LC32:
	.string	"(Read PL Configuration Registers)\n"
.LC33:
	.string	"%s -b top.bit.bin -r\n"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, 0
	call	fpga_getplatform
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 126
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 41
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 79
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 49
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
.L8:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 10
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -4[rbp], 0
	je	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC32[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L9:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_usage, .-print_usage
	.globl	gettime
	.type	gettime, @function
gettime:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rsi
	mov	r8, rdi
	mov	rsi, r8
	mov	rdi, r9
	mov	rdi, rax
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	sub	rax, rdx
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, rax
	movss	xmm0, DWORD PTR .LC34[rip]
	mulss	xmm1, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rax, rdx
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	movss	xmm2, DWORD PTR .LC34[rip]
	divss	xmm0, xmm2
	addss	xmm0, xmm1
	cvttss2si	eax, xmm0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gettime, .-gettime
	.section	.rodata
	.align 8
.LC35:
	.string	"cat /sys/class/fpga_manager/fpga0/state >> state.txt"
.LC36:
	.string	"operating"
.LC37:
	.string	"state.txt"
.LC38:
	.string	"rm state.txt"
	.text
	.globl	fpga_state
	.type	fpga_state, @function
fpga_state:
.LFB9:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC35[rip]
	call	system@PLT
	lea	rax, .LC36[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC37[rip]
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L13
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -18[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC38[rip]
	call	system@PLT
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -18[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L14
	mov	eax, 0
	jmp	.L16
.L14:
	mov	eax, 1
	jmp	.L16
.L13:
	mov	eax, 1
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fpga_state, .-fpga_state
	.section	.rodata
.LC39:
	.string	"Full"
.LC40:
	.string	"Partial"
.LC41:
	.string	"AuthDDR"
.LC42:
	.string	"AuthOCM"
.LC43:
	.string	"EnUsrKey"
.LC44:
	.string	"EnDevKey"
.LC45:
	.string	"AuthEnUsrKeyDDR"
.LC46:
	.string	"AuthEnUsrKeyOCM"
.LC47:
	.string	"AuthEnDevKeyDDR"
.LC48:
	.string	"AuthEnDevKeyOCM"
	.section	.data.rel.local,"aw"
	.align 32
	.type	flagdump, @object
	.size	flagdump, 176
flagdump:
	.quad	.LC39
	.long	0
	.zero	4
	.quad	.LC40
	.long	1
	.zero	4
	.quad	.LC41
	.long	2
	.zero	4
	.quad	.LC42
	.long	4
	.zero	4
	.quad	.LC43
	.long	8
	.zero	4
	.quad	.LC44
	.long	16
	.zero	4
	.quad	.LC45
	.long	10
	.zero	4
	.quad	.LC46
	.long	12
	.zero	4
	.quad	.LC47
	.long	18
	.zero	4
	.quad	.LC48
	.long	20
	.zero	4
	.zero	16
	.text
	.type	cmd_flags, @function
cmd_flags:
.LFB10:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	lea	rax, flagdump[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L19
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L21
.L20:
	add	QWORD PTR -8[rbp], 16
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
.L21:
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmd_flags, .-cmd_flags
	.type	isvalid_flags, @function
isvalid_flags:
.LFB11:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, edx
	mov	BYTE PTR -24[rbp], al
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	movzx	eax, BYTE PTR -24[rbp]
	xor	eax, 1
	test	al, al
	je	.L25
	lea	rax, flagdump[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L27
.L25:
	lea	rax, flagdump[rip+32]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L27
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L28
	mov	eax, 0
	jmp	.L29
.L28:
	movzx	eax, BYTE PTR -24[rbp]
	xor	eax, 1
	test	al, al
	je	.L30
	add	DWORD PTR -16[rbp], 1
	cmp	DWORD PTR -16[rbp], 2
	jne	.L30
	mov	eax, 1
	jmp	.L29
.L30:
	add	QWORD PTR -8[rbp], 16
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L31
	mov	eax, 1
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	isvalid_flags, .-isvalid_flags
	.section	.rodata
.LC49:
	.string	"readback"
.LC50:
	.string	"Error: Invalid arugments :%s\n"
.LC51:
	.string	"o:b:f:s:p:k:rt::Rh?:"
.LC52:
	.string	"mkdir -p /lib/firmware"
	.align 8
.LC53:
	.string	"/configfs/device-tree/overlays/full"
	.align 8
.LC54:
	.string	"rmdir /configfs/device-tree/overlays/full"
	.align 8
.LC55:
	.string	"Error: Overlay already exists in the live tree\n\r"
.LC56:
	.string	"\n\r"
	.align 8
.LC57:
	.string	"%s: For more information run %s -h\n"
.LC58:
	.string	"/configfs/device-tree/"
.LC59:
	.string	"mkdir /configfs"
	.align 8
.LC60:
	.string	"mount -t configfs configfs /configfs"
.LC61:
	.string	"cp %s /lib/firmware"
.LC62:
	.string	"/"
	.align 8
.LC63:
	.string	"echo %x > /sys/class/fpga_manager/fpga0/flags"
	.align 8
.LC64:
	.string	"echo %s > /sys/class/fpga_manager/fpga0/key"
	.align 8
.LC65:
	.string	"cd /configfs/device-tree/overlays/ && mkdir full"
	.align 8
.LC66:
	.string	"echo -n %s > /configfs/device-tree/overlays/full/path"
	.align 8
.LC67:
	.string	"cd /configfs/device-tree/overlays/ && mkdir full1"
	.align 8
.LC68:
	.string	"echo -n %s > /configfs/device-tree/overlays/full1/path"
.LC69:
	.string	"rm /lib/firmware/%s"
	.align 8
.LC70:
	.string	"echo %s > /sys/class/fpga_manager/fpga0/firmware"
	.align 8
.LC71:
	.string	"Time taken to load BIN is %f Milli Seconds\n\r"
	.align 8
.LC72:
	.string	"BIN FILE loaded through FPGA manager successfully\n\r"
	.align 8
.LC73:
	.string	"BIN FILE loading through FPGA manager failed\n\r"
.LC74:
	.string	"Invalid arugments :%s\n"
	.align 8
.LC75:
	.string	"For more information run %s -h\n"
	.align 8
.LC76:
	.string	"echo %x > /sys/module/zynqmp_fpga/parameters/readback_type"
	.align 8
.LC77:
	.string	"cat /sys/kernel/debug/fpga/fpga0/image >> %s.bin"
	.align 8
.LC78:
	.string	"Readback contents are stored in the file %s.bin\n\r"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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, 3208
	.cfi_offset 3, -24
	mov	DWORD PTR -3204[rbp], edi
	mov	QWORD PTR -3216[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	fpga_getplatform
	mov	DWORD PTR -3180[rbp], eax
	mov	QWORD PTR -3152[rbp], 0
	mov	QWORD PTR -3144[rbp], 0
	mov	QWORD PTR -3136[rbp], 0
	mov	QWORD PTR -3088[rbp], 0
	mov	QWORD PTR -3128[rbp], 0
	lea	rdx, -2880[rbp]
	mov	eax, 0
	mov	ecx, 100
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -3200[rbp], 0
	mov	DWORD PTR -3196[rbp], 0
	mov	DWORD PTR -3192[rbp], 0
	mov	DWORD PTR -3188[rbp], 0
	mov	DWORD PTR -3184[rbp], 0
	lea	rax, .LC49[rip]
	mov	QWORD PTR -3104[rbp], rax
	cmp	DWORD PTR -3204[rbp], 1
	jne	.L35
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdi, rax
	call	print_usage
	mov	eax, 1
	jmp	.L82
.L56:
	mov	eax, DWORD PTR -3176[rbp]
	sub	eax, 82
	cmp	eax, 34
	ja	.L36
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L38[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L38[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L38:
	.long	.L46-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L45-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L44-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L43-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L36-.L38
	.long	.L42-.L38
	.long	.L41-.L38
	.long	.L36-.L38
	.long	.L40-.L38
	.long	.L39-.L38
	.long	.L37-.L38
	.text
.L42:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -3144[rbp], rax
	mov	DWORD PTR -3196[rbp], 1
	jmp	.L35
.L45:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -3152[rbp], rax
	cmp	DWORD PTR -3196[rbp], 1
	je	.L35
	mov	DWORD PTR -3196[rbp], 2
	jmp	.L35
.L44:
	cmp	DWORD PTR -3196[rbp], 1
	jne	.L48
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -3096[rbp], rax
	mov	rdx, QWORD PTR -3096[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	cmd_flags
	mov	DWORD PTR -3200[rbp], eax
	jmp	.L49
.L48:
	cmp	DWORD PTR -3196[rbp], 2
	jne	.L49
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -3096[rbp], rax
	mov	rdx, QWORD PTR -3096[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	cmd_flags
	mov	DWORD PTR -3200[rbp], eax
.L49:
	mov	rcx, QWORD PTR -3096[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	isvalid_flags
	mov	DWORD PTR -3172[rbp], eax
	cmp	DWORD PTR -3172[rbp], 0
	je	.L50
	mov	edi, 1
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdi, rax
	call	print_usage
	mov	eax, -22
	jmp	.L82
.L50:
	mov	eax, DWORD PTR -3184[rbp]
	add	DWORD PTR -3200[rbp], eax
	jmp	.L35
.L39:
	cmp	DWORD PTR -3196[rbp], 1
	jne	.L51
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -3096[rbp], rax
	mov	rdx, QWORD PTR -3096[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	cmd_flags
	mov	DWORD PTR -3184[rbp], eax
	jmp	.L52
.L51:
	cmp	DWORD PTR -3196[rbp], 2
	jne	.L52
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -3096[rbp], rax
	mov	rdx, QWORD PTR -3096[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	cmd_flags
	mov	DWORD PTR -3184[rbp], eax
.L52:
	mov	rcx, QWORD PTR -3096[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	isvalid_flags
	mov	DWORD PTR -3172[rbp], eax
	cmp	DWORD PTR -3172[rbp], 0
	je	.L53
	mov	edi, 1
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdi, rax
	call	print_usage
	mov	eax, -22
	jmp	.L82
.L53:
	mov	eax, DWORD PTR -3184[rbp]
	add	DWORD PTR -3200[rbp], eax
	jmp	.L35
.L41:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -3128[rbp], rax
	jmp	.L35
.L43:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -3136[rbp], rax
	jmp	.L35
.L37:
	mov	rax, QWORD PTR optarg[rip]
	test	rax, rax
	jne	.L35
	mov	rax, QWORD PTR -3216[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L35
	mov	rax, QWORD PTR -3216[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -3188[rbp], eax
	jmp	.L35
.L40:
	mov	rax, QWORD PTR optarg[rip]
	test	rax, rax
	jne	.L55
	mov	rax, QWORD PTR -3216[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L55
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -3104[rbp], rax
.L55:
	mov	DWORD PTR -3196[rbp], 3
	jmp	.L35
.L46:
	mov	DWORD PTR -3192[rbp], 1
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdi, rax
	call	print_usage
	mov	eax, 1
	jmp	.L82
.L35:
	mov	rcx, QWORD PTR -3216[rbp]
	mov	eax, DWORD PTR -3204[rbp]
	lea	rdx, .LC51[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -3176[rbp], eax
	cmp	DWORD PTR -3176[rbp], -1
	jne	.L56
	lea	rdi, .LC52[rip]
	call	system@PLT
	cmp	DWORD PTR -3192[rbp], 0
	je	.L57
	lea	rax, .LC53[rip]
	mov	QWORD PTR -3064[rbp], rax
	lea	rdx, -3024[rbp]
	mov	rax, QWORD PTR -3064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L58
	mov	eax, DWORD PTR -3000[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L58
	lea	rdi, .LC54[rip]
	call	system@PLT
.L58:
	mov	eax, 0
	jmp	.L82
.L57:
	cmp	DWORD PTR -3196[rbp], 1
	jne	.L59
	lea	rax, .LC53[rip]
	mov	QWORD PTR -3064[rbp], rax
	lea	rdx, -3024[rbp]
	mov	rax, QWORD PTR -3064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L60
	mov	eax, DWORD PTR -3000[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L60
	lea	rdi, .LC55[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L82
.L60:
	cmp	DWORD PTR -3204[rbp], 4
	jg	.L61
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rbx, rax
	mov	edi, 22
	call	strerror@PLT
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L82
.L61:
	lea	rax, .LC58[rip]
	mov	QWORD PTR -3064[rbp], rax
	lea	rdx, -3024[rbp]
	mov	rax, QWORD PTR -3064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L62
	mov	eax, DWORD PTR -3000[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L63
.L62:
	lea	rdi, .LC59[rip]
	call	system@PLT
	lea	rdi, .LC60[rip]
	call	system@PLT
.L63:
	mov	rdx, QWORD PTR -3152[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC61[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rdx, QWORD PTR -3144[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC61[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rax, QWORD PTR -3144[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -3168[rbp], rax
	jmp	.L64
.L65:
	mov	rax, QWORD PTR -3080[rbp]
	mov	QWORD PTR -3120[rbp], rax
.L64:
	lea	rax, -3168[rbp]
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -3080[rbp], rax
	cmp	QWORD PTR -3080[rbp], 0
	jne	.L65
	mov	edx, DWORD PTR -3200[rbp]
	lea	rax, -2080[rbp]
	mov	ecx, edx
	lea	rdx, .LC63[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	eax, DWORD PTR -3200[rbp]
	and	eax, 8
	test	eax, eax
	je	.L66
	mov	rdx, QWORD PTR -3136[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC64[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
.L66:
	mov	eax, DWORD PTR -3200[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L67
	lea	rdi, .LC65[rip]
	call	system@PLT
	mov	rdx, QWORD PTR -3120[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC66[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -3040[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	cmp	QWORD PTR -3128[rbp], 0
	je	.L68
	mov	rdx, QWORD PTR -3128[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC61[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rax, QWORD PTR -3128[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -3160[rbp], rax
	jmp	.L69
.L70:
	mov	rax, QWORD PTR -3080[rbp]
	mov	QWORD PTR -3112[rbp], rax
.L69:
	lea	rax, -3160[rbp]
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -3080[rbp], rax
	cmp	QWORD PTR -3080[rbp], 0
	jne	.L70
	lea	rdi, .LC67[rip]
	call	system@PLT
	mov	rdx, QWORD PTR -3112[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC68[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L68
.L67:
	lea	rdi, .LC67[rip]
	call	system@PLT
	mov	rdx, QWORD PTR -3120[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC68[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -3040[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
.L68:
	lea	rax, -3056[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -3056[rbp]
	mov	rdx, QWORD PTR -3048[rbp]
	mov	rdi, QWORD PTR -3040[rbp]
	mov	rsi, QWORD PTR -3032[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	gettime
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -3072[rbp], xmm0
	mov	rdx, QWORD PTR -3120[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC69[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rax, QWORD PTR -3152[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -3168[rbp], rax
	jmp	.L71
.L72:
	mov	rax, QWORD PTR -3080[rbp]
	mov	QWORD PTR -3120[rbp], rax
.L71:
	lea	rax, -3168[rbp]
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -3080[rbp], rax
	cmp	QWORD PTR -3080[rbp], 0
	jne	.L72
	mov	rdx, QWORD PTR -3120[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC69[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L73
.L59:
	cmp	DWORD PTR -3196[rbp], 2
	jne	.L74
	cmp	DWORD PTR -3204[rbp], 2
	jg	.L75
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rbx, rax
	mov	edi, 22
	call	strerror@PLT
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L82
.L75:
	mov	rdx, QWORD PTR -3152[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC61[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	edx, DWORD PTR -3200[rbp]
	lea	rax, -2080[rbp]
	mov	ecx, edx
	lea	rdx, .LC63[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	eax, DWORD PTR -3200[rbp]
	and	eax, 8
	test	eax, eax
	je	.L76
	mov	rdx, QWORD PTR -3136[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC64[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
.L76:
	mov	rax, QWORD PTR -3152[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -3168[rbp], rax
	jmp	.L77
.L78:
	mov	rax, QWORD PTR -3080[rbp]
	mov	QWORD PTR -3120[rbp], rax
.L77:
	lea	rax, -3168[rbp]
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	call	strsep@PLT
	mov	QWORD PTR -3080[rbp], rax
	cmp	QWORD PTR -3080[rbp], 0
	jne	.L78
	mov	rdx, QWORD PTR -3120[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC70[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -3040[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	lea	rax, -3056[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -3056[rbp]
	mov	rdx, QWORD PTR -3048[rbp]
	mov	rdi, QWORD PTR -3040[rbp]
	mov	rsi, QWORD PTR -3032[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	call	gettime
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR -3072[rbp], xmm0
	mov	eax, 0
	call	fpga_state
	test	eax, eax
	jne	.L79
	mov	rax, QWORD PTR -3072[rbp]
	movq	xmm0, rax
	lea	rdi, .LC71[rip]
	mov	eax, 1
	call	printf@PLT
	lea	rdi, .LC72[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L80
.L79:
	lea	rdi, .LC73[rip]
	mov	eax, 0
	call	printf@PLT
.L80:
	mov	rdx, QWORD PTR -3120[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC69[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	jmp	.L73
.L74:
	cmp	DWORD PTR -3196[rbp], 3
	jne	.L73
	cmp	DWORD PTR -3188[rbp], 1
	jle	.L81
	mov	edi, 1
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC74[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -3216[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rsi, rax
	lea	rdi, .LC75[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -22
	jmp	.L82
.L81:
	mov	edx, DWORD PTR -3188[rbp]
	lea	rax, -2080[rbp]
	mov	ecx, edx
	lea	rdx, .LC76[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rdx, QWORD PTR -3104[rbp]
	lea	rax, -2080[rbp]
	mov	rcx, rdx
	lea	rdx, .LC77[rip]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -2080[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rax, QWORD PTR -3104[rbp]
	mov	rsi, rax
	lea	rdi, .LC78[rip]
	mov	eax, 0
	call	printf@PLT
.L73:
	mov	eax, 0
.L82:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC34:
	.long	1148846080
	.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	"206394179.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Xilinx ZynqMP FPGA Manager\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"/sys/class/fpga_manager/fpga0/name\000"
	.align	2
.LC3:
	.ascii	"Error! opening file\000"
	.align	2
.LC4:
	.ascii	"%[^\012]\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fpga_getplatform
	.syntax unified
	.arm
	.fpu softvfp
	.type	fpga_getplatform, %function
fpga_getplatform:
	@ 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, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	str	r3, [fp, #-116]
	ldr	r1, .L7+8
	ldr	r0, .L7+12
	bl	fopen
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L7+16
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L7+20
	ldr	r0, [fp, #-112]
	bl	__isoc99_fscanf
	ldr	r0, [fp, #-112]
	bl	fclose
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #1
	b	.L5
.L3:
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	fpga_getplatform, .-fpga_getplatform
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012%s: FPGA Utility for Loading/reading PL Configu"
	.ascii	"ration\012\012\000"
	.align	2
.LC7:
	.ascii	"Usage:\011%s -b <bin file path> -o <dtbo file path>"
	.ascii	"\012\015\000"
	.align	2
.LC8:
	.ascii	"Options: -b <binfile>\011\011(Bin file path)\012\000"
	.align	2
.LC9:
	.ascii	"         -o <dtbofile>\011\011(DTBO file path)\012\000"
	.align	2
.LC10:
	.ascii	"         -f <flags>\011\011Optional: <Bitstream typ"
	.ascii	"e flags>\012\000"
	.align	2
.LC11:
	.ascii	"\011\011\011\011   f := <Full | Partial > \012\000"
	.align	2
.LC12:
	.ascii	"\011\011\011\011Default: <Full>\012\000"
	.align	2
.LC13:
	.ascii	"\011  -s <secure flags>\011Optional: <Secure flags>"
	.ascii	"\012\000"
	.align	2
.LC14:
	.ascii	"\011\011\011\011   s := <AuthDDR | AuthOCM | EnUsrK"
	.ascii	"ey | EnDevKey | AuthEnUsrKeyDDR | AuthEnUsrKeyOCM |"
	.ascii	" AuthEnDevKeyDDR | AuthEnDevKeyOCM>\012\000"
	.align	2
.LC15:
	.ascii	"\011  -k <AesKey>\011\011Optional: <AES User Key>\012"
	.ascii	"\000"
	.align	2
.LC16:
	.ascii	"\011  -r <Readback> \011Optional: <file name>\012\000"
	.align	2
.LC17:
	.ascii	"\011\011\011\011Default: By default Read back conte"
	.ascii	"nts will be stored in readback.bin file\012\000"
	.align	2
.LC18:
	.ascii	"\011  -t\011\011\011Optional: <Readback Type>\012\000"
	.align	2
.LC19:
	.ascii	"\011\011\011\011   0 - Configuration Register readb"
	.ascii	"ack\012\000"
	.align	2
.LC20:
	.ascii	"\011\011\011\011   1 - Configuration Data Frames re"
	.ascii	"adback\012\000"
	.align	2
.LC21:
	.ascii	"\011\011\011\011Default: 0 (Configuration register "
	.ascii	"readback)\012\000"
	.align	2
.LC22:
	.ascii	"\011  -R \011\011\011Optional: Remove overlay from "
	.ascii	"a live tree\012\000"
	.align	2
.LC23:
	.ascii	" \012\000"
	.align	2
.LC24:
	.ascii	"Examples:\012\000"
	.align	2
.LC25:
	.ascii	"(Load Full bitstream using Overlay)\012\000"
	.align	2
.LC26:
	.ascii	"%s -b top.bit.bin -o can.dtbo\012\000"
	.align	2
.LC27:
	.ascii	"(Load Partial bitstream through the sysfs interface"
	.ascii	")\012\000"
	.align	2
.LC28:
	.ascii	"%s -b top.bit.bin -f Partial \012\000"
	.align	2
.LC29:
	.ascii	"(Load Authenticated bitstream through the sysfs int"
	.ascii	"erface)\012\000"
	.align	2
.LC30:
	.ascii	"%s -b top.bit.bin -f Full -s AuthDDR \012\000"
	.align	2
.LC31:
	.ascii	"(Load Parital Encrypted Userkey bitstream using Ove"
	.ascii	"rlay)\012\000"
	.align	2
.LC32:
	.ascii	"%s -b top.bit.bin -o pl.dtbo -f Partial -s EnUsrKey"
	.ascii	" -k <32byte key value>\012\000"
	.align	2
.LC33:
	.ascii	"(Read PL Configuration Registers)\012\000"
	.align	2
.LC34:
	.ascii	"%s -b top.bit.bin -r\012\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_usage:
	@ 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]
	bl	fpga_getplatform
	str	r0, [fp, #-8]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+8
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L12+12
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L12+16
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L12+20
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L12+24
	bl	fwrite
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L12+28
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L12+32
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #126
	mov	r1, #1
	ldr	r0, .L12+36
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #41
	mov	r1, #1
	ldr	r0, .L12+40
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L12+44
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #79
	mov	r1, #1
	ldr	r0, .L12+48
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L12+52
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L12+56
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L12+60
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #49
	mov	r1, #1
	ldr	r0, .L12+64
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L12+68
	bl	fwrite
.L10:
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L12+72
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #1
	ldr	r0, .L12+76
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L12+80
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+84
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L12+88
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+92
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L12+96
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+100
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L12+104
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+108
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L12+112
	bl	fwrite
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L12+116
	mov	r0, r3
	bl	fprintf
.L11:
	ldr	r3, .L12
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L12+72
	bl	fwrite
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	stderr
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	print_usage, .-print_usage
	.global	__aeabi_i2f
	.global	__aeabi_fmul
	.global	__aeabi_fdiv
	.global	__aeabi_fadd
	.global	__aeabi_f2iz
	.align	2
	.global	gettime
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettime, %function
gettime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	sub	ip, fp, #20
	stm	ip, {r0, r1}
	sub	r1, fp, #28
	stm	r1, {r2, r3}
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L16
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L16
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L17:
	.align	2
.L16:
	.word	1148846080
	.size	gettime, .-gettime
	.section	.rodata
	.align	2
.LC35:
	.ascii	"cat /sys/class/fpga_manager/fpga0/state >> state.tx"
	.ascii	"t\000"
	.align	2
.LC36:
	.ascii	"operating\000"
	.align	2
.LC37:
	.ascii	"state.txt\000"
	.align	2
.LC38:
	.ascii	"rm state.txt\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fpga_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	fpga_state, %function
fpga_state:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L24+4
	bl	system
	ldr	r3, .L24+8
	str	r3, [fp, #-28]
	ldr	r1, .L24+12
	ldr	r0, .L24+16
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #20
	ldr	r2, [fp, #-24]
	mov	r1, #10
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r0, .L24+20
	bl	system
	sub	r3, fp, #20
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	mov	r3, #0
	b	.L22
.L20:
	mov	r3, #1
	b	.L22
.L19:
	mov	r3, #1
.L22:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC39
	.word	.LC35
	.word	.LC36
	.word	.LC1
	.word	.LC37
	.word	.LC38
	.size	fpga_state, .-fpga_state
	.section	.rodata
	.align	2
.LC40:
	.ascii	"Full\000"
	.align	2
.LC41:
	.ascii	"Partial\000"
	.align	2
.LC42:
	.ascii	"AuthDDR\000"
	.align	2
.LC43:
	.ascii	"AuthOCM\000"
	.align	2
.LC44:
	.ascii	"EnUsrKey\000"
	.align	2
.LC45:
	.ascii	"EnDevKey\000"
	.align	2
.LC46:
	.ascii	"AuthEnUsrKeyDDR\000"
	.align	2
.LC47:
	.ascii	"AuthEnUsrKeyOCM\000"
	.align	2
.LC48:
	.ascii	"AuthEnDevKeyDDR\000"
	.align	2
.LC49:
	.ascii	"AuthEnDevKeyOCM\000"
	.data
	.align	2
	.type	flagdump, %object
	.size	flagdump, 88
flagdump:
	.word	.LC40
	.word	0
	.word	.LC41
	.word	1
	.word	.LC42
	.word	2
	.word	.LC43
	.word	4
	.word	.LC44
	.word	8
	.word	.LC45
	.word	16
	.word	.LC46
	.word	10
	.word	.LC47
	.word	12
	.word	.LC48
	.word	18
	.word	.LC49
	.word	20
	.space	8
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_flags, %function
cmd_flags:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L32
	str	r3, [fp, #-12]
	b	.L27
.L30:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	b	.L29
.L28:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
.L29:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	flagdump
	.size	cmd_flags, .-cmd_flags
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isvalid_flags, %function
isvalid_flags:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, r2
	strb	r3, [fp, #-29]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L42
	str	r3, [fp, #-12]
	b	.L37
.L35:
	ldr	r3, .L42+4
	str	r3, [fp, #-12]
	b	.L37
.L41:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	mov	r3, #0
	b	.L39
.L38:
	ldrb	r3, [fp, #-29]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L40
	mov	r3, #1
	b	.L39
.L40:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	str	r3, [fp, #-12]
.L37:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	mov	r3, #1
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	flagdump
	.word	flagdump+16
	.size	isvalid_flags, .-isvalid_flags
	.section	.rodata
	.align	2
.LC50:
	.ascii	"readback\000"
	.align	2
.LC51:
	.ascii	"Error: Invalid arugments :%s\012\000"
	.align	2
.LC52:
	.ascii	"o:b:f:s:p:k:rt::Rh?:\000"
	.align	2
.LC53:
	.ascii	"mkdir -p /lib/firmware\000"
	.align	2
.LC54:
	.ascii	"/configfs/device-tree/overlays/full\000"
	.align	2
.LC55:
	.ascii	"rmdir /configfs/device-tree/overlays/full\000"
	.align	2
.LC56:
	.ascii	"Error: Overlay already exists in the live tree\012\015"
	.ascii	"\000"
	.align	2
.LC57:
	.ascii	"\012\015\000"
	.align	2
.LC58:
	.ascii	"%s: For more information run %s -h\012\000"
	.align	2
.LC59:
	.ascii	"/configfs/device-tree/\000"
	.align	2
.LC60:
	.ascii	"mkdir /configfs\000"
	.align	2
.LC61:
	.ascii	"mount -t configfs configfs /configfs\000"
	.align	2
.LC62:
	.ascii	"cp %s /lib/firmware\000"
	.align	2
.LC63:
	.ascii	"/\000"
	.align	2
.LC64:
	.ascii	"echo %x > /sys/class/fpga_manager/fpga0/flags\000"
	.align	2
.LC65:
	.ascii	"echo %s > /sys/class/fpga_manager/fpga0/key\000"
	.align	2
.LC66:
	.ascii	"cd /configfs/device-tree/overlays/ && mkdir full\000"
	.align	2
.LC67:
	.ascii	"echo -n %s > /configfs/device-tree/overlays/full/pa"
	.ascii	"th\000"
	.align	2
.LC68:
	.ascii	"cd /configfs/device-tree/overlays/ && mkdir full1\000"
	.align	2
.LC69:
	.ascii	"echo -n %s > /configfs/device-tree/overlays/full1/p"
	.ascii	"ath\000"
	.global	__aeabi_i2d
	.align	2
.LC70:
	.ascii	"rm /lib/firmware/%s\000"
	.align	2
.LC71:
	.ascii	"echo %s > /sys/class/fpga_manager/fpga0/firmware\000"
	.align	2
.LC72:
	.ascii	"Time taken to load BIN is %f Milli Seconds\012\015\000"
	.align	2
.LC73:
	.ascii	"BIN FILE loaded through FPGA manager successfully\012"
	.ascii	"\015\000"
	.align	2
.LC74:
	.ascii	"BIN FILE loading through FPGA manager failed\012\015"
	.ascii	"\000"
	.align	2
.LC75:
	.ascii	"Invalid arugments :%s\012\000"
	.align	2
.LC76:
	.ascii	"For more information run %s -h\012\000"
	.align	2
.LC77:
	.ascii	"echo %x > /sys/module/zynqmp_fpga/parameters/readba"
	.ascii	"ck_type\000"
	.align	2
.LC78:
	.ascii	"cat /sys/kernel/debug/fpga/fpga0/image >> %s.bin\000"
	.align	2
.LC79:
	.ascii	"Readback contents are stored in the file %s.bin\012"
	.ascii	"\015\000"
	.align	2
.LC80:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2664
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2656
	sub	sp, sp, #12
	str	r0, [fp, #-2672]
	str	r1, [fp, #-2676]
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	fpga_getplatform
	str	r0, [fp, #-2604]
	mov	r3, #0
	str	r3, [fp, #-2656]
	mov	r3, #0
	str	r3, [fp, #-2652]
	mov	r3, #0
	str	r3, [fp, #-2648]
	mov	r3, #0
	str	r3, [fp, #-2600]
	mov	r3, #0
	str	r3, [fp, #-2644]
	sub	r3, fp, #2448
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-2640]
	mov	r3, #0
	str	r3, [fp, #-2636]
	mov	r3, #0
	str	r3, [fp, #-2632]
	mov	r3, #0
	str	r3, [fp, #-2628]
	mov	r3, #0
	str	r3, [fp, #-2624]
	ldr	r3, .L96+4
	str	r3, [fp, #-2612]
	ldr	r3, [fp, #-2672]
	cmp	r3, #1
	bne	.L47
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r0, r3
	bl	print_usage
	mov	r3, #1
	b	.L94
.L68:
	ldr	r3, [fp, #-2596]
	sub	r3, r3, #82
	cmp	r3, #34
	ldrls	pc, [pc, r3, asl #2]
	b	.L48
.L50:
	.word	.L58
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L57
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L56
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L55
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L54
	.word	.L53
	.word	.L48
	.word	.L52
	.word	.L51
	.word	.L49
.L54:
	ldr	r3, .L96+8
	ldr	r3, [r3]
	str	r3, [fp, #-2652]
	mov	r3, #1
	str	r3, [fp, #-2636]
	b	.L47
.L57:
	ldr	r3, .L96+8
	ldr	r3, [r3]
	str	r3, [fp, #-2656]
	ldr	r3, [fp, #-2636]
	cmp	r3, #1
	beq	.L47
	mov	r3, #2
	str	r3, [fp, #-2636]
	b	.L47
.L56:
	ldr	r3, [fp, #-2636]
	cmp	r3, #1
	bne	.L60
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-2608]
	ldr	r1, [fp, #-2608]
	ldr	r0, [fp, #-2672]
	bl	cmd_flags
	str	r0, [fp, #-2640]
	b	.L61
.L60:
	ldr	r3, [fp, #-2636]
	cmp	r3, #2
	bne	.L61
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-2608]
	ldr	r1, [fp, #-2608]
	ldr	r0, [fp, #-2672]
	bl	cmd_flags
	str	r0, [fp, #-2640]
.L61:
	mov	r2, #0
	ldr	r1, [fp, #-2608]
	ldr	r0, [fp, #-2672]
	bl	isvalid_flags
	str	r0, [fp, #-2584]
	ldr	r3, [fp, #-2584]
	cmp	r3, #0
	beq	.L62
	mov	r0, #1
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L96+12
	bl	printf
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r0, r3
	bl	print_usage
	mvn	r3, #21
	b	.L94
.L62:
	ldr	r2, [fp, #-2640]
	ldr	r3, [fp, #-2624]
	add	r3, r2, r3
	str	r3, [fp, #-2640]
	b	.L47
.L51:
	ldr	r3, [fp, #-2636]
	cmp	r3, #1
	bne	.L63
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-2608]
	ldr	r1, [fp, #-2608]
	ldr	r0, [fp, #-2672]
	bl	cmd_flags
	str	r0, [fp, #-2624]
	b	.L64
.L63:
	ldr	r3, [fp, #-2636]
	cmp	r3, #2
	bne	.L64
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-2608]
	ldr	r1, [fp, #-2608]
	ldr	r0, [fp, #-2672]
	bl	cmd_flags
	str	r0, [fp, #-2624]
.L64:
	mov	r2, #1
	ldr	r1, [fp, #-2608]
	ldr	r0, [fp, #-2672]
	bl	isvalid_flags
	str	r0, [fp, #-2584]
	ldr	r3, [fp, #-2584]
	cmp	r3, #0
	beq	.L65
	mov	r0, #1
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L96+12
	bl	printf
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r0, r3
	bl	print_usage
	mvn	r3, #21
	b	.L94
.L65:
	ldr	r2, [fp, #-2640]
	ldr	r3, [fp, #-2624]
	add	r3, r2, r3
	str	r3, [fp, #-2640]
	b	.L47
.L53:
	ldr	r3, .L96+8
	ldr	r3, [r3]
	str	r3, [fp, #-2644]
	b	.L47
.L55:
	ldr	r3, .L96+8
	ldr	r3, [r3]
	str	r3, [fp, #-2648]
	b	.L47
.L49:
	ldr	r3, .L96+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-2676]
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-2676]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2628]
	b	.L47
.L52:
	ldr	r3, .L96+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-2676]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-2612]
.L67:
	mov	r3, #3
	str	r3, [fp, #-2636]
	b	.L47
.L58:
	mov	r3, #1
	str	r3, [fp, #-2632]
	b	.L47
.L48:
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r0, r3
	bl	print_usage
	mov	r3, #1
	b	.L94
.L47:
	ldr	r2, .L96+16
	ldr	r1, [fp, #-2676]
	ldr	r0, [fp, #-2672]
	bl	getopt
	str	r0, [fp, #-2596]
	ldr	r3, [fp, #-2596]
	cmn	r3, #1
	bne	.L68
	ldr	r0, .L96+20
	bl	system
	ldr	r3, [fp, #-2632]
	cmp	r3, #0
	beq	.L69
	ldr	r3, .L96+24
	str	r3, [fp, #-2588]
	sub	r3, fp, #2544
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-2588]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-2540]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L70
	ldr	r0, .L96+28
	bl	system
.L70:
	mov	r3, #0
	b	.L94
.L69:
	ldr	r3, [fp, #-2636]
	cmp	r3, #1
	bne	.L71
	ldr	r3, .L96+24
	str	r3, [fp, #-2588]
	sub	r3, fp, #2544
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-2588]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	ldr	r3, [fp, #-2540]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L72
	ldr	r0, .L96+32
	bl	printf
	mov	r3, #1
	b	.L94
.L72:
	ldr	r3, [fp, #-2672]
	cmp	r3, #4
	bgt	.L73
	ldr	r0, .L96+36
	bl	printf
	mov	r0, #22
	bl	strerror
	mov	r4, r0
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L96+40
	bl	printf
	mov	r3, #1
	b	.L94
.L73:
	ldr	r3, .L96+44
	str	r3, [fp, #-2588]
	sub	r3, fp, #2544
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-2588]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L74
	ldr	r3, [fp, #-2540]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L75
.L74:
	ldr	r0, .L96+48
	bl	system
	ldr	r0, .L96+52
	bl	system
.L75:
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2656]
	ldr	r2, .L96+56
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2652]
	ldr	r2, .L96+56
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r0, [fp, #-2652]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-2664]
	b	.L76
.L77:
	ldr	r3, [fp, #-2592]
	str	r3, [fp, #-2620]
.L76:
	sub	r3, fp, #2640
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L96+60
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-2592]
	ldr	r3, [fp, #-2592]
	cmp	r3, #0
	bne	.L77
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2640]
	ldr	r2, .L96+64
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-2640]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L78
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2648]
	ldr	r2, .L96+68
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L78:
	ldr	r3, [fp, #-2640]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L79
	ldr	r0, .L96+72
	bl	system
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2620]
	ldr	r2, .L96+76
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2544
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-2644]
	cmp	r3, #0
	beq	.L80
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2644]
	ldr	r2, .L96+56
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r0, [fp, #-2644]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-2660]
	b	.L81
.L82:
	ldr	r3, [fp, #-2592]
	str	r3, [fp, #-2616]
.L81:
	sub	r3, fp, #2640
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L96+60
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-2592]
	ldr	r3, [fp, #-2592]
	cmp	r3, #0
	bne	.L82
	ldr	r0, .L96+80
	bl	system
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2616]
	ldr	r2, .L96+84
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L80
.L79:
	ldr	r0, .L96+80
	bl	system
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2620]
	ldr	r2, .L96+84
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2544
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L80:
	sub	r3, fp, #2560
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #2560
	sub	r3, r3, #12
	ldm	r3, {r2, r3}
	sub	r1, fp, #2544
	sub	r1, r1, #12
	sub	r1, r1, #8
	ldm	r1, {r0, r1}
	bl	gettime
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-2580]
	str	r3, [fp, #-2576]
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2620]
	ldr	r2, .L96+88
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r0, [fp, #-2656]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-2664]
	b	.L83
.L84:
	ldr	r3, [fp, #-2592]
	str	r3, [fp, #-2620]
.L83:
	sub	r3, fp, #2640
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L96+60
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-2592]
	ldr	r3, [fp, #-2592]
	cmp	r3, #0
	bne	.L84
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2620]
	ldr	r2, .L96+88
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L85
.L71:
	ldr	r3, [fp, #-2636]
	cmp	r3, #2
	bne	.L86
	ldr	r3, [fp, #-2672]
	cmp	r3, #2
	bgt	.L87
	mov	r0, #22
	bl	strerror
	mov	r4, r0
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L96+40
	bl	printf
	mov	r3, #1
	b	.L94
.L87:
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2656]
	ldr	r2, .L96+56
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2640]
	ldr	r2, .L96+64
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-2640]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L88
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2648]
	ldr	r2, .L96+68
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
.L88:
	ldr	r0, [fp, #-2656]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-2664]
	b	.L89
.L90:
	ldr	r3, [fp, #-2592]
	str	r3, [fp, #-2620]
.L89:
	sub	r3, fp, #2640
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r1, .L96+60
	mov	r0, r3
	bl	strsep
	str	r0, [fp, #-2592]
	ldr	r3, [fp, #-2592]
	cmp	r3, #0
	bne	.L90
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2620]
	ldr	r2, .L96+92
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2544
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	sub	r3, fp, #2560
	sub	r3, r3, #12
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #2560
	sub	r3, r3, #12
	ldm	r3, {r2, r3}
	sub	r1, fp, #2544
	sub	r1, r1, #12
	sub	r1, r1, #8
	ldm	r1, {r0, r1}
	bl	gettime
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-2580]
	str	r3, [fp, #-2576]
	bl	fpga_state
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	ldr	r2, [fp, #-2580]
	ldr	r3, [fp, #-2576]
	ldr	r0, .L96+96
	bl	printf
	ldr	r0, .L96+100
	bl	printf
	b	.L92
.L91:
	ldr	r0, .L96+104
	bl	printf
.L92:
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2620]
	ldr	r2, .L96+88
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	b	.L85
.L86:
	ldr	r3, [fp, #-2636]
	cmp	r3, #3
	bne	.L85
	ldr	r3, [fp, #-2628]
	cmp	r3, #1
	ble	.L93
	mov	r0, #1
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L96+108
	bl	printf
	ldr	r3, [fp, #-2676]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L96+112
	bl	printf
	mvn	r3, #21
	b	.L94
.L93:
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2628]
	ldr	r2, .L96+116
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2612]
	ldr	r2, .L96+120
	mov	r1, #2048
	bl	snprintf
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	system
	ldr	r1, [fp, #-2612]
	ldr	r0, .L96+124
	bl	printf
.L85:
	mov	r3, #0
.L94:
	ldr	r2, .L96
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L95
	bl	__stack_chk_fail
.L95:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L97:
	.align	2
.L96:
	.word	.LC80
	.word	.LC50
	.word	optarg
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC61
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	.LC65
	.word	.LC66
	.word	.LC67
	.word	.LC68
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC79
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
