	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsv_read_packet
_nsv_read_packet:                       ## @nsv_read_packet
	.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
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	callq	_nsv_read_chunk
	testl	%eax, %eax
	js	LBB0_9
LBB0_3:
	movq	(%rbx), %rsi
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_6:
	cmpq	$0, 8(%rsi)
	je	LBB0_8
## %bb.7:
	addq	$8, %rsi
	movl	$1, %r15d
LBB0_5:
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	$0, (%rax,%r15,8)
	movl	(%r14), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nsv_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsv_read_packet
_nsv_read_packet:                       ; @nsv_read_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x8, [x20]
	ldr	x9, [x8]
	cbnz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	w1, #0
	bl	_nsv_read_chunk
	tbnz	w0, #31, LBB0_8
LBB0_3:
	ldr	x1, [x20]
	ldr	x8, [x1]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x21, #0
	b	LBB0_7
LBB0_5:
	ldr	x8, [x1, #8]!
	cbz	x8, LBB0_9
; %bb.6:
	mov	w21, #1
LBB0_7:
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20]
	str	xzr, [x8, x21, lsl #3]
	ldr	w0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w0, #-1
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nsv_read_packet
.subsections_via_symbols
