	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expect
_expect:                                ## @expect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	movq	%rdi, %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	_normal
	movq	%rax, %rbx
	movsbl	(%r12), %edi
	callq	_normal
	xorl	%r14d, %r14d
	cmpq	%rax, %rbx
	sete	%r14b
	addq	%r12, %r14
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_readchar
	movl	%eax, %ebx
	movq	_echo@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$13, %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	cmpl	$10, %ebx
	jne	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %r15d
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_putchar_unfiltered
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdb_flush
	movl	%r15d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movsbl	%bl, %r15d
	movl	%r15d, %edi
	callq	_normal
	movq	%rax, %rbx
	movsbl	(%r14), %edi
	callq	_normal
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$0, 1(%r14)
	leaq	1(%r14), %r14
	jne	LBB0_1
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timeout,4,2                    ## @timeout
	.comm	_echo,8,3                       ## @echo
	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
	.no_dead_strip	_expect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expect
_expect:                                ; @expect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	w26, #0
Lloh0:
	adrp	x22, _timeout@GOTPAGE
Lloh1:
	ldr	x22, [x22, _timeout@GOTPAGEOFF]
Lloh2:
	adrp	x23, _echo@GOTPAGE
Lloh3:
	ldr	x23, [x23, _echo@GOTPAGEOFF]
Lloh4:
	adrp	x24, _gdb_stdout@GOTPAGE
Lloh5:
	ldr	x24, [x24, _gdb_stdout@GOTPAGEOFF]
	mov	x25, x0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_normal
	mov	x20, x0
	mov	x21, x19
	ldrsb	w0, [x21], #1
	bl	_normal
	cmp	x20, x0
	csel	x25, x19, x21, ne
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_readchar
	mov	x20, x0
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w20, #13
	ccmp	w20, #10, #4, ne
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #1
	cbnz	w26, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w21, #0
	mov	x0, x20
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_putchar_unfiltered
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	bl	_gdb_flush
	mov	x26, x21
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w20, w20
	mov	x0, x20
	bl	_normal
	mov	x21, x0
	ldrsb	w0, [x25]
	bl	_normal
	cmp	x21, x0
	b.ne	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x25, #1]!
	cbnz	w8, LBB0_2
; %bb.11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_timeout,4,2                    ; @timeout
	.comm	_echo,8,3                       ; @echo
	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
	.no_dead_strip	_expect
.subsections_via_symbols
