	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_byte
_get_byte:                              ## @get_byte
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_io@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_timeout@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_serial_readchar
	movl	%eax, %ebx
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_gdb_stdlog@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_fprintf_unfiltered
LBB0_2:
	movq	_SERIAL_TIMEOUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_5:
	movzbl	%bl, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_io,4,2                         ## @io
	.comm	_timeout,8,3                    ## @timeout
	.comm	_remote_debug,8,3               ## @remote_debug
	.comm	_gdb_stdlog,4,2                 ## @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%02x]\n"

	.comm	_SERIAL_TIMEOUT,4,2             ## @SERIAL_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Timeout reading from remote_system"

	.no_dead_strip	_get_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_byte
_get_byte:                              ; @get_byte
	.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	x8, _io@GOTPAGE
Lloh1:
	ldr	x8, [x8, _io@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _timeout@GOTPAGE
Lloh4:
	ldr	x20, [x20, _timeout@GOTPAGEOFF]
	ldr	x1, [x20]
	bl	_serial_readchar
	mov	x19, x0
Lloh5:
	adrp	x8, _remote_debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _gdb_stdlog@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gdb_stdlog@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf_unfiltered
LBB0_2:
Lloh13:
	adrp	x8, _SERIAL_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SERIAL_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	x9, [x20]
	cmp	w19, w8
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	and	w0, w19, #0xff
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_io,4,2                         ; @io
	.comm	_timeout,8,3                    ; @timeout
	.comm	_remote_debug,8,3               ; @remote_debug
	.comm	_gdb_stdlog,4,2                 ; @gdb_stdlog
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%02x]\n"

	.comm	_SERIAL_TIMEOUT,4,2             ; @SERIAL_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Timeout reading from remote_system"

	.no_dead_strip	_get_byte
.subsections_via_symbols
