	.file	"340894.c"
	.intel_syntax noprefix
	.text
	.globl	g_out_packet_buf
	.bss
	.align 32
	.type	g_out_packet_buf, @object
	.size	g_out_packet_buf, 65
g_out_packet_buf:
	.zero	65
	.globl	g_in_packet_buf
	.align 32
	.type	g_in_packet_buf, @object
	.size	g_in_packet_buf, 65
g_in_packet_buf:
	.zero	65
	.globl	hid_device
	.align 8
	.type	hid_device, @object
	.size	hid_device, 8
hid_device:
	.zero	8
	.globl	curr_see3cam_dev
	.type	curr_see3cam_dev, @object
	.size	curr_see3cam_dev, 1
curr_see3cam_dev:
	.zero	1
	.globl	hid_fd
	.data
	.align 4
	.type	hid_fd, @object
	.size	hid_fd, 4
hid_fd:
	.long	-1
	.text
	.globl	GetTickCount
	.type	GetTickCount, @function
GetTickCount:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L2
	mov	eax, 0
	jmp	.L4
.L2:
	mov	rax, QWORD PTR -32[rbp]
	imul	esi, eax, 1000
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, esi
.L4:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	GetTickCount, .-GetTickCount
	.section	.rodata
.LC0:
	.string	"Can't create udev"
.LC1:
	.string	"hidraw"
.LC2:
	.string	"usb_device"
.LC3:
	.string	"usb"
	.align 8
.LC4:
	.string	"Unable to find parent usb device."
.LC5:
	.string	"idVendor"
.LC6:
	.string	"2560"
.LC7:
	.string	"idProduct"
.LC8:
	.string	"c110"
.LC9:
	.string	"c111"
.LC10:
	.string	"c112"
.LC11:
	.string	"c080"
.LC12:
	.string	"c034"
.LC13:
	.string	"c151"
.LC14:
	.string	"Unable to open device"
.LC15:
	.string	"HIDIOCGRAWPHYS"
.LC16:
	.string	"\nFailed to close %s\n"
	.text
	.globl	find_hid_device
	.type	find_hid_device, @function
