	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_unprocessed_records
_count_unprocessed_records:             ## @count_unprocessed_records
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_RECORD_LAYER_get_rbuf
	movq	8(%rax), %rsi
	addq	16(%rax), %rsi
	movl	(%rax), %edx
	leaq	-28(%rbp), %rdi
	callq	_PACKET_buf_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	-28(%rbp), %rdi
	callq	_PACKET_remaining
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_9
## %bb.2:
	leaq	-28(%rbp), %r14
	leaq	-32(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_PACKET_forward
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_PACKET_get_length_prefixed_2
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	jg	LBB0_3
	jmp	LBB0_9
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_count_unprocessed_records
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_unprocessed_records
_count_unprocessed_records:             ; @count_unprocessed_records
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_RECORD_LAYER_get_rbuf
	ldp	x9, x8, [x0, #8]
	add	x1, x9, x8
	ldr	w2, [x0]
	add	x0, sp, #12
	bl	_PACKET_buf_init
	cbz	w0, LBB0_6
; %bb.1:
	add	x0, sp, #12
	bl	_PACKET_remaining
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	mov	w1, #3
	bl	_PACKET_forward
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_PACKET_get_length_prefixed_2
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	add	x0, sp, #12
	bl	_PACKET_remaining
	cmp	x0, #0
	b.gt	LBB0_3
	b	LBB0_8
LBB0_6:
	mov	w19, #-1
	b	LBB0_8
LBB0_7:
	mov	w19, #0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_count_unprocessed_records
.subsections_via_symbols
