	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_monitor_expect                 ## -- Begin function monitor_expect
	.p2align	4, 0x90
_monitor_expect:                        ## @monitor_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_monitor_debug_p@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(,%rax,4), %edi
	callq	_alloca
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_monitor_printable_string
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf_unfiltered
LBB0_2:
	movq	_immediate_quit@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r12, %rax
	notq	%rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	1(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_timeout@GOTPCREL(%rip), %r15
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, %rax
	movq	%r13, %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rax
	cmpb	$0, 1(%r13)
	je	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_16 Depth 2
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_23
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	callq	_readchar
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movb	%bl, (%r14)
	incq	%r14
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	callq	_readchar
	movl	%eax, %ebx
	xorl	%r14d, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movsbl	(%r13), %eax
	cmpl	$3, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %ebx
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rcx
	movq	%r12, %rax
	testl	$-2147483648, %ecx              ## imm = 0x80000000
	jne	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	subq	%r14, %r13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	%r14d, %ecx
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	decq	%r14
	incq	%r13
	testl	%ecx, %ecx
	jle	LBB0_20
LBB0_16:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r12,%r14), %eax
	cmpl	%eax, %ebx
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcmp
	movl	%r14d, %ecx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %eax
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	testl	$-2147483648, %r14d             ## imm = 0x80000000
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_3
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rax
	jmp	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_23:
	movb	$0, (%r14)
	movq	_immediate_quit@GOTPCREL(%rip), %rax
	decl	(%rax)
	movl	$-1, %eax
	jmp	LBB0_24
LBB0_11:
	movq	_immediate_quit@GOTPCREL(%rip), %rax
	decl	(%rax)
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:
	movb	$0, (%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jmp	LBB0_24
LBB0_12:
	xorl	%eax, %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_monitor_debug_p,8,3            ## @monitor_debug_p
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MON Expecting '%s'\n"

	.comm	_immediate_quit,4,2             ## @immediate_quit
	.comm	_timeout,4,2                    ## @timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_monitor_expect                 ; -- Begin function monitor_expect
	.p2align	2
_monitor_expect:                        ; @monitor_expect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _monitor_debug_p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _monitor_debug_p@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_strlen
	mov	w8, #1
	bfi	w8, w0, #2, #30
	mov	x0, x8
	bl	_alloca
	mov	x22, x0
	mov	x1, x20
	mov	w2, #0
	bl	_monitor_printable_string
Lloh3:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_fprintf_unfiltered
LBB0_2:
Lloh8:
	adrp	x25, _immediate_quit@GOTPAGE
Lloh9:
	ldr	x25, [x25, _immediate_quit@GOTPAGEOFF]
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	mvn	x27, x20
	add	x28, x20, #1
Lloh10:
	adrp	x19, _timeout@GOTPAGE
Lloh11:
	ldr	x19, [x19, _timeout@GOTPAGEOFF]
	str	w23, [sp, #12]                  ; 4-byte Folded Spill
	mov	x26, x23
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
	mov	x8, x20
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldrb	w9, [x24, #1]!
	mov	x8, x24
	cbz	w9, LBB0_19
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
                                        ;       Child Loop BB0_15 Depth 3
	mov	x24, x8
	cbz	x21, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w26, #2
	b.lt	LBB0_18
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x19]
	bl	_readchar
	cbz	w0, LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x22, x0
	strb	w0, [x21], #1
	sub	w26, w26, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [x19]
	bl	_readchar
	mov	x22, x0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	ldrsb	w8, [x24]
	cmp	w8, #3
	ccmp	w22, w8, #4, ne
	b.eq	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x9, x24, x27
	mov	x8, x20
	tbnz	w9, #31, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	and	x23, x9, #0xffffffff
	sub	x24, x24, x23
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=3
	mov	x8, x23
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	sub	x23, x23, #1
	add	x24, x24, #1
	cmp	w8, #0
	b.le	LBB0_3
LBB0_15:                                ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsb	w8, [x20, x23]
	cmp	w22, w8
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_memcmp
	mov	x8, x23
	cbnz	w0, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=2
	add	x8, x28, w23, uxtw
	tst	w23, #0x80000000
	csel	x8, x8, x20, eq
	b	LBB0_5
LBB0_18:
	strb	wzr, [x21]
	ldr	w8, [x25]
	sub	w8, w8, #1
	str	w8, [x25]
	mov	w0, #-1
	b	LBB0_22
LBB0_19:
	ldr	w8, [x25]
	sub	w8, w8, #1
	str	w8, [x25]
	cbz	x21, LBB0_21
; %bb.20:
	strb	wzr, [x21]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w0, w8, w26
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_monitor_debug_p,8,3            ; @monitor_debug_p
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MON Expecting '%s'\n"

	.comm	_immediate_quit,4,2             ; @immediate_quit
	.comm	_timeout,4,2                    ; @timeout
.subsections_via_symbols
