	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnpgets
_pnpgets:                               ## @pnpgets
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_pnpwakeup1
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pnpwakeup2
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movl	$240000, %edi                   ## imm = 0x3A980
	callq	_usleep
	movq	_rodent@GOTPCREL(%rip), %r13
	leaq	-41(%rbp), %r15
	leaq	L_.str.1(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsbl	-41(%rbp), %edx
	movb	%dl, (%rbx,%r12)
	movl	%edx, %eax
	andb	$-33, %al
	cmpb	$8, %al
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_debug
	incq	%r12
	leal	-1(%r12), %eax
	cmpl	$254, %eax
	jbe	LBB0_4
LBB0_7:
	movl	%r12d, %r14d
LBB0_17:
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_MAX
	movl	%eax, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	(%rbx,%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movzbl	%dl, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_debug
	incb	%r14b
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movb	%r14b, -41(%rbp)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	%r12, %rbx
	incq	%rbx
	leal	1(%r12), %r14d
	leaq	-76(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_FD_ZERO
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_FD_SET
	movq	$0, -88(%rbp)
	movl	$240000, -96(%rbp)              ## imm = 0x3A980
	movq	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-96(%rbp), %r8
	callq	_select
	testq	%rax, %rax
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_read
	leal	1(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, (%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpl	$255, %r14d
	movl	%eax, %r14d
	jb	LBB0_9
	jmp	LBB0_13
LBB0_2:
	movq	_TIOCM_DTR@GOTPCREL(%rip), %rax
	movq	_TIOCM_RTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	_rodent@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TIOCMBIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_ioctl
	jmp	LBB0_18
LBB0_10:
	movl	%r14d, %eax
LBB0_13:
	movl	%eax, %r14d
	testl	%r12d, %r12d
	je	LBB0_14
## %bb.15:
	subq	%r12, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memmove
	jmp	LBB0_16
LBB0_14:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_debug
	movslq	%r14d, %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpb	%cl, -1(%rax,%rbx)
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_TIOCM_DTR,4,2                  ## @TIOCM_DTR
	.comm	_TIOCM_RTS,4,2                  ## @TIOCM_RTS
	.comm	_rodent,4,2                     ## @rodent
	.comm	_TIOCMBIS,4,2                   ## @TIOCMBIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"begin-id %02x"

L_.str.1:                               ## @.str.1
	.asciz	"%c %02x"

	.comm	_FD_SETSIZE,4,2                 ## @FD_SETSIZE
L_.str.2:                               ## @.str.2
	.asciz	"len:%d, '%-*.*s'"

	.no_dead_strip	_pnpgets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnpgets
_pnpgets:                               ; @pnpgets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x0
	bl	_pnpwakeup1
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_pnpwakeup2
	cbz	w0, LBB0_15
LBB0_2:
	mov	w23, #43392
	movk	w23, #3, lsl #16
	mov	w0, #43392
	movk	w0, #3, lsl #16
	bl	_usleep
	mov	x22, #0
Lloh0:
	adrp	x24, _rodent@GOTPAGE
Lloh1:
	ldr	x24, [x24, _rodent@GOTPAGEOFF]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	add	x1, sp, #39
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w21, [sp, #39]
	strb	w21, [x19, x22]
	and	w8, w21, #0xffffffdf
	cmp	w8, #8
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x21, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_debug
	add	x22, x22, #1
	sub	w8, w22, #1
	cmp	w8, #254
	b.ls	LBB0_3
LBB0_6:
	mov	x20, x22
LBB0_7:
	mov	x0, x20
	mov	w1, #0
	bl	_MAX
	mov	x20, x0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_9:
	add	x8, x19, x22
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	and	w1, w21, #0xff
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	add	w25, w21, #1
	strb	w25, [sp, #39]
	add	x26, x19, #1
Lloh6:
	adrp	x27, _FD_SETSIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _FD_SETSIZE@GOTPAGEOFF]
	mov	x20, x22
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #44
	bl	_FD_ZERO
	ldr	w0, [x24]
	add	x1, sp, #44
	bl	_FD_SET
	str	xzr, [sp, #56]
	str	w23, [sp, #48]
	ldr	w0, [x27]
	add	x1, sp, #44
	add	x4, sp, #48
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x28, x20, #1
	ldr	w0, [x24]
	add	x21, x26, x20
	mov	x1, x21
	mov	w2, #1
	bl	_read
	add	w8, w20, #2
	str	w8, [sp, #40]
	ldrb	w8, [x21]
	cmp	w8, w25, uxtb
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, x28
	cmp	w28, #255
	b.lo	LBB0_10
LBB0_13:
	add	w8, w28, #1
	mov	w20, w8
	cbz	w22, LBB0_17
LBB0_14:
	sub	x21, x20, x22
	mov	x0, x19
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x21
	bl	_memmove
	mov	x20, x21
	b	LBB0_18
LBB0_15:
Lloh8:
	adrp	x8, _TIOCM_DTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TIOCM_DTR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _TIOCM_RTS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TIOCM_RTS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #40]
Lloh14:
	adrp	x8, _rodent@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rodent@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _TIOCMBIS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TIOCMBIS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_ioctl
	mov	w20, #0
	b	LBB0_8
LBB0_16:
	add	w8, w20, #1
	mov	w20, w8
	cbnz	w22, LBB0_14
LBB0_17:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
LBB0_18:
	stp	x20, x19, [sp, #8]
	str	x20, [sp]
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_debug
	add	x8, x19, w20, sxtw
	ldurb	w8, [x8, #-1]
	cmp	w8, w25, uxtb
	b.ne	LBB0_7
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TIOCM_DTR,4,2                  ; @TIOCM_DTR
	.comm	_TIOCM_RTS,4,2                  ; @TIOCM_RTS
	.comm	_rodent,4,2                     ; @rodent
	.comm	_TIOCMBIS,4,2                   ; @TIOCMBIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"begin-id %02x"

l_.str.1:                               ; @.str.1
	.asciz	"%c %02x"

	.comm	_FD_SETSIZE,4,2                 ; @FD_SETSIZE
l_.str.2:                               ; @.str.2
	.asciz	"len:%d, '%-*.*s'"

	.no_dead_strip	_pnpgets
.subsections_via_symbols
