	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getpacket                      ## -- Begin function getpacket
	.p2align	4, 0x90
_getpacket:                             ## @getpacket
	.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	_remcomInBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_BUFMAX@GOTPCREL(%rip), %r13
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	movb	$0, (%r12,%rax)
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	xorl	%eax, %eax
	callq	_getDebugChar
	cmpb	$36, %al
	jne	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%ebx, %ebx
	cmpl	$0, (%r13)
	movl	$0, %r14d
	jle	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_getDebugChar
	cmpb	$36, %al
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$35, %al
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	addb	%al, %r14b
	movb	%al, (%r12,%rbx)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	movb	$0, (%r12,%rax)
	xorl	%eax, %eax
	callq	_getDebugChar
	movsbl	%al, %edi
	callq	_hex
	movl	%eax, %r15d
	shlb	$4, %r15b
	xorl	%eax, %eax
	callq	_getDebugChar
	movsbl	%al, %edi
	callq	_hex
	addb	%r15b, %al
	cmpb	%al, %r14b
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_remote_debug@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movzbl	%r14b, %edx
	movzbl	%al, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %r8
	callq	_fprintf
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$45, %edi
	callq	_putDebugChar
	jmp	LBB0_1
LBB0_14:
	movl	$43, %edi
	callq	_putDebugChar
	cmpb	$58, 2(%r12)
	jne	LBB0_16
## %bb.15:
	movzbl	(%r12), %edi
	callq	_putDebugChar
	movzbl	1(%r12), %edi
	callq	_putDebugChar
	addq	$3, %r12
LBB0_16:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remcomInBuffer,8,3             ## @remcomInBuffer
	.comm	_BUFMAX,4,2                     ## @BUFMAX
	.comm	_remote_debug,8,3               ## @remote_debug
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad checksum.  My count = 0x%x, sent=0x%x. buf=%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getpacket                      ; -- Begin function getpacket
	.p2align	2
_getpacket:                             ; @getpacket
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _remcomInBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remcomInBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x22, _BUFMAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BUFMAX@GOTPAGEOFF]
Lloh5:
	adrp	x23, _remote_debug@GOTPAGE
Lloh6:
	ldr	x23, [x23, _remote_debug@GOTPAGEOFF]
Lloh7:
	adrp	x24, _stderr@GOTPAGE
Lloh8:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
Lloh9:
	adrp	x20, l_.str@PAGE
Lloh10:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
	strb	wzr, [x19, w8, uxtw]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	bl	_getDebugChar
	cmp	w0, #36
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	mov	w25, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x21, #0
	mov	w25, #0
	mov	x8, #0
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_getDebugChar
	cmp	w0, #36
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	and	w8, w0, #0xff
	cmp	w8, #35
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w25, w0, w25
	strb	w0, [x19, x21]
	add	x21, x21, #1
	ldrsw	x9, [x22]
	mov	x8, x21
	cmp	x21, x9
	b.lt	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x19, w8, uxtw]
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x19, w21, uxtw]
	bl	_getDebugChar
	bl	_hex
	mov	x21, x0
	bl	_getDebugChar
	bl	_hex
	add	w8, w0, w21, lsl #4
	and	w9, w25, #0xff
	cmp	w9, w8, uxtb
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x23]
	cbz	x9, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	and	w2, w25, #0xff
	and	w3, w8, #0xff
	mov	x1, x20
	mov	x4, x19
	bl	_fprintf
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #45
	bl	_putDebugChar
	b	LBB0_2
LBB0_14:
	mov	w0, #43
	bl	_putDebugChar
	ldrb	w8, [x19, #2]
	cmp	w8, #58
	b.ne	LBB0_16
; %bb.15:
	ldrb	w0, [x19]
	bl	_putDebugChar
	ldrb	w0, [x19, #1]
	bl	_putDebugChar
	add	x19, x19, #3
LBB0_16:
	mov	x0, x19
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_remcomInBuffer,8,3             ; @remcomInBuffer
	.comm	_BUFMAX,4,2                     ; @BUFMAX
	.comm	_remote_debug,8,3               ; @remote_debug
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad checksum.  My count = 0x%x, sent=0x%x. buf=%s\n"

.subsections_via_symbols
