	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpwakeup1
_pnpwakeup1:                            ## @pnpwakeup1
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movq	_rodent@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_TIOCMGET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_ioctl
	movq	_TIOCM_DTR@GOTPCREL(%rip), %r12
	movl	-44(%rbp), %eax
	orl	(%r12), %eax
	movq	_TIOCM_RTS@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	$240000, %edi                   ## imm = 0x3A980
	callq	_usleep
	movl	(%r14), %edi
	movl	(%r15), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	-44(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_debug
	movq	_TIOCM_DSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_FALSE@GOTPCREL(%rip), %r15
	testl	%eax, -44(%rbp)
	je	LBB0_6
## %bb.1:
	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
	movl	(%r13), %eax
	orl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMBIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_ioctl
	movl	$240000, %edi                   ## imm = 0x3A980
	callq	_usleep
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMBIS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	$240000, %edi                   ## imm = 0x3A980
	callq	_usleep
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	$0, -56(%rbp)
	movl	$240000, -64(%rbp)              ## imm = 0x3A980
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_3:
	movl	(%r13), %eax
	movq	_TIOCM_DTR@GOTPCREL(%rip), %r12
	orl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMBIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdx
	callq	_ioctl
	movl	$240000, %edi                   ## imm = 0x3A980
	callq	_usleep
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	movl	(%r13), %eax
	orl	(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %edi
	movq	_TIOCMBIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	$0, -56(%rbp)
	movl	$240000, -64(%rbp)              ## imm = 0x3A980
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_debug
	movq	_TRUE@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PnP COM device rev 1.0 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
L_.str.1:                               ## @.str.1
	.asciz	"modem status 0%o"

	.comm	_TIOCM_DSR,4,2                  ## @TIOCM_DSR
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CS7,4,2                        ## @CS7
	.comm	_CREAD,4,2                      ## @CREAD
	.comm	_CLOCAL,4,2                     ## @CLOCAL
	.comm	_HUPCL,4,2                      ## @HUPCL
	.comm	_TIOCMBIC,4,2                   ## @TIOCMBIC
	.comm	_TIOCMBIS,4,2                   ## @TIOCMBIS
	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_TIOCFLUSH,4,2                  ## @TIOCFLUSH
	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
L_.str.2:                               ## @.str.2
	.asciz	"pnpwakeup1(): valid response in first phase."

	.comm	_TRUE,4,2                       ## @TRUE
L_.str.3:                               ## @.str.3
	.asciz	"pnpwakeup1(): valid response in second phase."

	.no_dead_strip	_pnpwakeup1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpwakeup1
_pnpwakeup1:                            ; @pnpwakeup1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w19, #43392
	movk	w19, #3, lsl #16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
Lloh2:
	adrp	x20, _rodent@GOTPAGE
Lloh3:
	ldr	x20, [x20, _rodent@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x23, _TIOCMGET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TIOCMGET@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_ioctl
Lloh6:
	adrp	x21, _TIOCM_DTR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _TIOCM_DTR@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
Lloh8:
	adrp	x22, _TIOCM_RTS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TIOCM_RTS@GOTPAGEOFF]
	ldr	w9, [x22]
	bic	w8, w8, w9
	str	w8, [sp, #8]
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _TIOCMSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIOCMSET@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	mov	w0, #43392
	movk	w0, #3, lsl #16
	bl	_usleep
	ldr	w0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_ioctl
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldr	w8, [sp, #8]
Lloh15:
	adrp	x9, _TIOCM_DSR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TIOCM_DSR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh18:
	adrp	x8, _CS7@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CS7@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _CREAD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CREAD@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _CLOCAL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CLOCAL@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _HUPCL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HUPCL@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w0, #1200
	mov	w1, #1200
	bl	_setmousespeed
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x20]
Lloh30:
	adrp	x24, _TIOCMBIC@GOTPAGE
Lloh31:
	ldr	x24, [x24, _TIOCMBIC@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #8
	bl	_ioctl
	mov	w0, #43392
	movk	w0, #3, lsl #16
	bl	_usleep
	ldr	w8, [x21]
	str	w8, [sp, #8]
	ldr	w0, [x20]
Lloh32:
	adrp	x23, _TIOCMBIS@GOTPAGE
Lloh33:
	ldr	x23, [x23, _TIOCMBIS@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_ioctl
	mov	w0, #43392
	movk	w0, #3, lsl #16
	bl	_usleep
Lloh34:
	adrp	x25, _FREAD@GOTPAGE
Lloh35:
	ldr	x25, [x25, _FREAD@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [sp, #8]
	ldr	w0, [x20]
Lloh36:
	adrp	x27, _TIOCFLUSH@GOTPAGE
Lloh37:
	ldr	x27, [x27, _TIOCFLUSH@GOTPAGEOFF]
	ldr	w1, [x27]
	add	x2, sp, #8
	bl	_ioctl
	ldr	w8, [x22]
	str	w8, [sp, #8]
	ldr	w0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_ioctl
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_FD_SET
	str	xzr, [sp, #24]
	str	w19, [sp, #16]
Lloh38:
	adrp	x26, _FD_SETSIZE@GOTPAGE
Lloh39:
	ldr	x26, [x26, _FD_SETSIZE@GOTPAGEOFF]
	ldr	w0, [x26]
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	x0, #0
	b.le	LBB0_3
; %bb.2:
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x20]
	ldr	w1, [x24]
	add	x2, sp, #8
	bl	_ioctl
	mov	w0, #43392
	movk	w0, #3, lsl #16
	bl	_usleep
	ldr	w8, [x25]
	str	w8, [sp, #8]
	ldr	w0, [x20]
	ldr	w1, [x27]
	add	x2, sp, #8
	bl	_ioctl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x20]
	ldr	w1, [x23]
	add	x2, sp, #8
	bl	_ioctl
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_FD_SET
	str	xzr, [sp, #24]
	str	w19, [sp, #16]
	ldr	w0, [x26]
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.4:
Lloh42:
	adrp	x0, l_.str.3@PAGE
Lloh43:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_5:
	bl	_debug
Lloh44:
	adrp	x8, _TRUE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh46:
	adrp	x8, _FALSE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PnP COM device rev 1.0 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
l_.str.1:                               ; @.str.1
	.asciz	"modem status 0%o"

	.comm	_TIOCM_DSR,4,2                  ; @TIOCM_DSR
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CS7,4,2                        ; @CS7
	.comm	_CREAD,4,2                      ; @CREAD
	.comm	_CLOCAL,4,2                     ; @CLOCAL
	.comm	_HUPCL,4,2                      ; @HUPCL
	.comm	_TIOCMBIC,4,2                   ; @TIOCMBIC
	.comm	_TIOCMBIS,4,2                   ; @TIOCMBIS
	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_TIOCFLUSH,4,2                  ; @TIOCFLUSH
	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
l_.str.2:                               ; @.str.2
	.asciz	"pnpwakeup1(): valid response in first phase."

	.comm	_TRUE,4,2                       ; @TRUE
l_.str.3:                               ; @.str.3
	.asciz	"pnpwakeup1(): valid response in second phase."

	.no_dead_strip	_pnpwakeup1
.subsections_via_symbols
