	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_wait_filter
_monitor_wait_filter:                   ## @monitor_wait_filter
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_monitor_expect_prompt
	movl	%eax, %r13d
	movl	%eax, (%r15)
	testl	%eax, %eax
	jg	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_fprintf_unfiltered
	testl	%r13d, %r13d
	js	LBB0_1
LBB0_3:
	movq	_monitor_debug_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_remote_debug@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_current_monitor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MO_PRINT_PROGRAM_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
LBB0_5:
	cmpl	$2, %r13d
	jb	LBB0_10
## %bb.6:
	decl	%r13d
	xorl	%eax, %eax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%eax
	cmpl	%r13d, %eax
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rbx
	cmpb	$15, (%r14,%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movsbl	1(%r14,%rbx), %edi
	incq	%rbx
	callq	_putchar_unfiltered
	movl	%ebx, %eax
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"monitor_wait:  excessive response from monitor: %s."

	.comm	_monitor_debug_p,8,3            ## @monitor_debug_p
	.comm	_remote_debug,8,3               ## @remote_debug
	.comm	_current_monitor,8,3            ## @current_monitor
	.comm	_MO_PRINT_PROGRAM_OUTPUT,4,2    ## @MO_PRINT_PROGRAM_OUTPUT
	.no_dead_strip	_monitor_wait_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_wait_filter
_monitor_wait_filter:                   ; @monitor_wait_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _gdb_stderr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _gdb_stderr@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_monitor_expect_prompt
	mov	x20, x0
	str	w0, [x21]
	cmp	w0, #0
	b.gt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	mov	x1, x23
	mov	x2, x19
	bl	_fprintf_unfiltered
	tbnz	w20, #31, LBB0_1
LBB0_3:
Lloh4:
	adrp	x8, _monitor_debug_p@GOTPAGE
Lloh5:
	ldr	x8, [x8, _monitor_debug_p@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _remote_debug@GOTPAGE
Lloh8:
	ldr	x9, [x9, _remote_debug@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _current_monitor@GOTPAGE
Lloh11:
	ldr	x8, [x8, _current_monitor@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _MO_PRINT_PROGRAM_OUTPUT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MO_PRINT_PROGRAM_OUTPUT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_5:
	cmp	w20, #2
	b.lo	LBB0_10
; %bb.6:
	mov	w8, #0
	sub	w20, w20, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w8, #1
	cmp	w8, w20
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x9, w8
	ldrb	w10, [x19, x9]
	cmp	w10, #15
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x9, #1
	ldrsb	w0, [x19, x21]
	bl	_putchar_unfiltered
	mov	x8, x21
	b	LBB0_7
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"monitor_wait:  excessive response from monitor: %s."

	.comm	_monitor_debug_p,8,3            ; @monitor_debug_p
	.comm	_remote_debug,8,3               ; @remote_debug
	.comm	_current_monitor,8,3            ; @current_monitor
	.comm	_MO_PRINT_PROGRAM_OUTPUT,4,2    ; @MO_PRINT_PROGRAM_OUTPUT
	.no_dead_strip	_monitor_wait_filter
.subsections_via_symbols
