	.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), %r15
	movq	_BUFMAX@GOTPCREL(%rip), %r12
	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, (%r15,%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, (%r12)
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	movl	$0, %r13d
	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, %r13b
	movb	%al, (%r15,%rbx)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	movb	$0, (%r15,%rax)
	xorl	%eax, %eax
	callq	_getDebugChar
	movsbl	%al, %edi
	callq	_hex
	movl	%eax, %r14d
	shlb	$4, %r14b
	xorl	%eax, %eax
	callq	_getDebugChar
	movsbl	%al, %edi
	callq	_hex
	addb	%r14b, %al
	cmpb	%al, %r13b
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$45, %edi
	callq	_putDebugChar
	jmp	LBB0_1
LBB0_12:
	movl	$43, %edi
	callq	_putDebugChar
	cmpb	$58, 2(%r15)
	jne	LBB0_14
## %bb.13:
	movzbl	(%r15), %edi
	callq	_putDebugChar
	movzbl	1(%r15), %edi
	callq	_putDebugChar
	addq	$3, %r15
LBB0_14:
	movq	%r15, %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
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _remcomInBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remcomInBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x21, _BUFMAX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BUFMAX@GOTPAGEOFF]
	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, [x21]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, #0
	mov	w22, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x20, #0
	mov	w22, #0
	mov	x8, #0
	ldr	w9, [x21]
	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	w22, w0, w22
	strb	w0, [x19, x20]
	add	x20, x20, #1
	ldrsw	x9, [x21]
	mov	x8, x20
	cmp	x20, 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, w20, uxtw]
	bl	_getDebugChar
	bl	_hex
	mov	x20, x0
	bl	_getDebugChar
	bl	_hex
	add	w8, w0, w20, lsl #4
	and	w9, w22, #0xff
	cmp	w9, w8, uxtb
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #45
	bl	_putDebugChar
	b	LBB0_2
LBB0_12:
	mov	w0, #43
	bl	_putDebugChar
	ldrb	w8, [x19, #2]
	cmp	w8, #58
	b.ne	LBB0_14
; %bb.13:
	ldrb	w0, [x19]
	bl	_putDebugChar
	ldrb	w0, [x19, #1]
	bl	_putDebugChar
	add	x19, x19, #3
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_remcomInBuffer,8,3             ; @remcomInBuffer
	.comm	_BUFMAX,4,2                     ; @BUFMAX
.subsections_via_symbols
