	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsv_read_header
_nsv_read_header:                       ## @nsv_read_header
	.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	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_NSV_UNSYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	8(%r12), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_NSV_MAX_RESYNC_TRIES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	movq	_NSV_FOUND_NSVS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_nsv_resync
	testq	%rax, %rax
	js	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	_NSV_FOUND_NSVF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_nsv_parse_NSVf_header
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_2
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rdi
	callq	_nsv_parse_NSVs_header
	testl	%eax, %eax
	js	LBB0_13
LBB0_10:
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_nsv_read_chunk
	movl	%eax, %r14d
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	movl	%r14d, %eax
	jmp	LBB0_13
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSV_UNSYNC,8,3                 ## @NSV_UNSYNC
	.comm	_NSV_MAX_RESYNC_TRIES,4,2       ## @NSV_MAX_RESYNC_TRIES
	.comm	_NSV_FOUND_NSVF,8,3             ## @NSV_FOUND_NSVF
	.comm	_NSV_FOUND_NSVS,8,3             ## @NSV_FOUND_NSVS
	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parsed header\n"

	.no_dead_strip	_nsv_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsv_read_header
_nsv_read_header:                       ; @nsv_read_header
	.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, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _NSV_UNSYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSV_UNSYNC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20]
	ldr	x8, [x20, #8]
	stp	xzr, xzr, [x8]
Lloh3:
	adrp	x21, _NSV_MAX_RESYNC_TRIES@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NSV_MAX_RESYNC_TRIES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w22, #0
Lloh5:
	adrp	x23, _NSV_FOUND_NSVF@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NSV_FOUND_NSVF@GOTPAGEOFF]
Lloh7:
	adrp	x24, _NSV_FOUND_NSVS@GOTPAGE
Lloh8:
	ldr	x24, [x24, _NSV_FOUND_NSVS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_nsv_resync
	tbnz	x0, #63, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_nsv_parse_NSVf_header
	tbnz	w0, #31, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_2
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_nsv_parse_NSVs_header
	tbnz	w0, #31, LBB0_12
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #1
	bl	_nsv_read_chunk
	mov	x20, x0
Lloh9:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	x0, x20
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NSV_UNSYNC,8,3                 ; @NSV_UNSYNC
	.comm	_NSV_MAX_RESYNC_TRIES,4,2       ; @NSV_MAX_RESYNC_TRIES
	.comm	_NSV_FOUND_NSVF,8,3             ; @NSV_FOUND_NSVF
	.comm	_NSV_FOUND_NSVS,8,3             ; @NSV_FOUND_NSVS
	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parsed header\n"

	.no_dead_strip	_nsv_read_header
.subsections_via_symbols
