	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getpacket
_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	%rdi, %r13
	leaq	3(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_BUFMAX@GOTPCREL(%rip), %r12
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movsbl	%bl, %eax
	movsbl	%r15b, %ecx
	cmpl	%eax, %ecx
	je	LBB0_14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	xorl	%eax, %eax
	callq	_getdbgchar
	andl	$127, %eax
	cmpl	$36, %eax
	jne	LBB0_1
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, %r15d
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_getdbgchar
	andb	$127, %al
	cmpb	$35, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	addb	%al, %bl
	movb	%al, (%r13,%r14)
	incq	%r14
	cmpq	(%r12), %r14
	jb	LBB0_5
	jmp	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r12), %r14
	jae	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%r13,%r14)
	xorl	%eax, %eax
	callq	_getdbgchar
	andl	$127, %eax
	movl	%eax, %edi
	callq	_hex
	movl	%eax, %r15d
	shlb	$4, %r15b
	xorl	%eax, %eax
	callq	_getdbgchar
	andl	$127, %eax
	movl	%eax, %edi
	callq	_hex
	orb	%r15b, %al
	movzbl	%al, %r15d
	cmpb	%r15b, %bl
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$43, %edi
	callq	_putdbgchar
	cmpb	$58, 2(%r13)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movsbl	(%r13), %edi
	callq	_putdbgchar
	movsbl	1(%r13), %edi
	callq	_putdbgchar
	movq	%r13, %rdi
	callq	_strlen
	cmpq	$3, %rax
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	$-2, %rax
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_memmove
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$45, %edi
	callq	_putdbgchar
	jmp	LBB0_13
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFMAX,8,3                     ## @BUFMAX
	.no_dead_strip	_getpacket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getpacket
_getpacket:                             ; @getpacket
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	add	x20, x0, #3
Lloh0:
	adrp	x22, _BUFMAX@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BUFMAX@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #-1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtb	w8, w21
	cmp	w8, w23, sxtb
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	bl	_getdbgchar
	and	w8, w0, #0x7f
	cmp	w8, #36
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	mov	w23, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_getdbgchar
	and	w8, w0, #0x7f
	cmp	w8, #35
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w23, w8, w23
	strb	w8, [x19, x21]
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.lo	LBB0_7
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cmp	x21, x8
	b.hs	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x19, x21]
	bl	_getdbgchar
	and	w0, w0, #0x7f
	bl	_hex
	mov	x21, x0
	bl	_getdbgchar
	and	w0, w0, #0x7f
	bl	_hex
	orr	w8, w0, w21, lsl #4
	and	w21, w8, #0xff
	cmp	w21, w23, uxtb
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #43
	bl	_putdbgchar
	ldrb	w8, [x19, #2]
	cmp	w8, #58
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldrsb	w0, [x19]
	bl	_putdbgchar
	ldrsb	w0, [x19, #1]
	bl	_putdbgchar
	mov	x0, x19
	bl	_strlen
	cmp	x0, #3
	b.lo	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x2, x0, #2
	mov	x0, x19
	mov	x1, x20
	bl	_memmove
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #45
	bl	_putdbgchar
	b	LBB0_3
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFMAX,8,3                     ; @BUFMAX
	.no_dead_strip	_getpacket
.subsections_via_symbols
