	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_packetized_to_strbuf      ## -- Begin function read_packetized_to_strbuf
	.p2align	4, 0x90
_read_packetized_to_strbuf:             ## @read_packetized_to_strbuf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_LARGE_PACKET_DATA_MAX@GOTPCREL(%rip), %r13
	movq	_PACKET_READ_GENTLE_ON_EOF@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_strbuf_grow
	movq	(%r12), %rcx
	addq	16(%r12), %rcx
	movq	(%r13), %r8
	incq	%r8
	movl	(%r14), %r9d
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_packet_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	addq	%rax, (%r12)
	jmp	LBB0_1
LBB0_3:
	js	LBB0_4
## %bb.7:
	movl	(%r12), %ebx
	subl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_8
LBB0_4:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_setlen
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	callq	_strbuf_release
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LARGE_PACKET_DATA_MAX,8,3      ## @LARGE_PACKET_DATA_MAX
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ## @PACKET_READ_GENTLE_ON_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_packetized_to_strbuf      ; -- Begin function read_packetized_to_strbuf
	.p2align	2
_read_packetized_to_strbuf:             ; @read_packetized_to_strbuf
	.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
	mov	x19, x1
	mov	x21, x0
	ldp	x20, x23, [x1]
Lloh0:
	adrp	x24, _LARGE_PACKET_DATA_MAX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _LARGE_PACKET_DATA_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x25, _PACKET_READ_GENTLE_ON_EOF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PACKET_READ_GENTLE_ON_EOF@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	mov	x0, x19
	bl	_strbuf_grow
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x3, x9, x8
	ldr	x8, [x24]
	add	x4, x8, #1
	ldr	w5, [x25]
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	bl	_packet_read
	mov	x22, x0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	add	x8, x8, w22, uxtw
	str	x8, [x19]
	b	LBB0_1
LBB0_3:
	tbnz	w22, #31, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	sub	w22, w8, w20
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	cbz	x23, LBB0_7
; %bb.6:
	mov	x1, x20
	bl	_strbuf_setlen
	b	LBB0_8
LBB0_7:
	bl	_strbuf_release
LBB0_8:
	mov	x0, x22
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LARGE_PACKET_DATA_MAX,8,3      ; @LARGE_PACKET_DATA_MAX
	.comm	_PACKET_READ_GENTLE_ON_EOF,4,2  ; @PACKET_READ_GENTLE_ON_EOF
.subsections_via_symbols
