	.file	"436052.c"
	.intel_syntax noprefix
	.text
	.local	quectel_9x07
	.comm	quectel_9x07,104,32
	.section	.rodata
	.align 8
.LC0:
	.string	"fd=%d read=%zd, errno: %d (%s)\n"
.LC1:
	.string	"%s fd=%d cur=%zd, size=%zd\n"
	.text
	.type	noblock_full_read, @function
noblock_full_read:
.LFB54:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, QWORD PTR -48[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jle	.L3
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -48[rbp], rax
	jmp	.L2
.L3:
	cmp	QWORD PTR -40[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L4
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	WORD PTR -28[rbp], 1
	mov	WORD PTR -26[rbp], 0
	lea	rax, -32[rbp]
	mov	edx, -1
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	movzx	eax, WORD PTR -26[rbp]
	cwde
	and	eax, 56
	test	eax, eax
	jne	.L11
	jmp	.L2
.L4:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8, rbx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L2:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jl	.L7
	jmp	.L6
.L11:
	nop
.L6:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	je	.L8
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, __func__.6[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	rax, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	noblock_full_read, .-noblock_full_read
	.section	.rodata
	.align 8
.LC2:
	.string	"fd=%d write=%zd, errno: %d (%s)\n"
	.text
	.type	noblock_full_write, @function
noblock_full_write:
.LFB55:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	jmp	.L13
.L18:
	mov	rax, QWORD PTR -72[rbp]
	sub	rax, QWORD PTR -48[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jle	.L14
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -48[rbp], rax
	jmp	.L13
.L14:
	cmp	QWORD PTR -40[rbp], 0
	jg	.L15
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L15
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	WORD PTR -28[rbp], 4
	mov	WORD PTR -26[rbp], 0
	lea	rax, -32[rbp]
	mov	edx, -1
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	movzx	eax, WORD PTR -26[rbp]
	cwde
	and	eax, 56
	test	eax, eax
	jne	.L22
	jmp	.L13
.L15:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8, rbx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L13:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jl	.L18
	jmp	.L17
.L22:
	nop
.L17:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	je	.L19
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, __func__.5[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L19:
	mov	rax, QWORD PTR -48[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	noblock_full_write, .-noblock_full_write
	.type	badname, @function
badname:
.LFB56:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L24
.L26:
	call	__ctype_b_loc@PLT
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L24
	mov	eax, 1
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	eax, 0
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	badname, .-badname
	.section	.rodata
.LC3:
	.string	"/dev/bus/usb"
.LC4:
	.string	"%s/%s"
	.align 8
.LC5:
	.string	"D: %s idVendor=%04x idProduct=%04x\n"
.LC6:
	.string	"C: %s bNumInterfaces: %d\n"
	.align 8
.LC7:
	.string	"I: If#= %d Alt= %d #EPs= %d Cls=%02x Sub=%02x Prot=%02x\n"
	.align 8
.LC8:
	.string	"E: Ad=%02x Atr=%02x MxPS= %d Ivl=%dms\n"
	.align 8
.LC9:
	.string	"unknow bLength=%d bDescriptorType=%d\n"
	.text
	.type	quectel_find_usb_device, @function
quectel_find_usb_device:
.LFB57:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1696
	mov	QWORD PTR -1688[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -1664[rbp], rax
	mov	rax, QWORD PTR -1664[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1656[rbp], rax
	cmp	QWORD PTR -1656[rbp], 0
	je	.L58
	jmp	.L30
.L56:
	mov	rax, QWORD PTR -1648[rbp]
	add	rax, 19
	mov	rdi, rax
	call	badname
	test	eax, eax
	je	.L31
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -1648[rbp]
	lea	rcx, 19[rax]
	mov	rdx, QWORD PTR -1664[rbp]
	lea	rax, -1584[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1584[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -1640[rbp], rax
	cmp	QWORD PTR -1640[rbp], 0
	jne	.L33
	jmp	.L30
.L54:
	mov	BYTE PTR -1677[rbp], 0
	mov	rax, QWORD PTR -1648[rbp]
	add	rax, 19
	mov	rdi, rax
	call	badname
	test	eax, eax
	jne	.L59
	mov	rax, QWORD PTR -1648[rbp]
	lea	rcx, 19[rax]
	lea	rdx, -1584[rbp]
	lea	rax, -1312[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1312[rbp]
	mov	esi, 258
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1676[rbp], eax
	cmp	DWORD PTR -1676[rbp], 0
	js	.L60
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1676[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1632[rbp], rax
	mov	QWORD PTR -1672[rbp], 0
	jmp	.L37
.L51:
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1672[rbp]
	add	rax, rdx
	mov	QWORD PTR -1624[rbp], rax
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 18
	jne	.L38
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 1
	jne	.L38
	mov	rax, QWORD PTR -1624[rbp]
	mov	QWORD PTR -1616[rbp], rax
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 8[rax]
	cmp	ax, 11388
	je	.L39
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 8[rax]
	cmp	ax, 1478
	jne	.L40
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 10[rax]
	cmp	ax, -28664
	jne	.L40
.L39:
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 8[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -1688[rbp]
	mov	DWORD PTR 72[rax], edx
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -1688[rbp]
	mov	DWORD PTR 76[rax], edx
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 10[rax]
	movzx	ecx, ax
	mov	rax, QWORD PTR -1616[rbp]
	movzx	eax, WORD PTR 8[rax]
	movzx	edx, ax
	lea	rax, -1312[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L41
.L38:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jne	.L42
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 2
	jne	.L42
	mov	rax, QWORD PTR -1624[rbp]
	mov	QWORD PTR -1608[rbp], rax
	mov	rax, QWORD PTR -1608[rbp]
	movzx	eax, BYTE PTR 4[rax]
	movzx	edx, al
	lea	rax, -1312[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1608[rbp]
	movzx	edx, BYTE PTR 4[rax]
	mov	rax, QWORD PTR -1688[rbp]
	mov	BYTE PTR 80[rax], dl
	jmp	.L41
.L42:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 9
	jne	.L43
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 4
	jne	.L43
	mov	rax, QWORD PTR -1624[rbp]
	mov	QWORD PTR -1600[rbp], rax
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 7[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 6[rax]
	movzx	r8d, al
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 5[rax]
	movzx	edi, al
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 4[rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 3[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 2[rax]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -1600[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -1677[rbp], al
	jmp	.L41
.L43:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 7
	jne	.L44
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 5
	jne	.L44
	mov	rax, QWORD PTR -1624[rbp]
	mov	QWORD PTR -1592[rbp], rax
	cmp	BYTE PTR -1677[rbp], 0
	jne	.L61
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, BYTE PTR 6[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, WORD PTR 4[rax]
	movzx	ecx, ax
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, BYTE PTR 3[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, BYTE PTR 2[rax]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, BYTE PTR 3[rax]
	movzx	eax, al
	and	eax, 3
	cmp	eax, 2
	jne	.L46
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, BYTE PTR 2[rax]
	test	al, al
	jns	.L47
	movzx	esi, BYTE PTR -1677[rbp]
	mov	rax, QWORD PTR -1592[rbp]
	movzx	ecx, BYTE PTR 2[rax]
	mov	rdx, QWORD PTR -1688[rbp]
	movsx	rax, esi
	mov	BYTE PTR 82[rdx+rax], cl
	jmp	.L48
.L47:
	movzx	esi, BYTE PTR -1677[rbp]
	mov	rax, QWORD PTR -1592[rbp]
	movzx	ecx, BYTE PTR 2[rax]
	mov	rdx, QWORD PTR -1688[rbp]
	movsx	rax, esi
	mov	BYTE PTR 83[rdx+rax], cl
.L48:
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, WORD PTR 4[rax]
	movzx	ecx, BYTE PTR -1677[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR -1688[rbp]
	movsx	rcx, ecx
	add	rcx, 20
	mov	DWORD PTR 4[rax+rcx*4], edx
	jmp	.L61
.L46:
	mov	rax, QWORD PTR -1592[rbp]
	movzx	eax, BYTE PTR 3[rax]
	movzx	eax, al
	and	eax, 3
	cmp	eax, 3
	jne	.L61
	movzx	esi, BYTE PTR -1677[rbp]
	mov	rax, QWORD PTR -1592[rbp]
	movzx	ecx, BYTE PTR 2[rax]
	mov	rdx, QWORD PTR -1688[rbp]
	movsx	rax, esi
	mov	BYTE PTR 81[rdx+rax], cl
	jmp	.L61
.L44:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 4
	je	.L49
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 5
	jne	.L50
.L49:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR 1[rax]
	cmp	al, 36
	je	.L41
.L50:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L40
.L61:
	nop
.L41:
	mov	rax, QWORD PTR -1624[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	QWORD PTR -1672[rbp], rax
.L37:
	mov	rax, QWORD PTR -1672[rbp]
	cmp	rax, QWORD PTR -1632[rbp]
	jb	.L51
.L40:
	mov	rax, QWORD PTR -1672[rbp]
	cmp	rax, QWORD PTR -1632[rbp]
	jne	.L52
	mov	rax, QWORD PTR -1688[rbp]
	lea	rdx, -1312[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -1688[rbp]
	mov	edx, DWORD PTR -1676[rbp]
	mov	DWORD PTR 64[rax], edx
	jmp	.L53
.L52:
	mov	eax, DWORD PTR -1676[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L33
.L59:
	nop
	jmp	.L33
.L60:
	nop
.L33:
	mov	rax, QWORD PTR -1640[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1648[rbp], rax
	cmp	QWORD PTR -1648[rbp], 0
	jne	.L54
.L53:
	mov	rax, QWORD PTR -1640[rbp]
	mov	rdi, rax
	call	closedir@PLT
	mov	rax, QWORD PTR -1688[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jne	.L62
.L30:
	mov	rax, QWORD PTR -1656[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -1648[rbp], rax
	cmp	QWORD PTR -1648[rbp], 0
	jne	.L56
	jmp	.L55
.L62:
	nop
.L55:
	mov	rax, QWORD PTR -1656[rbp]
	mov	rdi, rax
	call	closedir@PLT
	jmp	.L27
.L58:
	nop
.L27:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	quectel_find_usb_device, .-quectel_find_usb_device
	.section	.rodata
	.align 8
.LC10:
	.string	"inf[%d] USBDEVFS_SUBMITURB %d/%d, errno = %d (%s)\n"
	.align 8
.LC11:
	.string	"inf[%d] ep_out %d/%d, errno = %d (%s)\n"
	.text
	.type	usbfs_bulk_write, @function
usbfs_bulk_write:
.LFB58:
	.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, 120
	.cfi_offset 3, -24
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	QWORD PTR -120[rbp], rdx
	mov	DWORD PTR -112[rbp], ecx
	mov	DWORD PTR -124[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	DWORD PTR -92[rbp], -1
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 56
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	BYTE PTR [rax], 3
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -108[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR 83[rcx+rdx]
	mov	BYTE PTR 1[rax], dl
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 4[rax], -1
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -120[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, 16384
	cmp	DWORD PTR -112[rbp], 16384
	cmovle	edx, DWORD PTR -112[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 48[rax], rdx
	cmp	DWORD PTR -112[rbp], 16384
	jg	.L64
	cmp	DWORD PTR -124[rbp], 0
	je	.L64
	mov	eax, DWORD PTR -112[rbp]
	and	eax, 511
	test	eax, eax
	jne	.L64
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 8[rax], 64
	jmp	.L67
.L64:
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 8[rax], 0
.L67:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	esi, 2151175434
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jns	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L67
.L66:
	cmp	DWORD PTR -92[rbp], 0
	je	.L68
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 24[rax]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	r9, rbx
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L73
.L68:
	mov	QWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 64[rax]
	lea	rdx, -88[rbp]
	mov	esi, 1074287884
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], 0
	jns	.L70
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L68
.L70:
	cmp	DWORD PTR -92[rbp], 0
	je	.L71
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR 24[rax]
	mov	edx, DWORD PTR -92[rbp]
	mov	eax, DWORD PTR -108[rbp]
	mov	r9, rbx
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L71:
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	je	.L72
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L72
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 28[rax]
	test	eax, eax
	je	.L72
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 28[rax]
	jmp	.L73
.L72:
	mov	eax, -1
.L73:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L74
	call	__stack_chk_fail@PLT
.L74:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	usbfs_bulk_write, .-usbfs_bulk_write
	.section	.rodata
	.align 8
.LC12:
	.string	"inf[%d] ep_in %d/%d, errno = %d (%s)\n"
	.text
	.type	usbfs_bulk_read, @function
usbfs_bulk_read:
.LFB59:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -80[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], -1
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	movzx	eax, BYTE PTR 82[rdx+rax]
	movzx	eax, al
	mov	DWORD PTR -48[rbp], eax
	mov	eax, 4096
	cmp	DWORD PTR -80[rbp], 4096
	cmovle	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 64[rax]
	lea	rdx, -48[rbp]
	mov	esi, 3222820098
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L76
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 108
	je	.L76
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	esi, DWORD PTR [rax]
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	r9, rbx
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L76:
	mov	eax, DWORD PTR -52[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE59:
	.size	usbfs_bulk_read, .-usbfs_bulk_read
	.type	usb_bulk_read_thread, @function
usb_bulk_read_thread:
.LFB60:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 92[rax]
	mov	DWORD PTR -24[rbp], eax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L82
	mov	eax, 0
	jmp	.L81
.L85:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	usbfs_bulk_read
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L83
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L83
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	jmp	.L82
.L83:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L82
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L84
.L82:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jne	.L85
.L84:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L81:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE60:
	.size	usb_bulk_read_thread, .-usb_bulk_read_thread
	.section	.rodata
.LC13:
	.string	"%s port_name = %s\n"
	.align 8
.LC14:
	.string	"Device could not be open: Linux System Errno: %s"
	.align 8
.LC15:
	.string	"ermio settings could not be fetched Linux System Error:%s"
	.align 8
.LC16:
	.string	"Device could not be configured: Linux System Errno: %s"
	.align 8
.LC17:
	.string	"fail to claim interface %d, errno: %d (%s)\n"
	.text
	.type	qusb_open, @function
qusb_open:
.LFB61:
	.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, 136
	.cfi_offset 3, -24
	mov	QWORD PTR -136[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -112[rbp], -1
	lea	rax, quectel_9x07[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	rdx, rax
	lea	rsi, __func__.4[rip]
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L87
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L88
	mov	rax, QWORD PTR -136[rbp]
	mov	esi, 1052674
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -112[rbp], eax
	cmp	DWORD PTR -112[rbp], 0
	jg	.L89
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L94
.L89:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L91
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L94
.L91:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	cfmakeraw@PLT
	lea	rax, -96[rbp]
	mov	esi, 4098
	mov	rdi, rax
	call	cfsetispeed@PLT
	lea	rax, -96[rbp]
	mov	esi, 4098
	mov	rdi, rax
	call	cfsetospeed@PLT
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L92
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L92:
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR -112[rbp]
	mov	DWORD PTR 68[rax], edx
	jmp	.L87
.L88:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L87
	mov	DWORD PTR -116[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR 64[rax]
	lea	rdx, -116[rbp]
	mov	esi, 2147767567
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], 0
	je	.L93
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -116[rbp]
	mov	rcx, rbx
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L94
.L93:
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -96[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	add	rax, 10
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	add	rax, 8
	mov	rcx, rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socketpair@PLT
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	add	rax, 12
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	lea	rdi, [rdx+rax]
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	lea	rdx, usb_bulk_read_thread[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	edx, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR -104[rbp]
	movsx	rdx, edx
	add	rdx, 10
	mov	eax, DWORD PTR 8[rax+rdx*8]
	mov	DWORD PTR -112[rbp], eax
.L87:
	mov	eax, DWORD PTR -112[rbp]
.L94:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L95
	call	__stack_chk_fail@PLT
.L95:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE61:
	.size	qusb_open, .-qusb_open
	.type	qusb_close, @function
qusb_close:
.LFB62:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, quectel_9x07[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 68[rax]
	test	eax, eax
	jle	.L97
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 68[rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	edi, eax
	call	close@PLT
	jmp	.L98
.L97:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jle	.L98
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	lea	rdx, -20[rbp]
	mov	esi, 2147767568
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	add	rdx, 12
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
.L98:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 104
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE62:
	.size	qusb_close, .-qusb_close
	.globl	qusb_read
	.type	qusb_read, @function
qusb_read:
.LFB63:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE63:
	.size	qusb_read, .-qusb_read
	.type	qusb_write, @function
qusb_write:
.LFB64:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -24[rbp], ecx
	lea	rax, quectel_9x07[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 68[rax]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L104
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 68[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L105
.L104:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jle	.L106
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, ecx
	mov	ecx, esi
	mov	esi, 0
	mov	rdi, rax
	call	usbfs_bulk_write
	cdqe
	jmp	.L105
.L106:
	mov	eax, 0
.L105:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE64:
	.size	qusb_write, .-qusb_write
	.section	.rodata
.LC18:
	.string	"Error: %s\n"
	.text
	.type	qusb_find_quectel_9x07, @function
qusb_find_quectel_9x07:
.LFB65:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	lea	rax, quectel_9x07[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	jle	.L108
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	edi, eax
	call	close@PLT
.L108:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 104
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L109
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	quectel_find_usb_device
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L109
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 76[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 80[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 1
	jmp	.L110
.L109:
	lea	rsi, __func__.3[rip]
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L110:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE65:
	.size	qusb_find_quectel_9x07, .-qusb_find_quectel_9x07
	.section	.rodata
.LC19:
	.string	"%s tcp_port=%d\n"
.LC20:
	.string	"%s bind %d errno: %d (%s)\n"
	.text
	.type	create_tcp_server, @function
create_tcp_server:
.LFB66:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], -1
	mov	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	lea	rsi, __func__.2[rip]
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jg	.L112
	mov	eax, DWORD PTR -52[rbp]
	jmp	.L115
.L112:
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -48[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	lea	rdx, -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L114
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -68[rbp]
	mov	r8, rbx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, __func__.2[rip]
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L115
.L114:
	mov	eax, DWORD PTR -52[rbp]
.L115:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L116
	call	__stack_chk_fail@PLT
.L116:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE66:
	.size	create_tcp_server, .-create_tcp_server
	.type	wait_client_connect, @function
wait_client_connect:
.LFB67:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], -1
	mov	DWORD PTR -152[rbp], 128
	lea	rdi, __func__.1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 1
	mov	edi, eax
	call	listen@PLT
	lea	rdx, -152[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	jg	.L118
	mov	eax, DWORD PTR -148[rbp]
	jmp	.L120
.L118:
	mov	eax, DWORD PTR -148[rbp]
.L120:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L121
	call	__stack_chk_fail@PLT
.L121:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE67:
	.size	wait_client_connect, .-wait_client_connect
	.section	.rodata
.LC21:
	.string	"/dev/ttyUSB0"
.LC22:
	.string	"server_fd=%d\n"
.LC23:
	.string	"Fail create_tcp_server"
.LC24:
	.string	"client_fd=%d\n"
.LC25:
	.string	"Fail wait_client_connect"
.LC26:
	.string	"Fail qusb_find_ec20"
	.align 8
.LC27:
	.string	"idVendor=%04X, idProduct=%04X, interfaceNum=%d\n"
	.align 8
.LC28:
	.string	"Fail 05C6&9008 should not register to %s\n"
.LC29:
	.string	"usb_fd =%d\n"
.LC30:
	.string	"%s poll=%d, errno: %d (%s)\n"
	.align 8
.LC31:
	.string	"%s poll usb_fd = %d, revents = %04x\n"
	.align 8
.LC32:
	.string	"%s poll client_fd = %d, revents = %04x\n"
	.align 8
.LC33:
	.string	"usb_fd=%d read=%d, errno: %d (%s)\n"
	.align 8
.LC34:
	.string	"client_fd=%d read=%d, errno: %d (%s)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB68:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC21[rip]
	mov	QWORD PTR -80[rbp], rax
	mov	DWORD PTR -104[rbp], 9008
	mov	edi, 16384
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -100[rbp], -1
	mov	DWORD PTR -124[rbp], -1
	mov	DWORD PTR -120[rbp], -1
	mov	DWORD PTR -96[rbp], -1
	lea	rax, quectel_9x07[rip]
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -136[rbp], 0
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	cmp	QWORD PTR -72[rbp], 0
	jne	.L123
	mov	eax, -1
	jmp	.L156
.L123:
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	create_tcp_server
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -100[rbp], 0
	jg	.L125
	lea	rdi, .LC23[rip]
	call	puts@PLT
	jmp	.L126
.L125:
	cmp	DWORD PTR -124[rbp], 0
	jg	.L127
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	wait_client_connect
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -124[rbp], 0
	jns	.L127
	lea	rdi, .LC25[rip]
	call	puts@PLT
	jmp	.L126
.L127:
	cmp	DWORD PTR -120[rbp], 0
	jle	.L129
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	je	.L129
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	qusb_close
	mov	DWORD PTR -120[rbp], -1
	jmp	.L129
.L132:
	lea	rcx, -128[rbp]
	lea	rdx, -132[rbp]
	lea	rsi, -136[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	qusb_find_quectel_9x07
	mov	eax, DWORD PTR -136[rbp]
	test	eax, eax
	jne	.L130
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L129
.L130:
	mov	ecx, DWORD PTR -128[rbp]
	mov	edx, DWORD PTR -132[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 72[rax]
	cmp	eax, 1478
	jne	.L131
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 76[rax]
	cmp	eax, 36872
	jne	.L131
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 4
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L131
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L126
.L131:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	qusb_open
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
.L129:
	cmp	DWORD PTR -120[rbp], 0
	jle	.L132
	lea	rcx, -136[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -132[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rcx, -128[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	jmp	.L133
.L155:
	mov	eax, DWORD PTR -120[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	WORD PTR -44[rbp], 1
	mov	WORD PTR -42[rbp], 0
	mov	eax, DWORD PTR -124[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	WORD PTR -36[rbp], 1
	mov	WORD PTR -34[rbp], 0
	mov	DWORD PTR -92[rbp], 2
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 0
.L135:
	mov	eax, DWORD PTR -92[rbp]
	movsx	rcx, eax
	lea	rax, -48[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	jns	.L134
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L135
.L134:
	cmp	DWORD PTR -88[rbp], 0
	jg	.L136
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8, rbx
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -108[rbp], 1
	jmp	.L137
.L136:
	movzx	eax, WORD PTR -42[rbp]
	cwde
	and	eax, 56
	test	eax, eax
	je	.L138
	movzx	eax, WORD PTR -42[rbp]
	movsx	edx, ax
	mov	eax, DWORD PTR -120[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -108[rbp], 1
	jmp	.L137
.L138:
	movzx	eax, WORD PTR -34[rbp]
	cwde
	and	eax, 56
	test	eax, eax
	je	.L139
	movzx	eax, WORD PTR -34[rbp]
	movsx	edx, ax
	mov	eax, DWORD PTR -124[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -112[rbp], 1
	jmp	.L137
.L139:
	mov	DWORD PTR -116[rbp], 0
	jmp	.L140
.L149:
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*8]
	mov	DWORD PTR -84[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	movzx	eax, WORD PTR -42[rbp+rax*8]
	cwde
	and	eax, 1
	test	eax, eax
	je	.L158
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jne	.L143
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	qusb_read
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	jg	.L144
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8, rbx
	mov	esi, eax
	lea	rdi, .LC33[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -108[rbp], 1
	jmp	.L137
.L144:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rbx, eax
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	noblock_full_write
	cmp	rbx, rax
	je	.L142
	mov	DWORD PTR -112[rbp], 1
	jmp	.L137
.L143:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -124[rbp]
	jne	.L142
	mov	DWORD PTR -56[rbp], 305419896
	mov	DWORD PTR -52[rbp], 0
	lea	rcx, -56[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	noblock_full_read
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 8
	je	.L145
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r8, rbx
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -112[rbp], 1
	jmp	.L137
.L145:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 305419896
	jne	.L159
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	noblock_full_read
	cmp	DWORD PTR -96[rbp], eax
	je	.L148
	mov	DWORD PTR -112[rbp], 1
	jmp	.L137
.L148:
	mov	eax, DWORD PTR -96[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -120[rbp]
	mov	ecx, 1
	mov	edi, eax
	call	qusb_write
	jmp	.L142
.L158:
	nop
.L142:
	add	DWORD PTR -116[rbp], 1
.L140:
	mov	eax, DWORD PTR -116[rbp]
	cmp	eax, DWORD PTR -92[rbp]
	jl	.L149
	jmp	.L137
.L159:
	nop
.L137:
	cmp	DWORD PTR -108[rbp], 0
	je	.L150
	cmp	DWORD PTR -120[rbp], 0
	jle	.L151
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	qusb_close
	mov	DWORD PTR -120[rbp], -1
.L151:
	cmp	DWORD PTR -124[rbp], 0
	jle	.L152
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -124[rbp], -1
.L152:
	mov	edi, 1
	call	sleep@PLT
.L150:
	cmp	DWORD PTR -112[rbp], 0
	je	.L133
	cmp	DWORD PTR -124[rbp], 0
	jle	.L133
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -124[rbp], -1
.L133:
	cmp	DWORD PTR -120[rbp], 0
	jle	.L125
	cmp	DWORD PTR -124[rbp], 0
	jg	.L155
	jmp	.L125
.L126:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L156:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L157
	call	__stack_chk_fail@PLT
.L157:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE68:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__func__.6, @object
	.size	__func__.6, 18
__func__.6:
	.string	"noblock_full_read"
	.align 16
	.type	__func__.5, @object
	.size	__func__.5, 19
__func__.5:
	.string	"noblock_full_write"
	.align 8
	.type	__func__.4, @object
	.size	__func__.4, 10
__func__.4:
	.string	"qusb_open"
	.align 16
	.type	__func__.3, @object
	.size	__func__.3, 23
__func__.3:
	.string	"qusb_find_quectel_9x07"
	.align 16
	.type	__func__.2, @object
	.size	__func__.2, 18
__func__.2:
	.string	"create_tcp_server"
	.align 16
	.type	__func__.1, @object
	.size	__func__.1, 20
__func__.1:
	.string	"wait_client_connect"
	.type	__func__.0, @object
	.size	__func__.0, 5
__func__.0:
	.string	"main"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"436052.c"
	.text
	.local	quectel_9x07
	.comm	quectel_9x07,100,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fd=%d read=%zd, errno: %d (%s)\012\000"
	.align	2
.LC1:
	.ascii	"%s fd=%d cur=%zd, size=%zd\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	noblock_full_read, %function
noblock_full_read:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L7:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	add	r1, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L3
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L2
.L3:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L4
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	mov	r3, #1
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	sub	r3, fp, #24
	mvn	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	ldrsh	r3, [fp, #-18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #56
	cmp	r3, #0
	bne	.L11
	b	.L2
.L4:
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+4
	bl	printf
	b	.L6
.L2:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L7
	b	.L6
.L11:
	nop
.L6:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	printf
.L8:
	ldr	r3, [fp, #-32]
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	__func__.7557
	.word	.LC1
	.size	noblock_full_read, .-noblock_full_read
	.section	.rodata
	.align	2
.LC3:
	.ascii	"fd=%d write=%zd, errno: %d (%s)\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	noblock_full_write, %function
noblock_full_write:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L15
.L20:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	add	r1, r2, r3
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r0, [fp, #-40]
	bl	write
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L16
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	b	.L15
.L16:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L17
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	mov	r3, #4
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	sub	r3, fp, #24
	mvn	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	ldrsh	r3, [fp, #-18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #56
	cmp	r3, #0
	bne	.L24
	b	.L15
.L17:
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-40]
	ldr	r0, .L25+4
	bl	printf
	b	.L19
.L15:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L20
	b	.L19
.L24:
	nop
.L19:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L21
	ldr	r3, [fp, #-48]
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r1, .L25+8
	ldr	r0, .L25+12
	bl	printf
.L21:
	ldr	r3, [fp, #-32]
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC4
	.word	.LC3
	.word	__func__.7569
	.word	.LC1
	.size	noblock_full_write, .-noblock_full_write
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	badname, %function
badname:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	b	.L28
.L30:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	str	r1, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	b	.L29
.L28:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	badname, .-badname
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/dev/bus/usb\000"
	.align	2
.LC6:
	.ascii	"%s/%s\000"
	.align	2
.LC7:
	.ascii	"D: %s idVendor=%04x idProduct=%04x\012\000"
	.align	2
.LC8:
	.ascii	"C: %s bNumInterfaces: %d\012\000"
	.align	2
.LC9:
	.ascii	"I: If#= %d Alt= %d #EPs= %d Cls=%02x Sub=%02x Prot="
	.ascii	"%02x\012\000"
	.align	2
.LC10:
	.ascii	"E: Ad=%02x Atr=%02x MxPS= %d Ivl=%dms\012\000"
	.align	2
.LC11:
	.ascii	"unknow bLength=%d bDescriptorType=%d\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	quectel_find_usb_device, %function
quectel_find_usb_device:
	@ args = 0, pretend = 0, frame = 1608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1616
	sub	sp, sp, #8
	str	r0, [fp, #-1608]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L67+4
	str	r3, [fp, #-1596]
	ldr	r0, [fp, #-1596]
	bl	opendir
	str	r0, [fp, #-1592]
	ldr	r3, [fp, #-1592]
	cmp	r3, #0
	beq	.L62
	b	.L34
.L60:
	ldr	r3, [fp, #-1588]
	add	r3, r3, #11
	mov	r0, r3
	bl	badname
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	b	.L34
.L35:
	ldr	r3, [fp, #-1588]
	add	r3, r3, #11
	sub	r0, fp, #1536
	sub	r0, r0, #4
	sub	r0, r0, #12
	ldr	r2, [fp, #-1596]
	ldr	r1, .L67+8
	bl	sprintf
	sub	r3, fp, #1536
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	opendir
	str	r0, [fp, #-1584]
	ldr	r3, [fp, #-1584]
	cmp	r3, #0
	bne	.L37
	b	.L34
.L58:
	mov	r3, #0
	strb	r3, [fp, #-1601]
	ldr	r3, [fp, #-1588]
	add	r3, r3, #11
	mov	r0, r3
	bl	badname
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-1588]
	add	r3, r3, #11
	sub	r2, fp, #1536
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r0, fp, #1280
	sub	r0, r0, #4
	sub	r0, r0, #8
	ldr	r1, .L67+8
	bl	sprintf
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r1, .L67+12
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1580]
	ldr	r3, [fp, #-1580]
	cmp	r3, #0
	blt	.L64
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1580]
	bl	read
	mov	r3, r0
	str	r3, [fp, #-1576]
	mov	r3, #0
	str	r3, [fp, #-1600]
	b	.L41
.L55:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-1600]
	add	r3, r3, r2
	str	r3, [fp, #-1572]
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #18
	bne	.L42
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L42
	ldr	r3, [fp, #-1572]
	str	r3, [fp, #-1568]
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L67+16
	cmp	r3, r2
	beq	.L43
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L67+20
	cmp	r3, r2
	bne	.L44
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #10]	@ zero_extendqisi2
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L67+24
	cmp	r3, r2
	bne	.L44
.L43:
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #-1608]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #10]	@ zero_extendqisi2
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #-1608]
	str	r2, [r3, #76]
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	ldr	r3, [fp, #-1568]
	ldrb	r2, [r3, #10]	@ zero_extendqisi2
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r1, fp, #1280
	sub	r1, r1, #4
	sub	r1, r1, #8
	mov	r2, r0
	ldr	r0, .L67+28
	bl	printf
	b	.L45
.L42:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L46
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L46
	ldr	r3, [fp, #-1572]
	str	r3, [fp, #-1564]
	ldr	r3, [fp, #-1564]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r2, r3
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L67+32
	bl	printf
	ldr	r3, [fp, #-1564]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldr	r3, [fp, #-1608]
	strb	r2, [r3, #80]
	b	.L45
.L46:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bne	.L47
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L47
	ldr	r3, [fp, #-1572]
	str	r3, [fp, #-1560]
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	lr, r3
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #7]	@ zero_extendqisi2
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L67+36
	bl	printf
	ldr	r3, [fp, #-1560]
	ldrb	r3, [r3, #2]
	strb	r3, [fp, #-1601]
	b	.L45
.L47:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #7
	bne	.L48
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L48
	ldr	r3, [fp, #-1572]
	str	r3, [fp, #-1556]
	ldrb	r3, [fp, #-1601]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L65
	ldr	r3, [fp, #-1556]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-1556]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-1556]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldr	r3, [fp, #-1556]
	ldrb	r3, [r3, #6]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r0
	ldr	r0, .L67+40
	bl	printf
	ldr	r3, [fp, #-1556]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	and	r3, r3, #3
	cmp	r3, #2
	bne	.L50
	ldr	r3, [fp, #-1556]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	bge	.L51
	ldrb	r3, [fp, #-1601]	@ zero_extendqisi2
	ldr	r2, [fp, #-1556]
	ldrb	r1, [r2, #2]	@ zero_extendqisi2
	ldr	r2, [fp, #-1608]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #82]
	b	.L52
.L51:
	ldrb	r3, [fp, #-1601]	@ zero_extendqisi2
	ldr	r2, [fp, #-1556]
	ldrb	r1, [r2, #2]	@ zero_extendqisi2
	ldr	r2, [fp, #-1608]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #83]
.L52:
	ldr	r3, [fp, #-1556]
	ldrb	r2, [r3, #4]	@ zero_extendqisi2
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r3, r2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-1601]	@ zero_extendqisi2
	mov	r1, r2
	ldr	r2, [fp, #-1608]
	add	r3, r3, #20
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r1, [r3, #4]
	b	.L65
.L50:
	ldr	r3, [fp, #-1556]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	and	r3, r3, #3
	cmp	r3, #3
	bne	.L65
	ldrb	r3, [fp, #-1601]	@ zero_extendqisi2
	ldr	r2, [fp, #-1556]
	ldrb	r1, [r2, #2]	@ zero_extendqisi2
	ldr	r2, [fp, #-1608]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #81]
	b	.L65
.L48:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #4
	beq	.L53
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #5
	bne	.L54
.L53:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #36
	beq	.L45
.L54:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L67+44
	bl	printf
	b	.L44
.L65:
	nop
.L45:
	ldr	r3, [fp, #-1572]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-1600]
	add	r3, r3, r2
	str	r3, [fp, #-1600]
.L41:
	ldr	r2, [fp, #-1600]
	ldr	r3, [fp, #-1576]
	cmp	r2, r3
	bcc	.L55
.L44:
	ldr	r2, [fp, #-1600]
	ldr	r3, [fp, #-1576]
	cmp	r2, r3
	bne	.L56
	ldr	r2, [fp, #-1608]
	sub	r3, fp, #1280
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	ldr	r3, [fp, #-1608]
	ldr	r2, [fp, #-1580]
	str	r2, [r3, #64]
	b	.L57
.L56:
	ldr	r0, [fp, #-1580]
	bl	close
	b	.L37
.L63:
	nop
	b	.L37
.L64:
	nop
.L37:
	ldr	r0, [fp, #-1584]
	bl	readdir
	str	r0, [fp, #-1588]
	ldr	r3, [fp, #-1588]
	cmp	r3, #0
	bne	.L58
.L57:
	ldr	r0, [fp, #-1584]
	bl	closedir
	ldr	r3, [fp, #-1608]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	bne	.L66
.L34:
	ldr	r0, [fp, #-1592]
	bl	readdir
	str	r0, [fp, #-1588]
	ldr	r3, [fp, #-1588]
	cmp	r3, #0
	bne	.L60
	b	.L59
.L66:
	nop
.L59:
	ldr	r0, [fp, #-1592]
	bl	closedir
	b	.L31
.L62:
	nop
.L31:
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC12
	.word	.LC5
	.word	.LC6
	.word	258
	.word	11388
	.word	1478
	.word	36872
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	quectel_find_usb_device, .-quectel_find_usb_device
	.section	.rodata
	.align	2
.LC13:
	.ascii	"inf[%d] USBDEVFS_SUBMITURB %d/%d, errno = %d (%s)\012"
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"inf[%d] ep_out %d/%d, errno = %d (%s)\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbfs_bulk_write, %function
usbfs_bulk_write:
	@ args = 4, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #60
	str	r3, [fp, #-68]
	mvn	r3, #0
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-68]
	mov	r2, #44
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-68]
	mov	r2, #3
	strb	r2, [r3]
	ldr	r3, [fp, #-68]
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-76]
	add	r2, r1, r2
	add	r2, r2, #83
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-68]
	mvn	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-80]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-84]
	cmp	r3, #16384
	movlt	r3, r3
	movge	r3, #16384
	str	r3, [r2, #16]
	ldr	r3, [fp, #-68]
	ldr	r2, [fp, #-68]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-84]
	cmp	r3, #16384
	bgt	.L70
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-68]
	mov	r2, #64
	str	r2, [r3, #8]
	b	.L73
.L70:
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #8]
.L73:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #64]
	ldr	r2, [fp, #-68]
	ldr	r1, .L81+4
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L72
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L73
.L72:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L74
	ldr	r3, [fp, #-68]
	ldr	r5, [r3, #16]
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-76]
	ldr	r0, .L81+8
	bl	printf
	mvn	r3, #0
	b	.L79
.L74:
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #64]
	sub	r2, fp, #68
	ldr	r1, .L81+12
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L76
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L74
.L76:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L77
	ldr	r3, [fp, #-68]
	ldr	r5, [r3, #16]
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-76]
	ldr	r0, .L81+16
	bl	printf
.L77:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L78
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #20]
	b	.L79
.L78:
	mvn	r3, #0
.L79:
	ldr	r2, .L81
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L80
	bl	__stack_chk_fail
.L80:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC15
	.word	-2144578294
	.word	.LC13
	.word	1074025740
	.word	.LC14
	.size	usbfs_bulk_write, .-usbfs_bulk_write
	.section	.rodata
	.align	2
.LC16:
	.ascii	"inf[%d] ep_in %d/%d, errno = %d (%s)\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usbfs_bulk_read, %function
usbfs_bulk_read:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	add	r3, r3, #82
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-52]
	cmp	r3, #4096
	movlt	r3, r3
	movge	r3, #4096
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #64]
	sub	r2, fp, #32
	ldr	r1, .L87+4
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L84
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #108
	beq	.L84
	ldr	r5, [fp, #-28]
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-44]
	ldr	r0, .L87+8
	bl	printf
.L84:
	ldr	r3, [fp, #-36]
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L86
	bl	__stack_chk_fail
.L86:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC17
	.word	-1072671486
	.word	.LC16
	.size	usbfs_bulk_read, .-usbfs_bulk_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_bulk_read_thread, %function
usb_bulk_read_thread:
	@ 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]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	mov	r0, #4096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #92]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L92
	mov	r3, #0
	b	.L91
.L95:
	mov	r3, #4096
	ldr	r2, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	usbfs_bulk_read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L93
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	beq	.L93
	ldr	r3, [fp, #-8]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	write
	str	r0, [fp, #-8]
	b	.L92
.L93:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L92
	ldr	r0, [fp, #-12]
	bl	close
	b	.L94
.L92:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	bne	.L95
.L94:
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
.L91:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	usb_bulk_read_thread, .-usb_bulk_read_thread
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%s port_name = %s\012\000"
	.align	2
.LC19:
	.ascii	"Device could not be open: Linux System Errno: %s\000"
	.align	2
.LC20:
	.ascii	"ermio settings could not be fetched Linux System Er"
	.ascii	"ror:%s\000"
	.align	2
.LC21:
	.ascii	"Device could not be configured: Linux System Errno:"
	.ascii	" %s\000"
	.align	2
.LC22:
	.ascii	"fail to claim interface %d, errno: %d (%s)\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qusb_open, %function
qusb_open:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-96]
	ldr	r3, .L106
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-88]
	ldr	r3, .L106+4
	str	r3, [fp, #-84]
	ldr	r2, [fp, #-96]
	ldr	r1, .L106+8
	ldr	r0, .L106+12
	bl	printf
	ldr	r3, [fp, #-96]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L97
	mov	r1, #4
	ldr	r0, [fp, #-96]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L98
	ldr	r1, .L106+16
	ldr	r0, [fp, #-96]
	bl	open
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bgt	.L99
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L106+20
	bl	printf
	mvn	r3, #0
	b	.L104
.L99:
	sub	r3, fp, #76
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	tcgetattr
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L101
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L106+24
	bl	printf
	mvn	r3, #0
	b	.L104
.L101:
	sub	r3, fp, #76
	mov	r0, r3
	bl	cfmakeraw
	sub	r3, fp, #76
	ldr	r1, .L106+28
	mov	r0, r3
	bl	cfsetispeed
	sub	r3, fp, #76
	ldr	r1, .L106+28
	mov	r0, r3
	bl	cfsetospeed
	sub	r3, fp, #76
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-88]
	bl	tcsetattr
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L102
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L106+32
	bl	printf
.L102:
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-88]
	str	r2, [r3, #68]
	b	.L97
.L98:
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	beq	.L97
	mov	r3, #0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #64]
	sub	r2, fp, #92
	ldr	r1, .L106+36
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L103
	ldr	r4, [fp, #-92]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L106+40
	bl	printf
	mvn	r3, #0
	b	.L104
.L103:
	sub	r3, fp, #76
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #76
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	ldr	r3, [fp, #-92]
	add	r3, r3, #11
	lsl	r3, r3, #3
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socketpair
	ldr	r3, [fp, #-92]
	add	r3, r3, #24
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r0, r2, r3
	sub	r1, fp, #76
	ldr	r3, [fp, #-84]
	ldr	r2, .L106+44
	bl	pthread_create
	ldr	r2, [fp, #-92]
	ldr	r3, [fp, #-84]
	add	r2, r2, #11
	ldr	r3, [r3, r2, lsl #3]
	str	r3, [fp, #-88]
.L97:
	ldr	r3, [fp, #-88]
.L104:
	ldr	r2, .L106
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L105
	bl	__stack_chk_fail
.L105:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L107:
	.align	2
.L106:
	.word	.LC23
	.word	quectel_9x07
	.word	__func__.7643
	.word	.LC18
	.word	1052674
	.word	.LC19
	.word	.LC20
	.word	4098
	.word	.LC21
	.word	-2147199729
	.word	.LC22
	.word	usb_bulk_read_thread
	.size	qusb_open, .-qusb_open
	.section	.rodata
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qusb_close, %function
qusb_close:
	@ 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]
	ldr	r3, .L113
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L113+4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	ble	.L109
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #68]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	close
	b	.L110
.L109:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	ble	.L110
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #64]
	sub	r2, fp, #16
	ldr	r1, .L113+8
	mov	r0, r3
	bl	ioctl
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #64]
	mov	r0, r3
	bl	close
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r2, r2, #24
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
.L110:
	mov	r2, #100
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	memset
	mov	r3, #0
	ldr	r2, .L113
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L112
	bl	__stack_chk_fail
.L112:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L114:
	.align	2
.L113:
	.word	.LC24
	.word	quectel_9x07
	.word	-2147199728
	.size	qusb_close, .-qusb_close
	.align	2
	.global	qusb_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	qusb_read, %function
qusb_read:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	read
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	qusb_read, .-qusb_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qusb_write, %function
qusb_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, .L121
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #68]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L118
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #68]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	write
	mov	r3, r0
	b	.L119
.L118:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	ble	.L120
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-20]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	usbfs_bulk_write
	mov	r3, r0
	b	.L119
.L120:
	mov	r3, #0
.L119:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	quectel_9x07
	.size	qusb_write, .-qusb_write
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Error: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qusb_find_quectel_9x07, %function
qusb_find_quectel_9x07:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, .L127
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	ble	.L124
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	close
.L124:
	mov	r2, #100
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L125
	ldr	r0, [fp, #-8]
	bl	quectel_find_usb_device
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #64]
	cmp	r3, #0
	beq	.L125
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #72]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #76]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #80]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #1
	b	.L126
.L125:
	ldr	r1, .L127+4
	ldr	r0, .L127+8
	bl	printf
	mov	r3, #0
.L126:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L128:
	.align	2
.L127:
	.word	quectel_9x07
	.word	__func__.7670
	.word	.LC25
	.size	qusb_find_quectel_9x07, .-qusb_find_quectel_9x07
	.section	.rodata
	.align	2
.LC26:
	.ascii	"%s tcp_port=%d\012\000"
	.align	2
.LC27:
	.ascii	"%s bind %d errno: %d (%s)\012\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_tcp_server, %function
create_tcp_server:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	ldr	r3, .L135
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	ldr	r1, .L135+4
	ldr	r0, .L135+8
	bl	printf
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L130
	ldr	r3, [fp, #-36]
	b	.L133
.L130:
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	sub	r3, fp, #40
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	setsockopt
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L132
	ldr	r0, [fp, #-36]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-48]
	ldr	r1, .L135+4
	ldr	r0, .L135+12
	bl	printf
	mvn	r3, #0
	b	.L133
.L132:
	ldr	r3, [fp, #-36]
.L133:
	ldr	r2, .L135
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L134
	bl	__stack_chk_fail
.L134:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L136:
	.align	2
.L135:
	.word	.LC28
	.word	__func__.7677
	.word	.LC26
	.word	.LC27
	.size	create_tcp_server, .-create_tcp_server
	.section	.rodata
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_client_connect, %function
wait_client_connect:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L142
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-140]
	mov	r3, #128
	str	r3, [fp, #-144]
	ldr	r0, .L142+4
	bl	puts
	mov	r1, #1
	ldr	r0, [fp, #-152]
	bl	listen
	sub	r2, fp, #144
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	accept
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bgt	.L138
	ldr	r3, [fp, #-140]
	b	.L140
.L138:
	ldr	r3, [fp, #-140]
.L140:
	ldr	r2, .L142
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L141
	bl	__stack_chk_fail
.L141:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L143:
	.align	2
.L142:
	.word	.LC29
	.word	__func__.7684
	.size	wait_client_connect, .-wait_client_connect
	.section	.rodata
	.align	2
.LC30:
	.ascii	"/dev/ttyUSB0\000"
	.align	2
.LC31:
	.ascii	"server_fd=%d\012\000"
	.align	2
.LC32:
	.ascii	"Fail create_tcp_server\000"
	.align	2
.LC33:
	.ascii	"client_fd=%d\012\000"
	.align	2
.LC34:
	.ascii	"Fail wait_client_connect\000"
	.align	2
.LC35:
	.ascii	"Fail qusb_find_ec20\000"
	.align	2
.LC36:
	.ascii	"idVendor=%04X, idProduct=%04X, interfaceNum=%d\012\000"
	.align	2
.LC37:
	.ascii	"Fail 05C6&9008 should not register to %s\012\000"
	.align	2
.LC38:
	.ascii	"usb_fd =%d\012\000"
	.align	2
.LC39:
	.ascii	"%s poll=%d, errno: %d (%s)\012\000"
	.align	2
.LC40:
	.ascii	"%s poll usb_fd = %d, revents = %04x\012\000"
	.align	2
.LC41:
	.ascii	"%s poll client_fd = %d, revents = %04x\012\000"
	.align	2
.LC42:
	.ascii	"usb_fd=%d read=%d, errno: %d (%s)\012\000"
	.align	2
.LC43:
	.ascii	"client_fd=%d read=%d, errno: %d (%s)\012\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #116
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L182
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L182+4
	str	r3, [fp, #-76]
	ldr	r3, .L182+8
	str	r3, [fp, #-72]
	mov	r0, #16384
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	mvn	r3, #0
	str	r3, [fp, #-64]
	mvn	r3, #0
	str	r3, [fp, #-96]
	mvn	r3, #0
	str	r3, [fp, #-92]
	mvn	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, .L182+12
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L145
	mvn	r3, #0
	b	.L178
.L145:
	ldr	r0, [fp, #-72]
	bl	create_tcp_server
	str	r0, [fp, #-64]
	ldr	r1, [fp, #-64]
	ldr	r0, .L182+16
	bl	printf
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L147
	ldr	r0, .L182+20
	bl	puts
	b	.L148
.L147:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bgt	.L149
	ldr	r0, [fp, #-64]
	bl	wait_client_connect
	str	r0, [fp, #-96]
	ldr	r1, [fp, #-96]
	ldr	r0, .L182+24
	bl	printf
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L149
	ldr	r0, .L182+28
	bl	puts
	b	.L148
.L149:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	ble	.L151
	ldr	r3, [fp, #-56]
	mov	r1, #4
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L151
	ldr	r0, [fp, #-92]
	bl	qusb_close
	mvn	r3, #0
	str	r3, [fp, #-92]
	b	.L151
.L154:
	sub	r3, fp, #100
	sub	r2, fp, #104
	sub	r1, fp, #108
	ldr	r0, [fp, #-76]
	bl	qusb_find_quectel_9x07
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	bne	.L152
	ldr	r0, .L182+32
	bl	puts
	mov	r0, #1
	bl	sleep
	b	.L151
.L152:
	ldr	r1, [fp, #-108]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-100]
	ldr	r0, .L182+36
	bl	printf
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #72]
	ldr	r2, .L182+40
	cmp	r3, r2
	bne	.L153
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, #76]
	ldr	r2, .L182+44
	cmp	r3, r2
	bne	.L153
	mov	r1, #4
	ldr	r0, [fp, #-76]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L153
	ldr	r1, [fp, #-76]
	ldr	r0, .L182+48
	bl	printf
	b	.L148
.L153:
	ldr	r0, [fp, #-76]
	bl	qusb_open
	str	r0, [fp, #-92]
	ldr	r1, [fp, #-92]
	ldr	r0, .L182+52
	bl	printf
.L151:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	ble	.L154
	sub	r3, fp, #108
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	write
	sub	r3, fp, #104
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	write
	sub	r3, fp, #100
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	write
	mov	r1, #3
	ldr	r0, [fp, #-92]
	bl	fcntl
	mov	r3, r0
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-92]
	bl	fcntl
	mov	r1, #3
	ldr	r0, [fp, #-96]
	bl	fcntl
	mov	r3, r0
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-96]
	bl	fcntl
	b	.L155
.L177:
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-32]
	mov	r3, #1
	strh	r3, [fp, #-28]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-26]	@ movhi
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-24]
	mov	r3, #1
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, #2
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-80]
.L157:
	ldr	r1, [fp, #-52]
	sub	r3, fp, #32
	mvn	r2, #0
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L156
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L157
.L156:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L158
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-48]
	ldr	r1, .L182+56
	ldr	r0, .L182+60
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L159
.L158:
	ldrsh	r3, [fp, #-26]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #56
	cmp	r3, #0
	beq	.L160
	ldrsh	r3, [fp, #-26]
	ldr	r2, [fp, #-92]
	ldr	r1, .L182+56
	ldr	r0, .L182+64
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L159
.L160:
	ldrsh	r3, [fp, #-18]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #56
	cmp	r3, #0
	beq	.L161
	ldrsh	r3, [fp, #-18]
	ldr	r2, [fp, #-96]
	ldr	r1, .L182+56
	ldr	r0, .L182+68
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L159
.L161:
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L162
.L171:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r3, r3, #14
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L180
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-92]
	cmp	r2, r3
	bne	.L165
	mov	r2, #4096
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-92]
	bl	qusb_read
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bgt	.L166
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-44]
	ldr	r0, .L182+72
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L159
.L166:
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-96]
	bl	noblock_full_write
	mov	r2, r0
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	beq	.L164
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L159
.L165:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	bne	.L164
	ldr	r3, .L182+76
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #40
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	noblock_full_read
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #8
	beq	.L167
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-44]
	ldr	r0, .L182+80
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L159
.L167:
	ldr	r3, [fp, #-40]
	ldr	r2, .L182+76
	cmp	r3, r2
	bne	.L181
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-96]
	bl	noblock_full_read
	mov	r2, r0
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	beq	.L170
	mov	r3, #1
	str	r3, [fp, #-84]
	b	.L159
.L170:
	ldr	r2, [fp, #-60]
	mov	r3, #1
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-92]
	bl	qusb_write
	b	.L164
.L180:
	nop
.L164:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L162:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L171
	b	.L159
.L181:
	nop
.L159:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L172
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	ble	.L173
	ldr	r0, [fp, #-92]
	bl	qusb_close
	mvn	r3, #0
	str	r3, [fp, #-92]
.L173:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	ble	.L174
	ldr	r0, [fp, #-96]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-96]
.L174:
	mov	r0, #1
	bl	sleep
.L172:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L155
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	ble	.L155
	ldr	r0, [fp, #-96]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-96]
.L155:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	ble	.L147
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bgt	.L177
	b	.L147
.L148:
	ldr	r0, [fp, #-68]
	bl	free
	mov	r3, #0
.L178:
	ldr	r2, .L182
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L179
	bl	__stack_chk_fail
.L179:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L183:
	.align	2
.L182:
	.word	.LC44
	.word	.LC30
	.word	9008
	.word	quectel_9x07
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	1478
	.word	36872
	.word	.LC37
	.word	.LC38
	.word	__func__.7712
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	305419896
	.word	.LC43
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.7557, %object
	.size	__func__.7557, 18
__func__.7557:
	.ascii	"noblock_full_read\000"
	.align	2
	.type	__func__.7569, %object
	.size	__func__.7569, 19
__func__.7569:
	.ascii	"noblock_full_write\000"
	.align	2
	.type	__func__.7643, %object
	.size	__func__.7643, 10
__func__.7643:
	.ascii	"qusb_open\000"
	.align	2
	.type	__func__.7670, %object
	.size	__func__.7670, 23
__func__.7670:
	.ascii	"qusb_find_quectel_9x07\000"
	.align	2
	.type	__func__.7677, %object
	.size	__func__.7677, 18
__func__.7677:
	.ascii	"create_tcp_server\000"
	.align	2
	.type	__func__.7684, %object
	.size	__func__.7684, 20
__func__.7684:
	.ascii	"wait_client_connect\000"
	.align	2
	.type	__func__.7712, %object
	.size	__func__.7712, 5
__func__.7712:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
