	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpwakeup2
_pnpwakeup2:                            ## @pnpwakeup2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	_debug
	movq	_rodent@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_TIOCMGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_ioctl
	movq	_TIOCM_DTR@GOTPCREL(%rip), %r15
	movl	-36(%rbp), %eax
	orl	(%r15), %eax
	movq	_TIOCM_RTS@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -36(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	$240000, %edi                   ## imm = 0x3A980
	callq	_usleep
	movq	_CS7@GOTPCREL(%rip), %rax
	movq	_CREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_CLOCAL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_HUPCL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	$1200, %edi                     ## imm = 0x4B0
	movl	$1200, %esi                     ## imm = 0x4B0
	callq	_setmousespeed
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%r14), %edi
	movq	_TIOCFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	(%r12), %eax
	orl	(%r15), %eax
	movl	%eax, -36(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMBIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	$0, -48(%rbp)
	movl	$240000, -56(%rbp)              ## imm = 0x3A980
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_debug
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alternate probe..."

	.comm	_rodent,4,2                     ## @rodent
	.comm	_TIOCMGET,4,2                   ## @TIOCMGET
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_TIOCMSET,4,2                   ## @TIOCMSET
	.comm	_CS7,4,2                        ## @CS7
	.comm	_CREAD,4,2                      ## @CREAD
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_TIOCFLUSH,4,2                  ## @TIOCFLUSH
	.comm	_TIOCMBIS,4,2                   ## @TIOCMBIS
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
L_.str.1:                               ## @.str.1
	.asciz	"pnpwakeup2(): valid response."

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_pnpwakeup2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpwakeup2
_pnpwakeup2:                            ; @pnpwakeup2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh2:
	adrp	x19, _rodent@GOTPAGE
Lloh3:
	ldr	x19, [x19, _rodent@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _TIOCMGET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIOCMGET@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
Lloh7:
	adrp	x21, _TIOCM_DTR@GOTPAGE
Lloh8:
	ldr	x21, [x21, _TIOCM_DTR@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
Lloh9:
	adrp	x22, _TIOCM_RTS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _TIOCM_RTS@GOTPAGEOFF]
	ldr	w9, [x22]
	bic	w8, w8, w9
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _TIOCMSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TIOCMSET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	mov	w20, #43392
	movk	w20, #3, lsl #16
	mov	w0, #43392
	movk	w0, #3, lsl #16
	bl	_usleep
Lloh14:
	adrp	x8, _CS7@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CS7@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _CREAD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CREAD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _HUPCL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HUPCL@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w0, #1200
	mov	w1, #1200
	bl	_setmousespeed
Lloh26:
	adrp	x8, _FREAD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh29:
	adrp	x8, _TIOCFLUSH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TIOCFLUSH@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh32:
	adrp	x8, _TIOCMBIS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TIOCMBIS@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_FD_SET
	str	xzr, [sp, #24]
	str	w20, [sp, #16]
Lloh35:
	adrp	x8, _FD_SETSIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FD_SETSIZE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh38:
	adrp	x0, l_.str.1@PAGE
Lloh39:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
Lloh40:
	adrp	x8, _TRUE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh42:
	adrp	x8, _FALSE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alternate probe..."

	.comm	_rodent,4,2                     ; @rodent
	.comm	_TIOCMGET,4,2                   ; @TIOCMGET
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_TIOCMSET,4,2                   ; @TIOCMSET
	.comm	_CS7,4,2                        ; @CS7
	.comm	_CREAD,4,2                      ; @CREAD
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_TIOCFLUSH,4,2                  ; @TIOCFLUSH
	.comm	_TIOCMBIS,4,2                   ; @TIOCMBIS
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
l_.str.1:                               ; @.str.1
	.asciz	"pnpwakeup2(): valid response."

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_pnpwakeup2
.subsections_via_symbols
