	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sds_start_remote
_sds_start_remote:                      ## @sds_start_remote
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$208, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_immediate_quit@GOTPCREL(%rip), %r14
	incl	(%r14)
	movq	_sds_desc@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_serial_write
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	callq	_serial_write
	movl	$1, %edi
	callq	_readchar
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	leaq	L_.str.2(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_unfiltered
	movl	$1, %edi
	callq	_readchar
	testl	%eax, %eax
	jns	LBB0_2
LBB0_3:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_unfiltered
	movq	_next_msg_id@GOTPCREL(%rip), %rax
	movl	$251, (%rax)
	movb	$26, -224(%rbp)
	leaq	-224(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_sds_send
	movb	$0, -224(%rbp)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_sds_send
	decl	(%r14)
	xorl	%eax, %eax
	callq	_start_remote
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	$1, %eax
	addq	$208, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_immediate_quit,4,2             ## @immediate_quit
	.comm	_sds_desc,4,2                   ## @sds_desc
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{#*\r\n"

L_.str.1:                               ## @.str.1
	.asciz	"{#}\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"%c"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.comm	_next_msg_id,4,2                ## @next_msg_id
	.no_dead_strip	_sds_start_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sds_start_remote
_sds_start_remote:                      ; @sds_start_remote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x20, _immediate_quit@GOTPAGE
Lloh4:
	ldr	x20, [x20, _immediate_quit@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh5:
	adrp	x19, _sds_desc@GOTPAGE
Lloh6:
	ldr	x19, [x19, _sds_desc@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_serial_write
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #5
	bl	_serial_write
	mov	w0, #1
	bl	_readchar
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh11:
	adrp	x19, l_.str.2@PAGE
Lloh12:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	x0, [sp]
	mov	x0, x19
	bl	_printf_unfiltered
	mov	w0, #1
	bl	_readchar
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_2
LBB0_3:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf_unfiltered
Lloh15:
	adrp	x8, _next_msg_id@GOTPAGE
Lloh16:
	ldr	x8, [x8, _next_msg_id@GOTPAGEOFF]
	mov	w9, #251
Lloh17:
	str	w9, [x8]
	mov	w8, #26
	strb	w8, [sp, #16]
	add	x0, sp, #16
	mov	w1, #1
	bl	_sds_send
	strb	wzr, [sp, #16]
	add	x0, sp, #16
	mov	w1, #1
	bl	_sds_send
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	bl	_start_remote
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #1
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_immediate_quit,4,2             ; @immediate_quit
	.comm	_sds_desc,4,2                   ; @sds_desc
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{#*\r\n"

l_.str.1:                               ; @.str.1
	.asciz	"{#}\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"%c"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.comm	_next_msg_id,4,2                ; @next_msg_id
	.no_dead_strip	_sds_start_remote
.subsections_via_symbols
