	.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	_immediate_quit@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_timeout@GOTPCREL(%rip), %r13
	movq	%rdi, %rax
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %rax
	cmpb	$0, 1(%rbx)
	je	LBB0_3
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movl	(%r13), %edi
	callq	_readchar
	movl	%eax, %r12d
	movsbl	(%rbx), %eax
	cmpl	%eax, %r12d
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rax
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	subl	%r15d, %ebx
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_fwrite
	movsbl	%r12b, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	%r15, %rax
	jmp	LBB0_1
LBB0_3:
	movq	_immediate_quit@GOTPCREL(%rip), %rax
	decl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_immediate_quit,4,2             ## @immediate_quit
	.comm	_timeout,4,2                    ## @timeout
	.comm	_stdout,4,2                     ## @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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _immediate_quit@GOTPAGE
Lloh1:
	ldr	x22, [x22, _immediate_quit@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
Lloh2:
	adrp	x23, _timeout@GOTPAGE
Lloh3:
	ldr	x23, [x23, _timeout@GOTPAGEOFF]
Lloh4:
	adrp	x24, _stdout@GOTPAGE
Lloh5:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
	mov	x8, x0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w9, [x25, #1]!
	mov	x8, x25
	cbz	w9, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	ldr	w0, [x23]
	bl	_readchar
	ldrsb	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x20
	cbnz	w19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	sub	w2, w25, w20
	ldr	w3, [x24]
	mov	x0, x20
	mov	w1, #1
	bl	_fwrite
	sxtb	w0, w21
	bl	_putchar
	ldr	w0, [x24]
	bl	_fflush
	mov	x8, x20
	b	LBB0_2
LBB0_5:
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
	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	_immediate_quit,4,2             ; @immediate_quit
	.comm	_timeout,4,2                    ; @timeout
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_expect
.subsections_via_symbols
