	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_trace
_packet_trace:                          ## @packet_trace
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_trace_packet@GOTPCREL(%rip), %rdi
	callq	_trace_want
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_trace_pack@GOTPCREL(%rip), %rdi
	callq	_trace_want
	testl	%eax, %eax
	je	LBB0_16
LBB0_2:
	cmpb	$1, _packet_trace.in_pack(%rip)
	jne	LBB0_4
## %bb.3:
	movl	_packet_trace.sideband(%rip), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_packet_trace_pack
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_starts_with
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movb	$1, _packet_trace.in_pack(%rip)
	xorl	%edx, %edx
	cmpb	$1, (%r13)
	sete	%dl
	movl	%edx, _packet_trace.sideband(%rip)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_packet_trace_pack
	leaq	L_.str.2(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %r14d
LBB0_7:
	movq	_trace_packet@GOTPCREL(%rip), %rdi
	callq	_trace_want
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	leal	32(%r14), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_strbuf_init
	xorl	%eax, %eax
	callq	_get_trace_prefix
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	setne	%cl
	addl	%ecx, %ecx
	addl	$60, %ecx
	movsbl	%al, %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_strbuf_addf
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.9:
	movl	%r14d, %r12d
	leaq	L_.str.4(%rip), %r14
	leaq	-48(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movsbl	%al, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%rbx), %eax
	cmpb	$10, %al
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	-127(%rax), %ecx
	cmpb	$-95, %cl
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movsbl	%al, %esi
	movq	%r15, %rdi
	callq	_strbuf_addch
	jmp	LBB0_14
LBB0_15:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movq	_trace_packet@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_trace_strbuf
	movq	%rbx, %rdi
	callq	_strbuf_release
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_packet_trace.in_pack,1,2 ## @packet_trace.in_pack
.zerofill __DATA,__bss,_packet_trace.sideband,4,2 ## @packet_trace.sideband
	.comm	_trace_packet,4,2               ## @trace_packet
	.comm	_trace_pack,4,2                 ## @trace_pack
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PACK"

L_.str.1:                               ## @.str.1
	.asciz	"\001PACK"

L_.str.2:                               ## @.str.2
	.asciz	"PACK ..."

L_.str.3:                               ## @.str.3
	.asciz	"packet: %12s%c "

L_.str.4:                               ## @.str.4
	.asciz	"\\%o"

	.no_dead_strip	_packet_trace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_trace
_packet_trace:                          ; @packet_trace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _trace_packet@GOTPAGE
Lloh1:
	ldr	x0, [x0, _trace_packet@GOTPAGEOFF]
	bl	_trace_want
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, _trace_pack@GOTPAGE
Lloh3:
	ldr	x0, [x0, _trace_pack@GOTPAGEOFF]
	bl	_trace_want
	cbz	w0, LBB0_16
LBB0_2:
	adrp	x22, _packet_trace.in_pack@PAGE
	ldrb	w8, [x22, _packet_trace.in_pack@PAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _packet_trace.sideband@PAGE
Lloh5:
	ldr	w2, [x8, _packet_trace.sideband@PAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_packet_trace_pack
	cbnz	x0, LBB0_16
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_starts_with
	cbnz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_starts_with
	cbz	x0, LBB0_7
LBB0_6:
	mov	w8, #1
	strb	w8, [x22, _packet_trace.in_pack@PAGEOFF]
	ldrb	w8, [x19]
	cmp	w8, #1
	cset	w2, eq
	adrp	x8, _packet_trace.sideband@PAGE
	str	w2, [x8, _packet_trace.sideband@PAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_packet_trace_pack
Lloh10:
	adrp	x19, l_.str.2@PAGE
Lloh11:
	add	x19, x19, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strlen
	mov	x20, x0
LBB0_7:
Lloh12:
	adrp	x0, _trace_packet@GOTPAGE
Lloh13:
	ldr	x0, [x0, _trace_packet@GOTPAGEOFF]
	bl	_trace_want
	cbz	w0, LBB0_16
; %bb.8:
	add	w1, w20, #32
	add	x0, sp, #8
	bl	_strbuf_init
	bl	_get_trace_prefix
	cmp	w21, #0
	mov	w8, #62
	mov	w9, #60
	csel	x8, x9, x8, eq
	str	x8, [sp]
	sxtb	w2, w0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	cbz	w20, LBB0_15
; %bb.9:
	mov	w21, w20
Lloh16:
	adrp	x20, l_.str.4@PAGE
Lloh17:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	sxtb	w2, w8
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_addf
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x19, x19, #1
	subs	x21, x21, #1
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x19]
	cmp	w8, #10
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w9, w8, #127
	and	w9, w9, #0xff
	cmp	w9, #161
	b.lo	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	sxtb	w1, w8
	add	x0, sp, #8
	bl	_strbuf_addch
	b	LBB0_11
LBB0_15:
	add	x0, sp, #8
	mov	w1, #10
	bl	_strbuf_addch
Lloh18:
	adrp	x0, _trace_packet@GOTPAGE
Lloh19:
	ldr	x0, [x0, _trace_packet@GOTPAGEOFF]
	add	x1, sp, #8
	bl	_trace_strbuf
	add	x0, sp, #8
	bl	_strbuf_release
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_packet_trace.in_pack,1,2 ; @packet_trace.in_pack
.zerofill __DATA,__bss,_packet_trace.sideband,4,2 ; @packet_trace.sideband
	.comm	_trace_packet,4,2               ; @trace_packet
	.comm	_trace_pack,4,2                 ; @trace_pack
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PACK"

l_.str.1:                               ; @.str.1
	.asciz	"\001PACK"

l_.str.2:                               ; @.str.2
	.asciz	"PACK ..."

l_.str.3:                               ; @.str.3
	.asciz	"packet: %12s%c "

l_.str.4:                               ; @.str.4
	.asciz	"\\%o"

	.no_dead_strip	_packet_trace
.subsections_via_symbols