find_hid_device:
.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, 352
	mov	QWORD PTR -344[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -332[rbp], -1
	call	udev_new@PLT
	mov	QWORD PTR -320[rbp], rax
	cmp	QWORD PTR -320[rbp], 0
	jne	.L7
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	udev_enumerate_new@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	udev_enumerate_add_match_subsystem@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	udev_enumerate_scan_devices@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	udev_enumerate_get_list_entry@PLT
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	mov	QWORD PTR -328[rbp], rax
	jmp	.L8
.L29:
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	udev_list_entry_get_name@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	rdx, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR -320[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	udev_device_new_from_syspath@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	udev_device_get_parent_with_subsystem_devtype@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L9
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L32
	movzx	eax, BYTE PTR curr_see3cam_dev[rip]
	movzx	eax, al
	cmp	eax, 5
	ja	.L10
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L12[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L12[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L12:
	.long	.L10-.L12
	.long	.L16-.L12
	.long	.L15-.L12
	.long	.L14-.L12
	.long	.L13-.L12
	.long	.L11-.L12
	.text
.L16:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L33
.L17:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	QWORD PTR hid_device[rip], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	udev_device_unref@PLT
	jmp	.L33
.L15:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L34
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	QWORD PTR hid_device[rip], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	udev_device_unref@PLT
	jmp	.L34
.L14:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L35
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	QWORD PTR hid_device[rip], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	udev_device_unref@PLT
	jmp	.L35
.L13:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	QWORD PTR hid_device[rip], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	udev_device_unref@PLT
	jmp	.L36
.L11:
	mov	rax, QWORD PTR -280[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	udev_device_get_sysattr_value@PLT
	mov	edx, 4
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	udev_device_get_devnode@PLT
	mov	QWORD PTR hid_device[rip], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	udev_device_unref@PLT
	jmp	.L37
.L32:
	nop
	jmp	.L10
.L33:
	nop
	jmp	.L10
.L34:
	nop
	jmp	.L10
.L35:
	nop
	jmp	.L10
.L36:
	nop
	jmp	.L10
.L37:
	nop
.L10:
	mov	rax, QWORD PTR hid_device[rip]
	mov	esi, 2050
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR hid_fd[rip], eax
	mov	eax, DWORD PTR hid_fd[rip]
	test	eax, eax
	jns	.L23
	lea	rdi, .LC14[rip]
	call	perror@PLT
	jmp	.L24
.L23:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR hid_fd[rip]
	lea	rdx, -272[rbp]
	mov	esi, 2164279301
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -332[rbp], eax
	cmp	DWORD PTR -332[rbp], 0
	jns	.L25
	lea	rdi, .LC15[rip]
	call	perror@PLT
.L25:
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -272[rbp]
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L26
	mov	DWORD PTR -332[rbp], 1
.L26:
	mov	eax, DWORD PTR hid_fd[rip]
	test	eax, eax
	jle	.L27
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L27
	mov	rax, QWORD PTR hid_device[rip]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	cmp	DWORD PTR -332[rbp], 1
	jne	.L24
	mov	eax, 1
	jmp	.L30
.L24:
	mov	rax, QWORD PTR -328[rbp]
	mov	rdi, rax
	call	udev_list_entry_get_next@PLT
	mov	QWORD PTR -328[rbp], rax
.L8:
	cmp	QWORD PTR -328[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	udev_enumerate_unref@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	udev_unref@PLT
	mov	eax, DWORD PTR -332[rbp]
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	find_hid_device, .-find_hid_device
	.section	.rodata
.LC17:
	.string	"write"
.LC18:
	.string	"\nOS Identification Failed"
.LC19:
	.string	"%s(): wrote %d bytes\n"
	.align 8
.LC20:
	.string	"\nSent Linux OS identificaton code"
.LC21:
	.string	"%s(): read %d bytes:\n"
.LC22:
	.string	"\nSet Success"
.LC23:
	.string	"\nSet Failed"
.LC24:
	.string	"\nUnknown return value"
.LC25:
	.string	"%s(): Timeout occurred\n"
	.text
	.globl	SendOSCode
	.type	SendOSCode, @function
SendOSCode:
.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, 16
	mov	DWORD PTR -12[rbp], 0
	mov	BYTE PTR -13[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	mov	edx, 65
	mov	esi, 0
	lea	rdi, g_out_packet_buf[rip]
	call	memset@PLT
	mov	BYTE PTR g_out_packet_buf[rip+1], 112
	mov	BYTE PTR g_out_packet_buf[rip+2], 1
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edx, 65
	lea	rsi, g_out_packet_buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L39
	lea	rdi, .LC17[rip]
	call	perror@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L40
.L39:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	lea	rsi, __func__.3[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	mov	eax, 0
	call	GetTickCount
	mov	DWORD PTR -4[rbp], eax
	jmp	.L41
.L46:
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edx, 65
	lea	rsi, g_in_packet_buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L42
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	lea	rsi, __func__.3[rip]
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR g_in_packet_buf[rip]
	cmp	al, 112
	jne	.L42
	movzx	eax, BYTE PTR g_in_packet_buf[rip+1]
	cmp	al, 1
	jne	.L42
	movzx	eax, BYTE PTR g_in_packet_buf[rip+2]
	cmp	al, 1
	jne	.L43
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	BYTE PTR -13[rbp], 0
	jmp	.L42
.L43:
	movzx	eax, BYTE PTR g_in_packet_buf[rip+2]
	test	al, al
	jne	.L45
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L40
.L45:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L40
.L42:
	mov	eax, 0
	call	GetTickCount
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cmp	eax, 2000
	jbe	.L41
	lea	rsi, __func__.3[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	BYTE PTR -13[rbp], 0
	mov	eax, 0
	jmp	.L40
.L41:
	cmp	BYTE PTR -13[rbp], 0
	jne	.L46
	mov	eax, 1
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	SendOSCode, .-SendOSCode
	.section	.rodata
	.align 8
.LC26:
	.string	"%s(): Not able to find the e-con's see3cam device\n"
.LC27:
	.string	" Selected HID Device : %s\n"
.LC28:
	.string	"HIDIOCGRDESCSIZE"
.LC29:
	.string	"Report Descriptor Size: %d\n"
.LC30:
	.string	"HIDIOCGRDESC"
.LC31:
	.string	"Report Descriptors:"
.LC32:
	.string	"%hhx "
.LC33:
	.string	"\n"
.LC34:
	.string	"HIDIOCGRAWNAME"
.LC35:
	.string	"Raw Name: %s\n"
.LC36:
	.string	"Raw Phys: %s\n"
.LC37:
	.string	"HIDIOCGRAWINFO"
.LC38:
	.string	"Raw Info:"
.LC39:
	.string	"\tvendor: 0x%04hx\n"
.LC40:
	.string	"\tproduct: 0x%04hx\n"
.LC41:
	.string	"OS Identification failed"
	.align 8
.LC42:
	.string	"\nOS identification not supported by camera"
	.text
	.globl	InitExtensionUnit
	.type	InitExtensionUnit, @function
InitExtensionUnit:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 336
	mov	QWORD PTR -4424[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4404[rbp], 0
	mov	rax, QWORD PTR -4424[rbp]
	mov	rdi, rax
	call	find_hid_device
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jns	.L48
	lea	rsi, __func__.2[rip]
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L62
.L48:
	mov	rax, QWORD PTR hid_device[rip]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR hid_device[rip]
	mov	esi, 2050
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR hid_fd[rip], eax
	mov	eax, DWORD PTR hid_fd[rip]
	test	eax, eax
	jns	.L50
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L62
.L50:
	lea	rax, -4384[rbp]
	mov	edx, 4100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -4392[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR hid_fd[rip]
	lea	rdx, -4404[rbp]
	mov	esi, 2147764225
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jns	.L51
	lea	rdi, .LC28[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L62
.L51:
	mov	eax, DWORD PTR -4404[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4404[rbp]
	mov	DWORD PTR -4384[rbp], eax
	mov	eax, DWORD PTR hid_fd[rip]
	lea	rdx, -4384[rbp]
	mov	esi, 2416199682
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jns	.L52
	lea	rdi, .LC30[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L62
.L52:
	lea	rdi, .LC31[rip]
	call	puts@PLT
	mov	DWORD PTR -4400[rbp], 0
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -4400[rbp]
	cdqe
	movzx	eax, BYTE PTR -4380[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4400[rbp], 1
.L53:
	mov	edx, DWORD PTR -4384[rbp]
	mov	eax, DWORD PTR -4400[rbp]
	cmp	edx, eax
	ja	.L54
	lea	rdi, .LC33[rip]
	call	puts@PLT
	mov	eax, DWORD PTR hid_fd[rip]
	lea	rdx, -272[rbp]
	mov	esi, 2164279300
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jns	.L55
	lea	rdi, .LC34[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L62
.L55:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC35[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR hid_fd[rip]
	lea	rdx, -272[rbp]
	mov	esi, 2164279301
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jns	.L56
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L62
.L56:
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR hid_fd[rip]
	lea	rdx, -4392[rbp]
	mov	esi, 2148026371
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jns	.L57
	lea	rdi, .LC37[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L62
.L57:
	lea	rdi, .LC38[rip]
	call	puts@PLT
	movzx	eax, WORD PTR -4388[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC39[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -4386[rbp]
	cwde
	mov	esi, eax
	lea	rdi, .LC40[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR curr_see3cam_dev[rip]
	cmp	al, 2
	je	.L58
	movzx	eax, BYTE PTR curr_see3cam_dev[rip]
	cmp	al, 1
	je	.L58
	movzx	eax, BYTE PTR curr_see3cam_dev[rip]
	cmp	al, 5
	je	.L58
	movzx	eax, BYTE PTR curr_see3cam_dev[rip]
	cmp	al, 3
	jne	.L59
.L58:
	mov	eax, 0
	call	SendOSCode
	movzx	eax, al
	mov	DWORD PTR -4396[rbp], eax
	cmp	DWORD PTR -4396[rbp], 0
	jne	.L61
	lea	rdi, .LC41[rip]
	call	puts@PLT
	jmp	.L61
.L59:
	lea	rdi, .LC42[rip]
	call	puts@PLT
.L61:
	mov	eax, 1
.L62:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	InitExtensionUnit, .-InitExtensionUnit
	.globl	ReadFirmwareVersion
	.type	ReadFirmwareVersion, @function
ReadFirmwareVersion:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	BYTE PTR -17[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	WORD PTR -16[rbp], 0
	mov	WORD PTR -14[rbp], 0
	mov	edx, 65
	mov	esi, 0
	lea	rdi, g_out_packet_buf[rip]
	call	memset@PLT
	mov	BYTE PTR g_out_packet_buf[rip+1], 64
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edx, 65
	lea	rsi, g_out_packet_buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L65
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L66
.L65:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	GetTickCount
	mov	DWORD PTR -4[rbp], eax
	jmp	.L67
.L69:
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edx, 65
	lea	rsi, g_in_packet_buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L68
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR g_in_packet_buf[rip]
	cmp	al, 64
	jne	.L68
	movzx	eax, BYTE PTR g_in_packet_buf[rip+3]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR g_in_packet_buf[rip+4]
	movzx	eax, al
	add	eax, edx
	mov	WORD PTR -16[rbp], ax
	movzx	eax, BYTE PTR g_in_packet_buf[rip+5]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR g_in_packet_buf[rip+6]
	movzx	eax, al
	add	eax, edx
	mov	WORD PTR -14[rbp], ax
	movzx	edx, BYTE PTR g_in_packet_buf[rip+1]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	movzx	edx, BYTE PTR g_in_packet_buf[rip+2]
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -56[rbp]
	movzx	edx, WORD PTR -16[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -64[rbp]
	movzx	edx, WORD PTR -14[rbp]
	mov	WORD PTR [rax], dx
	mov	BYTE PTR -17[rbp], 0
.L68:
	mov	eax, 0
	call	GetTickCount
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, DWORD PTR -4[rbp]
	cmp	eax, 2000
	jbe	.L67
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -17[rbp], 0
	mov	eax, 0
	jmp	.L66
.L67:
	cmp	BYTE PTR -17[rbp], 0
	jne	.L69
	mov	eax, 1
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ReadFirmwareVersion, .-ReadFirmwareVersion
	.globl	UninitExtensionUnit
	.type	UninitExtensionUnit, @function
UninitExtensionUnit:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR hid_fd[rip]
	test	eax, eax
	jle	.L71
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -4[rbp], eax
.L71:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L72
	mov	eax, 0
	jmp	.L73
.L72:
	mov	eax, 1
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	UninitExtensionUnit, .-UninitExtensionUnit
	.section	.rodata
.LC43:
	.string	"USB"
.LC44:
	.string	"HIL"
.LC45:
	.string	"Bluetooth"
.LC46:
	.string	"Virtual"
.LC47:
	.string	"Other"
	.text
	.globl	bus_str
	.type	bus_str, @function
bus_str:
.LFB12:
	.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
	cmp	DWORD PTR -4[rbp], 6
	je	.L75
	cmp	DWORD PTR -4[rbp], 6
	jg	.L76
	cmp	DWORD PTR -4[rbp], 5
	je	.L77
	cmp	DWORD PTR -4[rbp], 5
	jg	.L76
	cmp	DWORD PTR -4[rbp], 3
	je	.L78
	cmp	DWORD PTR -4[rbp], 4
	je	.L79
	jmp	.L76
.L78:
	lea	rax, .LC43[rip]
	jmp	.L80
.L79:
	lea	rax, .LC44[rip]
	jmp	.L80
.L77:
	lea	rax, .LC45[rip]
	jmp	.L80
.L75:
	lea	rax, .LC46[rip]
	jmp	.L80
.L76:
	lea	rax, .LC47[rip]
.L80:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	bus_str, .-bus_str
	.section	.rodata
.LC48:
	.string	"%X"
	.text
	.globl	SendCameraCommand
	.type	SendCameraCommand, @function
SendCameraCommand:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	eax, edx
	mov	QWORD PTR -72[rbp], rcx
	mov	edx, edi
	mov	BYTE PTR -52[rbp], dl
	mov	edx, esi
	mov	BYTE PTR -56[rbp], dl
	mov	BYTE PTR -60[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -33[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -18[rbp], 0
	mov	WORD PTR -10[rbp], 0
	movzx	edx, BYTE PTR -60[rbp]
	lea	rax, -18[rbp]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, 65
	mov	esi, 0
	lea	rdi, g_out_packet_buf[rip]
	call	memset@PLT
	mov	BYTE PTR g_out_packet_buf[rip+1], 98
	mov	BYTE PTR g_out_packet_buf[rip+2], 2
	movzx	eax, BYTE PTR -56[rbp]
	add	eax, 1
	mov	BYTE PTR g_out_packet_buf[rip+3], al
	movzx	eax, BYTE PTR -52[rbp]
	mov	BYTE PTR g_out_packet_buf[rip+4], al
	cmp	BYTE PTR -56[rbp], 1
	jne	.L82
	movzx	eax, BYTE PTR -18[rbp]
	mov	BYTE PTR g_out_packet_buf[rip+5], al
	jmp	.L83
.L82:
	cmp	BYTE PTR -56[rbp], 2
	jne	.L83
	movzx	eax, BYTE PTR -17[rbp]
	test	al, al
	je	.L84
	movzx	eax, BYTE PTR -18[rbp]
	mov	BYTE PTR g_out_packet_buf[rip+5], al
	movzx	eax, BYTE PTR -17[rbp]
	mov	BYTE PTR g_out_packet_buf[rip+6], al
	jmp	.L83
.L84:
	mov	BYTE PTR g_out_packet_buf[rip+5], 48
	movzx	eax, BYTE PTR -18[rbp]
	mov	BYTE PTR g_out_packet_buf[rip+6], al
.L83:
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edx, 65
	lea	rsi, g_out_packet_buf[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	jns	.L85
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L90
.L85:
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	GetTickCount
	mov	DWORD PTR -24[rbp], eax
	jmp	.L87
.L89:
	mov	eax, DWORD PTR hid_fd[rip]
	mov	edx, 65
	lea	rsi, g_in_packet_buf[rip]
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 0
	js	.L88
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR g_in_packet_buf[rip]
	cmp	al, 98
	jne	.L88
	movzx	eax, BYTE PTR g_in_packet_buf[rip+1]
	cmp	al, 2
	jne	.L88
	movzx	eax, BYTE PTR g_in_packet_buf[rip+2]
	movzx	eax, al
	movzx	edx, BYTE PTR -56[rbp]
	add	edx, 1
	cmp	eax, edx
	jne	.L88
	movzx	eax, BYTE PTR g_in_packet_buf[rip+3]
	cmp	BYTE PTR -52[rbp], al
	jne	.L88
	movzx	edx, BYTE PTR g_in_packet_buf[rip+4]
	movzx	eax, BYTE PTR g_out_packet_buf[rip+5]
	cmp	dl, al
	jne	.L88
	movzx	edx, BYTE PTR g_in_packet_buf[rip+5]
	movzx	eax, BYTE PTR g_out_packet_buf[rip+6]
	cmp	dl, al
	jne	.L88
	movzx	eax, BYTE PTR g_in_packet_buf[rip+7]
	movzx	edx, al
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	BYTE PTR -33[rbp], 0
.L88:
	mov	eax, 0
	call	GetTickCount
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cmp	eax, 10000
	jbe	.L87
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -33[rbp], 0
	mov	eax, 0
	jmp	.L90
.L87:
	cmp	BYTE PTR -33[rbp], 0
	jne	.L89
	mov	eax, 1
.L90:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L91
	call	__stack_chk_fail@PLT
.L91:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	SendCameraCommand, .-SendCameraCommand
	.section	.rodata
.LC49:
	.string	"/dev/video1"
	.align 8
.LC50:
	.string	"\nError in setting optical zoom"
.LC51:
	.string	"Set Optical zoom to 30"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC49[rip]
	call	InitExtensionUnit
	mov	BYTE PTR -17[rbp], al
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 2
	mov	edi, 80
	call	SendCameraCommand
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L93
	lea	rdi, .LC50[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L95
.L93:
	lea	rdi, .LC51[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L95:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L96
	call	__stack_chk_fail@PLT
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__func__.3, @object
	.size	__func__.3, 11
__func__.3:
	.string	"SendOSCode"
	.align 16
	.type	__func__.2, @object
	.size	__func__.2, 18
__func__.2:
	.string	"InitExtensionUnit"
	.align 16
	.type	__func__.1, @object
	.size	__func__.1, 20
__func__.1:
	.string	"ReadFirmwareVersion"
	.align 16
	.type	__func__.0, @object
	.size	__func__.0, 18
__func__.0:
	.string	"SendCameraCommand"
	.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	"340894.c"
	.text
	.comm	g_out_packet_buf,65,4
	.comm	g_in_packet_buf,65,4
	.comm	hid_device,4,4
	.global	curr_see3cam_dev
	.bss
	.type	curr_see3cam_dev, %object
	.size	curr_see3cam_dev, 1
curr_see3cam_dev:
	.space	1
	.global	hid_fd
	.data
	.align	2
	.type	hid_fd, %object
	.size	hid_fd, 4
hid_fd:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetTickCount
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetTickCount, %function
GetTickCount:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	b	.L4
.L2:
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L6+4
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
.L4:
	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	.LC0
	.word	274877907
	.size	GetTickCount, .-GetTickCount
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Can't create udev\000"
	.align	2
.LC2:
	.ascii	"hidraw\000"
	.align	2
.LC3:
	.ascii	"usb_device\000"
	.align	2
.LC4:
	.ascii	"usb\000"
	.align	2
.LC5:
	.ascii	"Unable to find parent usb device.\000"
	.align	2
.LC6:
	.ascii	"idVendor\000"
	.align	2
.LC7:
	.ascii	"2560\000"
	.align	2
.LC8:
	.ascii	"idProduct\000"
	.align	2
.LC9:
	.ascii	"c110\000"
	.align	2
.LC10:
	.ascii	"c111\000"
	.align	2
.LC11:
	.ascii	"c112\000"
	.align	2
.LC12:
	.ascii	"c080\000"
	.align	2
.LC13:
	.ascii	"c034\000"
	.align	2
.LC14:
	.ascii	"c151\000"
	.align	2
.LC15:
	.ascii	"Unable to open device\000"
	.align	2
.LC16:
	.ascii	"HIDIOCGRAWPHYS\000"
	.align	2
.LC17:
	.ascii	"\012Failed to close %s\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	find_hid_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_hid_device, %function
find_hid_device:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-304]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-292]
	bl	udev_new
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L40+4
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r0, [fp, #-288]
	bl	udev_enumerate_new
	str	r0, [fp, #-284]
	ldr	r1, .L40+8
	ldr	r0, [fp, #-284]
	bl	udev_enumerate_add_match_subsystem
	ldr	r0, [fp, #-284]
	bl	udev_enumerate_scan_devices
	ldr	r0, [fp, #-284]
	bl	udev_enumerate_get_list_entry
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	str	r3, [fp, #-296]
	b	.L10
.L31:
	ldr	r0, [fp, #-296]
	bl	udev_list_entry_get_name
	str	r0, [fp, #-276]
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-288]
	bl	udev_device_new_from_syspath
	str	r0, [fp, #-272]
	ldr	r2, .L40+12
	ldr	r1, .L40+16
	ldr	r0, [fp, #-272]
	bl	udev_device_get_parent_with_subsystem_devtype
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L40+20
	bl	printf
	mov	r0, #1
	bl	exit
.L11:
	ldr	r1, .L40+24
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+28
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L34
	ldr	r3, .L40+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L12
.L14:
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L13
.L18:
	ldr	r1, .L40+36
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r1, .L40+36
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+44
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
.L19:
	ldr	r0, [fp, #-272]
	bl	udev_device_get_devnode
	mov	r3, r0
	ldr	r2, .L40+48
	str	r3, [r2]
	ldr	r0, [fp, #-268]
	bl	udev_device_unref
	b	.L35
.L17:
	ldr	r1, .L40+36
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+52
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r0, [fp, #-272]
	bl	udev_device_get_devnode
	mov	r3, r0
	ldr	r2, .L40+48
	str	r3, [r2]
	ldr	r0, [fp, #-268]
	bl	udev_device_unref
	b	.L36
.L16:
	ldr	r1, .L40+36
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+56
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r0, [fp, #-272]
	bl	udev_device_get_devnode
	mov	r3, r0
	ldr	r2, .L40+48
	str	r3, [r2]
	ldr	r0, [fp, #-268]
	bl	udev_device_unref
	b	.L37
.L15:
	ldr	r1, .L40+36
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+60
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, [fp, #-272]
	bl	udev_device_get_devnode
	mov	r3, r0
	ldr	r2, .L40+48
	str	r3, [r2]
	ldr	r0, [fp, #-268]
	bl	udev_device_unref
	b	.L38
.L13:
	ldr	r1, .L40+36
	ldr	r0, [fp, #-268]
	bl	udev_device_get_sysattr_value
	mov	r3, r0
	mov	r2, #4
	ldr	r1, .L40+64
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r0, [fp, #-272]
	bl	udev_device_get_devnode
	mov	r3, r0
	ldr	r2, .L40+48
	str	r3, [r2]
	ldr	r0, [fp, #-268]
	bl	udev_device_unref
	b	.L39
.L34:
	nop
	b	.L12
.L35:
	nop
	b	.L12
.L36:
	nop
	b	.L12
.L37:
	nop
	b	.L12
.L38:
	nop
	b	.L12
.L39:
	nop
.L12:
	ldr	r3, .L40+48
	ldr	r3, [r3]
	ldr	r1, .L40+68
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L40+72
	str	r3, [r2]
	ldr	r3, .L40+72
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L40+76
	bl	perror
	b	.L26
.L25:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L40+72
	ldr	r3, [r3]
	sub	r2, fp, #264
	ldr	r1, .L40+80
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-292]
	ldr	r3, [fp, #-292]
	cmp	r3, #0
	bge	.L27
	ldr	r0, .L40+84
	bl	perror
.L27:
	ldr	r0, [fp, #-304]
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	str	r3, [fp, #-292]
.L28:
	ldr	r3, .L40+72
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L29
	ldr	r3, .L40+72
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	ldr	r3, .L40+48
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L40+88
	bl	printf
.L29:
	ldr	r3, [fp, #-292]
	cmp	r3, #1
	bne	.L26
	mov	r3, #1
	b	.L32
.L26:
	ldr	r0, [fp, #-296]
	bl	udev_list_entry_get_next
	str	r0, [fp, #-296]
.L10:
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L31
	ldr	r0, [fp, #-284]
	bl	udev_enumerate_unref
	ldr	r0, [fp, #-288]
	bl	udev_unref
	ldr	r3, [fp, #-292]
.L32:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC18
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	curr_see3cam_dev
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	hid_device
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	2050
	.word	hid_fd
	.word	.LC15
	.word	-2130687995
	.word	.LC16
	.word	.LC17
	.size	find_hid_device, .-find_hid_device
	.section	.rodata
	.align	2
.LC19:
	.ascii	"write\000"
	.align	2
.LC20:
	.ascii	"\012OS Identification Failed\000"
	.align	2
.LC21:
	.ascii	"%s(): wrote %d bytes\012\000"
	.align	2
.LC22:
	.ascii	"\012Sent Linux OS identificaton code\000"
	.align	2
.LC23:
	.ascii	"%s(): read %d bytes:\012\000"
	.align	2
.LC24:
	.ascii	"\012Set Success\000"
	.align	2
.LC25:
	.ascii	"\012Set Failed\000"
	.align	2
.LC26:
	.ascii	"\012Unknown return value\000"
	.align	2
.LC27:
	.ascii	"%s(): Timeout occurred\012\000"
	.text
	.align	2
	.global	SendOSCode
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendOSCode, %function
SendOSCode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #1
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r2, #65
	mov	r1, #0
	ldr	r0, .L51
	bl	memset
	ldr	r3, .L51
	mov	r2, #112
	strb	r2, [r3, #1]
	ldr	r3, .L51
	mov	r2, #1
	strb	r2, [r3, #2]
	ldr	r3, .L51+4
	ldr	r3, [r3]
	mov	r2, #65
	ldr	r1, .L51
	mov	r0, r3
	bl	write
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L43
	ldr	r0, .L51+8
	bl	perror
	ldr	r0, .L51+12
	bl	puts
	mov	r3, #0
	b	.L44
.L43:
	ldr	r2, [fp, #-16]
	ldr	r1, .L51+16
	ldr	r0, .L51+20
	bl	printf
	ldr	r0, .L51+24
	bl	puts
	bl	GetTickCount
	str	r0, [fp, #-8]
	b	.L45
.L50:
	ldr	r3, .L51+4
	ldr	r3, [r3]
	mov	r2, #65
	ldr	r1, .L51+28
	mov	r0, r3
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L46
	ldr	r2, [fp, #-16]
	ldr	r1, .L51+16
	ldr	r0, .L51+32
	bl	printf
	ldr	r3, .L51+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #112
	bne	.L46
	ldr	r3, .L51+28
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L46
	ldr	r3, .L51+28
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L47
	ldr	r0, .L51+36
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-17]
	b	.L46
.L47:
	ldr	r3, .L51+28
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L49
	ldr	r0, .L51+40
	bl	puts
	mov	r3, #0
	b	.L44
.L49:
	ldr	r0, .L51+44
	bl	puts
	mov	r3, #0
	b	.L44
.L46:
	bl	GetTickCount
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	cmp	r3, #2000
	bls	.L45
	ldr	r1, .L51+16
	ldr	r0, .L51+48
	bl	printf
	ldr	r0, .L51+12
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-17]
	mov	r3, #0
	b	.L44
.L45:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L50
	mov	r3, #1
.L44:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	g_out_packet_buf
	.word	hid_fd
	.word	.LC19
	.word	.LC20
	.word	__func__.6575
	.word	.LC21
	.word	.LC22
	.word	g_in_packet_buf
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	SendOSCode, .-SendOSCode
	.section	.rodata
	.align	2
.LC28:
	.ascii	"%s(): Not able to find the e-con's see3cam device\012"
	.ascii	"\000"
	.align	2
.LC29:
	.ascii	" Selected HID Device : %s\012\000"
	.align	2
.LC30:
	.ascii	"HIDIOCGRDESCSIZE\000"
	.align	2
.LC31:
	.ascii	"Report Descriptor Size: %d\012\000"
	.align	2
.LC32:
	.ascii	"HIDIOCGRDESC\000"
	.align	2
.LC33:
	.ascii	"Report Descriptors:\000"
	.align	2
.LC34:
	.ascii	"%hhx \000"
	.align	2
.LC35:
	.ascii	"\012\000"
	.align	2
.LC36:
	.ascii	"HIDIOCGRAWNAME\000"
	.align	2
.LC37:
	.ascii	"Raw Name: %s\012\000"
	.align	2
.LC38:
	.ascii	"Raw Phys: %s\012\000"
	.align	2
.LC39:
	.ascii	"HIDIOCGRAWINFO\000"
	.align	2
.LC40:
	.ascii	"Raw Info:\000"
	.align	2
.LC41:
	.ascii	"\011vendor: 0x%04hx\012\000"
	.align	2
.LC42:
	.ascii	"\011product: 0x%04hx\012\000"
	.align	2
.LC43:
	.ascii	"OS Identification failed\000"
	.align	2
.LC44:
	.ascii	"\012OS identification not supported by camera\000"
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	InitExtensionUnit
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitExtensionUnit, %function
InitExtensionUnit:
	@ args = 0, pretend = 0, frame = 4392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4352
	sub	sp, sp, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-292]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-284]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-292]
	bl	find_hid_device
	str	r0, [r4, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bge	.L54
	ldr	r1, .L70+4
	ldr	r0, .L70+8
	bl	printf
	mov	r3, #0
	b	.L68
.L54:
	ldr	r3, .L70+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L70+16
	bl	printf
	ldr	r3, .L70+12
	ldr	r3, [r3]
	ldr	r1, .L70+20
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L70+24
	str	r3, [r2]
	ldr	r3, .L70+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L70+28
	bl	perror
	mov	r3, #0
	b	.L68
.L56:
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, .L70+32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L70+24
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r2, r3
	ldr	r1, .L70+36
	bl	ioctl
	str	r0, [r4, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L70+40
	bl	perror
	mov	r3, #0
	b	.L68
.L57:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-284]
	mov	r1, r3
	ldr	r0, .L70+44
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-284]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-264]
	ldr	r3, .L70+24
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, .L70+48
	bl	ioctl
	str	r0, [r4, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bge	.L58
	ldr	r0, .L70+52
	bl	perror
	mov	r3, #0
	b	.L68
.L58:
	ldr	r0, .L70+56
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-280]
	b	.L59
.L60:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-280]
	add	r3, r2, r3
	sub	r3, r3, #260
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L70+60
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-280]
	add	r3, r3, #1
	str	r3, [r2, #-280]
.L59:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-264]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-280]
	cmp	r2, r3
	bhi	.L60
	ldr	r0, .L70+64
	bl	puts
	ldr	r3, .L70+24
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #272
	ldr	r1, .L70+68
	mov	r0, r3
	bl	ioctl
	str	r0, [r4, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bge	.L61
	ldr	r0, .L70+72
	bl	perror
	mov	r3, #0
	b	.L68
.L61:
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L70+76
	bl	printf
	ldr	r3, .L70+24
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	sub	r2, fp, #272
	ldr	r1, .L70+80
	mov	r0, r3
	bl	ioctl
	str	r0, [r4, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bge	.L62
	ldr	r0, .L70+84
	bl	perror
	mov	r3, #0
	b	.L68
.L62:
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L70+88
	bl	printf
	ldr	r3, .L70+24
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4352
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r2, r3
	ldr	r1, .L70+92
	bl	ioctl
	str	r0, [r4, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bge	.L63
	ldr	r0, .L70+96
	bl	perror
	mov	r3, #0
	b	.L68
.L63:
	ldr	r0, .L70+100
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #272
	ldrsh	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L70+104
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #272
	ldrsh	r3, [r3, #6]
	mov	r1, r3
	ldr	r0, .L70+108
	bl	printf
	ldr	r3, .L70+112
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L64
	ldr	r3, .L70+112
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L64
	ldr	r3, .L70+112
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	beq	.L64
	ldr	r3, .L70+112
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L65
.L64:
	bl	SendOSCode
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r2, [r3, #-276]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-276]
	cmp	r3, #0
	bne	.L67
	ldr	r0, .L70+116
	bl	puts
	b	.L67
.L65:
	ldr	r0, .L70+120
	bl	puts
.L67:
	mov	r3, #1
.L68:
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC45
	.word	__func__.6588
	.word	.LC28
	.word	hid_device
	.word	.LC29
	.word	2050
	.word	hid_fd
	.word	.LC15
	.word	4100
	.word	-2147203071
	.word	.LC30
	.word	.LC31
	.word	-1878767614
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	-2130687996
	.word	.LC36
	.word	.LC37
	.word	-2130687995
	.word	.LC16
	.word	.LC38
	.word	-2146940925
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	curr_see3cam_dev
	.word	.LC43
	.word	.LC44
	.size	InitExtensionUnit, .-InitExtensionUnit
	.align	2
	.global	ReadFirmwareVersion
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReadFirmwareVersion, %function
ReadFirmwareVersion:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #1
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	mov	r2, #65
	mov	r1, #0
	ldr	r0, .L78
	bl	memset
	ldr	r3, .L78
	mov	r2, #64
	strb	r2, [r3, #1]
	ldr	r3, .L78+4
	ldr	r3, [r3]
	mov	r2, #65
	ldr	r1, .L78
	mov	r0, r3
	bl	write
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L73
	ldr	r0, .L78+8
	bl	perror
	mov	r3, #0
	b	.L74
.L73:
	ldr	r2, [fp, #-16]
	ldr	r1, .L78+12
	ldr	r0, .L78+16
	bl	printf
	bl	GetTickCount
	str	r0, [fp, #-8]
	b	.L75
.L77:
	ldr	r3, .L78+4
	ldr	r3, [r3]
	mov	r2, #65
	ldr	r1, .L78+20
	mov	r0, r3
	bl	read
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L76
	ldr	r2, [fp, #-16]
	ldr	r1, .L78+12
	ldr	r0, .L78+24
	bl	printf
	ldr	r3, .L78+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L76
	ldr	r3, .L78+20
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L78+20
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	strh	r3, [fp, #-20]	@ movhi
	ldr	r3, .L78+20
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, .L78+20
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, .L78+20
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	ldr	r3, .L78+20
	ldrb	r2, [r3, #2]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	ldrh	r2, [fp, #-20]	@ movhi
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-44]
	ldrh	r2, [fp, #-18]	@ movhi
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-21]
.L76:
	bl	GetTickCount
	str	r0, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	cmp	r3, #2000
	bls	.L75
	ldr	r1, .L78+12
	ldr	r0, .L78+28
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-21]
	mov	r3, #0
	b	.L74
.L75:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L77
	mov	r3, #1
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L79:
	.align	2
.L78:
	.word	g_out_packet_buf
	.word	hid_fd
	.word	.LC19
	.word	__func__.6604
	.word	.LC21
	.word	g_in_packet_buf
	.word	.LC23
	.word	.LC27
	.size	ReadFirmwareVersion, .-ReadFirmwareVersion
	.align	2
	.global	UninitExtensionUnit
	.syntax unified
	.arm
	.fpu softvfp
	.type	UninitExtensionUnit, %function
UninitExtensionUnit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L84
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L81
	ldr	r3, .L84
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	str	r0, [fp, #-8]
.L81:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L82
	mov	r3, #0
	b	.L83
.L82:
	mov	r3, #1
.L83:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	hid_fd
	.size	UninitExtensionUnit, .-UninitExtensionUnit
	.section	.rodata
	.align	2
.LC46:
	.ascii	"USB\000"
	.align	2
.LC47:
	.ascii	"HIL\000"
	.align	2
.LC48:
	.ascii	"Bluetooth\000"
	.align	2
.LC49:
	.ascii	"Virtual\000"
	.align	2
.LC50:
	.ascii	"Other\000"
	.text
	.align	2
	.global	bus_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	bus_str, %function
bus_str:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #3
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L87
.L89:
	.word	.L92
	.word	.L91
	.word	.L90
	.word	.L88
.L92:
	ldr	r3, .L94
	b	.L93
.L91:
	ldr	r3, .L94+4
	b	.L93
.L90:
	ldr	r3, .L94+8
	b	.L93
.L88:
	ldr	r3, .L94+12
	b	.L93
.L87:
	ldr	r3, .L94+16
.L93:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L95:
	.align	2
.L94:
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.size	bus_str, .-bus_str
	.section	.rodata
	.align	2
.LC51:
	.ascii	"%X\000"
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SendCameraCommand
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendCameraCommand, %function
SendCameraCommand:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r3, [fp, #-44]
	mov	r3, r0
	strb	r3, [fp, #-37]
	mov	r3, r1
	strb	r3, [fp, #-38]
	mov	r3, r2
	strb	r3, [fp, #-39]
	ldr	r3, .L107
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-33]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	strh	r2, [r3, #4]	@ movhi
	ldrb	r2, [fp, #-39]	@ zero_extendqisi2
	sub	r3, fp, #20
	ldr	r1, .L107+4
	mov	r0, r3
	bl	sprintf
	mov	r2, #65
	mov	r1, #0
	ldr	r0, .L107+8
	bl	memset
	ldr	r3, .L107+8
	mov	r2, #98
	strb	r2, [r3, #1]
	ldr	r3, .L107+8
	mov	r2, #2
	strb	r2, [r3, #2]
	ldrb	r3, [fp, #-38]
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L107+8
	strb	r2, [r3, #3]
	ldr	r2, .L107+8
	ldrb	r3, [fp, #-37]
	strb	r3, [r2, #4]
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L97
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	ldr	r3, .L107+8
	strb	r2, [r3, #5]
	b	.L98
.L97:
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L98
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L99
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	ldr	r3, .L107+8
	strb	r2, [r3, #5]
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	ldr	r3, .L107+8
	strb	r2, [r3, #6]
	b	.L98
.L99:
	ldr	r3, .L107+8
	mov	r2, #48
	strb	r2, [r3, #5]
	ldrb	r2, [fp, #-20]	@ zero_extendqisi2
	ldr	r3, .L107+8
	strb	r2, [r3, #6]
.L98:
	ldr	r3, .L107+12
	ldr	r3, [r3]
	mov	r2, #65
	ldr	r1, .L107+8
	mov	r0, r3
	bl	write
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L100
	ldr	r0, .L107+16
	bl	perror
	mov	r3, #0
	b	.L105
.L100:
	ldr	r2, [fp, #-32]
	ldr	r1, .L107+20
	ldr	r0, .L107+24
	bl	printf
	bl	GetTickCount
	str	r0, [fp, #-24]
	b	.L102
.L104:
	ldr	r3, .L107+12
	ldr	r3, [r3]
	mov	r2, #65
	ldr	r1, .L107+28
	mov	r0, r3
	bl	read
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L103
	ldr	r2, [fp, #-32]
	ldr	r1, .L107+20
	ldr	r0, .L107+32
	bl	printf
	ldr	r3, .L107+28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #98
	bne	.L103
	ldr	r3, .L107+28
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L103
	ldr	r3, .L107+28
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	r2, r3
	bne	.L103
	ldr	r3, .L107+28
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-37]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L103
	ldr	r3, .L107+28
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldr	r3, .L107+8
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L103
	ldr	r3, .L107+28
	ldrb	r2, [r3, #5]	@ zero_extendqisi2
	ldr	r3, .L107+8
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L103
	ldr	r3, .L107+28
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-44]
	str	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-33]
.L103:
	bl	GetTickCount
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	ldr	r2, .L107+36
	cmp	r3, r2
	bls	.L102
	ldr	r1, .L107+20
	ldr	r0, .L107+40
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-33]
	mov	r3, #0
	b	.L105
.L102:
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L104
	mov	r3, #1
.L105:
	ldr	r2, .L107
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L108:
	.align	2
.L107:
	.word	.LC52
	.word	.LC51
	.word	g_out_packet_buf
	.word	hid_fd
	.word	.LC19
	.word	__func__.6630
	.word	.LC21
	.word	g_in_packet_buf
	.word	.LC23
	.word	10000
	.word	.LC27
	.size	SendCameraCommand, .-SendCameraCommand
	.section	.rodata
	.align	2
.LC53:
	.ascii	"/dev/video1\000"
	.align	2
.LC54:
	.ascii	"\012Error in setting optical zoom\000"
	.align	2
.LC55:
	.ascii	"Set Optical zoom to 30\000"
	.align	2
.LC56:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L114+4
	bl	InitExtensionUnit
	mov	r3, r0
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r2, #30
	mov	r1, #2
	mov	r0, #80
	bl	SendCameraCommand
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L110
	ldr	r0, .L114+8
	bl	puts
	mov	r3, #0
	b	.L112
.L110:
	ldr	r0, .L114+12
	bl	printf
	mov	r3, #0
.L112:
	ldr	r2, .L114
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L113
	bl	__stack_chk_fail
.L113:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC56
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.6575, %object
	.size	__func__.6575, 11
__func__.6575:
	.ascii	"SendOSCode\000"
	.align	2
	.type	__func__.6588, %object
	.size	__func__.6588, 18
__func__.6588:
	.ascii	"InitExtensionUnit\000"
	.align	2
	.type	__func__.6604, %object
	.size	__func__.6604, 20
__func__.6604:
	.ascii	"ReadFirmwareVersion\000"
	.align	2
	.type	__func__.6630, %object
	.size	__func__.6630, 18
__func__.6630:
	.ascii	"SendCameraCommand\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
