	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_buf_write_len           ## -- Begin function packet_buf_write_len
	.p2align	4, 0x90
_packet_buf_write_len:                  ## @packet_buf_write_len
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strbuf_addstr
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_strbuf_add
	movq	(%r12), %r13
	subq	%rbx, %r13
	movq	_LARGE_PACKET_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_2:
	shlq	$2, %rbx
	addq	8(%r12), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_set_packet_header
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_packet_trace                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0000"

	.comm	_LARGE_PACKET_MAX,8,3           ## @LARGE_PACKET_MAX
L_.str.1:                               ## @.str.1
	.asciz	"protocol error: impossibly long line"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_packet_buf_write_len           ; -- Begin function packet_buf_write_len
	.p2align	2
_packet_buf_write_len:                  ; @packet_buf_write_len
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strbuf_addstr
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_strbuf_add
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _LARGE_PACKET_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LARGE_PACKET_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	sub	x22, x8, x23
	cmp	x22, x9
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_die
LBB0_2:
	ldr	x8, [x21, #8]
	add	x0, x8, x23, lsl #2
	mov	x1, x22
	bl	_set_packet_header
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	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
	b	_packet_trace
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0000"

	.comm	_LARGE_PACKET_MAX,8,3           ; @LARGE_PACKET_MAX
l_.str.1:                               ; @.str.1
	.asciz	"protocol error: impossibly long line"

.subsections_via_symbols
