	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_stop
_monitor_stop:                          ## @monitor_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_monitor_debug
	movq	_current_monitor@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_MO_SEND_BREAK_ON_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_monitor_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_serial_send_break
	movq	(%rbx), %rax
LBB0_2:
	movq	8(%rax), %rdi
	addq	$8, %rsp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	popq	%rbx
	popq	%rbp
	jmp	_monitor_printf_noecho          ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MON stop\n"

	.comm	_current_monitor,8,3            ## @current_monitor
	.comm	_MO_SEND_BREAK_ON_STOP,4,2      ## @MO_SEND_BREAK_ON_STOP
	.comm	_monitor_desc,4,2               ## @monitor_desc
	.no_dead_strip	_monitor_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_stop
_monitor_stop:                          ; @monitor_stop
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_monitor_debug
Lloh2:
	adrp	x19, _current_monitor@GOTPAGE
Lloh3:
	ldr	x19, [x19, _current_monitor@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh4:
	adrp	x10, _MO_SEND_BREAK_ON_STOP@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MO_SEND_BREAK_ON_STOP@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _monitor_desc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _monitor_desc@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_serial_send_break
	ldr	x8, [x19]
LBB0_2:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_monitor_printf_noecho
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MON stop\n"

	.comm	_current_monitor,8,3            ; @current_monitor
	.comm	_MO_SEND_BREAK_ON_STOP,4,2      ; @MO_SEND_BREAK_ON_STOP
	.comm	_monitor_desc,4,2               ; @monitor_desc
	.no_dead_strip	_monitor_stop
.subsections_via_symbols
