	.file	"extr_moused.c_pnpwakeup1.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PnP COM device rev 1.0 probe..."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"modem status 0%o"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"pnpwakeup1(): valid response in first phase."
	.align 8
.LC3:
	.string	"pnpwakeup1(): valid response in second phase."
	.text
	.p2align 4
	.type	pnpwakeup1, @function
pnpwakeup1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r12, 12[rsp]
	call	debug@PLT
	mov	esi, DWORD PTR TIOCMGET[rip]
	mov	edi, DWORD PTR rodent[rip]
	mov	rdx, r12
	call	ioctl@PLT
	mov	edx, DWORD PTR TIOCM_RTS[rip]
	mov	eax, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR TIOCMSET[rip]
	mov	edi, DWORD PTR rodent[rip]
	or	eax, DWORD PTR TIOCM_DTR[rip]
	not	edx
	and	eax, edx
	mov	rdx, r12
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	edi, 240000
	call	usleep@PLT
	mov	esi, DWORD PTR TIOCMGET[rip]
	mov	edi, DWORD PTR rodent[rip]
	mov	rdx, r12
	call	ioctl@PLT
	mov	esi, DWORD PTR 12[rsp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	debug@PLT
	mov	eax, DWORD PTR 12[rsp]
	test	DWORD PTR TIOCM_DSR[rip], eax
	jne	.L2
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR CS7[rip]
	mov	esi, 1200
	or	edx, DWORD PTR CREAD[rip]
	mov	edi, 1200
	or	edx, DWORD PTR CLOCAL[rip]
	lea	rbp, 8[rsp]
	lea	rbx, 16[rsp]
	or	edx, DWORD PTR HUPCL[rip]
	call	setmousespeed@PLT
	mov	esi, DWORD PTR TIOCMBIC[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR rodent[rip]
	mov	eax, DWORD PTR TIOCM_DTR[rip]
	or	eax, DWORD PTR TIOCM_RTS[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	edi, 240000
	call	usleep@PLT
	mov	esi, DWORD PTR TIOCMBIS[rip]
	mov	eax, DWORD PTR TIOCM_DTR[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR rodent[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	edi, 240000
	call	usleep@PLT
	mov	eax, DWORD PTR FREAD[rip]
	mov	esi, DWORD PTR TIOCFLUSH[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR rodent[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	esi, DWORD PTR TIOCMBIS[rip]
	mov	eax, DWORD PTR TIOCM_RTS[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR rodent[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	rdi, rbp
	call	FD_ZERO@PLT
	mov	edi, DWORD PTR rodent[rip]
	mov	rsi, rbp
	call	FD_SET@PLT
	mov	edi, DWORD PTR FD_SETSIZE[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	r8, rbx
	mov	rsi, rbp
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 16[rsp], 240000
	call	select@PLT
	test	rax, rax
	jg	.L10
	mov	esi, DWORD PTR TIOCMBIC[rip]
	mov	edi, DWORD PTR rodent[rip]
	mov	rdx, r12
	mov	eax, DWORD PTR TIOCM_DTR[rip]
	or	eax, DWORD PTR TIOCM_RTS[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	edi, 240000
	call	usleep@PLT
	mov	eax, DWORD PTR FREAD[rip]
	mov	esi, DWORD PTR TIOCFLUSH[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR rodent[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	esi, DWORD PTR TIOCMBIS[rip]
	mov	rdx, r12
	mov	edi, DWORD PTR rodent[rip]
	mov	eax, DWORD PTR TIOCM_DTR[rip]
	or	eax, DWORD PTR TIOCM_RTS[rip]
	mov	DWORD PTR 12[rsp], eax
	call	ioctl@PLT
	mov	rdi, rbp
	call	FD_ZERO@PLT
	mov	edi, DWORD PTR rodent[rip]
	mov	rsi, rbp
	call	FD_SET@PLT
	mov	edi, DWORD PTR FD_SETSIZE[rip]
	mov	r8, rbx
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, rbp
	mov	QWORD PTR 24[rsp], 0
	mov	DWORD PTR 16[rsp], 240000
	call	select@PLT
	mov	r8, rax
	mov	eax, DWORD PTR FALSE[rip]
	test	r8, r8
	jle	.L1
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	debug@PLT
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	debug@PLT
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pnpwakeup1, .-pnpwakeup1
	.comm	rodent,4,4
	.comm	TRUE,4,4
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_DTR,4,4
	.comm	TIOCM_DSR,4,4
	.comm	TIOCMSET,4,4
	.comm	TIOCMGET,4,4
	.comm	TIOCMBIS,4,4
	.comm	TIOCMBIC,4,4
	.comm	TIOCFLUSH,4,4
	.comm	HUPCL,4,4
	.comm	FREAD,4,4
	.comm	FD_SETSIZE,4,4
	.comm	FALSE,4,4
	.comm	CS7,4,4
	.comm	CREAD,4,4
	.comm	CLOCAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_moused.c_pnpwakeup1.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PnP COM device rev 1.0 probe...\000"
	.align	2
.LC1:
	.ascii	"modem status 0%o\000"
	.align	2
.LC2:
	.ascii	"pnpwakeup1(): valid response in first phase.\000"
	.align	2
.LC3:
	.ascii	"pnpwakeup1(): valid response in second phase.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pnpwakeup1, %function
pnpwakeup1:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L11
	ldr	r4, .L11+4
	ldr	r8, .L11+8
	sub	sp, sp, #36
	ldr	r0, .L11+12
	ldr	r7, .L11+16
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r6, .L11+20
	bl	debug
	ldr	r1, [r8]
	add	r2, sp, #16
	ldr	r0, [r4]
	bl	ioctl
	ldr	r0, [r7]
	ldr	r3, [sp, #16]
	ldr	r2, [r6]
	ldr	r1, .L11+24
	orr	r3, r3, r0
	ldr	r5, .L11+28
	bic	r3, r3, r2
	ldr	r1, [r1]
	add	r2, sp, #16
	ldr	r0, [r4]
	str	r3, [sp, #16]
	bl	ioctl
	mov	r0, r5
	bl	usleep
	add	r2, sp, #16
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	ioctl
	ldr	r1, [sp, #16]
	ldr	r0, .L11+32
	bl	debug
	ldr	r3, .L11+36
	ldr	r2, [sp, #16]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L2
.L5:
	ldr	r3, .L11+40
	ldr	r0, [r3]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r1, #1200
	mov	r9, #0
	ldr	r2, .L11+44
	ldr	r0, .L11+48
	ldr	lr, .L11+52
	ldr	r2, [r2]
	ldr	r0, [r0]
	ldr	ip, .L11+56
	ldr	lr, [lr]
	ldr	ip, [ip]
	orr	r0, r2, r0
	orr	r2, r0, lr
	orr	r2, r2, ip
	mov	r0, r1
	bl	setmousespeed
	ldr	fp, .L11+60
	ldr	r2, [r6]
	ldr	ip, [r7]
	ldr	r1, [fp]
	orr	ip, ip, r2
	ldr	r0, [r4]
	add	r2, sp, #16
	str	ip, [sp, #16]
	ldr	r8, .L11+64
	bl	ioctl
	mov	r0, r5
	bl	usleep
	ldr	ip, [r7]
	ldr	r1, [r8]
	add	r2, sp, #16
	ldr	r0, [r4]
	str	ip, [sp, #16]
	ldr	r10, .L11+68
	bl	ioctl
	mov	r0, r5
	bl	usleep
	ldr	r3, .L11+72
	ldr	ip, [r10]
	ldr	r1, [r3]
	add	r2, sp, #16
	ldr	r0, [r4]
	str	ip, [sp, #16]
	bl	ioctl
	ldr	ip, [r6]
	add	r2, sp, #16
	ldr	r1, [r8]
	ldr	r0, [r4]
	str	ip, [sp, #16]
	bl	ioctl
	add	r0, sp, #12
	bl	FD_ZERO
	add	r1, sp, #12
	ldr	r0, [r4]
	bl	FD_SET
	ldr	r0, .L11+76
	add	ip, sp, #20
	ldr	r0, [r0]
	mov	r3, r9
	mov	r2, r9
	add	r1, sp, #12
	str	ip, [sp]
	str	r5, [sp, #20]
	str	r9, [sp, #24]
	bl	select
	cmp	r0, r9
	bgt	.L10
	ldr	r2, [r6]
	ldr	ip, [r7]
	ldr	r1, [fp]
	orr	ip, ip, r2
	ldr	r0, [r4]
	add	r2, sp, #16
	str	ip, [sp, #16]
	bl	ioctl
	mov	r0, r5
	bl	usleep
	ldr	r3, .L11+72
	ldr	ip, [r10]
	ldr	r1, [r3]
	add	r2, sp, #16
	ldr	r0, [r4]
	str	ip, [sp, #16]
	bl	ioctl
	ldr	r1, [r6]
	ldr	ip, [r7]
	add	r2, sp, #16
	orr	ip, ip, r1
	ldr	r0, [r4]
	ldr	r1, [r8]
	str	ip, [sp, #16]
	bl	ioctl
	add	r0, sp, #12
	bl	FD_ZERO
	add	r1, sp, #12
	ldr	r0, [r4]
	bl	FD_SET
	add	r3, sp, #20
	str	r3, [sp]
	ldr	r3, .L11+76
	mov	r2, r9
	ldr	r0, [r3]
	add	r1, sp, #12
	mov	r3, r9
	str	r9, [sp, #24]
	str	r5, [sp, #20]
	bl	select
	cmp	r0, #0
	ble	.L5
	ldr	r0, .L11+80
	bl	debug
	ldr	r3, .L11+84
	ldr	r0, [r3]
	b	.L1
.L10:
	ldr	r0, .L11+88
	bl	debug
	ldr	r3, .L11+84
	ldr	r0, [r3]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	rodent
	.word	TIOCMGET
	.word	.LC0
	.word	TIOCM_DTR
	.word	TIOCM_RTS
	.word	TIOCMSET
	.word	240000
	.word	.LC1
	.word	TIOCM_DSR
	.word	FALSE
	.word	CS7
	.word	CREAD
	.word	CLOCAL
	.word	HUPCL
	.word	TIOCMBIC
	.word	TIOCMBIS
	.word	FREAD
	.word	TIOCFLUSH
	.word	FD_SETSIZE
	.word	.LC3
	.word	TRUE
	.word	.LC2
	.size	pnpwakeup1, .-pnpwakeup1
	.comm	rodent,4,4
	.comm	TRUE,4,4
	.comm	TIOCM_RTS,4,4
	.comm	TIOCM_DTR,4,4
	.comm	TIOCM_DSR,4,4
	.comm	TIOCMSET,4,4
	.comm	TIOCMGET,4,4
	.comm	TIOCMBIS,4,4
	.comm	TIOCMBIC,4,4
	.comm	TIOCFLUSH,4,4
	.comm	HUPCL,4,4
	.comm	FREAD,4,4
	.comm	FD_SETSIZE,4,4
	.comm	FALSE,4,4
	.comm	CS7,4,4
	.comm	CREAD,4,4
	.comm	CLOCAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
