	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expect_n
_expect_n:                              ## @expect_n
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -128(%rbp,%rax,8)
	movq	8(%r13,%rax,8), %rcx
	incq	%rax
	testq	%rcx, %rcx
	jne	LBB0_13
LBB0_2:
	leaq	-240(%rbp), %r12
	movl	%eax, %r14d
	movq	_quit_flag@GOTPCREL(%rip), %r15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	$1, %edi
	callq	_readchar
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r15)
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_CTRLC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_putchar_e7000
	movl	$0, (%r15)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	je	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	(%r13,%rax,8), %rdx
	movq	%rdx, -128(%rbp,%rax,8)
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	incq	%rax
	cmpq	%rax, %r14
	je	LBB0_16
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-128(%rbp,%rax,8), %rdx
	movsbl	(%rdx), %esi
	cmpl	%esi, %ebx
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	1(%rdx), %rcx
	movq	%rcx, -128(%rbp,%rax,8)
	movl	$1, %ecx
	cmpb	$0, 1(%rdx)
	jne	LBB0_15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	%bl, (%r12)
	incq	%r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-240(%rbp), %rax
	cmpq	%rax, %r12
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%r12)
	incq	%r12
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf_unfiltered
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	-240(%rbp), %r12
	cmpl	$-1, %ebx
	je	LBB0_3
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_putchar_unfiltered
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdb_flush
	leaq	-240(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_unfiltered
	cmpl	$0, (%r15)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[waiting for e7000...]\n"

	.comm	_quit_flag,4,2                  ## @quit_flag
	.comm	_CTRLC,4,2                      ## @CTRLC
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
	.no_dead_strip	_expect_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expect_n
_expect_n:                              ; @expect_n
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x9, [x0]
	cbz	x9, LBB0_3
; %bb.1:
	mov	x8, #0
	add	x10, x19, #8
	add	x11, sp, #112
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x8, #3
	str	x9, [x11, x12]
	add	x8, x8, #1
	ldr	x9, [x10, x12]
	cbnz	x9, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	add	x23, sp, #12
	mov	w24, w8
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x25, _quit_flag@GOTPAGE
Lloh6:
	ldr	x25, [x25, _quit_flag@GOTPAGEOFF]
	add	x27, sp, #112
Lloh7:
	adrp	x28, _CTRLC@GOTPAGE
Lloh8:
	ldr	x28, [x28, _CTRLC@GOTPAGEOFF]
	add	x26, sp, #12
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	w0, #1
	bl	_readchar
	mov	x22, x0
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x25]
	cbz	w8, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x28]
	bl	_putchar_e7000
	str	wzr, [x25]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w24, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, #0
	mov	w8, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	lsl	x9, x0, #3
	ldr	x10, [x19, x9]
	str	x10, [x27, x9]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x0, #1
	cmp	x24, x0
	b.eq	LBB0_15
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x27, x0, lsl #3]
	ldrsb	w10, [x9]
	cmp	w22, w10
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldrb	w8, [x9, #1]!
	str	x9, [x27, x0, lsl #3]
	cbz	w8, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w8, #1
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	w22, [x26], #1
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x26, x23
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x26], #1
	str	x26, [sp]
	mov	x0, x21
	bl	_printf_unfiltered
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, sp, #12
	cmn	w22, #1
	b.eq	LBB0_5
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x26, sp, #12
	mov	x0, x22
	bl	_putchar_unfiltered
Lloh11:
	adrp	x8, _gdb_stdout@GOTPAGE
Lloh12:
	ldr	x8, [x8, _gdb_stdout@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_gdb_flush
	b	LBB0_5
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_printf_unfiltered
	ldr	w8, [x25]
	cbnz	w8, LBB0_7
	b	LBB0_8
LBB0_22:
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[waiting for e7000...]\n"

	.comm	_quit_flag,4,2                  ; @quit_flag
	.comm	_CTRLC,4,2                      ; @CTRLC
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
	.no_dead_strip	_expect_n
.subsections_via_symbols
