	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sscr_getprompt
_sscr_getprompt:                        ## @sscr_getprompt
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_EXP
	movq	%rax, -1104(%rbp)               ## 8-byte Spill
	leaq	-1092(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	$5, -1088(%rbp)
	movq	(%r15), %r13
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movq	(%r13), %rdi
	incq	%rdi
	leaq	-1088(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.32:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_28
LBB0_2:
	leaq	-1072(%rbp), %r14
	leaq	-48(%rbp), %r12
	movq	%r14, %rbx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r12, %rdx
	subq	%rbx, %rdx
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	callq	_read
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	addq	%rax, %rbx
	cmpq	%rbx, %r14
	jae	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdx
	movq	%r14, %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%r12
	incq	%r14
	cmpq	%rbx, %r12
	jae	LBB0_16
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12), %eax
	cmpb	$13, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpb	$10, %al
	jne	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	-1104(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rcx
	subq	%rdx, %rcx
	movq	%r15, %rdi
	callq	_CHAR2INT5
	testq	%rax, %rax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	%r15, %rdi
	leaq	-1076(%rbp), %rsi
	callq	_db_last
	testq	%rax, %rax
	jne	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	-1076(%rbp), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_db_append
	testq	%rax, %rax
	jne	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	1(%r12), %rdx
	jmp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1072(%rbp), %r14
	cmpq	%r14, %r12
	jbe	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	subq	%rdx, %rbx
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_memmove
	addq	%rbp, %rbx
	addq	$-1072, %rbx                    ## imm = 0xFBD0
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-48(%rbp), %r12
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %rbx
	je	LBB0_3
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movabsq	$429496729600000, %rax          ## imm = 0x186A000000000
	movq	%rax, -1088(%rbp)
	movq	(%r13), %rdi
	incq	%rdi
	leaq	-1092(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-1088(%rbp), %r8
	callq	_select
	cmpl	$1, %eax
	je	LBB0_3
## %bb.21:
	cmpl	$-1, %eax
	jne	LBB0_23
LBB0_22:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_28
LBB0_6:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_28
LBB0_5:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_28
LBB0_23:
	leaq	-1072(%rbp), %rdx
	subq	%rdx, %rbx
	movq	-1104(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_CHAR2INT5
	testq	%rax, %rax
	je	LBB0_24
LBB0_27:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_28:
	movq	%r15, %rdi
	callq	_msgq
LBB0_29:
	movq	%r15, %rdi
	callq	_sscr_end
	movl	$1, %eax
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_33
## %bb.31:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	-1076(%rbp), %rsi
	movq	%r15, %rdi
	callq	_db_last
	testq	%rax, %rax
	jne	LBB0_29
## %bb.25:
	movl	-1076(%rbp), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_db_append
	testq	%rax, %rax
	jne	LBB0_29
## %bb.26:
	leaq	-1072(%rbp), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_sscr_setprompt
	jmp	LBB0_30
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select"

	.comm	_M_ERR,4,2                      ## @M_ERR
L_.str.1:                               ## @.str.1
	.asciz	"Error: timed out"

L_.str.2:                               ## @.str.2
	.asciz	"Error: shell: EOF"

L_.str.3:                               ## @.str.3
	.asciz	"shell"

L_.str.4:                               ## @.str.4
	.asciz	"323|Invalid input. Truncated."

	.no_dead_strip	_sscr_getprompt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sscr_getprompt
lCPI0_0:
	.long	5                               ; 0x5
	.long	0                               ; 0x0
lCPI0_1:
	.long	0                               ; 0x0
	.long	100000                          ; 0x186a0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_sscr_getprompt:                        ; @sscr_getprompt
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #1056
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	bl	_EXP
	mov	x20, x0
	add	x0, sp, #12
	bl	_FD_ZERO
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	ldr	x22, [x19]
	ldr	x0, [x22]
	add	x1, sp, #12
	bl	_FD_SET
	ldr	x8, [x22]
	add	x0, x8, #1
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.1:
	cbnz	w0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _M_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_3:
	add	x23, sp, #24
	add	x24, x23, #1024
	add	x25, x23, #1
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	d8, [x8, lCPI0_1@PAGEOFF]
	add	x21, sp, #24
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	sub	x2, x24, x21
	ldr	x0, [x22]
	mov	x1, x21
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w0, LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w0
	add	x21, x21, x8
	cmp	x23, x21
	b.hs	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x26, sp, #24
	mov	x27, x25
	add	x2, sp, #24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x26, x26, #1
	add	x27, x27, #1
	cmp	x21, x26
	b.eq	LBB0_13
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldurb	w8, [x27, #-1]
	cmp	w8, #13
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w1, [x20]
	sub	x3, x26, x2
	mov	x0, x19
	bl	_CHAR2INT5
	cbnz	x0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x1, sp, #8
	mov	x0, x19
	bl	_db_last
	cbnz	x0, LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_db_append
	mov	x2, x27
	cbz	x0, LBB0_8
	b	LBB0_24
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, x23
	b.ls	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x21, x21, x2
	add	x0, sp, #24
	mov	x1, x2
	mov	x2, x21
	bl	_memmove
	add	x21, x23, x21
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x21, x23
	b.eq	LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	str	d8, [sp, #16]
	ldr	x8, [x22]
	add	x0, x8, #1
	add	x1, sp, #12
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.17:
	cmn	w0, #1
	b.ne	LBB0_21
LBB0_18:
Lloh12:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_23
LBB0_19:
Lloh17:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_20:
Lloh22:
	adrp	x8, _M_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_21:
	add	x8, sp, #24
	sub	x21, x21, x8
	ldr	w1, [x20]
	add	x2, sp, #24
	mov	x0, x19
	mov	x3, x21
	bl	_CHAR2INT5
	cbz	x0, LBB0_27
LBB0_22:
Lloh27:
	adrp	x8, _M_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_23:
	mov	x0, x19
	bl	_msgq
LBB0_24:
	mov	x0, x19
	bl	_sscr_end
	mov	w0, #1
LBB0_25:
	ldur	x8, [x29, #-104]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.26:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_27:
	add	x1, sp, #8
	mov	x0, x19
	bl	_db_last
	cbnz	x0, LBB0_24
; %bb.28:
	ldr	w2, [sp, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_db_append
	cbnz	x0, LBB0_24
; %bb.29:
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x21
	bl	_sscr_setprompt
	b	LBB0_25
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select"

	.comm	_M_ERR,4,2                      ; @M_ERR
l_.str.1:                               ; @.str.1
	.asciz	"Error: timed out"

l_.str.2:                               ; @.str.2
	.asciz	"Error: shell: EOF"

l_.str.3:                               ; @.str.3
	.asciz	"shell"

l_.str.4:                               ; @.str.4
	.asciz	"323|Invalid input. Truncated."

	.no_dead_strip	_sscr_getprompt
.subsections_via_symbols
