	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getmessage
_getmessage:                            ## @getmessage
	.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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_watchdog@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	$-1, %ebx
	cmovgl	%eax, %ebx
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	movq	_sds_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	movq	_SERIAL_TIMEOUT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_readchar
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$36, %eax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$123, %eax
	jne	LBB0_3
## %bb.14:
	movl	%ebx, %edi
	callq	_readchar
	movl	%eax, -568(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_readchar
	movl	%eax, %r12d
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$123, %edx
	movl	-568(%rbp), %ecx                ## 4-byte Reload
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
LBB0_16:
	cmpl	$43, %r12d
	jne	LBB0_8
	jmp	LBB0_17
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_target_mourn_inferior
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_6:
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_fputs_filtered
	jmp	LBB0_8
LBB0_18:
	leaq	-560(%rbp), %rdi
	callq	_read_frame
	cmpl	$1, %eax
	je	LBB0_19
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_readchar
	cmpl	(%r14), %eax
	je	LBB0_31
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$123, %eax
	je	LBB0_28
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$36, %eax
	jne	LBB0_8
## %bb.11:
	leaq	-560(%rbp), %rdi
	callq	_read_frame
	cmpl	$1, %eax
	jne	LBB0_35
	jmp	LBB0_19
LBB0_31:
	testl	%r13d, %r13d
	je	LBB0_33
## %bb.32:
	xorl	%eax, %eax
	callq	_target_mourn_inferior
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_33:
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.34:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_fputs_filtered
	jmp	LBB0_35
LBB0_28:
	movl	%ebx, %edi
	callq	_readchar
	movl	%eax, -568(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	callq	_readchar
	movl	%eax, %r12d
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.29:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$123, %edx
	movl	-568(%rbp), %ecx                ## 4-byte Reload
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
LBB0_30:
	cmpl	$43, %r12d
	je	LBB0_17
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_readchar
	cmpl	(%r14), %eax
	je	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	cmpl	$123, %eax
	je	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_35 Depth=1
	cmpl	$36, %eax
	jne	LBB0_35
## %bb.38:
	leaq	-560(%rbp), %rdi
	callq	_read_frame
	cmpl	$1, %eax
	jne	LBB0_46
LBB0_19:
	leaq	-560(%rbp), %rbx
	leaq	-563(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_fromb64
	leaq	-556(%rbp), %r14
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	-4(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_fromb64
	movzbl	-561(%rbp), %ebx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_compute_checksum
	leaq	-562(%rbp), %rsi
	movl	%eax, %edi
	movl	$2, %edx
	callq	_compute_checksum
	movzbl	-563(%rbp), %ecx
	cmpl	%ecx, %eax
	je	LBB0_21
## %bb.20:
	movq	_gdb_stderr@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
LBB0_21:
	cmpb	$-1, -561(%rbp)
	jne	LBB0_23
## %bb.22:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
LBB0_23:
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_48
## %bb.24:
	movq	_gdb_stdlog@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movzbl	-563(%rbp), %edx
	movzbl	-562(%rbp), %ecx
	movzbl	-561(%rbp), %r8d
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	movl	(%r12), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	movl	%ebx, -568(%rbp)                ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_27
## %bb.25:
	movl	-568(%rbp), %ebx                ## 4-byte Reload
	leaq	L_.str.8(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movzbl	(%r15,%r14), %edx
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_26
LBB0_27:
	movl	(%r12), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
	movl	-568(%rbp), %ebx                ## 4-byte Reload
	jmp	LBB0_48
LBB0_42:
	testl	%r13d, %r13d
	je	LBB0_44
## %bb.43:
	xorl	%eax, %eax
	callq	_target_mourn_inferior
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_44:
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_46
## %bb.45:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_fputs_filtered
	jmp	LBB0_46
LBB0_39:
	movl	%ebx, %edi
	callq	_readchar
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_readchar
	movl	%eax, %ebx
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_41
## %bb.40:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$123, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_fprintf_unfiltered
LBB0_41:
	cmpl	$43, %ebx
	jne	LBB0_46
LBB0_17:
	movq	_message_pending@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_47
LBB0_46:
	leaq	L_.str.10(%rip), %rdi
	callq	_printf_unfiltered
LBB0_47:
	xorl	%ebx, %ebx
LBB0_48:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_50
## %bb.49:
	movl	%ebx, %eax
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout"

	.comm	_watchdog,8,3                   ## @watchdog
	.comm	_sds_timeout,4,2                ## @sds_timeout
	.comm	_SERIAL_TIMEOUT,4,2             ## @SERIAL_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Watchdog has expired.  Target detached.\n"

	.comm	_remote_debug,8,3               ## @remote_debug
L_.str.2:                               ## @.str.2
	.asciz	"Timed out.\n"

	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
L_.str.3:                               ## @.str.3
	.asciz	"Trigraph %c%c%c received\n"

	.comm	_message_pending,4,2            ## @message_pending
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
L_.str.4:                               ## @.str.4
	.asciz	"Checksum mismatch: computed %d, received %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Requesting resend...\n"

L_.str.6:                               ## @.str.6
	.asciz	"... (Got checksum %d, id %d, length %d)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Message received: \""

L_.str.8:                               ## @.str.8
	.asciz	"%02x"

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

L_.str.10:                              ## @.str.10
	.asciz	"Ignoring packet error, continuing...\n"

	.comm	_MAX_TRIES,4,2                  ## @MAX_TRIES
	.no_dead_strip	_getmessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getmessage
_getmessage:                            ; @getmessage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #544
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
Lloh5:
	adrp	x8, _watchdog@GOTPAGE
Lloh6:
	ldr	x8, [x8, _watchdog@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh8:
	adrp	x9, _sds_timeout@GOTPAGE
Lloh9:
	ldr	x9, [x9, _sds_timeout@GOTPAGEOFF]
	csinv	w8, w8, wzr, gt
Lloh10:
	ldr	w9, [x9]
	cmp	w20, #0
	csel	w21, w9, w8, eq
Lloh11:
	adrp	x24, _SERIAL_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _SERIAL_TIMEOUT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_readchar
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #36
	b.eq	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #123
	b.ne	LBB0_1
; %bb.4:
	mov	x0, x21
	bl	_readchar
	mov	x23, x0
	mov	x0, x21
	bl	_readchar
	mov	x22, x0
Lloh13:
	adrp	x8, _remote_debug@GOTPAGE
Lloh14:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	stp	x23, x22, [sp, #8]
	mov	w8, #123
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf_unfiltered
LBB0_6:
	cmp	w22, #43
	b.ne	LBB0_12
	b	LBB0_43
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	bl	_target_mourn_inferior
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_9:
Lloh23:
	adrp	x8, _remote_debug@GOTPAGE
Lloh24:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.10:
Lloh26:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh27:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fputs_filtered
	b	LBB0_12
LBB0_11:
	add	x0, sp, #36
	bl	_read_frame
	cmp	w0, #1
	b.eq	LBB0_27
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_readchar
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w0, #123
	b.eq	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w0, #36
	b.ne	LBB0_12
; %bb.15:
	add	x0, sp, #36
	bl	_read_frame
	cmp	w0, #1
	b.ne	LBB0_23
	b	LBB0_27
LBB0_16:
	cbz	w20, LBB0_18
; %bb.17:
	bl	_target_mourn_inferior
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_18:
Lloh33:
	adrp	x8, _remote_debug@GOTPAGE
Lloh34:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.19:
Lloh36:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh37:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fputs_filtered
	b	LBB0_23
LBB0_20:
	mov	x0, x21
	bl	_readchar
	mov	x23, x0
	mov	x0, x21
	bl	_readchar
	mov	x22, x0
Lloh41:
	adrp	x8, _remote_debug@GOTPAGE
Lloh42:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
Lloh44:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh45:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	stp	x23, x22, [sp, #8]
	mov	w8, #123
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.3@PAGE
Lloh48:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf_unfiltered
LBB0_22:
	cmp	w22, #43
	b.eq	LBB0_43
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_readchar
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_36
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w0, #123
	b.eq	LBB0_40
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w0, #36
	b.ne	LBB0_23
; %bb.26:
	add	x0, sp, #36
	bl	_read_frame
	cmp	w0, #1
	b.ne	LBB0_44
LBB0_27:
	add	x20, sp, #36
	add	x21, sp, #33
	add	x0, sp, #36
	add	x1, sp, #33
	mov	w2, #4
	bl	_fromb64
	add	x20, x20, #4
	add	x0, sp, #36
	bl	_strlen
	sub	w2, w0, #4
	mov	x0, x20
	mov	x1, x19
	bl	_fromb64
	ldrb	w20, [sp, #35]
	mov	w0, #0
	mov	x1, x19
	mov	x2, x20
	bl	_compute_checksum
	add	x1, x21, #1
	mov	w2, #2
	bl	_compute_checksum
                                        ; kill: def $w0 killed $w0 def $x0
	ldrb	w9, [sp, #33]
	cmp	w0, w9
	b.eq	LBB0_29
; %bb.28:
Lloh49:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh50:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	stp	x0, x9, [sp]
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_fprintf_unfiltered
LBB0_29:
	ldrb	w8, [sp, #35]
	cmp	w8, #255
	b.ne	LBB0_31
; %bb.30:
Lloh54:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh55:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
Lloh57:
	adrp	x1, l_.str.5@PAGE
Lloh58:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf_unfiltered
LBB0_31:
Lloh59:
	adrp	x8, _remote_debug@GOTPAGE
Lloh60:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh61:
	ldr	x8, [x8]
	cbz	x8, LBB0_45
; %bb.32:
Lloh62:
	adrp	x22, _gdb_stdlog@GOTPAGE
Lloh63:
	ldr	x22, [x22, _gdb_stdlog@GOTPAGEOFF]
	ldr	w0, [x22]
	ldrb	w8, [sp, #33]
	ldrb	w9, [sp, #34]
	ldrb	w10, [sp, #35]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh64:
	adrp	x1, l_.str.6@PAGE
Lloh65:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf_unfiltered
	ldr	w0, [x22]
Lloh66:
	adrp	x1, l_.str.7@PAGE
Lloh67:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf_unfiltered
	cbz	w20, LBB0_35
; %bb.33:
Lloh68:
	adrp	x21, l_.str.8@PAGE
Lloh69:
	add	x21, x21, l_.str.8@PAGEOFF
	mov	x23, x20
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldrb	w8, [x19], #1
	str	x8, [sp]
	mov	x1, x21
	bl	_fprintf_unfiltered
	subs	x23, x23, #1
	b.ne	LBB0_34
LBB0_35:
	ldr	w0, [x22]
Lloh70:
	adrp	x1, l_.str.9@PAGE
Lloh71:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf_unfiltered
	b	LBB0_45
LBB0_36:
	cbz	w20, LBB0_38
; %bb.37:
	bl	_target_mourn_inferior
Lloh72:
	adrp	x0, l_.str.1@PAGE
Lloh73:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_38:
Lloh74:
	adrp	x8, _remote_debug@GOTPAGE
Lloh75:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	cbz	x8, LBB0_44
; %bb.39:
Lloh77:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh78:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
Lloh80:
	adrp	x0, l_.str.2@PAGE
Lloh81:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fputs_filtered
	b	LBB0_44
LBB0_40:
	mov	x0, x21
	bl	_readchar
	mov	x20, x0
	mov	x0, x21
	bl	_readchar
	mov	x19, x0
Lloh82:
	adrp	x8, _remote_debug@GOTPAGE
Lloh83:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	cbz	x8, LBB0_42
; %bb.41:
Lloh85:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh86:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh87:
	ldr	w0, [x8]
	stp	x20, x19, [sp, #8]
	mov	w8, #123
	str	x8, [sp]
Lloh88:
	adrp	x1, l_.str.3@PAGE
Lloh89:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf_unfiltered
LBB0_42:
	cmp	w19, #43
	b.ne	LBB0_44
LBB0_43:
	mov	w20, #0
Lloh90:
	adrp	x8, _message_pending@GOTPAGE
Lloh91:
	ldr	x8, [x8, _message_pending@GOTPAGEOFF]
	mov	w9, #1
Lloh92:
	str	w9, [x8]
	b	LBB0_45
LBB0_44:
Lloh93:
	adrp	x0, l_.str.10@PAGE
Lloh94:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf_unfiltered
	mov	w20, #0
LBB0_45:
	ldur	x8, [x29, #-72]
Lloh95:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh96:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh97:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_47
; %bb.46:
	mov	x0, x20
	add	sp, sp, #544
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_47:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotStr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout"

	.comm	_watchdog,8,3                   ; @watchdog
	.comm	_sds_timeout,4,2                ; @sds_timeout
	.comm	_SERIAL_TIMEOUT,4,2             ; @SERIAL_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Watchdog has expired.  Target detached.\n"

	.comm	_remote_debug,8,3               ; @remote_debug
l_.str.2:                               ; @.str.2
	.asciz	"Timed out.\n"

	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
l_.str.3:                               ; @.str.3
	.asciz	"Trigraph %c%c%c received\n"

	.comm	_message_pending,4,2            ; @message_pending
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
l_.str.4:                               ; @.str.4
	.asciz	"Checksum mismatch: computed %d, received %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Requesting resend...\n"

l_.str.6:                               ; @.str.6
	.asciz	"... (Got checksum %d, id %d, length %d)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Message received: \""

l_.str.8:                               ; @.str.8
	.asciz	"%02x"

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

l_.str.10:                              ; @.str.10
	.asciz	"Ignoring packet error, continuing...\n"

	.comm	_MAX_TRIES,4,2                  ; @MAX_TRIES
	.no_dead_strip	_getmessage
.subsections_via_symbols
